From 96af4fc86783d7c3f04a9468315c6deb6c529207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=AE=B6=E4=B8=9C?= <1654135867@qq.com> Date: Tue, 6 Aug 2024 10:48:41 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=89=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/ChaoseTopicPersionController.java | 5 +++-- .../chooseTopicPersion/mapper/ChaoseTopicPersionMapper.java | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/chooseTopicPersion/controller/ChaoseTopicPersionController.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/chooseTopicPersion/controller/ChaoseTopicPersionController.java index c35a70a7..e6277add 100644 --- a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/chooseTopicPersion/controller/ChaoseTopicPersionController.java +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/chooseTopicPersion/controller/ChaoseTopicPersionController.java @@ -352,8 +352,9 @@ public class ChaoseTopicPersionController extends JeecgController edit2(@RequestBody ChaoseTopicPersion chaoseTopicPersion) { - chaoseTopicPersionService.updatestaticandblack(chaoseTopicPersion.getId()); + public Result edit2(@RequestBody ChooseEdit chooseEdit) { + System.out.println(chooseEdit); + chaoseTopicPersionService.updatestaticandblack(chooseEdit.getEnrollCode()); return Result.OK("提交成功!"); } diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/chooseTopicPersion/mapper/ChaoseTopicPersionMapper.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/chooseTopicPersion/mapper/ChaoseTopicPersionMapper.java index 522c7d55..e6788fe2 100644 --- a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/chooseTopicPersion/mapper/ChaoseTopicPersionMapper.java +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/chooseTopicPersion/mapper/ChaoseTopicPersionMapper.java @@ -15,6 +15,6 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; */ public interface ChaoseTopicPersionMapper extends BaseMapper { - @Update("UPDATE chaose_topic_persion SET status='1' ,black='' WHERE id=#{id}") + @Update("UPDATE chaose_topic_persion SET status='1' ,black='' WHERE bmcode=#{id}") void updatestaticandblack(String id); }