日计划管理-客户需求

This commit is contained in:
2026-01-28 18:06:47 +08:00
parent 862d3bddc0
commit 8cee0b04da

View File

@ -109,7 +109,7 @@ public class DemandServiceImpl extends MPJBaseServiceImpl<LngPngDemandMapper, Ln
} }
List<UpdateLngPngDemandDto> dtoList = Lists.newArrayList(); List<UpdateLngPngDemandDto> dtoList = Lists.newArrayList();
for(Long id:ids) { for(Long id:ids) {
LngPngDemand lngPngDemand = this.getById(id); LngPngDemandVo lngPngDemand = this.getInfoById(id);
if (lngPngDemand == null) { if (lngPngDemand == null) {
throw new BusinessException(BusinessCode.of(10500,"找不到此数据!")); throw new BusinessException(BusinessCode.of(10500,"找不到此数据!"));
} }
@ -122,7 +122,7 @@ public class DemandServiceImpl extends MPJBaseServiceImpl<LngPngDemandMapper, Ln
List<LngPngAppro> approList = approMapper.selectList(queryApproWrapper); List<LngPngAppro> approList = approMapper.selectList(queryApproWrapper);
List<Long> approIds = approList.stream().map(LngPngAppro::getId).collect(Collectors.toList()); List<Long> approIds = approList.stream().map(LngPngAppro::getId).collect(Collectors.toList());
dataService.insertBatch(dtoList,new DataOperationListener<UpdateLngPngDemandDto>() { dataService.updateBatch(dtoList,new DataOperationListener<UpdateLngPngDemandDto>() {
@Override @Override
public UpdateLngPngDemandDto before(DataOperationContent<UpdateLngPngDemandDto> content) { public UpdateLngPngDemandDto before(DataOperationContent<UpdateLngPngDemandDto> content) {