Commit d6d98801 authored by tianyiming's avatar tianyiming

Merge remote-tracking branch 'origin/develop_tzs_register' into develop_tzs_register

parents 0b09f950 54aece6a
...@@ -263,7 +263,7 @@ public class JgUseRegistration extends BaseEntity { ...@@ -263,7 +263,7 @@ public class JgUseRegistration extends BaseEntity {
private String supervisionOrgCode; private String supervisionOrgCode;
/** /**
* 工程装置id * 工程装置id ( 主键sequence_nbr )
*/ */
@TableField("project_contraption_id") @TableField("project_contraption_id")
private String projectContraptionId; private String projectContraptionId;
......
...@@ -1405,7 +1405,7 @@ public class TzBaseEnterpriseInfoServiceImpl ...@@ -1405,7 +1405,7 @@ public class TzBaseEnterpriseInfoServiceImpl
String oldSuperviseOrgCode = tzBaseEnterpriseInfo.getSuperviseOrgCode(); String oldSuperviseOrgCode = tzBaseEnterpriseInfo.getSuperviseOrgCode();
String newSuperviseOrgCode = companyModel.getOrgCode().replace("*" + companyModel.getCompanyOrgCode(), ""); String newSuperviseOrgCode = companyModel.getOrgCode().replace("*" + companyModel.getCompanyOrgCode(), "");
// 更新 tz_base_enterprise_info。只有管辖机构有改动才更新 // 更新 tz_base_enterprise_info。只有管辖机构有改动才更新
if (!newSuperviseOrgCode.equals(oldSuperviseOrgCode)) { if (!newOrgCode.equals(oldOrgCode)) {
HashMap<String, Object> parentMessage = (HashMap<String, Object>) Privilege.companyClient.queryByOrgcode(newSuperviseOrgCode).getResult(); HashMap<String, Object> parentMessage = (HashMap<String, Object>) Privilege.companyClient.queryByOrgcode(newSuperviseOrgCode).getResult();
// 目前平台返回key为compnay(存在拼写错误) // 目前平台返回key为compnay(存在拼写错误)
CompanyModel parentModel = JSON.parseObject(JSON.toJSONString(parentMessage.get("compnay")), CompanyModel.class); CompanyModel parentModel = JSON.parseObject(JSON.toJSONString(parentMessage.get("compnay")), CompanyModel.class);
...@@ -1425,5 +1425,6 @@ public class TzBaseEnterpriseInfoServiceImpl ...@@ -1425,5 +1425,6 @@ public class TzBaseEnterpriseInfoServiceImpl
public void updateUnitOrgCode(TzBaseEnterpriseInfo tzBaseEnterpriseInfo, CompanyModel parentModel, String oldSuperviseOrgCode, String newSuperviseOrgCode, String oldOrgCode, String newOrgCode) { public void updateUnitOrgCode(TzBaseEnterpriseInfo tzBaseEnterpriseInfo, CompanyModel parentModel, String oldSuperviseOrgCode, String newSuperviseOrgCode, String oldOrgCode, String newOrgCode) {
tzBaseEnterpriseInfoMapper.updateSubCompanyOrgCode(parentModel.getCompanyName(), oldSuperviseOrgCode, newSuperviseOrgCode, oldOrgCode, newOrgCode, tzBaseEnterpriseInfo.getSequenceNbr()); tzBaseEnterpriseInfoMapper.updateSubCompanyOrgCode(parentModel.getCompanyName(), oldSuperviseOrgCode, newSuperviseOrgCode, oldOrgCode, newOrgCode, tzBaseEnterpriseInfo.getSequenceNbr());
tzBaseEnterpriseInfoMapper.updateUnitOrgCode(oldOrgCode, newOrgCode); tzBaseEnterpriseInfoMapper.updateUnitOrgCode(oldOrgCode, newOrgCode);
publisher.publish(new DataRefreshEvent(this, Collections.singletonList(tzBaseEnterpriseInfo.getSequenceNbr() + ""), DataRefreshEvent.DataType.enterprise.name(), DataRefreshEvent.Operation.UPDATE));
} }
} }
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