|
|
|
@ -149,15 +149,15 @@ public class PartInformationServiceImpl extends ServiceImpl<PartInformationMappe |
|
|
|
partInformationMapper.insert(data); |
|
|
|
|
|
|
|
// 创建该物料的bom默认版本 |
|
|
|
if (!"Purchased (raw)".equals(data.getPartType())) { // 该类型不创建BOM |
|
|
|
if (!"Purchased (raw)".equals(data.getPartType2())) { // 该类型不创建BOM |
|
|
|
// 校验查重 |
|
|
|
BomHeaderEntity bomHeader = new BomHeaderEntity(); |
|
|
|
bomHeader.setSite(data.getSite()); |
|
|
|
bomHeader.setBuNo(data.getBuNo()); |
|
|
|
bomHeader.setPartNo(data.getPartNo()); |
|
|
|
if (data.getPartType().contains("Manufactured")) { |
|
|
|
if (data.getPartType2().contains("Manufactured")) { |
|
|
|
bomHeader.setBomType("Manufacturing"); |
|
|
|
} else if ("Purchased".equals(data.getPartType())) { |
|
|
|
} else if ("Purchased".equals(data.getPartType2())) { |
|
|
|
bomHeader.setBomType("Purchase"); |
|
|
|
} |
|
|
|
bomHeader.setEffPhaseInDate(data.getCreateDate()); |
|
|
|
@ -172,7 +172,7 @@ public class PartInformationServiceImpl extends ServiceImpl<PartInformationMappe |
|
|
|
bomDetail.setStatus("Tentative"); |
|
|
|
bomManagementMapper.bomDetailSave(bomDetail); |
|
|
|
// 新增 Routing |
|
|
|
if (data.getPartType().contains("Manufactured")) { |
|
|
|
if (data.getPartType2().contains("Manufactured")) { |
|
|
|
RoutingHeaderEntity headerEntity = new RoutingHeaderEntity(); |
|
|
|
headerEntity.setSite(data.getSite()); |
|
|
|
headerEntity.setBuNo(data.getBuNo()); |
|
|
|
@ -670,7 +670,7 @@ public class PartInformationServiceImpl extends ServiceImpl<PartInformationMappe |
|
|
|
PartInformationEntity toPart = new PartInformationEntity(); |
|
|
|
BeanUtils.copyProperties(fromPart, toPart); |
|
|
|
// if ("Y".equals(inData.getCopyGeneral())) { |
|
|
|
// toPart.setPartType(fromPart.getPartType()); // 零件类型 |
|
|
|
// toPart.setPartType2(fromPart.getPartType2()); // 零件类型 |
|
|
|
// toPart.setUmId(fromPart.getUmId()); // 库存计量单位 |
|
|
|
// toPart.setCodeNo(fromPart.getCodeNo()); // 属性模板 |
|
|
|
// toPart.setCreateBy(inData.getCreateBy()); // 备注 |
|
|
|
|