Commit 3841e2c9 authored by cq990612's avatar cq990612

优化代码结构

parent 2af73365
...@@ -511,7 +511,7 @@ public class WorkTimeOrderServiceImpl implements WorkTimeOrderService { ...@@ -511,7 +511,7 @@ public class WorkTimeOrderServiceImpl implements WorkTimeOrderService {
@Override @Override
public List<WorkTimeOrderDto> rejectNotSubmit(Integer userId) { public List<WorkTimeOrderDto> rejectNotSubmit(Integer userId) {
log.info("WorkOrderServiceImpl[]rejectById[]input.param.id:{}" + userId); log.info("WorkOrderServiceImpl[]rejectById[]input.param.id:{}" + userId);
if (UserRoleLevelUtils.isManagerLevel(userId, LevelEnum.EXAMINE.getLevelName())) { if (!UserRoleLevelUtils.isManagerLevel(userId, LevelEnum.EXAMINE.getLevelName())) {
throw new BaseCustomException(BASE_RESP_CODE_ENUM.USER_NOT_LEVEL); throw new BaseCustomException(BASE_RESP_CODE_ENUM.USER_NOT_LEVEL);
} }
QueryWrapper<WorkTimeOrder> wrapper = new QueryWrapper<>(); QueryWrapper<WorkTimeOrder> wrapper = new QueryWrapper<>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment