|
|
|
@ -340,6 +340,7 @@ public class PartInformationServiceImpl extends ServiceImpl<PartInformationMappe |
|
|
|
partRevision.setProductStatus("Not In Effect"); |
|
|
|
partRevision.setRepairStatus("Not In Effect"); |
|
|
|
partRevision.setCreateBy(data.getCreateBy()); |
|
|
|
partRevision.setEngRevision("1"); |
|
|
|
partInformationMapper.saveRevision(partRevision); |
|
|
|
// 创建该物料的bom默认版本 |
|
|
|
if (!"Purchased (raw)".equals(data.getPartType())) { // 该类型不创建BOM |
|
|
|
@ -437,6 +438,7 @@ public class PartInformationServiceImpl extends ServiceImpl<PartInformationMappe |
|
|
|
partRevision.setProductStatus("Not In Effect"); |
|
|
|
partRevision.setRepairStatus("Not In Effect"); |
|
|
|
partRevision.setCreateBy(data.getCreateBy()); |
|
|
|
partRevision.setEngRevision("1"); |
|
|
|
partInformationMapper.saveRevision(partRevision); |
|
|
|
// 创建该物料的bom默认版本 |
|
|
|
if (!"Purchased (raw)".equals(data.getPartType())) { |
|
|
|
@ -2555,6 +2557,27 @@ public class PartInformationServiceImpl extends ServiceImpl<PartInformationMappe |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 获取下一个物料revision |
|
|
|
* @param inData |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public Map<String, Object> getPartRevisionEngChgLevel(PartRevisionVo inData) { |
|
|
|
HashMap<String, Object> map = new HashMap<>(); |
|
|
|
// 获取最大的partRevision |
|
|
|
List<PartRevisionVo> revisionList = partInformationMapper.getMaxPartRevision(inData.getSite(), inData.getPartNo()); |
|
|
|
|
|
|
|
if (revisionList.isEmpty()) { |
|
|
|
map.put("engChgLevel", 1); |
|
|
|
map.put("engRevision", 1); |
|
|
|
} else { |
|
|
|
map.put("engChgLevel", revisionList.get(0).getEngChgLevel() + 1); |
|
|
|
map.put("engRevision", revisionList.get(0).getEngChgLevel() + 1); |
|
|
|
} |
|
|
|
return map; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|