退料申请表数据问题修改

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

View File

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