Browse Source

修复资金测试bug

ellisran 9 months ago
parent
commit
15cdb96873
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/controller/financial_controller.js

+ 2 - 2
app/controller/financial_controller.js

@@ -868,8 +868,8 @@ module.exports = app => {
                         responseData.data = await ctx.service.financialPayContract.getContractList(ctx.financialPay.id);
                         break;
                     case 'contract_list':
-                        responseData.data.contracts = await ctx.service.contract.getAllDataByCondition({ where: { spid: ctx.subProject.id, contract_type: 1 } });
-                        responseData.data.contractTrees = await ctx.service.contractTree.getAllDataByCondition({ where: { spid: ctx.subProject.id, contract_type: 1, level: 2 } });
+                        responseData.data.contracts = await ctx.service.contract.getAllDataByCondition({ where: { tid: ctx.financialPay.tid, contract_type: 1 } });
+                        responseData.data.contractTrees = await ctx.service.contractTree.getAllDataByCondition({ where: { tid: ctx.financialPay.tid, contract_type: 1, level: 2 } });
                         break;
                     case 'contract_white_add':
                         responseData.data = await ctx.service.financialPayContract.addWhiteContract(ctx.financialPay);