| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('hosp:question:query')") |
| | | @GetMapping(value = "/{qid}") |
| | | public AjaxResult getInfo(@PathVariable("qid") Long qid) { |
| | | public AjaxResult getInfo(@PathVariable("qid") String qid) { |
| | | return success(tjSurveyQuestionService.selectTjSurveyQuestionByQid(qid)); |
| | | } |
| | | |
| | |
| | | @Log(title = "问卷问题", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{qids}") |
| | | public AjaxResult remove(@PathVariable Long[] qids) { |
| | | return toAjax(tjSurveyQuestionService.deleteTjSurveyQuestionByQids(qids)); |
| | | for (Long qid : qids) { |
| | | tjSurveyQuestionService.deleteTjSurveyQuestionByQid(qid); |
| | | } |
| | | return toAjax(1); |
| | | } |
| | | } |