diff --git a/itc-pcitc-mdm/itc-pcitc-mdm-service/src/main/java/com/xjrsoft/module/dayPlan/service/impl/DemandServiceImpl.java b/itc-pcitc-mdm/itc-pcitc-mdm-service/src/main/java/com/xjrsoft/module/dayPlan/service/impl/DemandServiceImpl.java index ffe2df3..07fc0a8 100644 --- a/itc-pcitc-mdm/itc-pcitc-mdm-service/src/main/java/com/xjrsoft/module/dayPlan/service/impl/DemandServiceImpl.java +++ b/itc-pcitc-mdm/itc-pcitc-mdm-service/src/main/java/com/xjrsoft/module/dayPlan/service/impl/DemandServiceImpl.java @@ -109,7 +109,7 @@ public class DemandServiceImpl extends MPJBaseServiceImpl dtoList = Lists.newArrayList(); for(Long id:ids) { - LngPngDemand lngPngDemand = this.getById(id); + LngPngDemandVo lngPngDemand = this.getInfoById(id); if (lngPngDemand == null) { throw new BusinessException(BusinessCode.of(10500,"找不到此数据!")); } @@ -122,7 +122,7 @@ public class DemandServiceImpl extends MPJBaseServiceImpl approList = approMapper.selectList(queryApproWrapper); List approIds = approList.stream().map(LngPngAppro::getId).collect(Collectors.toList()); - dataService.insertBatch(dtoList,new DataOperationListener() { + dataService.updateBatch(dtoList,new DataOperationListener() { @Override public UpdateLngPngDemandDto before(DataOperationContent content) {