退料申请表数据问题修改

This commit is contained in:
liang.chao 2024-02-27 14:34:44 +08:00
parent c82d744963
commit 2b8f984cd8
2 changed files with 2 additions and 1 deletions

View File

@ -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();
/* if (list.size() < 2) {
List<List<LeaseApplyDetails>> deviceByCompanyList = CollUtil.groupByField(task.getLeaseApplyDetails(), "companyId");

View File

@ -793,6 +793,7 @@ public class TmTaskServiceImpl implements TmTaskService {
// 去查询领料任务详情表
List<LeaseApplyDetails> leaseApplyDetails = tmTaskMapper.getLeaseApplyDetailsByApply(leaseApplyInfo);
if (leaseApplyDetails != null && !leaseApplyDetails.isEmpty()) {
leaseApplyInfo.setLeaseApplyDetails(leaseApplyDetails);
listLeaseDetails.addAll(leaseApplyDetails);
}
}