Compare commits

...

2 Commits

Author SHA1 Message Date
luotaiqian 8d56d8f9eb Merge remote-tracking branch 'origin/dev' into dev 2026-07-08 21:57:00 +08:00
luotaiqian 5d1ca37cf8 bug fix 2026-07-08 21:56:55 +08:00
3 changed files with 25 additions and 4 deletions

View File

@ -7,6 +7,7 @@ import com.jjb.saas.system.client.user.request.*;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import org.apache.dubbo.config.annotation.DubboReference; import org.apache.dubbo.config.annotation.DubboReference;
import org.qinan.safetyeval.domain.exception.BizException; import org.qinan.safetyeval.domain.exception.BizException;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import java.util.ArrayList; import java.util.ArrayList;
@ -19,12 +20,20 @@ public class GbsUserFacadeClient {
@DubboReference(protocol = "dubbo", url = "${safety-eval.gbs-user-sync.user-facade-url:}") @DubboReference(protocol = "dubbo", url = "${safety-eval.gbs-user-sync.user-facade-url:}")
private UserFacade userFacade; private UserFacade userFacade;
@Value("${auth.deptId.org}")
private Long deptId;
@Value("${auth.roleId.org}")
private Long roleId;
public void add(UserAddCmd cmd) { public void add(UserAddCmd cmd) {
//2069596397920849920{key: "1782463085576", deptId: "2069596397920849920", roleId: "2069671307598893058"} //2069596397920849920{key: "1782463085576", deptId: "2069596397920849920", roleId: "2069671307598893058"}
List<RoleDeptAddCmd> list = new ArrayList<>(); List<RoleDeptAddCmd> list = new ArrayList<>();
RoleDeptAddCmd roleDeptAddCmd = new RoleDeptAddCmd(); RoleDeptAddCmd roleDeptAddCmd = new RoleDeptAddCmd();
roleDeptAddCmd.setDeptId(2069596397920849920L); roleDeptAddCmd.setDeptId(deptId);
roleDeptAddCmd.setRoleId(2069671307598893058L); roleDeptAddCmd.setRoleId(roleId);
list.add(roleDeptAddCmd); list.add(roleDeptAddCmd);
cmd.setRoleDepts(list); cmd.setRoleDepts(list);
SingleResponse<Long> singleResponse = userFacade.add(cmd); SingleResponse<Long> singleResponse = userFacade.add(cmd);

View File

@ -64,4 +64,10 @@ openapi:
sms: sms:
sign: sign:
sourceCode: MS000151 sourceCode: MS000151
auth:
deptId:
org: 2069624650907299840
roleId:
org: 2069630661722419201

View File

@ -65,4 +65,10 @@ openapi:
sms: sms:
sign: sign:
sourceCode: MS000146 sourceCode: MS000146
auth:
deptId:
org: 2069596397920849920
roleId:
org: 2069671307598893058