From a821f77cae09d6c4fe80a582134cce53a4bac8c3 Mon Sep 17 00:00:00 2001 From: wxc <191104855@qq.com> Date: Tue, 23 Sep 2025 15:49:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/biutag/lan/service/WorkService.java | 38 ++++++++++--------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/mailbox-lan/src/main/java/com/biutag/lan/service/WorkService.java b/mailbox-lan/src/main/java/com/biutag/lan/service/WorkService.java index e5a78a8..7fc177e 100644 --- a/mailbox-lan/src/main/java/com/biutag/lan/service/WorkService.java +++ b/mailbox-lan/src/main/java/com/biutag/lan/service/WorkService.java @@ -684,23 +684,26 @@ public class WorkService extends ServiceImpl { if (workVo.getStep() == null) { workVo.setStep("0"); } - switch (workVo.getStep()) { - case "1": - if (AdminThreadLocal.getRoleId().equals(RoleEnum.SECOND_DEPT_CLASSES.getRoleId())) { - workVo.setIfHandle(1); - } - break; - case "2": - if (AdminThreadLocal.getRoleId().equals(RoleEnum.MUNICIPAL_DEPT_CLASSES.getRoleId())) { - workVo.setIfHandle(1); - } - break; - case "3": - if (AdminThreadLocal.getRoleId().equals(RoleEnum.MUNICIPAL_CLASSES_LEADER.getRoleId()) && AdminThreadLocal.getEmpNo().equals(workVo.getFirstLeaderEmpNo())) { - workVo.setIfHandle(1); - } - break; + if (AppealState.ON_APPEAL.getValue().equals(workVo.getAppealState())) { + switch (workVo.getStep()) { + case "1": + if (AdminThreadLocal.getRoleId().equals(RoleEnum.SECOND_DEPT_CLASSES.getRoleId())) { + workVo.setIfHandle(1); + } + break; + case "2": + if (AdminThreadLocal.getRoleId().equals(RoleEnum.MUNICIPAL_DEPT_CLASSES.getRoleId())) { + workVo.setIfHandle(1); + } + break; + case "3": + if (AdminThreadLocal.getRoleId().equals(RoleEnum.MUNICIPAL_CLASSES_LEADER.getRoleId()) && AdminThreadLocal.getEmpNo().equals(workVo.getFirstLeaderEmpNo())) { + workVo.setIfHandle(1); + } + break; + } } + } return result; } @@ -715,7 +718,8 @@ public class WorkService extends ServiceImpl { .eq(StrUtil.isNotBlank(mailQuery.getMailLevel()), "m.mail_level", mailQuery.getMailLevel()) .and(query -> { query.eq("mm.satisfied", AppConstants.FALSE).or().eq("ma.appeal_state", AppealState.SUCCESS.getValue()); - }); + }) + .eq("ma.appeal_state", AppealState.ON_APPEAL.getValue()); if (StrUtil.isNotBlank(mailQuery.getAppealState())) { if (mailQuery.getAppealState().equals(AppealState.UN_APPEAL.getValue())) queryWrapper.nested(q -> q.eq("ma.appeal_state", AppealState.UN_APPEAL.getValue()).or().isNull("ma.appeal_state"));