Преглед на файлове

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

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() {
         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 });
         }
         }
 
 
         /**
         /**