【modify】去掉无用的todo
【modify】处理魔法值
This commit is contained in:
+3
-1
@@ -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);
|
||||
}
|
||||
|
||||
// 对核心数据解密
|
||||
|
||||
+1
-2
@@ -201,8 +201,7 @@ public class SyncIamService {
|
||||
sysUser.setPostStatus(userAcceptDto.getSrmsPostStatus());
|
||||
|
||||
|
||||
// 获取组织机构(多个逗号分隔),TODO 有两个和组织关联在字段,用哪个还需要再和IAM沟通
|
||||
String companyCode = userAcceptDto.getSrmsCompanyCode();
|
||||
// 获取组织机构(多个逗号分隔)
|
||||
String orgCode = userAcceptDto.getSrmsOrgCode();
|
||||
String selectedDeparts = orgCode;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user