【modify】去掉无用的todo

【modify】处理魔法值
This commit is contained in:
zer0Black
2023-10-12 16:40:25 +08:00
parent 3f7fc000f8
commit b670034dc4
2 changed files with 4 additions and 3 deletions
@@ -46,13 +46,15 @@ public class SyncIamController {
@Resource
private SyncIamService syncIamService;
public final String paramNotGetError = "参数传递错误,未收到参数";
@PostMapping({"/SchemaService"})
public SendPoEncryptPo schemaService(@RequestBody AcceptEncryptPo iamCommon) throws JsonProcessingException {
if (iamCommon == null
|| iamCommon.getMessageEncryptTabels() == null
|| iamCommon.getMessageEncryptTabels().getHeader() == null
|| iamCommon.getMessageEncryptTabels().getHeader().getData() == null){
throw new IamGlobalException(null, "参数传递错误,未收到参数");
throw new IamGlobalException(null, this.paramNotGetError);
}
// 对核心数据解密
@@ -201,8 +201,7 @@ public class SyncIamService {
sysUser.setPostStatus(userAcceptDto.getSrmsPostStatus());
// 获取组织机构(多个逗号分隔),TODO 有两个和组织关联在字段,用哪个还需要再和IAM沟通
String companyCode = userAcceptDto.getSrmsCompanyCode();
// 获取组织机构(多个逗号分隔)
String orgCode = userAcceptDto.getSrmsOrgCode();
String selectedDeparts = orgCode;