Commit 690c8dbb authored by suhuiguang's avatar suhuiguang

1.部分设备编辑后使用信息的省市区数据由code变为code_name下滑线

parent 94f033a8
......@@ -2824,8 +2824,8 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
iIdxBizJgInspectionDetectionInfoService.saveOrUpdateData(inspectionDetectionInfo);
}
}
// 删除使用信息中的省、市、区下滑线数据,来源详情的getEquipInfoMap的放入
this.removeDescAfterCode(useInfo);
// 使用信息
useInfo.setRecord(record);
useInfo.setRecDate(date);
......@@ -3082,6 +3082,26 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
return record;
}
/**
* province、city、county
* 删除由于详情返回拼接的code_name起重的_name,只保留code,否则回导致数据被保存为610423_泾阳县这样结构
* @param useInfo 使用信息
*/
private void removeDescAfterCode(IdxBizJgUseInfo useInfo) {
if(useInfo.getProvince() != null && useInfo.getProvince().contains("_")){
String[] str = useInfo.getProvince().split("_");
useInfo.setProvince(str[0]);
}
if(useInfo.getCity() != null && useInfo.getCity().contains("_")){
String[] str = useInfo.getCity().split("_");
useInfo.setCity(str[0]);
}
if(useInfo.getCounty() != null && useInfo.getCounty().contains("_")){
String[] str = useInfo.getCounty().split("_");
useInfo.setCounty(str[0]);
}
}
private String getDataSource(String operateType, LinkedHashMap equipmentInfoForm) {
// 数据来源 历史数据his 新数据new
String equipSource = String.valueOf(equipmentInfoForm.get(DATA_SOURCE));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment