|
@@ -58,22 +58,22 @@ public class PlanExecuteServiceImpl extends ServiceImpl<PlanExecuteMapper, PlanE
|
58
|
58
|
@Override
|
59
|
59
|
public Page<PlanExecute> page(PlanExecutePageParam planExecutePageParam) {
|
60
|
60
|
QueryWrapper<PlanExecute> queryWrapper = new QueryWrapper<>();
|
61
|
|
- // 自定义查询条件
|
62
|
|
- if (StringUtils.isNotEmpty(planExecutePageParam.getPlanName())) {
|
63
|
|
- queryWrapper.like("pf.plan_name", planExecutePageParam.getPlanName());
|
64
|
|
- }
|
65
|
|
- if (ObjectUtil.isNotEmpty(planExecutePageParam.getEmergencyLevel())) {
|
66
|
|
- queryWrapper.eq("pf.emergency_level", planExecutePageParam.getEmergencyLevel());
|
67
|
|
- }
|
68
|
61
|
// 权限范围
|
69
|
62
|
List<String> loginUserDataScope = StpLoginUserUtil.getLoginUserDataScope();
|
70
|
63
|
// 创建人权限
|
71
|
64
|
String loginUserId = StpLoginUserUtil.getLoginUser().getId();
|
72
|
65
|
if (CollectionUtils.isNotEmpty(loginUserDataScope)) {
|
73
|
|
- queryWrapper.in("ee.sys_org_id", loginUserDataScope)
|
74
|
|
- .or().eq("pe.create_user", loginUserId);
|
|
66
|
+ queryWrapper.in("t1.sys_org_id", loginUserDataScope)
|
|
67
|
+ .or().eq("t1.create_user", loginUserId);
|
75
|
68
|
} else {
|
76
|
|
- queryWrapper.eq("pe.create_user", StpUtil.getLoginIdAsString());
|
|
69
|
+ queryWrapper.eq("t1.create_user", StpUtil.getLoginIdAsString());
|
|
70
|
+ }
|
|
71
|
+ // 自定义查询条件
|
|
72
|
+ if (StringUtils.isNotEmpty(planExecutePageParam.getPlanName())) {
|
|
73
|
+ queryWrapper.like("t1.planName", planExecutePageParam.getPlanName());
|
|
74
|
+ }
|
|
75
|
+ if (ObjectUtil.isNotEmpty(planExecutePageParam.getEmergencyLevel())) {
|
|
76
|
+ queryWrapper.eq("t1.emergencyLevel", planExecutePageParam.getEmergencyLevel());
|
77
|
77
|
}
|
78
|
78
|
// 排序
|
79
|
79
|
if (ObjectUtil.isAllNotEmpty(planExecutePageParam.getSortField(), planExecutePageParam.getSortOrder())) {
|
|
@@ -83,7 +83,7 @@ public class PlanExecuteServiceImpl extends ServiceImpl<PlanExecuteMapper, PlanE
|
83
|
83
|
} else {
|
84
|
84
|
queryWrapper.lambda().orderByDesc(PlanExecute::getId);
|
85
|
85
|
}
|
86
|
|
- queryWrapper.groupBy("pe.es_online_plan_formulation_id");
|
|
86
|
+ queryWrapper.groupBy("t1.es_online_plan_formulation_id");
|
87
|
87
|
return planExecuteMapper.pageList(CommonPageRequest.defaultPage(), queryWrapper);
|
88
|
88
|
}
|
89
|
89
|
|