| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import java.util.List; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | @Api("【请填写功能名称】") |
| | | @RestController |
| | | @RequestMapping("/smartor/preachform") |
| | | public class ServiceSubtaskPreachformController extends BaseController |
| | | { |
| | | public class ServiceSubtaskPreachformController extends BaseController { |
| | | @Autowired |
| | | private IServiceSubtaskPreachformService serviceSubtaskPreachformService; |
| | | |
| | |
| | | */ |
| | | @ApiOperation("查询【请填写功能名称】列表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:preachform:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody ServiceSubtaskPreachform serviceSubtaskPreachform) |
| | | { |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody ServiceSubtaskPreachform serviceSubtaskPreachform) { |
| | | startPage(); |
| | | List<ServiceSubtaskPreachform> list = serviceSubtaskPreachformService.selectServiceSubtaskPreachformList(serviceSubtaskPreachform); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:preachform:export')") |
| | | @Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ServiceSubtaskPreachform serviceSubtaskPreachform) |
| | | { |
| | | public void export(HttpServletResponse response, ServiceSubtaskPreachform serviceSubtaskPreachform) { |
| | | List<ServiceSubtaskPreachform> list = serviceSubtaskPreachformService.selectServiceSubtaskPreachformList(serviceSubtaskPreachform); |
| | | ExcelUtil<ServiceSubtaskPreachform> util = new ExcelUtil<ServiceSubtaskPreachform>(ServiceSubtaskPreachform.class); |
| | | util.exportExcel(response, list, "【请填写功能名称】数据"); |
| | |
| | | @ApiOperation("获取【请填写功能名称】详细信息") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:preachform:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(serviceSubtaskPreachformService.selectServiceSubtaskPreachformById(id)); |
| | | } |
| | | |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:preachform:add')") |
| | | @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody ServiceSubtaskPreachform serviceSubtaskPreachform) |
| | | { |
| | | public AjaxResult add(@RequestBody ServiceSubtaskPreachform serviceSubtaskPreachform) { |
| | | return toAjax(serviceSubtaskPreachformService.insertServiceSubtaskPreachform(serviceSubtaskPreachform)); |
| | | } |
| | | |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:preachform:edit')") |
| | | @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody ServiceSubtaskPreachform serviceSubtaskPreachform) |
| | | { |
| | | public AjaxResult edit(@RequestBody ServiceSubtaskPreachform serviceSubtaskPreachform) { |
| | | return toAjax(serviceSubtaskPreachformService.updateServiceSubtaskPreachform(serviceSubtaskPreachform)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("删除【请填写功能名称】") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:preachform:remove')") |
| | | @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(serviceSubtaskPreachformService.deleteServiceSubtaskPreachformByIds(ids)); |
| | | } |
| | | } |