|
|
|
@ -2074,16 +2074,16 @@ public class PartInformationServiceImpl extends ServiceImpl<PartInformationMappe |
|
|
|
// 新增项目物料 |
|
|
|
partInformationMapper.batchSaveProjectPart(projectPartList); |
|
|
|
|
|
|
|
List<PartInformationVo> projectCustomers = partInformationMapper.getProjectCustomerPartByPartNo(inData.getSite(), fromPart.getPartNo()); |
|
|
|
if (!projectCustomers.isEmpty()) { |
|
|
|
List<PartInformationVo> customerPartList = projectCustomers.stream().map(a -> { |
|
|
|
a.setPartNo(toPart.getPartNo()); |
|
|
|
a.setCreateBy(inData.getCreateBy()); |
|
|
|
return a; |
|
|
|
}).collect(Collectors.toList()); |
|
|
|
// 新增客户物料 |
|
|
|
partInformationMapper.batchSaveCustomerPart(customerPartList); |
|
|
|
} |
|
|
|
// List<PartInformationVo> projectCustomers = partInformationMapper.getProjectCustomerPartByPartNo(inData.getSite(), fromPart.getPartNo()); |
|
|
|
// if (!projectCustomers.isEmpty()) { |
|
|
|
// List<PartInformationVo> customerPartList = projectCustomers.stream().map(a -> { |
|
|
|
// a.setPartNo(toPart.getPartNo()); |
|
|
|
// a.setCreateBy(inData.getCreateBy()); |
|
|
|
// return a; |
|
|
|
// }).collect(Collectors.toList()); |
|
|
|
// // 新增客户物料 |
|
|
|
// partInformationMapper.batchSaveCustomerPart(customerPartList); |
|
|
|
// } |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|