From 2d5199d47279bedee6b05872f8b6eafa6b473f31 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期四, 21 三月 2024 10:26:19 +0800
Subject: [PATCH] 违规审核增加违规扣分、考核发布id
---
ycl-server/src/main/java/com/ycl/platform/service/impl/CheckResultServiceImpl.java | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/ycl-server/src/main/java/com/ycl/platform/service/impl/CheckResultServiceImpl.java b/ycl-server/src/main/java/com/ycl/platform/service/impl/CheckResultServiceImpl.java
index b8cf58c..870ff90 100644
--- a/ycl-server/src/main/java/com/ycl/platform/service/impl/CheckResultServiceImpl.java
+++ b/ycl-server/src/main/java/com/ycl/platform/service/impl/CheckResultServiceImpl.java
@@ -155,9 +155,12 @@
@Override
public Result publishById(String id) {
- CheckResult checkResult = new CheckResult();
- checkResult.setId(Integer.valueOf(id));
- checkResult.setPublish(1);
+ CheckResult checkResult = baseMapper.selectById(id);
+ if(Objects.equals(1, checkResult.getPublish())) {
+ checkResult.setPublish(0);
+ } else {
+ checkResult.setPublish(1);
+ }
if(baseMapper.updateById(checkResult) > 0) {
return Result.ok("鍙戝竷鎴愬姛");
}
--
Gitblit v1.8.0