Explorar o código

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

MaiXinRong %!s(int64=2) %!d(string=hai) anos
pai
achega
32ee4eb237
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 };
         }