From 3985ff98a1d4dcf0eaf59c6a06ed1096455e8ad3 Mon Sep 17 00:00:00 2001 From: Pu Zhibing <393733352@qq.com> Date: 星期一, 17 三月 2025 22:31:31 +0800 Subject: [PATCH] 修改详情按钮权限 --- springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/service/impl/ComplaintServiceImpl.java | 35 ++++++++++++++++++++--------------- 1 files changed, 20 insertions(+), 15 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/service/impl/ComplaintServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/service/impl/ComplaintServiceImpl.java index 1d92b49..4e450a7 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/service/impl/ComplaintServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/service/impl/ComplaintServiceImpl.java @@ -499,21 +499,26 @@ detail.setAuditButtonStatus(0); } } - //已办结,显示评价按钮 - int count = complaintCommentService.count(new LambdaQueryWrapper<ComplaintComment>().eq(ComplaintComment::getComplaintId, detail.getId()).eq(ComplaintComment::getDelFlag, 0)); - if(detail.getStatus() == 3 && 0 == count){ - if(systemUserByPhone.isPresent()){ - SystemUser systemUser = systemUserByPhone.get(); - Integer isAdmin = systemUser.getIsAdmin(); - if(accountLevel.compareTo(detail.getReportType()) == 0 && ((accountLevel != 5 && 1 == isAdmin) || accountLevel == 5)){ - detail.setEvaluateButtonStatus(0); - } - }else{ - if(detail.getReportType() == 5){ - detail.setEvaluateButtonStatus(0); - } - } - } + + + buttonPermission(detail, systemUserByPhone); + + +// //已办结,显示评价按钮 +// int count = complaintCommentService.count(new LambdaQueryWrapper<ComplaintComment>().eq(ComplaintComment::getComplaintId, detail.getId()).eq(ComplaintComment::getDelFlag, 0)); +// if(detail.getStatus() == 3 && 0 == count){ +// if(systemUserByPhone.isPresent()){ +// SystemUser systemUser = systemUserByPhone.get(); +// Integer isAdmin = systemUser.getIsAdmin(); +// if(accountLevel.compareTo(detail.getReportType()) == 0 && ((accountLevel != 5 && 1 == isAdmin) || accountLevel == 5)){ +// detail.setEvaluateButtonStatus(0); +// } +// }else{ +// if(detail.getReportType() == 5){ +// detail.setEvaluateButtonStatus(0); +// } +// } +// } return detail; } -- Gitblit v1.7.1