退料申请表数据问题修改

This commit is contained in:
liang.chao 2024-03-08 10:44:19 +08:00
parent 1903c9244e
commit 4c61c18d63
2 changed files with 12 additions and 15 deletions

View File

@ -408,9 +408,7 @@ public class TmTaskController extends BaseController {
}
}
int size = leaseApplyInfoList.size();
for (int n = 0; n < size; n++) {
List<LeaseApplyDetails> leaseApplyDetails = leaseAuditList.get(i).getLeaseApplyInfoList().get(n).getLeaseApplyDetails();
List<LeaseApplyDetails> leaseApplyDetails = leaseAuditList.get(i).getLeaseApplyInfoList().get(0).getLeaseApplyDetails();
if (leaseApplyDetails != null) {
List<LeaseApplyDetails> list1 = new ArrayList<>();
for (int l = 0; l < leaseApplyDetails.size(); l++) {
@ -424,7 +422,6 @@ public class TmTaskController extends BaseController {
}
}
}
}
return AjaxResult.success(getDataTable(list));
}
}

View File

@ -711,12 +711,12 @@ public class TmTaskServiceImpl implements TmTaskService {
}
// 修改任务关联的协议
this.updateAgreementByTask(tmTask);
//先删除leaseApplyDetail
res = deletePreDetailData(tmTask);
if (res == 0) {
throw new RuntimeException("删除leaseApplyDetail异常");
}
//删除leaseApplyInfo
//删除leaseApplyInfo
res = deletePreData(tmTask);
if (res == 0) {
throw new RuntimeException("删除leaseApplyInfo异常");