|
|
@ -379,16 +379,17 @@ public class MasterPartInformationServiceImpl extends ServiceImpl<MasterPartInfo |
|
|
partInformationMapper.savePartSubPropertiesValueHeader(data); |
|
|
partInformationMapper.savePartSubPropertiesValueHeader(data); |
|
|
// 物料属性 |
|
|
// 物料属性 |
|
|
partInformationMapper.savePartSubPropertiesValues(arrayList); |
|
|
partInformationMapper.savePartSubPropertiesValues(arrayList); |
|
|
|
|
|
} else { |
|
|
|
|
|
if (checkValueHeaderData.isEmpty()) { |
|
|
|
|
|
// 初次或修改物料模板则重新加载模板 |
|
|
|
|
|
// 删除物料的属性和属性值 |
|
|
|
|
|
partInformationMapper.deletePartSubPropertiesValueHeader(data); |
|
|
|
|
|
partInformationMapper.deletePartSubPropertiesValue(data); |
|
|
|
|
|
// 加载默认属性和属性值 |
|
|
|
|
|
partInformationMapper.savePartSubPropertiesValueHeader(data); |
|
|
|
|
|
partInformationMapper.savePartSubPropertiesValue(data); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
// else if (checkValueHeaderData.isEmpty()){ |
|
|
|
|
|
// // 初次或修改物料模板则重新加载模板 |
|
|
|
|
|
// // 删除物料的属性和属性值 |
|
|
|
|
|
// partInformationMapper.deletePartSubPropertiesValueHeader(data); |
|
|
|
|
|
// partInformationMapper.deletePartSubPropertiesValue(data); |
|
|
|
|
|
// // 加载默认属性和属性值 |
|
|
|
|
|
// partInformationMapper.savePartSubPropertiesValueHeader(data); |
|
|
|
|
|
// partInformationMapper.savePartSubPropertiesValue(data); |
|
|
|
|
|
// } |
|
|
|
|
|
List<PartSubPropertiesValueData> result = partInformationMapper.getItemModal(data); |
|
|
List<PartSubPropertiesValueData> result = partInformationMapper.getItemModal(data); |
|
|
for (int i = 0; i < result.size(); i++) { |
|
|
for (int i = 0; i < result.size(); i++) { |
|
|
if ("Y".equals(result.get(i).getValueChooseFlag())) { |
|
|
if ("Y".equals(result.get(i).getValueChooseFlag())) { |
|
|
|