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 | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 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 7bd7801..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
@@ -1,5 +1,6 @@
package com.ycl.platform.service.impl;
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.ycl.exception.ServiceException;
import com.ycl.platform.domain.entity.CheckResult;
import com.ycl.platform.domain.form.ManualScoreForm;
@@ -151,4 +152,18 @@
baseMapper.updateById(checkResult);
return Result.ok();
}
+
+ @Override
+ public Result publishById(String id) {
+ 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("鍙戝竷鎴愬姛");
+ }
+ return Result.error("鍙戝竷澶辫触");
+ }
}
--
Gitblit v1.8.0