退料申请表数据问题修改
This commit is contained in:
parent
1903c9244e
commit
4c61c18d63
|
|
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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异常");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue