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