zhangnaisong
2023-08-02 ecd9041b45067c7e0454a6dcfef6ef14416c7374
app巡检计划记录提交
已添加2个文件
208 ■■■■■ 文件已修改
ard-work/src/main/java/com/ruoyi/app/patrolplan/controller/ArdAppPatrolpointRecordController.java 104 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ard-work/src/main/java/com/ruoyi/app/patrolplan/controller/ArdAppPatrolpointRecordImgController.java 104 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ard-work/src/main/java/com/ruoyi/app/patrolplan/controller/ArdAppPatrolpointRecordController.java
对比新文件
@@ -0,0 +1,104 @@
package com.ruoyi.app.patrolplan.controller;
import java.util.List;
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;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.app.patrolplan.domain.ArdAppPatrolpointRecord;
import com.ruoyi.app.patrolplan.service.IArdAppPatrolpointRecordService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
 * app宸℃璁″垝璁板綍Controller
 *
 * @author ard
 * @date 2023-08-02
 */
@RestController
@RequestMapping("/app/patrolpointRecord")
public class ArdAppPatrolpointRecordController extends BaseController
{
    @Autowired
    private IArdAppPatrolpointRecordService ardAppPatrolpointRecordService;
    /**
     * 鏌ヨapp宸℃璁″垝璁板綍鍒楄〃
     */
    @PreAuthorize("@ss.hasPermi('app:patrolpointRecord:list')")
    @GetMapping("/list")
    public TableDataInfo list(ArdAppPatrolpointRecord ardAppPatrolpointRecord)
    {
        startPage();
        List<ArdAppPatrolpointRecord> list = ardAppPatrolpointRecordService.selectArdAppPatrolpointRecordList(ardAppPatrolpointRecord);
        return getDataTable(list);
    }
    /**
     * 瀵煎嚭app宸℃璁″垝璁板綍鍒楄〃
     */
    @PreAuthorize("@ss.hasPermi('app:patrolpointRecord:export')")
    @Log(title = "app宸℃璁″垝璁板綍", businessType = BusinessType.EXPORT)
    @PostMapping("/export")
    public void export(HttpServletResponse response, ArdAppPatrolpointRecord ardAppPatrolpointRecord)
    {
        List<ArdAppPatrolpointRecord> list = ardAppPatrolpointRecordService.selectArdAppPatrolpointRecordList(ardAppPatrolpointRecord);
        ExcelUtil<ArdAppPatrolpointRecord> util = new ExcelUtil<ArdAppPatrolpointRecord>(ArdAppPatrolpointRecord.class);
        util.exportExcel(response, list, "app宸℃璁″垝璁板綍鏁版嵁");
    }
    /**
     * 鑾峰彇app宸℃璁″垝璁板綍璇︾粏淇℃伅
     */
    @PreAuthorize("@ss.hasPermi('app:patrolpointRecord:query')")
    @GetMapping(value = "/{id}")
    public AjaxResult getInfo(@PathVariable("id") String id)
    {
        return success(ardAppPatrolpointRecordService.selectArdAppPatrolpointRecordById(id));
    }
    /**
     * 鏂板app宸℃璁″垝璁板綍
     */
    @PreAuthorize("@ss.hasPermi('app:patrolpointRecord:add')")
    @Log(title = "app宸℃璁″垝璁板綍", businessType = BusinessType.INSERT)
    @PostMapping
    public AjaxResult add(@RequestBody ArdAppPatrolpointRecord ardAppPatrolpointRecord)
    {
        return toAjax(ardAppPatrolpointRecordService.insertArdAppPatrolpointRecord(ardAppPatrolpointRecord));
    }
    /**
     * 淇敼app宸℃璁″垝璁板綍
     */
    @PreAuthorize("@ss.hasPermi('app:patrolpointRecord:edit')")
    @Log(title = "app宸℃璁″垝璁板綍", businessType = BusinessType.UPDATE)
    @PutMapping
    public AjaxResult edit(@RequestBody ArdAppPatrolpointRecord ardAppPatrolpointRecord)
    {
        return toAjax(ardAppPatrolpointRecordService.updateArdAppPatrolpointRecord(ardAppPatrolpointRecord));
    }
    /**
     * 鍒犻櫎app宸℃璁″垝璁板綍
     */
    @PreAuthorize("@ss.hasPermi('app:patrolpointRecord:remove')")
    @Log(title = "app宸℃璁″垝璁板綍", businessType = BusinessType.DELETE)
    @DeleteMapping("/{ids}")
    public AjaxResult remove(@PathVariable String[] ids)
    {
        return toAjax(ardAppPatrolpointRecordService.deleteArdAppPatrolpointRecordByIds(ids));
    }
}
ard-work/src/main/java/com/ruoyi/app/patrolplan/controller/ArdAppPatrolpointRecordImgController.java
对比新文件
@@ -0,0 +1,104 @@
package com.ruoyi.app.patrolplan.controller;
import java.util.List;
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;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.app.patrolplan.domain.ArdAppPatrolpointRecordImg;
import com.ruoyi.app.patrolplan.service.IArdAppPatrolpointRecordImgService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
 * app宸℃璁″垝璁板綍鍥剧墖Controller
 *
 * @author ard
 * @date 2023-08-02
 */
@RestController
@RequestMapping("/app/patrolpointRecordImg")
public class ArdAppPatrolpointRecordImgController extends BaseController
{
    @Autowired
    private IArdAppPatrolpointRecordImgService ardAppPatrolpointRecordImgService;
    /**
     * 鏌ヨapp宸℃璁″垝璁板綍鍥剧墖鍒楄〃
     */
    @PreAuthorize("@ss.hasPermi('app:patrolpointRecordImg:list')")
    @GetMapping("/list")
    public TableDataInfo list(ArdAppPatrolpointRecordImg ardAppPatrolpointRecordImg)
    {
        startPage();
        List<ArdAppPatrolpointRecordImg> list = ardAppPatrolpointRecordImgService.selectArdAppPatrolpointRecordImgList(ardAppPatrolpointRecordImg);
        return getDataTable(list);
    }
    /**
     * 瀵煎嚭app宸℃璁″垝璁板綍鍥剧墖鍒楄〃
     */
    @PreAuthorize("@ss.hasPermi('app:patrolpointRecordImg:export')")
    @Log(title = "app宸℃璁″垝璁板綍鍥剧墖", businessType = BusinessType.EXPORT)
    @PostMapping("/export")
    public void export(HttpServletResponse response, ArdAppPatrolpointRecordImg ardAppPatrolpointRecordImg)
    {
        List<ArdAppPatrolpointRecordImg> list = ardAppPatrolpointRecordImgService.selectArdAppPatrolpointRecordImgList(ardAppPatrolpointRecordImg);
        ExcelUtil<ArdAppPatrolpointRecordImg> util = new ExcelUtil<ArdAppPatrolpointRecordImg>(ArdAppPatrolpointRecordImg.class);
        util.exportExcel(response, list, "app宸℃璁″垝璁板綍鍥剧墖鏁版嵁");
    }
    /**
     * 鑾峰彇app宸℃璁″垝璁板綍鍥剧墖璇︾粏淇℃伅
     */
    @PreAuthorize("@ss.hasPermi('app:patrolpointRecordImg:query')")
    @GetMapping(value = "/{id}")
    public AjaxResult getInfo(@PathVariable("id") String id)
    {
        return success(ardAppPatrolpointRecordImgService.selectArdAppPatrolpointRecordImgById(id));
    }
    /**
     * 鏂板app宸℃璁″垝璁板綍鍥剧墖
     */
    @PreAuthorize("@ss.hasPermi('app:patrolpointRecordImg:add')")
    @Log(title = "app宸℃璁″垝璁板綍鍥剧墖", businessType = BusinessType.INSERT)
    @PostMapping
    public AjaxResult add(@RequestBody ArdAppPatrolpointRecordImg ardAppPatrolpointRecordImg)
    {
        return toAjax(ardAppPatrolpointRecordImgService.insertArdAppPatrolpointRecordImg(ardAppPatrolpointRecordImg));
    }
    /**
     * 淇敼app宸℃璁″垝璁板綍鍥剧墖
     */
    @PreAuthorize("@ss.hasPermi('app:patrolpointRecordImg:edit')")
    @Log(title = "app宸℃璁″垝璁板綍鍥剧墖", businessType = BusinessType.UPDATE)
    @PutMapping
    public AjaxResult edit(@RequestBody ArdAppPatrolpointRecordImg ardAppPatrolpointRecordImg)
    {
        return toAjax(ardAppPatrolpointRecordImgService.updateArdAppPatrolpointRecordImg(ardAppPatrolpointRecordImg));
    }
    /**
     * 鍒犻櫎app宸℃璁″垝璁板綍鍥剧墖
     */
    @PreAuthorize("@ss.hasPermi('app:patrolpointRecordImg:remove')")
    @Log(title = "app宸℃璁″垝璁板綍鍥剧墖", businessType = BusinessType.DELETE)
    @DeleteMapping("/{ids}")
    public AjaxResult remove(@PathVariable String[] ids)
    {
        return toAjax(ardAppPatrolpointRecordImgService.deleteArdAppPatrolpointRecordImgByIds(ids));
    }
}