Browse Source

2026-06-02

copy part优化
master
fengyuan_yang 2 months ago
parent
commit
30ad0bcc88
  1. 21
      src/main/java/com/spring/modules/part/service/impl/PartInformationServiceImpl.java

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

@ -2030,6 +2030,7 @@ public class PartInformationServiceImpl extends ServiceImpl<PartInformationMappe
MasterPartInformationEntity masterPart = masterPartInformationMapper.selectOne(new QueryWrapper<MasterPartInformationEntity>().eq("part_no", fromPart.getPartNo())); MasterPartInformationEntity masterPart = masterPartInformationMapper.selectOne(new QueryWrapper<MasterPartInformationEntity>().eq("part_no", fromPart.getPartNo()));
masterPart.setPartNo(inData.getPartNo()); masterPart.setPartNo(inData.getPartNo());
masterPart.setPartDesc(inData.getPartDesc()); masterPart.setPartDesc(inData.getPartDesc());
masterPart.setPlmPartNo(inData.getPartNo());
masterPartInformationMapper.insert(masterPart); masterPartInformationMapper.insert(masterPart);
} }
// master part 模板和属性 // master part 模板和属性
@ -2221,16 +2222,16 @@ public class PartInformationServiceImpl extends ServiceImpl<PartInformationMappe
// // 新增项目物料 // // 新增项目物料
// partInformationMapper.batchSaveProjectPart(projectPartList); // 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