Преглед изворни кода

安全生产费,添加标准清单bug

MaiXinRong пре 2 година
родитељ
комит
32ee4eb237
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/service/payment_safe_bills.js

+ 1 - 1
app/service/payment_safe_bills.js

@@ -455,7 +455,7 @@ module.exports = app => {
             const createData = await this.getDataByFullPath(detail.id, insertData[0][this.setting.fullPath] + '%');
             const updateData = await this.getNextsData(detail.id, targetId, insertData[0][this.setting.order]);
             if (updateParent) {
-                updateData.push(await this.getDataByCondition({ id: updateParent.id }));
+                updateData.push(await this.getDataById(parent.id));
             }
             return { create: createData, update: updateData };
         }