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