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