退料申请表数据问题修改
This commit is contained in:
parent
c82d744963
commit
2b8f984cd8
|
|
@ -471,7 +471,7 @@ public class TmTaskController extends BaseController {
|
||||||
|
|
||||||
//修改领料任务表信息
|
//修改领料任务表信息
|
||||||
//先判断 目前数据库有几个公司
|
//先判断 目前数据库有几个公司
|
||||||
List<LeaseApplyInfo> list = tmTaskService.getListSome(task.getTaskId());
|
// List<LeaseApplyInfo> list = tmTaskService.getListSome(task.getTaskId());
|
||||||
LeaseApplyInfo infoAdd = new LeaseApplyInfo();
|
LeaseApplyInfo infoAdd = new LeaseApplyInfo();
|
||||||
/* if (list.size() < 2) {
|
/* if (list.size() < 2) {
|
||||||
List<List<LeaseApplyDetails>> deviceByCompanyList = CollUtil.groupByField(task.getLeaseApplyDetails(), "companyId");
|
List<List<LeaseApplyDetails>> deviceByCompanyList = CollUtil.groupByField(task.getLeaseApplyDetails(), "companyId");
|
||||||
|
|
|
||||||
|
|
@ -793,6 +793,7 @@ public class TmTaskServiceImpl implements TmTaskService {
|
||||||
// 去查询领料任务详情表
|
// 去查询领料任务详情表
|
||||||
List<LeaseApplyDetails> leaseApplyDetails = tmTaskMapper.getLeaseApplyDetailsByApply(leaseApplyInfo);
|
List<LeaseApplyDetails> leaseApplyDetails = tmTaskMapper.getLeaseApplyDetailsByApply(leaseApplyInfo);
|
||||||
if (leaseApplyDetails != null && !leaseApplyDetails.isEmpty()) {
|
if (leaseApplyDetails != null && !leaseApplyDetails.isEmpty()) {
|
||||||
|
leaseApplyInfo.setLeaseApplyDetails(leaseApplyDetails);
|
||||||
listLeaseDetails.addAll(leaseApplyDetails);
|
listLeaseDetails.addAll(leaseApplyDetails);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue