import
parent
360533f73e
commit
331babfcdf
|
|
@ -1,6 +1,7 @@
|
|||
package org.qinan.safetyeval.app.executor;
|
||||
|
||||
import com.jjb.saas.framework.auth.utils.AuthContext;
|
||||
import com.jjb.saas.system.client.user.request.RoleDeptAddCmd;
|
||||
import com.jjb.saas.system.client.user.request.UserAddCmd;
|
||||
import com.zcloud.gbscommon.utils.MD5;
|
||||
import com.zcloud.gbscommon.utils.Sm2Util;
|
||||
|
|
@ -43,6 +44,8 @@ public class QualFilingExpertExecutor implements QualFilingExpertApi {
|
|||
@Autowired
|
||||
private GbsUserFacadeClient gbsUserFacadeClient;
|
||||
|
||||
@Value("${auth.deptId.expert:}")
|
||||
private Long expertDeptId;
|
||||
|
||||
@Value("${auth.roleCode.expert}")
|
||||
private String authRoleCodeExpert;
|
||||
|
|
@ -63,6 +66,12 @@ public class QualFilingExpertExecutor implements QualFilingExpertApi {
|
|||
userAddCmd.setName(cmd.getUserName());
|
||||
String encrypt = Sm2Util.encryptHex(MD5.md5(defPassword), publicKey);
|
||||
userAddCmd.setPassword(encrypt);
|
||||
|
||||
RoleDeptAddCmd roleDept = new RoleDeptAddCmd();
|
||||
roleDept.setRoleCode(authRoleCodeExpert);
|
||||
roleDept.setDeptId(expertDeptId);
|
||||
userAddCmd.setRoleDepts(Collections.singletonList(roleDept));
|
||||
|
||||
Long userId = systemRemote.addUserIfAbsentAndAppendRole(userAddCmd
|
||||
, Collections.singletonList(authRoleCodeExpert));
|
||||
|
||||
|
|
|
|||
|
|
@ -72,6 +72,7 @@ sms:
|
|||
auth:
|
||||
deptId:
|
||||
org: 2069624650907299840
|
||||
expert: 2084222682296930304
|
||||
roleId:
|
||||
org: 2074857068268802050
|
||||
roleCode:
|
||||
|
|
|
|||
|
|
@ -73,6 +73,7 @@ sms:
|
|||
auth:
|
||||
deptId:
|
||||
org: 2069596397920849920
|
||||
expert: 2084222682296930304
|
||||
roleId:
|
||||
org: 2069671307598893058
|
||||
roleCode:
|
||||
|
|
|
|||
Loading…
Reference in New Issue