bug
parent
23feec37f4
commit
e95baa8fbb
|
|
@ -7,6 +7,7 @@ import com.jjb.saas.system.client.user.request.*;
|
|||
import lombok.RequiredArgsConstructor;
|
||||
import org.apache.dubbo.config.annotation.DubboReference;
|
||||
import org.qinan.safetyeval.domain.exception.BizException;
|
||||
import org.qinan.safetyeval.domain.exception.ErrorCode;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
|
|
@ -36,11 +37,15 @@ public class GbsUserFacadeClient {
|
|||
roleDeptAddCmd.setRoleId(roleId);
|
||||
list.add(roleDeptAddCmd);
|
||||
cmd.setRoleDepts(list);
|
||||
SingleResponse<Long> singleResponse = userFacade.add(cmd);
|
||||
if (!singleResponse.isSuccess()) {
|
||||
throw new BizException(singleResponse.getErrCode(), singleResponse.getErrMessage());
|
||||
} else {
|
||||
return 2;
|
||||
try {
|
||||
SingleResponse<Long> singleResponse = userFacade.add(cmd);
|
||||
if (!singleResponse.isSuccess()) {
|
||||
throw new BizException(singleResponse.getErrCode(), singleResponse.getErrMessage());
|
||||
} else {
|
||||
return 2;
|
||||
}
|
||||
} catch (com.alibaba.cola.exception.BizException e) {
|
||||
throw new BizException(ErrorCode.UNKNOWN_ERROR);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue