bug
parent
23feec37f4
commit
e95baa8fbb
|
|
@ -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.qinan.safetyeval.domain.exception.ErrorCode;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
|
@ -36,12 +37,16 @@ public class GbsUserFacadeClient {
|
||||||
roleDeptAddCmd.setRoleId(roleId);
|
roleDeptAddCmd.setRoleId(roleId);
|
||||||
list.add(roleDeptAddCmd);
|
list.add(roleDeptAddCmd);
|
||||||
cmd.setRoleDepts(list);
|
cmd.setRoleDepts(list);
|
||||||
|
try {
|
||||||
SingleResponse<Long> singleResponse = userFacade.add(cmd);
|
SingleResponse<Long> singleResponse = userFacade.add(cmd);
|
||||||
if (!singleResponse.isSuccess()) {
|
if (!singleResponse.isSuccess()) {
|
||||||
throw new BizException(singleResponse.getErrCode(), singleResponse.getErrMessage());
|
throw new BizException(singleResponse.getErrCode(), singleResponse.getErrMessage());
|
||||||
} else {
|
} else {
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
} catch (com.alibaba.cola.exception.BizException e) {
|
||||||
|
throw new BizException(ErrorCode.UNKNOWN_ERROR);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void delete(Long userId) {
|
public void delete(Long userId) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue