|
|
|
@ -408,6 +408,22 @@ public class CoDelServiceImpl implements CoDelService { |
|
|
|
List<PartSubPropertiesValueData> result = null; |
|
|
|
|
|
|
|
result = coDelMapper.getPropertiesListByPartAndCodeNo(inData); |
|
|
|
if(result.size()==0){//如果没有数据 可能是导入或者历史数据还没有保存 再根据模板重新保存下 |
|
|
|
PartSubPropertiesValueData propertiesData=new PartSubPropertiesValueData(); |
|
|
|
propertiesData.setSite(inData.getSite()); |
|
|
|
propertiesData.setBuNo(inData.getBuNo()); |
|
|
|
propertiesData.setCodeNo(inData.getCodeNo()); |
|
|
|
propertiesData.setRecordType(inData.getRecordType()); |
|
|
|
propertiesData.setPartNo(inData.getPartNo()); |
|
|
|
List<PartSubPropertiesValueHeaderData> checkValueHeaderData= partInformationMapper.checkValueHeaderData(propertiesData); |
|
|
|
if(checkValueHeaderData.size()==0){ |
|
|
|
partInformationMapper.deletePartSubPropertiesValueHeader(propertiesData); |
|
|
|
partInformationMapper.deletePartSubPropertiesValue(propertiesData); |
|
|
|
partInformationMapper.savePartSubPropertiesValueHeader(propertiesData); |
|
|
|
partInformationMapper.savePartSubPropertiesValue(propertiesData); |
|
|
|
} |
|
|
|
result = coDelMapper.getPropertiesListByPartAndCodeNo(inData); |
|
|
|
} |
|
|
|
|
|
|
|
for (int i = 0; i < result.size(); i++) { |
|
|
|
if ("Y".equals(result.get(i).getValueChooseFlag())) { |
|
|
|
|