Commit 78a88228 authored by 韩桐桐's avatar 韩桐桐

fix(jg):任务 33274 【新增压力管道安装告知】安装告知页面及接口调整

parent daba3f95
...@@ -338,4 +338,16 @@ public class JgInstallationNoticeDto extends BaseDto { ...@@ -338,4 +338,16 @@ public class JgInstallationNoticeDto extends BaseDto {
* 管道工程装置id * 管道工程装置id
*/ */
private String projectContraptionId; private String projectContraptionId;
/**
* 装置起始位置-压力管道使用
*/
@ApiModelProperty("start_latitude_longitude")
private String startLatitudeLongitude;
/**
* 装置结束位置-压力管道使用
*/
@ApiModelProperty("end_latitude_longitude")
private String endLatitudeLongitude;
} }
...@@ -488,9 +488,20 @@ public class JgInstallationNotice extends BaseEntity { ...@@ -488,9 +488,20 @@ public class JgInstallationNotice extends BaseEntity {
@TableField("equ_list_code") @TableField("equ_list_code")
private String equListCode; private String equListCode;
/** /**
* 工程装置主键 * 工程装置主键-压力管道使用
*/ */
@TableField("project_contraption_id") @TableField("project_contraption_id")
private String projectContraptionId; private String projectContraptionId;
/**
* 装置起始位置-压力管道使用
*/
@TableField("start_latitude_longitude")
private String startLatitudeLongitude;
/**
* 装置结束位置-压力管道使用
*/
@TableField("end_latitude_longitude")
private String endLatitudeLongitude;
} }
...@@ -283,6 +283,12 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN ...@@ -283,6 +283,12 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
installationInfo.put(s, ObjectUtils.isEmpty(installationInfo.get(s)) ? new JSONArray() : parseArray(installationInfo.get(s).toString())); installationInfo.put(s, ObjectUtils.isEmpty(installationInfo.get(s)) ? new JSONArray() : parseArray(installationInfo.get(s).toString()));
} }
} }
String[] jsonObjFields = {"startLatitudeLongitude", "endLatitudeLongitude"};
for (String s : jsonObjFields) {
if (installationInfo.containsKey(s)) {
installationInfo.put(s, ObjectUtils.isEmpty(installationInfo.get(s)) ? null : JSON.parseObject(installationInfo.get(s).toString()));
}
}
if (Integer.parseInt(notice.getNoticeStatus()) >= FlowStatusEnum.TO_BE_FINISHED.getCode()) { if (Integer.parseInt(notice.getNoticeStatus()) >= FlowStatusEnum.TO_BE_FINISHED.getCode()) {
// 完成及作废时显示历史数据 // 完成及作废时显示历史数据
JSONObject hisData = commonService.queryHistoryData(notice.getSequenceNbr()); JSONObject hisData = commonService.queryHistoryData(notice.getSequenceNbr());
...@@ -302,6 +308,8 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN ...@@ -302,6 +308,8 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
} else { } else {
// 显示最新的设备信息 // 显示最新的设备信息
Map<String, Object> detail = setNewEquipData(companyLevel, installationInfo); Map<String, Object> detail = setNewEquipData(companyLevel, installationInfo);
detail.put("startLatitudeLongitude", JSON.parseObject(notice.getStartLatitudeLongitude()));
detail.put("endLatitudeLongitude", JSON.parseObject(notice.getEndLatitudeLongitude()));
return new HashMap<String, Map<String, Object>>() {{ return new HashMap<String, Map<String, Object>>() {{
this.put("installationInfo", detail); this.put("installationInfo", detail);
}}; }};
...@@ -1917,6 +1925,8 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN ...@@ -1917,6 +1925,8 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
projectContraption.setUscUnitName(jgInstallationNotice.getInstallUnitName()); projectContraption.setUscUnitName(jgInstallationNotice.getInstallUnitName());
projectContraption.setUseUnitName(jgInstallationNotice.getUseUnitName()); projectContraption.setUseUnitName(jgInstallationNotice.getUseUnitName());
projectContraption.setUseUnitCreditCode(jgInstallationNotice.getUseUnitCreditCode()); projectContraption.setUseUnitCreditCode(jgInstallationNotice.getUseUnitCreditCode());
projectContraption.setStartLatitudeLongitude(jgInstallationNotice.getStartLatitudeLongitude());
projectContraption.setEndLatitudeLongitude(jgInstallationNotice.getEndLatitudeLongitude());
projectContraptionService.updateById(projectContraption); projectContraptionService.updateById(projectContraption);
// 更新安装告知业务表信息 // 更新安装告知业务表信息
......
...@@ -3792,6 +3792,8 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD ...@@ -3792,6 +3792,8 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
re.put("equipmentLists", equList); re.put("equipmentLists", equList);
re.put("projectContraption", projectContraption.getProjectContraption()); re.put("projectContraption", projectContraption.getProjectContraption());
re.put("projectContraptionId", projectContraptionSeq); re.put("projectContraptionId", projectContraptionSeq);
re.put("projectContraptionNo", projectContraption.getProjectContraptionNo());
re.put("pipelineLength", projectContraption.getPipelineLength());
this.setPieLineInspectInfo(projectContraptionSeq, re); this.setPieLineInspectInfo(projectContraptionSeq, re);
this.setConstructionInfo(projectContraptionSeq, re); this.setConstructionInfo(projectContraptionSeq, re);
return re; return re;
......
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