From 907641e56c2085aaa81f267946dc3e3e9fca73e7 Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期三, 18 九月 2024 09:39:02 +0800 Subject: [PATCH] 代码提交 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/SvyLibTemplateController.java | 19 ++++++++++--------- 1 files changed, 10 insertions(+), 9 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/SvyLibTemplateController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/SvyLibTemplateController.java index de5a90d..e23a3d9 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/SvyLibTemplateController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/SvyLibTemplateController.java @@ -14,6 +14,7 @@ import com.smartor.domain.SvyLibScriptTag; import com.smartor.domain.SvyLibTemplate; import com.smartor.domain.SvyLibTemplateReq; +import com.smartor.domain.SvyLibTemplateVO; import com.smartor.service.ISvyLibTemplateService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; @@ -53,7 +54,7 @@ @PostMapping("/selectSvyLibTemplatelist") public TableDataInfo selectSvyLibTemplatelist(@RequestBody SvyLibTemplateReq svyLibTemplateReq) { PageUtils.startPageByPost(svyLibTemplateReq.getPageNum(), svyLibTemplateReq.getPageSize()); - List<SvyLibTemplate> list = svyLibTemplateService.selectSvyLibTemplateList(svyLibTemplateReq); + List<SvyLibTemplateVO> list = svyLibTemplateService.selectSvyLibTemplateList(svyLibTemplateReq); if (CollectionUtils.isNotEmpty(list)) { //鑾峰彇total @@ -76,7 +77,7 @@ // * 鑾峰彇闂嵎璇︾粏淇℃伅(鍗曡〃) // */ // @ApiOperation("鑾峰彇闂嵎璇︾粏淇℃伅") -// @PreAuthorize("@ss.hasPermi('smartor:svyTemplate:query')") +// //@PreAuthorize("@ss.hasPermi('smartor:svyTemplate:query')") // @GetMapping(value = "/{svyid}") // public AjaxResult getInfo(@PathVariable("svyid") Long svyid) { // return success(svyLibTemplateService.selectSvyLibTemplateBySvyid(svyid)); @@ -95,20 +96,20 @@ * 鏂板鎴栦慨鏀归棶鍗锋ā鏉夸俊鎭� */ @ApiOperation("鏂板鎴栦慨鏀归棶鍗锋ā鏉夸俊鎭�") - @PreAuthorize("@ss.hasPermi('system:script:list')") + //@PreAuthorize("@ss.hasPermi('system:script:list')") @PostMapping("/saveOrUpdateTemplate") - public AjaxResult saveOrUpdateTemplate(@RequestBody SvyLibTemplate svyLibTemplate) { - if (ObjectUtils.isEmpty(svyLibTemplate)) { + public AjaxResult saveOrUpdateTemplate(@RequestBody SvyLibTemplateVO svyLibTemplateVO) { + if (ObjectUtils.isEmpty(svyLibTemplateVO)) { throw new BaseException("鍏ュ弬涓虹┖锛岃妫�鏌ュ叆鍙�"); } - return success(svyLibTemplateService.saveOrUpdateTemplate(svyLibTemplate)); + return success(svyLibTemplateService.saveOrUpdateTemplate(svyLibTemplateVO)); } /** * 淇敼闂嵎 */ @ApiOperation("淇敼闂嵎") - @PreAuthorize("@ss.hasPermi('smartor:svyTemplate:edit')") + //@PreAuthorize("@ss.hasPermi('smartor:svyTemplate:edit')") @Log(title = "闂嵎", businessType = BusinessType.UPDATE) @PostMapping("/edit") public AjaxResult edit(@RequestBody SvyLibTemplate svyLibTemplate) { @@ -119,7 +120,7 @@ * 鍒犻櫎闂嵎 */ @ApiOperation("鍒犻櫎闂嵎") - @PreAuthorize("@ss.hasPermi('smartor:svyTemplate:remove')") + //@PreAuthorize("@ss.hasPermi('smartor:svyTemplate:remove')") @Log(title = "闂嵎", businessType = BusinessType.DELETE) @GetMapping("/remove/{svyids}") public AjaxResult remove(@PathVariable Long[] svyids) { @@ -130,7 +131,7 @@ * 鍙戦�佺煭淇� */ @ApiOperation("鍙戦�佺煭淇�") - @PreAuthorize("@ss.hasPermi('smartor:svyTemplate:remove')") + //@PreAuthorize("@ss.hasPermi('smartor:svyTemplate:remove')") @Log(title = "闂嵎", businessType = BusinessType.DELETE) @PostMapping("/sendMessage") public AjaxResult sendMessage(@PathVariable Long[] svyids) { -- Gitblit v1.9.3