Commit c935701d authored by yangyang's avatar yangyang

feat(tcm): 更新企业注册逻辑

- 修改了企业类型判断逻辑,改为全部企业类型生成对接数据账号 - 添加了同步平台ORG_CODE的方法 - 优化了代码结构,提高了可读性和可维护性
parent f63215e5
......@@ -1109,7 +1109,6 @@ public class TzBaseEnterpriseInfoServiceImpl
regUnitInfo.setName(tzBaseEnterpriseInfo.getUseUnit());
regUnitInfo.setUnitCode(tzBaseEnterpriseInfo.getUseCode());
regUnitInfo.setManagementUnit(tzBaseEnterpriseInfo.getGoverningBody());
// regUnitInfo.setManagementUnitId(tzBaseEnterpriseInfo.getGoverningBody());
regUnitInfo.setProvince(tzBaseEnterpriseInfo.getProvince());
regUnitInfo.setCity(tzBaseEnterpriseInfo.getCity());
regUnitInfo.setDistrict(tzBaseEnterpriseInfo.getDistrict());
......@@ -1118,6 +1117,7 @@ public class TzBaseEnterpriseInfoServiceImpl
regUnitInfo.setContactPerson(tzBaseEnterpriseInfo.getUseContact());
// 处理单位信息
handleUnitType(map, regUnitInfo, agencyUserModel);
String[] unitTypes = regUnitInfo.getUnitType().split(",");
regUnitInfoService.saveOrUpdate(regUnitInfo);
......@@ -1190,10 +1190,10 @@ public class TzBaseEnterpriseInfoServiceImpl
}
updateUnit(map, regUnitInfo, agencyUserModel, updateModel);
updateUserInfo(newData, String.valueOf(map.get("useCode")));
asyncPlatformCompany(map, agencyUserModel);
redisUtil.del(RedisKey.buildReginRoleKey(agencyUserModel.getUserId()));
TzBaseEnterpriseInfoDto tzBaseEnterpriseInfoDto = new TzBaseEnterpriseInfoDto();
BeanUtils.copyProperties(tzBaseEnterpriseInfo, tzBaseEnterpriseInfoDto);
redisUtil.del(RedisKey.buildReginRoleKey(agencyUserModel.getUserId()));
this.asyncPlatformCompany(map, agencyUserModel);
return tzBaseEnterpriseInfoDto;
} else {
return null;
......
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