|
|
|
@ -2240,6 +2240,9 @@ public class PartInformationServiceImpl extends ServiceImpl<PartInformationMappe |
|
|
|
if ("Y".equals(inData.getCopyFlag())) { |
|
|
|
// 将原物料改为正式物料,并给 ifs_part_no 赋值 |
|
|
|
partInformationMapper.updateFromPartStatusAndIfsPart(inData.getPreviousVersion().getSite(), inData.getPreviousVersion().getPartNo(), inData.getPartNo()); |
|
|
|
// 没有update项目料号表里的final part no |
|
|
|
// 反刷项目物料的finalPartNo |
|
|
|
partInformationMapper.updateProjectFinalPart2(inData.getPreviousVersion().getSite(), inData.getPreviousVersion().getPartNo(), inData.getPartNo(), inData.getCreateBy()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -2249,6 +2252,7 @@ public class PartInformationServiceImpl extends ServiceImpl<PartInformationMappe |
|
|
|
toPart.setPartNo(inData.getPartNo()); |
|
|
|
toPart.setPartDesc(inData.getPartDesc()); |
|
|
|
toPart.setStatus(fromPart.getStatus()); |
|
|
|
toPart.setActive(fromPart.getActive()); |
|
|
|
|
|
|
|
// General |
|
|
|
toPart.setPartType(fromPart.getPartType()); // 零件类型 |
|
|
|
@ -2816,6 +2820,7 @@ public class PartInformationServiceImpl extends ServiceImpl<PartInformationMappe |
|
|
|
|
|
|
|
// 编辑原物料 |
|
|
|
UpdateWrapper<PartInformationEntity> updateInformationWrapper = new UpdateWrapper<>(); |
|
|
|
data.setStatus("Y"); |
|
|
|
updateInformationWrapper.eq("site", data.getSite()); |
|
|
|
updateInformationWrapper.eq("part_no", data.getPartNo()); |
|
|
|
partInformationMapper.update(data, updateInformationWrapper); |
|
|
|
@ -2870,7 +2875,7 @@ public class PartInformationServiceImpl extends ServiceImpl<PartInformationMappe |
|
|
|
ifsPart.setPartNo(data.getIfsPartNo()); |
|
|
|
ifsPart.setPlmPartNo(data.getPartNo()); |
|
|
|
ifsPart.setCreateBy(data.getUpdateBy()); |
|
|
|
ifsPart.setStatus("Y"); |
|
|
|
//ifsPart.setStatus("Y"); |
|
|
|
ifsPart.setIfsPartNo(data.getIfsPartNo()); |
|
|
|
partInformationMapper.insert(ifsPart); |
|
|
|
|
|
|
|
|