|
|
|
@ -380,15 +380,16 @@ public class MasterPartInformationServiceImpl extends ServiceImpl<MasterPartInfo |
|
|
|
valueData.setRecordType("MP"); |
|
|
|
arrayList.add(valueData); |
|
|
|
} |
|
|
|
|
|
|
|
// 物料模板 |
|
|
|
partInformationMapper.savePartSubPropertiesValueHeader(data); |
|
|
|
// 物料属性 |
|
|
|
partInformationMapper.savePartSubPropertiesValues(arrayList); |
|
|
|
// 如果同步过来的模板编码和plm不同,以ifs为准 |
|
|
|
if (!masterPart.getCodeNo().equals(ifsItems.get(0).getTechnicalClass())) { |
|
|
|
data.setCodeNo(ifsItems.get(0).getTechnicalClass()); |
|
|
|
masterPartInformationMapper.updateCodeNoByPartNo(data.getPartNo(), ifsItems.get(0).getTechnicalClass()); |
|
|
|
} |
|
|
|
// 物料模板 |
|
|
|
partInformationMapper.savePartSubPropertiesValueHeader(data); |
|
|
|
// 物料属性 |
|
|
|
partInformationMapper.savePartSubPropertiesValues(arrayList); |
|
|
|
|
|
|
|
} else { |
|
|
|
if (checkValueHeaderData.isEmpty()) { |
|
|
|
// 初次或修改物料模板则重新加载模板 |
|
|
|
|