|
@@ -68,6 +68,9 @@ module.exports = app => {
|
|
|
try {
|
|
|
const meInfo = await this.getDataById(id);
|
|
|
await transaction.delete(this.tableName, { id });
|
|
|
+ if (meInfo.weight_num === null) {
|
|
|
+ await transaction.delete(this.ctx.service.materialExponentHistory.tableName, { mid: id });
|
|
|
+ }
|
|
|
let ex_tp = this.ctx.material.ex_tp;
|
|
|
let ex_expr = this.ctx.material.ex_expr;
|
|
|
if (meInfo.is_summary === materialConst.is_summary.yes) {
|