From 4f3a98f19143865cdc1de4791e8a95d96bd40c65 Mon Sep 17 00:00:00 2001 From: maven <2163098428@qq.com> Date: 星期五, 01 八月 2025 13:27:59 +0800 Subject: [PATCH] yys 密码已重置 --- cnas-device/src/main/java/com/ruoyi/device/controller/DeviceMaintenancePlanController.java | 108 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 108 insertions(+), 0 deletions(-) diff --git a/cnas-device/src/main/java/com/ruoyi/device/controller/DeviceMaintenancePlanController.java b/cnas-device/src/main/java/com/ruoyi/device/controller/DeviceMaintenancePlanController.java new file mode 100644 index 0000000..f7b9e83 --- /dev/null +++ b/cnas-device/src/main/java/com/ruoyi/device/controller/DeviceMaintenancePlanController.java @@ -0,0 +1,108 @@ +package com.ruoyi.device.controller; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ruoyi.common.core.domain.Result; +import com.ruoyi.device.dto.DeviceMaintenancePlanDto; +import com.ruoyi.device.pojo.DeviceMaintenancePlan; +import com.ruoyi.device.service.DeviceMaintenancePlanService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.SneakyThrows; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import javax.servlet.http.HttpServletResponse; +import java.util.Map; + +/** + * <p> + * 璁惧淇濆吇璁″垝琛� 鍓嶇鎺у埗鍣� + * </p> + * + * @author 姹熻嫃榈烽洀缃戠粶绉戞妧鏈夐檺鍏徃 + * @since 2024-12-16 06:10:52 + */ +@Api(tags = "璁惧淇濆吇璁″垝") +@RestController +@RequestMapping("/deviceMaintenancePlan") +public class DeviceMaintenancePlanController { + @Resource + private DeviceMaintenancePlanService deviceMaintenancePlanService; + + /** + * 鍒嗛〉鏌ヨ璁惧淇濆吇璁″垝 + * @return + */ + @ApiOperation("鍒嗛〉鏌ヨ璁惧淇濆吇璁″垝") + @GetMapping("selectDeviceMaintenancePlanByPage") + public Result<IPage<DeviceMaintenancePlan>> selectDeviceMaintenancePlanByPage(Page page, DeviceMaintenancePlanDto itemParameter){ + return deviceMaintenancePlanService.selectDeviceMaintenancePlanByPage(page, itemParameter); + } + + /** + * 鏂板璁惧淇濆吇璁″垝 + * @param deviceMaintenancePlanDto 璁惧淇濆吇璁″垝 + */ + @ApiOperation("鏂板璁惧淇濆吇璁″垝") + @PostMapping("/addMaintenancePlan") + public Result addMaintenancePlan(@RequestBody DeviceMaintenancePlanDto deviceMaintenancePlanDto) { + return deviceMaintenancePlanService.addMaintenancePlan(deviceMaintenancePlanDto); + } + + /** + * 淇敼璁惧淇濆吇璁″垝 + * @param deviceMaintenancePlanDto 璁惧淇濆吇璁″垝 + */ + @ApiOperation("淇敼璁惧淇濆吇璁″垝") + @PostMapping("/updateMaintenancePlan") + public Result updateMaintenancePlan(@RequestBody DeviceMaintenancePlanDto deviceMaintenancePlanDto) { + return deviceMaintenancePlanService.updateMaintenancePlan(deviceMaintenancePlanDto); + } + + /** + * 鍒犻櫎璁惧淇濆吇璁″垝 + * @param deviceMaintenancePlanDto 璁惧淇濆吇璁″垝 + */ + @ApiOperation("鍒犻櫎璁惧淇濆吇璁″垝") + @DeleteMapping("/deleteMaintenancePlan") + public Result deleteMaintenancePlan(DeviceMaintenancePlanDto deviceMaintenancePlanDto) { + return deviceMaintenancePlanService.deleteMaintenancePlan(deviceMaintenancePlanDto); + } + + /** + * 鏌ヨ璁惧淇濆吇璁″垝璇︽儏 + */ + @ApiOperation("鏌ヨ璁惧淇濆吇璁″垝璇︽儏") + @GetMapping("/getMaintenancePlanDetail") + public Result<DeviceMaintenancePlanDto> getMaintenancePlanDetail(Integer maintenancePlanId) { + return deviceMaintenancePlanService.getMaintenancePlanDetail(maintenancePlanId); + } + + /** + * 瀵煎嚭璁惧淇濆吇璁″垝 + */ + @ApiOperation("瀵煎嚭璁惧淇濆吇璁″垝") + @GetMapping("/exportDeviceMaintenancePlan") + public Result exportDeviceMaintenancePlan(@RequestParam("maintenancePlanId") Integer maintenancePlanId, HttpServletResponse response) { + return deviceMaintenancePlanService.exportDeviceMaintenancePlanDto(maintenancePlanId, response); + } + + /** + * 鎻愪氦瀹℃牳 + */ + @ApiOperation("鎻愪氦瀹℃牳") + @PostMapping("/submitReviewMaintenancePlanStatus") + public Result submitReviewMaintenancePlanStatus(@RequestBody DeviceMaintenancePlanDto deviceMaintenancePlanDto) { + return deviceMaintenancePlanService.submitReviewMaintenancePlanStatus(deviceMaintenancePlanDto); + } + + /** + * 瀹℃牳璁惧淇濆吇璁″垝鐘舵�� + */ + @ApiOperation("瀹℃牳璁惧淇濆吇璁″垝鐘舵��") + @PostMapping("/reviewMaintenancePlanStatus") + public Result reviewMaintenancePlanStatus(@RequestBody DeviceMaintenancePlanDto deviceMaintenancePlanDto) { + return deviceMaintenancePlanService.reviewMaintenancePlanStatus(deviceMaintenancePlanDto); + } +} -- Gitblit v1.9.3