From ecd9041b45067c7e0454a6dcfef6ef14416c7374 Mon Sep 17 00:00:00 2001 From: zhangnaisong <2434969829@qq.com> Date: 星期三, 02 八月 2023 15:16:20 +0800 Subject: [PATCH] app巡检计划记录提交 --- ard-work/src/main/java/com/ruoyi/app/patrolplan/controller/ArdAppPatrolpointRecordController.java | 104 ++++++++++++++++++++++++++ ard-work/src/main/java/com/ruoyi/app/patrolplan/controller/ArdAppPatrolpointRecordImgController.java | 104 ++++++++++++++++++++++++++ 2 files changed, 208 insertions(+), 0 deletions(-) diff --git a/ard-work/src/main/java/com/ruoyi/app/patrolplan/controller/ArdAppPatrolpointRecordController.java b/ard-work/src/main/java/com/ruoyi/app/patrolplan/controller/ArdAppPatrolpointRecordController.java new file mode 100644 index 0000000..0b24bb8 --- /dev/null +++ b/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)); + } +} diff --git a/ard-work/src/main/java/com/ruoyi/app/patrolplan/controller/ArdAppPatrolpointRecordImgController.java b/ard-work/src/main/java/com/ruoyi/app/patrolplan/controller/ArdAppPatrolpointRecordImgController.java new file mode 100644 index 0000000..26fd71b --- /dev/null +++ b/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)); + } +} -- Gitblit v1.9.3