From c42f62b32bac302a7ac9fcde7489f7c5fc6e11aa Mon Sep 17 00:00:00 2001 From: zjh <1084500556@qq.com> Date: 星期五, 06 十二月 2024 15:35:17 +0800 Subject: [PATCH] zjh20241205-3 --- ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjSurveyQuestionController.java | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjSurveyQuestionController.java b/ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjSurveyQuestionController.java index 8dc16bf..45b47f4 100644 --- a/ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjSurveyQuestionController.java +++ b/ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjSurveyQuestionController.java @@ -62,7 +62,7 @@ */ //@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)); } @@ -93,6 +93,9 @@ @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); } } -- Gitblit v1.8.0