Commit e95178da authored by cq990612's avatar cq990612

优化代码结构

parent 490d473c
...@@ -441,7 +441,14 @@ public class WorkTimeOrderServiceImpl implements WorkTimeOrderService { ...@@ -441,7 +441,14 @@ public class WorkTimeOrderServiceImpl implements WorkTimeOrderService {
WorkUser user = workUserService.getById(userId); WorkUser user = workUserService.getById(userId);
if (0 != user.getLevel()) { if (0 != user.getLevel()) {
QueryWrapper<WorkTimeOrder> wrapper = new QueryWrapper<>(); QueryWrapper<WorkTimeOrder> wrapper = new QueryWrapper<>();
//wrapper.eq("dept_id", user.getDeptId()); for (ProjectTypeEnum value : ProjectTypeEnum.values()) {
if (!value.getReviewer().equals(3)) {
continue;
}
if (value.getType().equals(type)) {
wrapper.eq("dept_id", user.getDeptId());
}
}
wrapper.in("status", COMPLETED, RE_SUBMIT); wrapper.in("status", COMPLETED, RE_SUBMIT);
wrapper.eq(type != null, "type", type); wrapper.eq(type != null, "type", type);
wrapper.eq(projectId != null, "project_id", projectId); wrapper.eq(projectId != null, "project_id", projectId);
......
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