bug: 修改政策课题删除报错问题
This commit is contained in:
+7
-7
@@ -76,24 +76,24 @@ public class SarLawsTopicController extends BaseController<SarLawsTopicVO> {
|
|||||||
|
|
||||||
@ApiOperation(value = "新增政策课题")
|
@ApiOperation(value = "新增政策课题")
|
||||||
@PostMapping(value = "/addLawsTopic", consumes = "application/json;charset=UTF-8")
|
@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);
|
lawsTopicService.addLawsTopicInfo(lawsTopic);
|
||||||
return Result.success();
|
return Result.success();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("根据会议ID删除会议")
|
@ApiOperation("根据政策课题id删除课题")
|
||||||
@DeleteMapping("/deleteLawsTopicById")
|
@DeleteMapping("/deleteLawsTopicById")
|
||||||
public ResponseMessage<?> deleteMeeting(String lawsTopicId) {
|
public ResponseMessage<?> deleteLawsTopicById(String id) {
|
||||||
if (StringUtils.isBlank(lawsTopicId)) {
|
if (StringUtils.isBlank(id)) {
|
||||||
return Result.error("删除失败,政策课题ID为空");
|
return Result.error("删除失败,政策课题ID为空");
|
||||||
}
|
}
|
||||||
lawsTopicService.deleteLawsTopicInfo(lawsTopicId);
|
lawsTopicService.deleteLawsTopicInfo(id);
|
||||||
return Result.success();
|
return Result.success();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("根据会议ID修改会议信息")
|
@ApiOperation("根据政策课题ID修改课题信息")
|
||||||
@PutMapping("/updateLawsTopicInfo")
|
@PutMapping("/updateLawsTopicInfo")
|
||||||
public ResponseMessage<?> updateMeetingInfo(@RequestBody SarLawsTopic lawsTopic) {
|
public ResponseMessage<?> updateLawsTopicInfo(@RequestBody SarLawsTopic lawsTopic) {
|
||||||
if (ObjectUtils.isEmpty(lawsTopic)) {
|
if (ObjectUtils.isEmpty(lawsTopic)) {
|
||||||
return Result.error("更新失败,政策课题信息不存在");
|
return Result.error("更新失败,政策课题信息不存在");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user