| | |
| | | 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; |
| | |
| | | @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 |
| | |
| | | // * 获取问卷详细信息(单表) |
| | | // */ |
| | | // @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)); |
| | |
| | | * 新增或修改问卷模板信息 |
| | | */ |
| | | @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) { |
| | |
| | | * 删除问卷 |
| | | */ |
| | | @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) { |
| | |
| | | * 发送短信 |
| | | */ |
| | | @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) { |