|
@@ -45,7 +45,7 @@ module.exports = app => {
|
|
|
const oldList = JSON.parse(data.list_json);
|
|
|
// 先删后插
|
|
|
await transaction.delete(this.ctx.service.changeApplyList.tableName, { caid });
|
|
|
- await transaction.insert(this.ctx.service.changeApplyList.tableName, oldList);
|
|
|
+ if (oldList.length > 0) await transaction.insert(this.ctx.service.changeApplyList.tableName, oldList);
|
|
|
}
|
|
|
}
|
|
|
|