Commit 9b2737d9 authored by tianbo's avatar tianbo

fix:管道安装告知设备信息回显

parent 7829e6e3
...@@ -1825,12 +1825,27 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN ...@@ -1825,12 +1825,27 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
String deviceLevel = String.valueOf(device.get("deviceLevel")); String deviceLevel = String.valueOf(device.get("deviceLevel"));
device.put("deviceLevel", dataDictionaryMapper.selectById(deviceLevel).getName()); device.put("deviceLevel", dataDictionaryMapper.selectById(deviceLevel).getName());
device.put("sequenceNbr", projectContraptionSeq); device.put("sequenceNbr", projectContraptionSeq);
device.put("equListName", projectContraption.getEquListName());
}); });
return new JSONObject().fluentPut("deviceList", deviceList) JSONObject result = new JSONObject();
result.fluentPut("deviceList", deviceList)
.fluentPut("projectContraption", projectContraption.getProjectContraption()) .fluentPut("projectContraption", projectContraption.getProjectContraption())
.fluentPut("projectContraptionNo", projectContraption.getProjectContraptionNo()) .fluentPut("projectContraptionNo", projectContraption.getProjectContraptionNo())
.fluentPut("pipelineLength", projectContraption.getPipelineLength()) .fluentPut("pipelineLength", projectContraption.getPipelineLength())
.fluentPut("projectContraptionId", projectContraptionSeq); .fluentPut("projectContraptionId", projectContraptionSeq);
if (!ValidationUtil.isEmpty(projectContraption.getCity())) {
result.fluentPut("city", projectContraption.getCity() + "_" + projectContraption.getCityName());
}
if (!ValidationUtil.isEmpty(projectContraption.getCounty())) {
result.fluentPut("county", projectContraption.getCounty() + "_" + projectContraption.getCountyName());
}
if (!ValidationUtil.isEmpty(projectContraption.getStreet())) {
result.fluentPut("factoryUseSiteStreet", projectContraption.getStreet() + "_" + projectContraption.getStreetName());
}
if (!ValidationUtil.isEmpty(projectContraption.getAddress())) {
result.fluentPut("address", projectContraption.getAddress());
}
return result;
} }
@Override @Override
......
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