OA板块整合与实现
This commit is contained in:
parent
172e3520e0
commit
e770567b9b
|
@ -75,19 +75,19 @@ public class BaseControllerAdvice {
|
|||
// 判断场景值,定制化异常信息
|
||||
String message = "";
|
||||
if(nle.getType().equals(NotLoginException.NOT_TOKEN)) {
|
||||
message = "未提供token";
|
||||
message = "未登录,请登录";
|
||||
}
|
||||
else if(nle.getType().equals(NotLoginException.INVALID_TOKEN)) {
|
||||
message = "token无效";
|
||||
message = "登录无效,请重新登录";
|
||||
}
|
||||
else if(nle.getType().equals(NotLoginException.TOKEN_TIMEOUT)) {
|
||||
message = "token已过期";
|
||||
message = "登录已过期,请重新登录";
|
||||
}
|
||||
else if(nle.getType().equals(NotLoginException.BE_REPLACED)) {
|
||||
message = "token已被顶下线";
|
||||
message = "登录已被顶下线,请重新登录";
|
||||
}
|
||||
else if(nle.getType().equals(NotLoginException.KICK_OUT)) {
|
||||
message = "token已被踢下线";
|
||||
message = "登录已被踢下线,请重新登录";
|
||||
}
|
||||
else {
|
||||
message = "当前会话未登录";
|
||||
|
|
|
@ -42,7 +42,7 @@ public class FlowStepService extends BaseService<FlowStepMapper, FlowStep> {
|
|||
LambdaQueryWrapper<FlowStep> qw = new LambdaQueryWrapper<>(FlowStep.class).orderByDesc(FlowStep::getCreatedAt);
|
||||
if(isDone) qw.ne(FlowStep::getStatus, FlowConstant.FLOW_STATUS_DONE);
|
||||
else qw.eq(FlowStep::getStatus, FlowConstant.STEP_STATUS_ACTIVE);
|
||||
qw.apply("FIND_IN_SET (" + currentUser.getId() + ", user_ids)");
|
||||
qw.apply("FIND_IN_SET ('" + currentUser.getId() + "', user_ids)");
|
||||
PageResult<FlowStep> pageResult = PageResultFactory.createPageResult(page(PageFactory.defaultPage(),qw));
|
||||
return pageResult;
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ import java.util.List;
|
|||
|
||||
@RestController
|
||||
@RequestMapping(value = GrapeConst.API + "/tree")
|
||||
@Api(tags = "部门/用户", value = "部门/用户")
|
||||
@Api(tags = "部门用户", value = "部门用户")
|
||||
|
||||
public class TreeController {
|
||||
|
||||
|
|
|
@ -68,7 +68,7 @@ public class AuthServiceImpl extends BaseService<UserMapper, User> implements IA
|
|||
//与数据库的密码进行匹配
|
||||
if (!loginPassword.equals(loginUser.getPassword())) return AjaxResult.fail("账号或者密码错误");
|
||||
//判断账号是否停用
|
||||
if (loginUser.getStatus()) return AjaxResult.fail("当前账号已被停用,请联系管理员");
|
||||
if (!loginUser.getStatus()) return AjaxResult.fail("当前账号已被停用,请联系管理员");
|
||||
|
||||
//判断账号角色
|
||||
if (StrUtil.isBlank(loginUser.getRoles())) return AjaxResult.fail("该用户没有对应的角色,无法登陆系统");
|
||||
|
|
Loading…
Reference in New Issue