From 69ef46cbec0487cf6eba8a6989dbe33238bb923d Mon Sep 17 00:00:00 2001 From: kimi42345 <kimi42345@outlook.com> Date: 星期二, 17 三月 2020 22:37:05 +0800 Subject: [PATCH] no message --- src/main/java/com/highdatas/srs/web/TopicController.java | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/highdatas/srs/web/TopicController.java b/src/main/java/com/highdatas/srs/web/TopicController.java index bd1f0b6..1b70586 100644 --- a/src/main/java/com/highdatas/srs/web/TopicController.java +++ b/src/main/java/com/highdatas/srs/web/TopicController.java @@ -13,10 +13,7 @@ import com.highdatas.srs.util.DbUtils; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; import javax.servlet.http.HttpServletRequest; import java.util.Date; @@ -75,10 +72,10 @@ } @RequestMapping(value = "/exam/{id}", method = RequestMethod.GET) - public Result exam(@PathVariable String id) { + public Result exam(@PathVariable String id, @RequestParam String projectId) { Topic topic = topicService.selectById(id); topic.setExamine(true); - + topic.setLinkId(projectId); boolean insert = topic.updateById(); if (insert) { -- Gitblit v1.8.0