|
|
|
@ -368,7 +368,7 @@ public class MasterPartInformationServiceImpl extends ServiceImpl<MasterPartInfo |
|
|
|
valueData.setItemNo((double) itemNo++); |
|
|
|
valueData.setPropertiesItemNo(item.getAttribute()); |
|
|
|
if ("Numeric".equals(item.getAttributeType())) { |
|
|
|
valueData.setNumValue(Double.valueOf(item.getValueNo())); |
|
|
|
valueData.setNumValue(StringUtils.isNotBlank(item.getValueNo()) ? Double.valueOf(item.getValueNo()) : null); |
|
|
|
} else { |
|
|
|
valueData.setTextValue(item.getValueText() == null ? "" : item.getValueText()); |
|
|
|
} |
|
|
|
@ -484,15 +484,6 @@ public class MasterPartInformationServiceImpl extends ServiceImpl<MasterPartInfo |
|
|
|
ifsProperty.add(property); |
|
|
|
} |
|
|
|
} |
|
|
|
// 同步IFS |
|
|
|
// if (dataUrl && "Y".equals(partData.getOfficialFlag())) { |
|
|
|
// if (!ifsProperty.isEmpty()) { |
|
|
|
// Map<String, String> addMasterPartPropertyResponse = technicalClassBean.syncTechnicalClass(srv, ifsProperty); |
|
|
|
// if (!"200".equals(addMasterPartPropertyResponse.get("resultCode"))) { |
|
|
|
// throw new RuntimeException("IFS物料属性新增异常:" + addMasterPartPropertyResponse.get("resultMsg")); |
|
|
|
// } |
|
|
|
// } |
|
|
|
// } |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
@ -517,14 +508,14 @@ public class MasterPartInformationServiceImpl extends ServiceImpl<MasterPartInfo |
|
|
|
} |
|
|
|
} |
|
|
|
// 同步IFS |
|
|
|
// if (dataUrl && "Y".equals(partData.getOfficialFlag())) { |
|
|
|
// if (!ifsProperty.isEmpty()) { |
|
|
|
// Map<String, String> deleteMasterPartPropertyResponse = technicalClassBean.removeTechnicalClass(srv, ifsProperty); |
|
|
|
// if (!"200".equals(deleteMasterPartPropertyResponse.get("resultCode"))) { |
|
|
|
// throw new RuntimeException("IFS物料属性删除异常:" + deleteMasterPartPropertyResponse.get("resultMsg")); |
|
|
|
// } |
|
|
|
// } |
|
|
|
// } |
|
|
|
if (dataUrl && "Y".equals(partData.getOfficialFlag())) { |
|
|
|
if (!ifsProperty.isEmpty()) { |
|
|
|
Map<String, String> deleteMasterPartPropertyResponse = technicalClassBean.removeTechnicalClassAttributes(srv, ifsProperty); |
|
|
|
if (!"200".equals(deleteMasterPartPropertyResponse.get("resultCode"))) { |
|
|
|
throw new RuntimeException("IFS物料属性删除异常:" + deleteMasterPartPropertyResponse.get("resultMsg")); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
|