liusheng
3 天以前 c80135e5c3f7bfab96ba558a910a06f1e587c53c
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceSubtaskPreachformController.java
@@ -1,9 +1,12 @@
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;
@@ -32,8 +35,7 @@
@Api("【请填写功能名称】")
@RestController
@RequestMapping("/smartor/preachform")
public class ServiceSubtaskPreachformController extends BaseController
{
public class ServiceSubtaskPreachformController extends BaseController {
    @Autowired
    private IServiceSubtaskPreachformService serviceSubtaskPreachformService;
@@ -42,9 +44,8 @@
     */
    @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);
@@ -57,8 +58,7 @@
    //@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, "【请填写功能名称】数据");
@@ -70,8 +70,7 @@
    @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));
    }
@@ -82,8 +81,7 @@
    //@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));
    }
@@ -94,8 +92,7 @@
    //@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));
    }
@@ -105,9 +102,8 @@
    @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));
    }
}