From 1b0c3a0fc5b7f5097516dd7c245d7192bc9eafe5 Mon Sep 17 00:00:00 2001 From: wxyclub Date: Wed, 8 Nov 2023 14:55:07 +0800 Subject: [PATCH] =?UTF-8?q?bug:=20=E4=BF=AE=E6=94=B9=E6=94=BF=E7=AD=96?= =?UTF-8?q?=E8=AF=BE=E9=A2=98=E5=88=A0=E9=99=A4=E6=8A=A5=E9=94=99=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/SarLawsTopicController.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/adc-da-slrs/src/main/java/com/adc/da/slrs/sarLawsTopic/controller/SarLawsTopicController.java b/adc-da-slrs/src/main/java/com/adc/da/slrs/sarLawsTopic/controller/SarLawsTopicController.java index 1f06ca25..11af44bd 100644 --- a/adc-da-slrs/src/main/java/com/adc/da/slrs/sarLawsTopic/controller/SarLawsTopicController.java +++ b/adc-da-slrs/src/main/java/com/adc/da/slrs/sarLawsTopic/controller/SarLawsTopicController.java @@ -76,24 +76,24 @@ public class SarLawsTopicController extends BaseController { @ApiOperation(value = "新增政策课题") @PostMapping(value = "/addLawsTopic", consumes = "application/json;charset=UTF-8") - public ResponseMessage create(@RequestBody SarLawsTopic lawsTopic) throws Exception { + public ResponseMessage addLawsTopic(@RequestBody SarLawsTopic lawsTopic) throws Exception { lawsTopicService.addLawsTopicInfo(lawsTopic); return Result.success(); } - @ApiOperation("根据会议ID删除会议") + @ApiOperation("根据政策课题id删除课题") @DeleteMapping("/deleteLawsTopicById") - public ResponseMessage deleteMeeting(String lawsTopicId) { - if (StringUtils.isBlank(lawsTopicId)) { + public ResponseMessage deleteLawsTopicById(String id) { + if (StringUtils.isBlank(id)) { return Result.error("删除失败,政策课题ID为空"); } - lawsTopicService.deleteLawsTopicInfo(lawsTopicId); + lawsTopicService.deleteLawsTopicInfo(id); return Result.success(); } - @ApiOperation("根据会议ID修改会议信息") + @ApiOperation("根据政策课题ID修改课题信息") @PutMapping("/updateLawsTopicInfo") - public ResponseMessage updateMeetingInfo(@RequestBody SarLawsTopic lawsTopic) { + public ResponseMessage updateLawsTopicInfo(@RequestBody SarLawsTopic lawsTopic) { if (ObjectUtils.isEmpty(lawsTopic)) { return Result.error("更新失败,政策课题信息不存在"); }