ソースを参照

导入工料页调整和增加覆盖功能

ellisran 2 ヶ月 前
コミット
fbfd9a5e5b
1 ファイル変更1 行追加1 行削除
  1. 1 1
      app/service/material_list.js

+ 1 - 1
app/service/material_list.js

@@ -673,7 +673,7 @@ module.exports = app => {
         }
 
         async cover() {
-            return await this.db.delete(this.ctx.service.materialList.tableName, { tid: this.ctx.tender.id, mid: this.ctx.material.id });
+            return await this.db.delete(this.ctx.service.materialList.tableName, { tid: this.ctx.tender.id, mid: this.ctx.material.id, is_self: 0 });
         }
 
         /**