From 38505842d98c83c05151c9a5ec9cf71198c90281 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期五, 05 七月 2024 09:39:56 +0800
Subject: [PATCH] 会议时间bug+乐观锁版本

---
 src/main/java/com/ycl/jxkg/service/impl/ClassesServiceImpl.java |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/ycl/jxkg/service/impl/ClassesServiceImpl.java b/src/main/java/com/ycl/jxkg/service/impl/ClassesServiceImpl.java
index d4b08a9..2f06ffd 100644
--- a/src/main/java/com/ycl/jxkg/service/impl/ClassesServiceImpl.java
+++ b/src/main/java/com/ycl/jxkg/service/impl/ClassesServiceImpl.java
@@ -144,4 +144,13 @@
                 .list();
         return Result.ok(list);
     }
+
+    @Override
+    public Result recover(Integer id) {
+        new LambdaUpdateChainWrapper<>(baseMapper)
+                .eq(Classes::getId, id)
+                .set(Classes::getStatus, ClassesStatusEnum.NORMAL)
+                .update();
+        return Result.ok("鐝骇宸茬粡鎭㈠姝e父");
+    }
 }

--
Gitblit v1.8.0