zjh
2024-06-26 ec2bb08f0aad10bbf1f133046d8e9943be3a6d72
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);
    }
}