Commit 762ba4be authored by zhangsen's avatar zhangsen

安装告知 产权单位组件替换

parent 12ea4e85
...@@ -101,6 +101,9 @@ public class JgInstallationNoticeDto extends BaseDto { ...@@ -101,6 +101,9 @@ public class JgInstallationNoticeDto extends BaseDto {
@ApiModelProperty(value = "产权单位") @ApiModelProperty(value = "产权单位")
private String propertyUnitName; private String propertyUnitName;
@ApiModelProperty("产权单位统一信用代码")
private String propertyUnitCreditCode;
@ApiModelProperty(value = "使用单位id") @ApiModelProperty(value = "使用单位id")
private String useUnitCreditCode; private String useUnitCreditCode;
......
...@@ -192,6 +192,10 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN ...@@ -192,6 +192,10 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
installationInfo.put("orgBranchCode", notice.getOrgBranchCode() + "_" + notice.getOrgBranchName()); installationInfo.put("orgBranchCode", notice.getOrgBranchCode() + "_" + notice.getOrgBranchName());
} }
if(!ValidationUtil.isEmpty(notice.getPropertyUnitCreditCode()) && !ValidationUtil.isEmpty(notice.getPropertyUnitName())) {
installationInfo.put("propertyUnitName", notice.getPropertyUnitCreditCode() + "_" + notice.getPropertyUnitName());
}
String[] fields = {"productPhoto", "designDoc", "designStandard", "factoryStandard", String[] fields = {"productPhoto", "designDoc", "designStandard", "factoryStandard",
"productQualityYieldProve", "insUseMaintainExplain", "inspectReport", "productQualityYieldProve", "insUseMaintainExplain", "inspectReport",
"proxyStatementAttachment", "installContractAttachment"}; "proxyStatementAttachment", "installContractAttachment"};
...@@ -692,6 +696,16 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN ...@@ -692,6 +696,16 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
} }
} }
String propertyUnitName = model.getPropertyUnitName();
if (!ObjectUtils.isEmpty(propertyUnitName)) {
String[] split = propertyUnitName.split("_");
if (split.length > 1) {
model.setPropertyUnitCreditCode(split[0]);
model.setPropertyUnitName(split[1]);
}
}
String county = model.getCounty(); String county = model.getCounty();
if (!ObjectUtils.isEmpty(county)) { if (!ObjectUtils.isEmpty(county)) {
String[] countyList = county.split("_"); String[] countyList = county.split("_");
......
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