From 2da08567717f5a323c06bc652ca839cca6b0ee68 Mon Sep 17 00:00:00 2001 From: yang_shj <1069818635@QQ.com> Date: Wed, 20 Mar 2024 20:35:52 +0800 Subject: [PATCH] =?UTF-8?q?#=E6=A3=80=E4=BF=AE=E5=A2=9E=E5=8A=A0=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../operational/access/controller/AccessPlanV4Controller.java | 11 ++++++++++- .../operational/access/controller/AccessTaskV4Controller.java | 8 ++++++++ .../access/controller/OperAccessStatisticsController.java | 11 +++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/access/controller/AccessPlanV4Controller.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/access/controller/AccessPlanV4Controller.java index 045776f..797941a 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/access/controller/AccessPlanV4Controller.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/access/controller/AccessPlanV4Controller.java @@ -2,10 +2,15 @@ package com.hnac.hzims.operational.access.controller; import com.baomidou.mybatisplus.core.metadata.IPage; import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; +import com.hnac.hzims.operational.OperationalConstants; import com.hnac.hzims.operational.access.dto.AccessPlanV4DTO; import com.hnac.hzims.operational.access.dto.OperAccessPlanListDTO; import com.hnac.hzims.operational.access.service.AccessPlanV4Service; import com.hnac.hzims.operational.access.vo.OperAccessPlanVO; +import com.hnac.hzinfo.log.annotation.Business; +import com.hnac.hzinfo.log.annotation.Operate; +import com.hnac.hzinfo.log.contants.BusinessType; +import com.hnac.hzinfo.log.contants.Risk; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.AllArgsConstructor; @@ -25,6 +30,7 @@ import org.springframework.web.bind.annotation.*; @AllArgsConstructor @RequestMapping("/overhaul_plan") @Api(tags = "v4检修计划流程") +@Business(module = OperationalConstants.APP_NAME,value = "检修计划",ignore = false) public class AccessPlanV4Controller extends BladeController { @@ -33,6 +39,7 @@ public class AccessPlanV4Controller extends BladeController { @PostMapping("/overhaul_start_v4") @ApiOperationSupport(order = 1) @ApiOperation(value = "v4检修计划流程开启") + @Operate(label = "检修计划流程开启",type = BusinessType.INSERT,risk = Risk.HIGH,ignore = false) public R startV4(@RequestBody AccessPlanV4DTO entity) { return R.status(service.startProcessV4(entity)); } @@ -42,6 +49,7 @@ public class AccessPlanV4Controller extends BladeController { @GetMapping("/pages") @ApiOperationSupport(order = 2) @ApiOperation(value = "检修计划分页查询") + @Operate(label = "检修计划分页查询",type = BusinessType.QUERY,risk = Risk.LOW,ignore = false) public R> list(OperAccessPlanListDTO param, Query query) { return R.data(service.pages(Condition.getPage(query),param)); } @@ -50,7 +58,8 @@ public class AccessPlanV4Controller extends BladeController { @ApiLog @GetMapping("/export") @ApiOperationSupport(order = 3) - @ApiOperation(value = "检修计划导出") + @ApiOperation(value = "检修任务导出") + @Operate(label = "检修计划分页导出",type = BusinessType.EXPORT,risk = Risk.LOW,ignore = false) public void export(@RequestParam("id") Long id) { service.export(id); } diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/access/controller/AccessTaskV4Controller.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/access/controller/AccessTaskV4Controller.java index 257a87e..5fbce8d 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/access/controller/AccessTaskV4Controller.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/access/controller/AccessTaskV4Controller.java @@ -2,9 +2,15 @@ package com.hnac.hzims.operational.access.controller; import com.baomidou.mybatisplus.core.metadata.IPage; import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; +import com.hnac.hzims.operational.OperationalConstants; import com.hnac.hzims.operational.access.service.AccessTaskV4Service; import com.hnac.hzims.operational.access.vo.MyAccessTaskVO; import com.hnac.hzims.operational.access.vo.OperAccessTaskVO; +import com.hnac.hzims.ticket.constants.TicketConstants; +import com.hnac.hzinfo.log.annotation.Business; +import com.hnac.hzinfo.log.annotation.Operate; +import com.hnac.hzinfo.log.contants.BusinessType; +import com.hnac.hzinfo.log.contants.Risk; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.AllArgsConstructor; @@ -24,6 +30,7 @@ import org.springframework.web.bind.annotation.RestController; @AllArgsConstructor @RequestMapping("/overhaul_task") @Api(tags = "v4检修计划流程") +@Business(module = OperationalConstants.APP_NAME,value = "检修任务",ignore = false) public class AccessTaskV4Controller extends BladeController { private final AccessTaskV4Service accessTaskV4Service; @@ -32,6 +39,7 @@ public class AccessTaskV4Controller extends BladeController { @GetMapping("/myAccessTasks") @ApiOperationSupport(order = 1) @ApiOperation(value = "我的检修任务") + @Operate(label = "我的检修任务",type = BusinessType.QUERY,risk = Risk.LOW,ignore = false) public R> myAccessTasks(MyAccessTaskVO myAccessTaskVO, Query query) { return R.data(accessTaskV4Service.myAccessTasks(myAccessTaskVO.getTaskName(), query)); } diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/access/controller/OperAccessStatisticsController.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/access/controller/OperAccessStatisticsController.java index 13b9364..dfc91f5 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/access/controller/OperAccessStatisticsController.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/access/controller/OperAccessStatisticsController.java @@ -5,9 +5,13 @@ import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; import com.hnac.hzims.common.logs.annotation.OperationAnnotation; import com.hnac.hzims.common.logs.enums.BusinessType; import com.hnac.hzims.common.logs.enums.OperatorType; +import com.hnac.hzims.operational.OperationalConstants; import com.hnac.hzims.operational.access.dto.OperAccessStatisticsDTO; import com.hnac.hzims.operational.access.service.IOperAccessStatisticsService; import com.hnac.hzims.operational.access.vo.OperAccessStatisticsVO; +import com.hnac.hzinfo.log.annotation.Business; +import com.hnac.hzinfo.log.annotation.Operate; +import com.hnac.hzinfo.log.contants.Risk; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiParam; @@ -32,6 +36,7 @@ import javax.validation.Valid; @AllArgsConstructor @RequestMapping("/access/statistics") @Api(tags = "检修台账") +@Business(module = OperationalConstants.APP_NAME,value = "检修台账",ignore = false) public class OperAccessStatisticsController extends BladeController { private final IOperAccessStatisticsService service; @@ -42,6 +47,7 @@ public class OperAccessStatisticsController extends BladeController { @PostMapping("/remove") @ApiOperationSupport(order = 10) @ApiOperation(value = "逻辑删除") + @Operate(label = "检修台账删除",type = com.hnac.hzinfo.log.contants.BusinessType.DELETE,risk = Risk.MEDIUM,ignore = false) public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { return R.status(service.deleteLogic(Func.toLongList(ids))); } @@ -52,6 +58,7 @@ public class OperAccessStatisticsController extends BladeController { @PostMapping("/save") @ApiOperationSupport(order = 20) @ApiOperation(value = "新增") + @Operate(label = "检修台账新增",type = com.hnac.hzinfo.log.contants.BusinessType.INSERT,risk = Risk.LOW,ignore = false) public R save(@Valid @RequestBody OperAccessStatisticsDTO req) { return service.doSave(req); } @@ -62,6 +69,7 @@ public class OperAccessStatisticsController extends BladeController { @PostMapping("/update") @ApiOperationSupport(order = 30) @ApiOperation(value = "修改") + @Operate(label = "检修台账修改",type = com.hnac.hzinfo.log.contants.BusinessType.UPDATE,risk = Risk.LOW,ignore = false) public R update(@Valid @RequestBody OperAccessStatisticsDTO req) { return R.status(service.updateById(req)); } @@ -72,6 +80,7 @@ public class OperAccessStatisticsController extends BladeController { @GetMapping("/detail") @ApiOperationSupport(order = 40) @ApiOperation(value = "详情") + @Operate(label = "检修台账详情",type = com.hnac.hzinfo.log.contants.BusinessType.QUERY,risk = Risk.LOW,ignore = false) public R detail(@RequestParam Long id) { return service.detail(id); } @@ -86,6 +95,7 @@ public class OperAccessStatisticsController extends BladeController { @OperationAnnotation(moduleName = "检修管理",title = "检修记录",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE, action = "分页查询检修记录列表") + @Operate(label = "分页查询检修记录列表",type = com.hnac.hzinfo.log.contants.BusinessType.QUERY,risk = Risk.LOW,ignore = false) public R> list(OperAccessStatisticsDTO req, Query query) { return service.list(req, Condition.getPage(query)); } @@ -96,6 +106,7 @@ public class OperAccessStatisticsController extends BladeController { @ApiOperation(value = "导出Excel,查询条件参考list接口") @ApiOperationSupport(order = 60) @GetMapping(value = "/exportExcel") + @Operate(label = "检修记录导出",type = com.hnac.hzinfo.log.contants.BusinessType.EXPORT,risk = Risk.LOW,ignore = false) public void exportExcel(OperAccessStatisticsDTO req) { service.exportExcel(req); }