处理dubbo本地不可访问开发环境的问题
parent
49ea218562
commit
0c3ac5212b
|
|
@ -1,12 +1,16 @@
|
|||
package org.qinan.safetyeval.infrastructure.adapter.gbs;
|
||||
|
||||
import com.jjb.saas.system.client.user.facade.UserFacade;
|
||||
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.UserUpdatePasswordCmd;
|
||||
import com.jjb.saas.system.client.user.request.UserUpdateQuitCmd;
|
||||
import org.apache.dubbo.config.annotation.DubboReference;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
public class GbsUserFacadeClient {
|
||||
|
||||
|
|
@ -14,6 +18,13 @@ public class GbsUserFacadeClient {
|
|||
private UserFacade userFacade;
|
||||
|
||||
public void add(UserAddCmd cmd) {
|
||||
//2069596397920849920{key: "1782463085576", deptId: "2069596397920849920", roleId: "2069671307598893058"}
|
||||
List<RoleDeptAddCmd> list = new ArrayList<>();
|
||||
RoleDeptAddCmd roleDeptAddCmd = new RoleDeptAddCmd();
|
||||
roleDeptAddCmd.setDeptId(2069596397920849920L);
|
||||
roleDeptAddCmd.setRoleId(2069671307598893058L);
|
||||
roleDeptAddCmd.setRoleCode("b5d8d972b4e948aeb04063ad77fdc196");
|
||||
cmd.setRoleDepts(list);
|
||||
userFacade.add(cmd);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -38,6 +38,8 @@ public class OrgPersonnelGatewayImpl implements OrgPersonnelGateway {
|
|||
InsertFieldDefaults.apply(dataObject);
|
||||
orgPersonnelMapper.insert(dataObject);
|
||||
entity.setId(dataObject.getId());
|
||||
InsertFieldDefaults.apply(entity);
|
||||
entity.setTenantId(dataObject.getTenantId());
|
||||
return entity;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,4 @@
|
|||
com.jjb.saas.framework.auth.model.
|
||||
com.jjb.saas.system.client.user.
|
||||
com.jjb.saas.framework.dto.
|
||||
com.jjb.saas.framework.enums.
|
||||
Loading…
Reference in New Issue