Commit 2cd9bd94 authored by zhangsen's avatar zhangsen

安装告知、移装告知 详情API修改

parent dd86891d
...@@ -124,7 +124,8 @@ ...@@ -124,7 +124,8 @@
ei.address AS address, ei.address AS address,
ei.use_code AS useCode, ei.use_code AS useCode,
isn.install_unit_credit_code AS installUnitCreditCode, isn.install_unit_credit_code AS installUnitCreditCode,
idi.INSPECT_REPORT as inspectReport idi.INSPECT_REPORT as inspectReport,
re.equ_id as equId
FROM FROM
tzs_jg_installation_notice isn tzs_jg_installation_notice isn
LEFT JOIN tzs_jg_installation_notice_eq re ON re.equip_transfer_id = isn.sequence_nbr LEFT JOIN tzs_jg_installation_notice_eq re ON re.equip_transfer_id = isn.sequence_nbr
......
...@@ -159,7 +159,8 @@ ...@@ -159,7 +159,8 @@
ui.COUNTY_NAME AS useUnitCountyName, ui.COUNTY_NAME AS useUnitCountyName,
ui.ADDRESS AS useUnitAddress, ui.ADDRESS AS useUnitAddress,
eio.use_code AS useCode, eio.use_code AS useCode,
idi.INSPECT_REPORT as inspectReport idi.INSPECT_REPORT as inspectReport,
re.equ_id as equId
FROM FROM
tzs_jg_transfer_notice tjtn tzs_jg_transfer_notice tjtn
LEFT JOIN tzs_jg_transfer_notice_eq re ON re.equip_transfer_id = tjtn.sequence_nbr LEFT JOIN tzs_jg_transfer_notice_eq re ON re.equip_transfer_id = tjtn.sequence_nbr
......
...@@ -107,6 +107,9 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN ...@@ -107,6 +107,9 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
private JgInstallationNoticeMapper jgInstallationNoticeMapper; private JgInstallationNoticeMapper jgInstallationNoticeMapper;
@Autowired @Autowired
IdxBizJgRegisterInfoServiceImpl idxBizJgRegisterInfoService;
@Autowired
private CommonMapper commonMapper; private CommonMapper commonMapper;
// @Autowired // @Autowired
...@@ -193,13 +196,16 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN ...@@ -193,13 +196,16 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
} }
} }
Map<String, Object> detail = equipmentInfos.get(0); Map<String, Object> detail = equipmentInfos.get(0);
detail.put("proDuctPhoto", JSON.parse(String.valueOf(detail.get("proDuctPhoto")))); Map<String, Object> equInfo = idxBizJgRegisterInfoService.getDetailFieldCamelCaseByRecord(detail.get("equId").toString());
detail.put("factoryStandard", JSON.parse(String.valueOf(detail.get("factoryStandard")))); equInfo.put("proDuctPhoto", JSON.parse(String.valueOf(detail.get("proDuctPhoto"))));
detail.put("productQualityYieldProve", JSON.parse(String.valueOf(detail.get("productQualityYieldProve")))); equInfo.put("factoryStandard", JSON.parse(String.valueOf(detail.get("factoryStandard"))));
detail.put("insUseMaintainExplain", JSON.parse(String.valueOf(detail.get("insUseMaintainExplain")))); equInfo.put("productQualityYieldProve", JSON.parse(String.valueOf(detail.get("productQualityYieldProve"))));
detail.put("inspectReport", JSON.parse(String.valueOf(detail.get("inspectReport")))); equInfo.put("insUseMaintainExplain", JSON.parse(String.valueOf(detail.get("insUseMaintainExplain"))));
detail.put("designStandard", JSON.parse(String.valueOf(detail.get("designStandard")))); equInfo.put("inspectReport", JSON.parse(String.valueOf(detail.get("inspectReport"))));
detail.put("designDoc", JSON.parse(String.valueOf(detail.get("designDoc")))); equInfo.put("designStandard", JSON.parse(String.valueOf(detail.get("designStandard"))));
equInfo.put("designDoc", JSON.parse(String.valueOf(detail.get("designDoc"))));
BeanUtil.copyProperties(equInfo, detail);
BeanUtil.copyProperties(installationInfo, detail, "equList", "supervisoryCode", "factoryNum", "equRegisterCode"); BeanUtil.copyProperties(installationInfo, detail, "equList", "supervisoryCode", "factoryNum", "equRegisterCode");
return new HashMap<String, Map<String, Object>>() {{ return new HashMap<String, Map<String, Object>>() {{
this.put("installationInfo", detail); this.put("installationInfo", detail);
......
...@@ -73,6 +73,8 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto ...@@ -73,6 +73,8 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
private JgTransferNoticeMapper jgTransferNoticeMapper; private JgTransferNoticeMapper jgTransferNoticeMapper;
@Autowired @Autowired
RegistrationInfoMapper tzsJgRegistrationInfoMapper; RegistrationInfoMapper tzsJgRegistrationInfoMapper;
@Autowired
IdxBizJgRegisterInfoServiceImpl idxBizJgRegisterInfoService;
@Autowired @Autowired
...@@ -139,13 +141,15 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto ...@@ -139,13 +141,15 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
} }
} }
Map<String, Object> detail = equipmentInfos.get(0); Map<String, Object> detail = equipmentInfos.get(0);
detail.put("proDuctPhoto", JSON.parse(String.valueOf(detail.get("proDuctPhoto")))); Map<String, Object> equInfo = idxBizJgRegisterInfoService.getDetailFieldCamelCaseByRecord(detail.get("equId").toString());
detail.put("factoryStandard", JSON.parse(String.valueOf(detail.get("factoryStandard")))); equInfo.put("proDuctPhoto", JSON.parse(String.valueOf(detail.get("proDuctPhoto"))));
detail.put("productQualityYieldProve", JSON.parse(String.valueOf(detail.get("productQualityYieldProve")))); equInfo.put("factoryStandard", JSON.parse(String.valueOf(detail.get("factoryStandard"))));
detail.put("insUseMaintainExplain", JSON.parse(String.valueOf(detail.get("insUseMaintainExplain")))); equInfo.put("productQualityYieldProve", JSON.parse(String.valueOf(detail.get("productQualityYieldProve"))));
detail.put("inspectReport", JSON.parse(String.valueOf(detail.get("inspectReport")))); equInfo.put("insUseMaintainExplain", JSON.parse(String.valueOf(detail.get("insUseMaintainExplain"))));
detail.put("designStandard", JSON.parse(String.valueOf(detail.get("designStandard")))); equInfo.put("inspectReport", JSON.parse(String.valueOf(detail.get("inspectReport"))));
detail.put("designDoc", JSON.parse(String.valueOf(detail.get("designDoc")))); equInfo.put("designStandard", JSON.parse(String.valueOf(detail.get("designStandard"))));
equInfo.put("designDoc", JSON.parse(String.valueOf(detail.get("designDoc"))));
BeanUtil.copyProperties(equInfo, detail);
BeanUtil.copyProperties(transferNotice, detail, "equList", "supervisoryCode"); BeanUtil.copyProperties(transferNotice, detail, "equList", "supervisoryCode");
return new HashMap<String, Map<String, Object>>() {{ return new HashMap<String, Map<String, Object>>() {{
this.put("transferNoticeInfo", detail); this.put("transferNoticeInfo", detail);
......
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