main
王家东 4 months ago
parent 177ce5ec82
commit 96af4fc867
  1. 5
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/chooseTopicPersion/controller/ChaoseTopicPersionController.java
  2. 2
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/chooseTopicPersion/mapper/ChaoseTopicPersionMapper.java

@ -352,8 +352,9 @@ public class ChaoseTopicPersionController extends JeecgController<ChaoseTopicPer
@ApiOperation(value = "比赛选题-编辑", notes = "比赛选题-编辑")
// @RequiresPermissions("chooseTopicPersion:chaose_topic_persion:edit")
@RequestMapping(value = "/edit2", method = {RequestMethod.PUT, RequestMethod.POST})
public Result<String> edit2(@RequestBody ChaoseTopicPersion chaoseTopicPersion) {
chaoseTopicPersionService.updatestaticandblack(chaoseTopicPersion.getId());
public Result<String> edit2(@RequestBody ChooseEdit chooseEdit) {
System.out.println(chooseEdit);
chaoseTopicPersionService.updatestaticandblack(chooseEdit.getEnrollCode());
return Result.OK("提交成功!");
}

@ -15,6 +15,6 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
*/
public interface ChaoseTopicPersionMapper extends BaseMapper<ChaoseTopicPersion> {
@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);
}

Loading…
Cancel
Save