From 107efc024136eb1974e82d805279077abc1e9678 Mon Sep 17 00:00:00 2001 From: zty <1048209592@qq.com> Date: Mon, 15 Jul 2024 16:45:37 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=AD=A3=E5=BA=A6=E5=AE=A1=E6=A0=B8=E8=AF=84?= =?UTF-8?q?=E4=BB=B7=E7=BC=96=E8=BE=91=E9=A1=B5=E9=9D=A2=E5=AE=8C=E5=96=84?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=91=98=E6=89=93=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../action/ProjectAssessmentIndicatorsController.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/xqopen/kehui/project/action/ProjectAssessmentIndicatorsController.java b/src/main/java/com/xqopen/kehui/project/action/ProjectAssessmentIndicatorsController.java index 4222cc2..efb645f 100644 --- a/src/main/java/com/xqopen/kehui/project/action/ProjectAssessmentIndicatorsController.java +++ b/src/main/java/com/xqopen/kehui/project/action/ProjectAssessmentIndicatorsController.java @@ -66,7 +66,7 @@ public class ProjectAssessmentIndicatorsController implements ProjectAssessmentI ProjectAssessmentIndicators indicators = pageNoUtil.getT(); if (!ObjectUtils.isEmpty(indicators)) { Long id = indicators.getId(); - if (id == null) return ApiResponse.fillFail("操作异常!"); + if (ObjectUtils.isEmpty(id)) return ApiResponse.fillFail("操作异常!"); JSONObject ext = indicators.getExt(); if (!ObjectUtils.isEmpty(ext)) { //如果ext里面有所项目管理员打分字段,先判断当前账号是否是管理员 @@ -74,9 +74,10 @@ public class ProjectAssessmentIndicatorsController implements ProjectAssessmentI if (!StringUtils.isEmpty(adminScoring) && !"null".equals(adminScoring)) { String projectAdmin = String.valueOf(ext.get("projectAdmin")); if (userId != null && !StringUtils.isEmpty(projectAdmin)) { - if (!userId.equals(projectAdmin)) {//如果当前账号不是管理员直接返回 + if (!String.valueOf(userId).equals(projectAdmin)) {//如果当前账号不是管理员直接返回 return ApiResponse.fillFail("你不是所项目管理员无法打分!"); } + indicatorsService.updateById(indicators); } } }