|
@@ -109,7 +109,7 @@ module.exports = app => {
|
|
|
const transaction = await this.db.beginTransaction();
|
|
|
try {
|
|
|
await transaction.delete(this.tableName, delData);
|
|
|
- if (updateData.length > 0) await transaction.update(updateData);
|
|
|
+ if (updateData.length > 0) await transaction.updateRows(this.tableName, updateData);
|
|
|
if (parseInt(data.code) === shenpiConst.sp_type.stage && parseInt(data.status) === shenpiConst.sp_status.gdspl) {
|
|
|
const options = {
|
|
|
where: {
|