Browse Source

2025-08-20 copy是不加客户物料

master
fengyuan_yang 5 months ago
parent
commit
453d2d6981
  1. 20
      src/main/java/com/spring/modules/part/service/impl/PartInformationServiceImpl.java

20
src/main/java/com/spring/modules/part/service/impl/PartInformationServiceImpl.java

@ -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);
// }
}
}
}

Loading…
Cancel
Save