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); }