소스 검색

安全生产费,添加标准清单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 };
         }