Browse Source

Merge remote-tracking branch 'origin/master'

zhongwei
yang_shj 1 year ago
parent
commit
d52c26ee77
  1. 3
      hzims-service/assets/src/main/java/com/hnac/hzims/spare/controller/SpAllocationController.java
  2. 2
      hzims-service/assets/src/main/java/com/hnac/hzims/spare/controller/SpReceiveController.java
  3. 2
      hzims-service/assets/src/main/java/com/hnac/hzims/spare/controller/SpReceivesController.java
  4. 3
      hzims-service/assets/src/main/java/com/hnac/hzims/spare/controller/SpWarehouseInController.java
  5. 3
      hzims-service/assets/src/main/java/com/hnac/hzims/spare/controller/SpWarehouseOutController.java
  6. 5
      hzims-service/assets/src/main/java/com/hnac/hzims/spare/controller/WtSpTotalController.java
  7. 6
      hzims-service/equipment/src/main/java/com/hnac/hzims/fdp/controller/FdpDeviceController.java
  8. 2
      hzims-service/equipment/src/main/java/com/hnac/hzims/fdp/controller/FdpMonitorController.java
  9. 7
      hzims-service/inspect/pom.xml
  10. 7
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/ai/controller/ClockController.java
  11. 7
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/ai/controller/ClockTypeController.java
  12. 7
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/ai/controller/RobotController.java
  13. 6
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/obj/web/ContentController.java
  14. 6
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/obj/web/ObjectController.java
  15. 7
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/obj/web/ObjectUserController.java
  16. 6
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/obj/web/ProjectController.java
  17. 6
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/obj/web/TemplateController.java
  18. 6
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/plan/controller/PlanController.java
  19. 175
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/plan/controller/RouteController.java
  20. 6
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/report/controller/InspectReportController.java
  21. 13
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/controller/TaskController.java
  22. 6
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/controller/TaskRecordController.java
  23. 3
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/access/controller/OperAccessLibraryController.java
  24. 3
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/access/controller/OperAccessStatisticsController.java
  25. 3
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/access/controller/OperAccessTaskController.java
  26. 6
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/alert/controller/AlarmHandleController.java
  27. 3
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/defect/controller/OperDefectController.java
  28. 3
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/defect/controller/OperFaultController.java
  29. 5
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/controller/ImsDutyClassController.java
  30. 145
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/controller/ImsDutyClassTypeController.java
  31. 6
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/controller/ImsDutyGroupController.java
  32. 303
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/controller/ImsDutyMainController.java
  33. 10
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/controller/ImsDutyRecController.java
  34. 6
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/controller/GenerateController.java
  35. 5
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/controller/OtherController.java
  36. 3
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/controller/OverConfigController.java
  37. 5
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/controller/OverController.java
  38. 5
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/controller/PowerController.java
  39. 6
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/controller/RainfallController.java
  40. 5
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/controller/SolveController.java
  41. 6
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/controller/StorageController.java
  42. 6
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/controller/UseController.java
  43. 4
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/controller/HomePageController.java
  44. 2
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/controller/MainSystemMonitoringController.java
  45. 2
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/maintenance/controller/OperMaintenanceLibraryController.java
  46. 6
      hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/controller/CheckMonthController.java
  47. 6
      hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/controller/DangerSourceController.java
  48. 3
      hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/controller/EmergencyPlanController.java
  49. 7
      hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/controller/ImsMonCameraInfoController.java
  50. 3
      hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/controller/SafeEquipmentTrialController.java
  51. 3
      hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/controller/SystemFileController.java
  52. 3
      hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/repair/controller/OperRepairController.java
  53. 5
      hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/twoTicket/service/impl/TicketProcessServiceImpl.java
  54. 2
      hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/workTicket/controller/WorkTicketInfoController.java

3
hzims-service/assets/src/main/java/com/hnac/hzims/spare/controller/SpAllocationController.java

@ -67,7 +67,8 @@ public class SpAllocationController extends BladeController {
@GetMapping("/pageList") @GetMapping("/pageList")
@ApiOperationSupport(order = 2) @ApiOperationSupport(order = 2)
@ApiOperation(value = "分页", notes = "传入sp_allocation") @ApiOperation(value = "分页", notes = "传入sp_allocation")
@OperationAnnotation(title = "调泼单",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE, @OperationAnnotation(moduleName = "资产管理",
title = "调泼单",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE,
action = "分页查询") action = "分页查询")
public R<IPage<SpAllocationVO>> pageList(SpAllocationVO allocationVO, Query query) { public R<IPage<SpAllocationVO>> pageList(SpAllocationVO allocationVO, Query query) {
IPage<SpAllocationVO> pages = sp_allocationService.selectPageList(Condition.getPage(query),allocationVO); IPage<SpAllocationVO> pages = sp_allocationService.selectPageList(Condition.getPage(query),allocationVO);

2
hzims-service/assets/src/main/java/com/hnac/hzims/spare/controller/SpReceiveController.java

@ -54,7 +54,7 @@ public class SpReceiveController extends BladeController {
@GetMapping("/list") @GetMapping("/list")
@ApiOperationSupport(order = 2) @ApiOperationSupport(order = 2)
@ApiOperation(value = "分页", notes = "传入sp_receive") @ApiOperation(value = "分页", notes = "传入sp_receive")
@OperationAnnotation(title = "工具领用",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE, @OperationAnnotation(moduleName = "资产管理",title = "工具领用",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE,
action = "分页查询") action = "分页查询")
public R<IPage<SpReceiveVO>> list(SpReceiveVO receiveVO, Query query) { public R<IPage<SpReceiveVO>> list(SpReceiveVO receiveVO, Query query) {
IPage<SpReceiveVO> pages = sp_receiveService.selectPageList(Condition.getPage(query), receiveVO); IPage<SpReceiveVO> pages = sp_receiveService.selectPageList(Condition.getPage(query), receiveVO);

2
hzims-service/assets/src/main/java/com/hnac/hzims/spare/controller/SpReceivesController.java

@ -57,7 +57,7 @@ public class SpReceivesController extends BladeController {
@GetMapping("/list") @GetMapping("/list")
@ApiOperationSupport(order = 2) @ApiOperationSupport(order = 2)
@ApiOperation(value = "分页", notes = "传入sp_receives") @ApiOperation(value = "分页", notes = "传入sp_receives")
@OperationAnnotation(title = "工具回退",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE, @OperationAnnotation(moduleName = "资产管理",title = "工具回退",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE,
action = "分页查询") action = "分页查询")
public R<IPage<SpReceivesVO>> list(SpReceivesVO sp_receives, Query query) { public R<IPage<SpReceivesVO>> list(SpReceivesVO sp_receives, Query query) {
IPage<SpReceivesVO> pages = sp_receivesService.selectPageList(Condition.getPage(query), sp_receives); IPage<SpReceivesVO> pages = sp_receivesService.selectPageList(Condition.getPage(query), sp_receives);

3
hzims-service/assets/src/main/java/com/hnac/hzims/spare/controller/SpWarehouseInController.java

@ -66,7 +66,8 @@ public class SpWarehouseInController extends BladeController {
@GetMapping("/pageList") @GetMapping("/pageList")
@ApiOperationSupport(order = 2) @ApiOperationSupport(order = 2)
@ApiOperation(value = "分页", notes = "传入sp_warehouse_in") @ApiOperation(value = "分页", notes = "传入sp_warehouse_in")
@OperationAnnotation(title = "入库单",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE, @OperationAnnotation(moduleName = "资产管理",title = "入库单",operatorType = OperatorType.MOBILE,businessType =
BusinessType.GENCODE,
action = "分页条件") action = "分页条件")
public R<IPage<SpWarehouseInVO>> pageList(SpWarehouseInVO warehouseInVO, Query query) { public R<IPage<SpWarehouseInVO>> pageList(SpWarehouseInVO warehouseInVO, Query query) {
IPage<SpWarehouseInVO> pages = sp_warehouse_inService.selectPageList(Condition.getPage(query),warehouseInVO); IPage<SpWarehouseInVO> pages = sp_warehouse_inService.selectPageList(Condition.getPage(query),warehouseInVO);

3
hzims-service/assets/src/main/java/com/hnac/hzims/spare/controller/SpWarehouseOutController.java

@ -54,7 +54,8 @@ public class SpWarehouseOutController extends BladeController {
@GetMapping("/list") @GetMapping("/list")
@ApiOperationSupport(order = 2) @ApiOperationSupport(order = 2)
@ApiOperation(value = "分页", notes = "传入sp_warehouse_out") @ApiOperation(value = "分页", notes = "传入sp_warehouse_out")
@OperationAnnotation(title = "出库单",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE, @OperationAnnotation(moduleName = "资产管理",title = "出库单",operatorType = OperatorType.MOBILE,businessType =
BusinessType.GENCODE,
action = "分页查询") action = "分页查询")
public R<IPage<SpWarehouseOutVO>> list(SpWarehouseOutVO warehouseOutVO, Query query) { public R<IPage<SpWarehouseOutVO>> list(SpWarehouseOutVO warehouseOutVO, Query query) {
IPage<SpWarehouseOutVO> pages = sp_warehouse_outService.selectPageList(Condition.getPage(query),warehouseOutVO); IPage<SpWarehouseOutVO> pages = sp_warehouse_outService.selectPageList(Condition.getPage(query),warehouseOutVO);

5
hzims-service/assets/src/main/java/com/hnac/hzims/spare/controller/WtSpTotalController.java

@ -69,7 +69,8 @@ public class WtSpTotalController extends BladeController {
@GetMapping("/pageList") @GetMapping("/pageList")
@ApiOperationSupport(order = 2) @ApiOperationSupport(order = 2)
@ApiOperation(value = "分页", notes = "传入spToolVO") @ApiOperation(value = "分页", notes = "传入spToolVO")
@OperationAnnotation(title = "库存清单",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE, @OperationAnnotation(moduleName = "资产管理",title = "库存清单",operatorType = OperatorType.MOBILE,businessType =
BusinessType.GENCODE,
action = "分页条件") action = "分页条件")
public R<IPage<WtSpToolVO>> pageList(WtSpToolVO spToolVO, Query query) { public R<IPage<WtSpToolVO>> pageList(WtSpToolVO spToolVO, Query query) {
IPage<WtSpToolVO> pages = SP_TOTALService.selectSpToolList(Condition.getPage(query),spToolVO); IPage<WtSpToolVO> pages = SP_TOTALService.selectSpToolList(Condition.getPage(query),spToolVO);
@ -81,7 +82,7 @@ public class WtSpTotalController extends BladeController {
@GetMapping("/warnPageList") @GetMapping("/warnPageList")
@ApiOperationSupport(order = 2) @ApiOperationSupport(order = 2)
@ApiOperation(value = "库存预警列表", notes = "传入spToolVO") @ApiOperation(value = "库存预警列表", notes = "传入spToolVO")
@OperationAnnotation(title = "库存预警",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE, @OperationAnnotation(moduleName = "资产管理",title = "库存预警",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE,
action = "分页查询") action = "分页查询")
public R<IPage<WtSpToolVO>> warnPageList(WtSpToolVO spToolVO, Query query) { public R<IPage<WtSpToolVO>> warnPageList(WtSpToolVO spToolVO, Query query) {
IPage<WtSpToolVO> pages = SP_TOTALService.warnPageList(Condition.getPage(query),spToolVO); IPage<WtSpToolVO> pages = SP_TOTALService.warnPageList(Condition.getPage(query),spToolVO);

6
hzims-service/equipment/src/main/java/com/hnac/hzims/fdp/controller/FdpDeviceController.java

@ -2,6 +2,9 @@ package com.hnac.hzims.fdp.controller;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; 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.equipment.entity.EmTreeNode; import com.hnac.hzims.equipment.entity.EmTreeNode;
import com.hnac.hzims.fdp.dto.FdpDeviceDTO; import com.hnac.hzims.fdp.dto.FdpDeviceDTO;
import com.hnac.hzims.fdp.entity.FdpDeviceEntity; import com.hnac.hzims.fdp.entity.FdpDeviceEntity;
@ -79,6 +82,9 @@ public class FdpDeviceController extends BladeController {
@GetMapping("/list") @GetMapping("/list")
@ApiOperationSupport(order = 100) @ApiOperationSupport(order = 100)
@ApiOperation(value = "自定义分页 FDP设备列表") @ApiOperation(value = "自定义分页 FDP设备列表")
@OperationAnnotation(moduleName = "智能诊断",title = "智能诊断配置",operatorType = OperatorType.MOBILE,businessType =
BusinessType.GENCODE,
action = "分页条件")
public R<IPage<FdpDeviceVO>> list(FdpDeviceDTO entity, Query query) { public R<IPage<FdpDeviceVO>> list(FdpDeviceDTO entity, Query query) {
return service.doList(Condition.getPage(query), entity); return service.doList(Condition.getPage(query), entity);
} }

2
hzims-service/equipment/src/main/java/com/hnac/hzims/fdp/controller/FdpMonitorController.java

@ -151,7 +151,7 @@ public class FdpMonitorController extends BladeController {
@GetMapping("/listPage") @GetMapping("/listPage")
@ApiOperationSupport(order = 110) @ApiOperationSupport(order = 110)
@ApiOperation(value = "查询监测点列表") @ApiOperation(value = "查询监测点列表")
@OperationAnnotation(moduleName = "智能诊断",title = "监测点绑定",operatorType = OperatorType.MOBILE,businessType = @OperationAnnotation(moduleName = "智能诊断",title = "智能诊断配置",operatorType = OperatorType.MOBILE,businessType =
BusinessType.GENCODE, BusinessType.GENCODE,
action = "分页查询") action = "分页查询")
public R<IPage<FdpMonitorEntity>> listPage(FdpMonitorEntity entity, Query query) { public R<IPage<FdpMonitorEntity>> listPage(FdpMonitorEntity entity, Query query) {

7
hzims-service/inspect/pom.xml

@ -216,6 +216,13 @@
<!-- 用于创建multipartfile对象 end--> <!-- 用于创建multipartfile对象 end-->
<dependency>
<groupId>com.hnac.hzims</groupId>
<artifactId>hzims-biz-common</artifactId>
<version>4.0.0-SNAPSHOT</version>
</dependency>
</dependencies> </dependencies>
<build> <build>

7
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/ai/controller/ClockController.java

@ -2,6 +2,9 @@ package com.hnac.hzinfo.inspect.ai.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; 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.hzinfo.inspect.ai.vo.ClockVO; import com.hnac.hzinfo.inspect.ai.vo.ClockVO;
import io.swagger.annotations.*; import io.swagger.annotations.*;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
@ -53,6 +56,10 @@ public class ClockController extends BladeController {
@ApiOperation(value = "分页", notes = "传入st_clock") @ApiOperation(value = "分页", notes = "传入st_clock")
@ApiImplicitParams({ @ApiImplicitParams({
}) })
@OperationAnnotation(moduleName = "巡检管理", title = "智能巡检配置",
operatorType = OperatorType.MOBILE,
businessType = BusinessType.GENCODE,
action = "分页")
public R<IPage<ClockEntity>> list(@ApiIgnore @RequestParam Map<String,Object> st_clock, Query query) { public R<IPage<ClockEntity>> list(@ApiIgnore @RequestParam Map<String,Object> st_clock, Query query) {
QueryWrapper<ClockEntity> queryWrapper = Condition.getQueryWrapper( st_clock, ClockEntity.class); QueryWrapper<ClockEntity> queryWrapper = Condition.getQueryWrapper( st_clock, ClockEntity.class);
IPage<ClockEntity> pages = st_clockService.page(Condition.getPage(query), queryWrapper); IPage<ClockEntity> pages = st_clockService.page(Condition.getPage(query), queryWrapper);

7
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/ai/controller/ClockTypeController.java

@ -2,6 +2,9 @@ package com.hnac.hzinfo.inspect.ai.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; 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 io.swagger.annotations.*; import io.swagger.annotations.*;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import javax.validation.Valid; import javax.validation.Valid;
@ -51,6 +54,10 @@ public class ClockTypeController extends BladeController {
@ApiOperation(value = "分页", notes = "传入st_clock_type") @ApiOperation(value = "分页", notes = "传入st_clock_type")
@ApiImplicitParams({ @ApiImplicitParams({
}) })
@OperationAnnotation(moduleName = "巡检管理", title = "智能巡检配置",
operatorType = OperatorType.MOBILE,
businessType = BusinessType.GENCODE,
action = "分页")
public R<IPage<ClockTypeEntity>> list(@ApiIgnore @RequestParam Map<String,Object> st_clock_type, Query query) { public R<IPage<ClockTypeEntity>> list(@ApiIgnore @RequestParam Map<String,Object> st_clock_type, Query query) {
QueryWrapper<ClockTypeEntity> queryWrapper = Condition.getQueryWrapper( st_clock_type, ClockTypeEntity.class); QueryWrapper<ClockTypeEntity> queryWrapper = Condition.getQueryWrapper( st_clock_type, ClockTypeEntity.class);
IPage<ClockTypeEntity> pages = st_clock_typeService.page(Condition.getPage(query), queryWrapper); IPage<ClockTypeEntity> pages = st_clock_typeService.page(Condition.getPage(query), queryWrapper);

7
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/ai/controller/RobotController.java

@ -4,6 +4,9 @@ import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; 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.hzinfo.inspect.ai.vo.robot.RobotAiReturnData; import com.hnac.hzinfo.inspect.ai.vo.robot.RobotAiReturnData;
import com.hnac.hzinfo.inspect.ai.vo.robot.RobotServerTaskParam; import com.hnac.hzinfo.inspect.ai.vo.robot.RobotServerTaskParam;
import io.swagger.annotations.*; import io.swagger.annotations.*;
@ -60,6 +63,10 @@ public class RobotController extends BladeController {
@ApiOperation(value = "分页", notes = "传入st_robot") @ApiOperation(value = "分页", notes = "传入st_robot")
@ApiImplicitParams({ @ApiImplicitParams({
}) })
@OperationAnnotation(moduleName = "巡检管理", title = "机器人管理",
operatorType = OperatorType.MOBILE,
businessType = BusinessType.GENCODE,
action = "分页")
public R<IPage<RobotEntity>> list(@ApiIgnore @RequestParam Map<String,Object> st_robot, Query query) { public R<IPage<RobotEntity>> list(@ApiIgnore @RequestParam Map<String,Object> st_robot, Query query) {
QueryWrapper<RobotEntity> queryWrapper = Condition.getQueryWrapper( st_robot, RobotEntity.class); QueryWrapper<RobotEntity> queryWrapper = Condition.getQueryWrapper( st_robot, RobotEntity.class);
IPage<RobotEntity> pages = st_robotService.page(Condition.getPage(query), queryWrapper); IPage<RobotEntity> pages = st_robotService.page(Condition.getPage(query), queryWrapper);

6
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/obj/web/ContentController.java

@ -4,6 +4,9 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; 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.hzinfo.inspect.obj.entity.ContentEntity; import com.hnac.hzinfo.inspect.obj.entity.ContentEntity;
import com.hnac.hzinfo.inspect.obj.entity.ProjectContentEntity; import com.hnac.hzinfo.inspect.obj.entity.ProjectContentEntity;
import com.hnac.hzinfo.inspect.obj.services.ProjectContentService; import com.hnac.hzinfo.inspect.obj.services.ProjectContentService;
@ -47,6 +50,9 @@ public class ContentController {
*/ */
@GetMapping("/list") @GetMapping("/list")
@ApiOperation(value = "巡检内容列表", notes = "巡检内容列表") @ApiOperation(value = "巡检内容列表", notes = "巡检内容列表")
@OperationAnnotation(moduleName = "巡检管理",title = "巡检配置",operatorType = OperatorType.MOBILE,businessType =
BusinessType.GENCODE,
action = "巡检对象列表")
public R<IPage<ContentEntity>> list(ContentListQueryVO content, Query query, BladeUser bladeUser) { public R<IPage<ContentEntity>> list(ContentListQueryVO content, Query query, BladeUser bladeUser) {
LambdaQueryWrapper<ContentEntity> queryWrapper = Condition.getQueryWrapper(new ContentEntity(),content); LambdaQueryWrapper<ContentEntity> queryWrapper = Condition.getQueryWrapper(new ContentEntity(),content);
queryWrapper.orderByDesc(ContentEntity::getUpdateTime); queryWrapper.orderByDesc(ContentEntity::getUpdateTime);

6
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/obj/web/ObjectController.java

@ -7,6 +7,9 @@ import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; 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.hzinfo.inspect.obj.entity.ObjectDangerEntity; import com.hnac.hzinfo.inspect.obj.entity.ObjectDangerEntity;
import com.hnac.hzinfo.inspect.obj.entity.ObjectEntity; import com.hnac.hzinfo.inspect.obj.entity.ObjectEntity;
import com.hnac.hzinfo.inspect.obj.entity.ObjectTemplateEntity; import com.hnac.hzinfo.inspect.obj.entity.ObjectTemplateEntity;
@ -86,6 +89,9 @@ public class ObjectController extends BladeController {
@GetMapping("/list") @GetMapping("/list")
@ApiOperationSupport(order = 2) @ApiOperationSupport(order = 2)
@ApiOperation(value = "巡检对象列表", notes = "巡检对象列表") @ApiOperation(value = "巡检对象列表", notes = "巡检对象列表")
@OperationAnnotation(moduleName = "巡检管理",title = "巡检配置",operatorType = OperatorType.MOBILE,businessType =
BusinessType.GENCODE,
action = "巡检对象列表")
public R<IPage<ObjectEntity>> list(ObjectListQueryVO object, Query query, BladeUser bladeUser) { public R<IPage<ObjectEntity>> list(ObjectListQueryVO object, Query query, BladeUser bladeUser) {
IPage<ObjectEntity> pages = Condition.getPage(query); IPage<ObjectEntity> pages = Condition.getPage(query);
ObjectEntity entity = new ObjectEntity(); ObjectEntity entity = new ObjectEntity();

7
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/obj/web/ObjectUserController.java

@ -5,6 +5,9 @@ package com.hnac.hzinfo.inspect.obj.web;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.google.common.collect.Lists; import com.google.common.collect.Lists;
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.hzinfo.inspect.obj.entity.ObjectUserEntity; import com.hnac.hzinfo.inspect.obj.entity.ObjectUserEntity;
import com.hnac.hzinfo.inspect.obj.services.ObjectUserService; import com.hnac.hzinfo.inspect.obj.services.ObjectUserService;
import com.hnac.hzinfo.inspect.obj.vo.ObjectUserAddVO; import com.hnac.hzinfo.inspect.obj.vo.ObjectUserAddVO;
@ -55,6 +58,10 @@ public class ObjectUserController {
* 巡检对象用户列表 * 巡检对象用户列表
*/ */
@GetMapping("/list") @GetMapping("/list")
@OperationAnnotation(moduleName = "巡检管理", title = "巡检配置",
operatorType = OperatorType.MOBILE,
businessType = BusinessType.GENCODE,
action = "巡检对象用户列表")
@ApiOperation(value = "巡检对象用户列表", notes = "巡检对象用户列表(跨服务查询)") @ApiOperation(value = "巡检对象用户列表", notes = "巡检对象用户列表(跨服务查询)")
public R<IPage<ObjectUserListVO>> list(ObjectUserListQuery content, Query query, BladeUser bladeUser) { public R<IPage<ObjectUserListVO>> list(ObjectUserListQuery content, Query query, BladeUser bladeUser) {
if(!bladeUser.getTenantId().equals(BladeConstant.ADMIN_TENANT_ID)){ if(!bladeUser.getTenantId().equals(BladeConstant.ADMIN_TENANT_ID)){

6
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/obj/web/ProjectController.java

@ -5,6 +5,9 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; 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.hzinfo.inspect.obj.entity.ProjectContentEntity; import com.hnac.hzinfo.inspect.obj.entity.ProjectContentEntity;
import com.hnac.hzinfo.inspect.obj.entity.ProjectEntity; import com.hnac.hzinfo.inspect.obj.entity.ProjectEntity;
import com.hnac.hzinfo.inspect.obj.entity.TemplateProjectEntity; import com.hnac.hzinfo.inspect.obj.entity.TemplateProjectEntity;
@ -52,6 +55,9 @@ public class ProjectController {
*/ */
@GetMapping("/list") @GetMapping("/list")
@ApiOperation(value = "巡检项目列表", notes = "巡检项目列表") @ApiOperation(value = "巡检项目列表", notes = "巡检项目列表")
@OperationAnnotation(moduleName = "巡检管理",title = "巡检配置",operatorType = OperatorType.MOBILE,businessType =
BusinessType.GENCODE,
action = "巡检对象列表")
public R<IPage<ProjectEntity>> list(ProjectListQueryVO project, Query query, BladeUser bladeUser) { public R<IPage<ProjectEntity>> list(ProjectListQueryVO project, Query query, BladeUser bladeUser) {
LambdaQueryWrapper<ProjectEntity> queryWrapper = Condition.getQueryWrapper(new ProjectEntity(),project); LambdaQueryWrapper<ProjectEntity> queryWrapper = Condition.getQueryWrapper(new ProjectEntity(),project);
queryWrapper.orderByDesc(ProjectEntity::getUpdateTime); queryWrapper.orderByDesc(ProjectEntity::getUpdateTime);

6
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/obj/web/TemplateController.java

@ -5,6 +5,9 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; 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.hzinfo.inspect.obj.entity.ObjectTemplateEntity; import com.hnac.hzinfo.inspect.obj.entity.ObjectTemplateEntity;
import com.hnac.hzinfo.inspect.obj.entity.TemplateEntity; import com.hnac.hzinfo.inspect.obj.entity.TemplateEntity;
import com.hnac.hzinfo.inspect.obj.entity.TemplateProjectEntity; import com.hnac.hzinfo.inspect.obj.entity.TemplateProjectEntity;
@ -66,6 +69,9 @@ public class TemplateController extends BladeController {
@GetMapping("/list") @GetMapping("/list")
@ApiOperationSupport(order = 2) @ApiOperationSupport(order = 2)
@ApiOperation(value = "巡检模板列表分页", notes = "传入巡检模板") @ApiOperation(value = "巡检模板列表分页", notes = "传入巡检模板")
@OperationAnnotation(moduleName = "巡检管理",title = "巡检配置",operatorType = OperatorType.MOBILE,businessType =
BusinessType.GENCODE,
action = "巡检对象列表")
public R<IPage<TemplateEntity>> list(TemplateListQueryVO inspectionTemplate, Query query, BladeUser bladeUser) { public R<IPage<TemplateEntity>> list(TemplateListQueryVO inspectionTemplate, Query query, BladeUser bladeUser) {
LambdaQueryWrapper<TemplateEntity> queryWrapper = Condition.getQueryWrapper(new TemplateEntity(),inspectionTemplate); LambdaQueryWrapper<TemplateEntity> queryWrapper = Condition.getQueryWrapper(new TemplateEntity(),inspectionTemplate);
queryWrapper.orderByDesc(TemplateEntity::getUpdateTime); queryWrapper.orderByDesc(TemplateEntity::getUpdateTime);

6
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/plan/controller/PlanController.java

@ -5,6 +5,9 @@ import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; 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.hzinfo.inspect.Constants; import com.hnac.hzinfo.inspect.Constants;
import com.hnac.hzinfo.inspect.invalid.DictInvalid; import com.hnac.hzinfo.inspect.invalid.DictInvalid;
import com.hnac.hzinfo.inspect.obj.utils.CodeUtils; import com.hnac.hzinfo.inspect.obj.utils.CodeUtils;
@ -69,6 +72,9 @@ public class PlanController extends BladeController {
@GetMapping("/list") @GetMapping("/list")
@ApiOperationSupport(order = 2) @ApiOperationSupport(order = 2)
@ApiOperation(value = "分页显示计划列表", notes = "传入plan") @ApiOperation(value = "分页显示计划列表", notes = "传入plan")
@OperationAnnotation(moduleName = "巡检管理",title = "巡检计划",operatorType = OperatorType.MOBILE,businessType =
BusinessType.GENCODE,
action = "分页显示计划列表")
public R<IPage<PlanEntity>> list(PlanListQueryVO plan, Query query, BladeUser bladeUser) { public R<IPage<PlanEntity>> list(PlanListQueryVO plan, Query query, BladeUser bladeUser) {
LambdaQueryWrapper<PlanEntity> queryWrapper = Condition.getQueryWrapper(new PlanEntity(),plan); LambdaQueryWrapper<PlanEntity> queryWrapper = Condition.getQueryWrapper(new PlanEntity(),plan);
if(plan.getStartTime()!=null){ if(plan.getStartTime()!=null){

175
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/plan/controller/RouteController.java

@ -2,9 +2,14 @@ package com.hnac.hzinfo.inspect.plan.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; 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 io.swagger.annotations.*; import io.swagger.annotations.*;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import javax.validation.Valid; import javax.validation.Valid;
import org.springblade.core.boot.ctrl.BladeController; import org.springblade.core.boot.ctrl.BladeController;
import org.springblade.core.mp.support.Condition; import org.springblade.core.mp.support.Condition;
@ -22,7 +27,7 @@ import java.util.List;
import java.util.Map; import java.util.Map;
/** /**
* 控制器 * 控制器
* *
* @author py * @author py
*/ */
@ -32,86 +37,90 @@ import java.util.Map;
@Api(value = "hld-巡检路径", tags = "hld-巡检路径") @Api(value = "hld-巡检路径", tags = "hld-巡检路径")
public class RouteController extends BladeController { public class RouteController extends BladeController {
private final IRouteService st_re_routeService; private final IRouteService st_re_routeService;
/** /**
* 详情 * 详情
*/ */
@GetMapping("/detail") @GetMapping("/detail")
@ApiOperationSupport(order = 1) @ApiOperationSupport(order = 1)
@ApiOperation(value = "详情", notes = "传入st_re_route") @ApiOperation(value = "详情", notes = "传入st_re_route")
public R<RouteEntity> detail(RouteEntity st_re_route) { public R<RouteEntity> detail(RouteEntity st_re_route) {
RouteEntity detail = st_re_routeService.getOne(Condition.getQueryWrapper(st_re_route)); RouteEntity detail = st_re_routeService.getOne(Condition.getQueryWrapper(st_re_route));
return R.data(detail); return R.data(detail);
} }
/** /**
* 分页 代码自定义代号 * 分页 代码自定义代号
*/ */
@GetMapping("/list") @GetMapping("/list")
@ApiOperationSupport(order = 2) @ApiOperationSupport(order = 2)
@ApiOperation(value = "分页", notes = "传入st_re_route") @ApiOperation(value = "分页", notes = "传入st_re_route")
@ApiImplicitParams({ @ApiImplicitParams({
}) })
public R<IPage<RouteEntity>> list(@ApiIgnore @RequestParam Map<String,Object> st_re_route, Query query) { @OperationAnnotation(moduleName = "巡检管理", title = "巡检配置",
QueryWrapper<RouteEntity> queryWrapper = Condition.getQueryWrapper( st_re_route, RouteEntity.class); operatorType = OperatorType.MOBILE,
queryWrapper.orderByDesc("create_time","update_time"); businessType = BusinessType.GENCODE,
IPage<RouteEntity> pages = st_re_routeService.page(Condition.getPage(query), queryWrapper); action = "列表(不分页)")
return R.data(pages); public R<IPage<RouteEntity>> list(@ApiIgnore @RequestParam Map<String, Object> st_re_route, Query query) {
} QueryWrapper<RouteEntity> queryWrapper = Condition.getQueryWrapper(st_re_route, RouteEntity.class);
queryWrapper.orderByDesc("create_time", "update_time");
/** IPage<RouteEntity> pages = st_re_routeService.page(Condition.getPage(query), queryWrapper);
* 新增 代码自定义代号 return R.data(pages);
*/ }
@PostMapping("/save")
@ApiOperationSupport(order = 4) /**
@ApiOperation(value = "新增", notes = "传入st_re_route") * 新增 代码自定义代号
public R save(@Valid @RequestBody RouteEntity st_re_route) { */
return R.status(st_re_routeService.save(st_re_route)); @PostMapping("/save")
} @ApiOperationSupport(order = 4)
@ApiOperation(value = "新增", notes = "传入st_re_route")
/** public R save(@Valid @RequestBody RouteEntity st_re_route) {
* 修改 代码自定义代号 return R.status(st_re_routeService.save(st_re_route));
*/ }
@PostMapping("/update")
@ApiOperationSupport(order = 5) /**
@ApiOperation(value = "修改", notes = "传入st_re_route") * 修改 代码自定义代号
public R update(@Valid @RequestBody RouteEntity st_re_route) { */
return R.status(st_re_routeService.updateById(st_re_route)); @PostMapping("/update")
} @ApiOperationSupport(order = 5)
@ApiOperation(value = "修改", notes = "传入st_re_route")
/** public R update(@Valid @RequestBody RouteEntity st_re_route) {
* 新增或修改 代码自定义代号 return R.status(st_re_routeService.updateById(st_re_route));
*/ }
@PostMapping("/submit")
@ApiOperationSupport(order = 6) /**
@ApiOperation(value = "新增或修改", notes = "传入st_re_route") * 新增或修改 代码自定义代号
public R submit(@Valid @RequestBody RouteEntity st_re_route) { */
return R.status(st_re_routeService.saveOrUpdate(st_re_route)); @PostMapping("/submit")
} @ApiOperationSupport(order = 6)
@ApiOperation(value = "新增或修改", notes = "传入st_re_route")
public R submit(@Valid @RequestBody RouteEntity st_re_route) {
/** return R.status(st_re_routeService.saveOrUpdate(st_re_route));
* 删除 代码自定义代号 }
*/
@PostMapping("/remove")
@ApiOperationSupport(order = 7) /**
@ApiOperation(value = "逻辑删除", notes = "传入ids") * 删除 代码自定义代号
public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { */
return R.status(st_re_routeService.deleteLogic(Func.toLongList(ids))); @PostMapping("/remove")
} @ApiOperationSupport(order = 7)
@ApiOperation(value = "逻辑删除", notes = "传入ids")
@GetMapping("/getRouteByObjectId") public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
@ApiOperationSupport(order = 8) return R.status(st_re_routeService.deleteLogic(Func.toLongList(ids)));
@ApiOperation(value = "获取使用到相关对象ID的所有路径", notes = "传入对象id") }
public R<List<RouteEntity>> getRouteByObjectId(@RequestParam Long objectId) {
return R.data(st_re_routeService.getRouteByObjectId(objectId)); @GetMapping("/getRouteByObjectId")
} @ApiOperationSupport(order = 8)
@ApiOperation(value = "获取使用到相关对象ID的所有路径", notes = "传入对象id")
@GetMapping("/getRouteByTemplateId") public R<List<RouteEntity>> getRouteByObjectId(@RequestParam Long objectId) {
@ApiOperationSupport(order = 8) return R.data(st_re_routeService.getRouteByObjectId(objectId));
@ApiOperation(value = "获取使用到相关模板ID的所有路径", notes = "传入模板id") }
public R<List<RouteEntity>> getRouteByTemplateId(@RequestParam Long templateId) {
return R.data(st_re_routeService.getRouteByTemplateId(templateId)); @GetMapping("/getRouteByTemplateId")
} @ApiOperationSupport(order = 8)
@ApiOperation(value = "获取使用到相关模板ID的所有路径", notes = "传入模板id")
public R<List<RouteEntity>> getRouteByTemplateId(@RequestParam Long templateId) {
return R.data(st_re_routeService.getRouteByTemplateId(templateId));
}
} }

6
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/report/controller/InspectReportController.java

@ -2,6 +2,9 @@ package com.hnac.hzinfo.inspect.report.controller;
import com.alibaba.druid.support.json.JSONUtils; import com.alibaba.druid.support.json.JSONUtils;
import com.alibaba.excel.EasyExcel; import com.alibaba.excel.EasyExcel;
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.hzinfo.inspect.gather.vo.TaskGatherQueryVO; import com.hnac.hzinfo.inspect.gather.vo.TaskGatherQueryVO;
import com.hnac.hzinfo.inspect.report.entity.InspectMonthReportExcel; import com.hnac.hzinfo.inspect.report.entity.InspectMonthReportExcel;
import com.hnac.hzinfo.inspect.report.entity.MonthRoutReport; import com.hnac.hzinfo.inspect.report.entity.MonthRoutReport;
@ -37,6 +40,9 @@ public class InspectReportController {
@RequestMapping(value = "/getInspectMonthReport", method = { RequestMethod.POST,RequestMethod.GET }) @RequestMapping(value = "/getInspectMonthReport", method = { RequestMethod.POST,RequestMethod.GET })
@ApiOperation(notes = "子站-巡检月报表接口-按路径", value = "针对巡检月报表页") @ApiOperation(notes = "子站-巡检月报表接口-按路径", value = "针对巡检月报表页")
@OperationAnnotation(moduleName = "生产月报", title = "巡检报表", operatorType = OperatorType.MOBILE, businessType =
BusinessType.GENCODE,
action = "子站-巡检月报表接口-按路径")
public R<Map<String,MonthRoutReport>> getInspectMonthReport( public R<Map<String,MonthRoutReport>> getInspectMonthReport(
@ApiParam(value = "年月 2019-02") @RequestParam(required = true) String month, @ApiParam(value = "年月 2019-02") @RequestParam(required = true) String month,
@ApiParam(value = "巡检路径id") @RequestParam(required = true) Long routId, @ApiParam(value = "巡检路径id") @RequestParam(required = true) Long routId,

13
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/controller/TaskController.java

@ -7,6 +7,9 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fasterxml.jackson.annotation.JsonRawValue; import com.fasterxml.jackson.annotation.JsonRawValue;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.google.common.collect.Lists; import com.google.common.collect.Lists;
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.hzinfo.core.push.enums.PushAudienceType; import com.hnac.hzinfo.core.push.enums.PushAudienceType;
import com.hnac.hzinfo.core.push.model.PushAudience; import com.hnac.hzinfo.core.push.model.PushAudience;
import com.hnac.hzinfo.core.push.model.PushInfo; import com.hnac.hzinfo.core.push.model.PushInfo;
@ -103,6 +106,9 @@ public class TaskController extends BladeController {
*/ */
@GetMapping("/list") @GetMapping("/list")
@ApiOperation(value = "分页显示任务列表", notes = "传入task") @ApiOperation(value = "分页显示任务列表", notes = "传入task")
@OperationAnnotation(moduleName = "巡检管理",title = "我的巡检任务",operatorType = OperatorType.MOBILE,businessType =
BusinessType.GENCODE,
action = "分页显示任务列表")
public R<BladePage<TaskVo>> list(TaskListQuery task, Query query) { public R<BladePage<TaskVo>> list(TaskListQuery task, Query query) {
//CacheUtil.put("test#2","inspect","test","12"); //CacheUtil.put("test#2","inspect","test","12");
// LambdaQueryWrapper<TaskEntity> queryWrapper = Condition.getQueryWrapper(new TaskEntity(),task); // LambdaQueryWrapper<TaskEntity> queryWrapper = Condition.getQueryWrapper(new TaskEntity(),task);
@ -154,6 +160,9 @@ public class TaskController extends BladeController {
*/ */
@GetMapping("/robotList") @GetMapping("/robotList")
@ApiOperation(value = "机器人任务列表", notes = "传入task") @ApiOperation(value = "机器人任务列表", notes = "传入task")
@OperationAnnotation(moduleName = "巡检管理",title = "机器人巡检",operatorType = OperatorType.MOBILE,businessType =
BusinessType.GENCODE,
action = "机器人任务列表")
public R<IPage<TaskVo>> robotList(TaskListQuery task, Query query) { public R<IPage<TaskVo>> robotList(TaskListQuery task, Query query) {
IPage<TaskVo> pages = Condition.getPage(query); IPage<TaskVo> pages = Condition.getPage(query);
task.setAutoVideo(PlanContants.InspectTypeEnum.ROBOT.getVal()); task.setAutoVideo(PlanContants.InspectTypeEnum.ROBOT.getVal());
@ -167,6 +176,10 @@ public class TaskController extends BladeController {
* 视频任务列表 * 视频任务列表
*/ */
@GetMapping("/videoList") @GetMapping("/videoList")
@OperationAnnotation(moduleName = "巡检管理", title = "视频巡检任务",
operatorType = OperatorType.MOBILE,
businessType = BusinessType.GENCODE,
action = "视频任务列表")
@ApiOperation(value = "视频任务列表", notes = "传入task") @ApiOperation(value = "视频任务列表", notes = "传入task")
public R<IPage<TaskVo>> videoList(TaskListQuery task, Query query) { public R<IPage<TaskVo>> videoList(TaskListQuery task, Query query) {
IPage<TaskVo> pages = Condition.getPage(query); IPage<TaskVo> pages = Condition.getPage(query);

6
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/controller/TaskRecordController.java

@ -5,6 +5,9 @@ package com.hnac.hzinfo.inspect.task.controller;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.core.toolkit.Wrappers;
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.hzinfo.inspect.task.entity.TaskRecordEntity; import com.hnac.hzinfo.inspect.task.entity.TaskRecordEntity;
import com.hnac.hzinfo.inspect.task.service.ITaskRecordService; import com.hnac.hzinfo.inspect.task.service.ITaskRecordService;
import com.hnac.hzinfo.inspect.task.service.ITaskService; import com.hnac.hzinfo.inspect.task.service.ITaskService;
@ -41,6 +44,9 @@ public class TaskRecordController {
@GetMapping("/list") @GetMapping("/list")
@ApiOperation(value = "巡检报备列表", notes = "巡检报备列表(只显示未开始)") @ApiOperation(value = "巡检报备列表", notes = "巡检报备列表(只显示未开始)")
@OperationAnnotation(moduleName = "巡检管理",title = "巡检设备",operatorType = OperatorType.MOBILE,businessType =
BusinessType.GENCODE,
action = "巡检报备列表")
public R<IPage<TaskVo>> getListTaskRecord(TaskListQuery task, Query query) { public R<IPage<TaskVo>> getListTaskRecord(TaskListQuery task, Query query) {
IPage<TaskVo> pages = Condition.getPage(query); IPage<TaskVo> pages = Condition.getPage(query);
if(!AuthUtil.isAdministrator()){ if(!AuthUtil.isAdministrator()){

3
hzims-service/operational/src/main/java/com/hnac/hzims/operational/access/controller/OperAccessLibraryController.java

@ -85,7 +85,8 @@ public class OperAccessLibraryController extends BladeController {
@GetMapping("/list") @GetMapping("/list")
@ApiOperationSupport(order = 50) @ApiOperationSupport(order = 50)
@ApiOperation(value = "分页 查询参数:emCode,gradeCode") @ApiOperation(value = "分页 查询参数:emCode,gradeCode")
@OperationAnnotation(title = "检修库",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE, @OperationAnnotation(moduleName = "检修管理",title = "检修库",operatorType = OperatorType.MOBILE,businessType =
BusinessType.GENCODE,
action = "分页 查询参数:emCode,gradeCode") action = "分页 查询参数:emCode,gradeCode")
public R<IPage<OperAccessLibraryVO>> list(OperAccessLibraryListDTO req, Query query) { public R<IPage<OperAccessLibraryVO>> list(OperAccessLibraryListDTO req, Query query) {
return service.list(req, query); return service.list(req, query);

3
hzims-service/operational/src/main/java/com/hnac/hzims/operational/access/controller/OperAccessStatisticsController.java

@ -84,7 +84,8 @@ public class OperAccessStatisticsController extends BladeController {
@GetMapping("/list") @GetMapping("/list")
@ApiOperationSupport(order = 50) @ApiOperationSupport(order = 50)
@ApiOperation(value = "分页 查询参数:pid,taskId,manager") @ApiOperation(value = "分页 查询参数:pid,taskId,manager")
@OperationAnnotation(title = "检修记录",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE, @OperationAnnotation(moduleName = "检修管理",title = "检修记录",operatorType = OperatorType.MOBILE,businessType =
BusinessType.GENCODE,
action = "分页 查询参数:pid,taskId,manager") action = "分页 查询参数:pid,taskId,manager")
public R<IPage<OperAccessStatisticsVO>> list(OperAccessStatisticsDTO req, Query query) { public R<IPage<OperAccessStatisticsVO>> list(OperAccessStatisticsDTO req, Query query) {
return service.list(req, Condition.getPage(query)); return service.list(req, Condition.getPage(query));

3
hzims-service/operational/src/main/java/com/hnac/hzims/operational/access/controller/OperAccessTaskController.java

@ -83,7 +83,8 @@ public class OperAccessTaskController extends BladeController {
@ApiLog @ApiLog
@GetMapping("/list") @GetMapping("/list")
@ApiOperationSupport(order = 50) @ApiOperationSupport(order = 50)
@OperationAnnotation(title = "我的检修任务",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE, @OperationAnnotation(moduleName = "检修管理",title = "我的检修任务",operatorType = OperatorType.MOBILE,businessType =
BusinessType.GENCODE,
action = "分页 查询参数:name,code,handler,status,planId,planCode") action = "分页 查询参数:name,code,handler,status,planId,planCode")
@ApiOperation(value = "分页 查询参数:name,code,handler,status,planId,planCode") @ApiOperation(value = "分页 查询参数:name,code,handler,status,planId,planCode")
public R<IPage<OperAccessTaskVO>> list(OperAccessTaskDTO req, Query query) { public R<IPage<OperAccessTaskVO>> list(OperAccessTaskDTO req, Query query) {

6
hzims-service/operational/src/main/java/com/hnac/hzims/operational/alert/controller/AlarmHandleController.java

@ -3,6 +3,9 @@ package com.hnac.hzims.operational.alert.controller;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; 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.alert.service.AlarmHandleService; import com.hnac.hzims.operational.alert.service.AlarmHandleService;
import com.hnac.hzims.operational.alert.vo.AlarmHandleVo; import com.hnac.hzims.operational.alert.vo.AlarmHandleVo;
import com.hnac.hzims.operational.alert.vo.HandleQueryVo; import com.hnac.hzims.operational.alert.vo.HandleQueryVo;
@ -49,6 +52,9 @@ public class AlarmHandleController extends BladeController {
@GetMapping("/list") @GetMapping("/list")
@ApiOperationSupport(order = 2) @ApiOperationSupport(order = 2)
@ApiOperation(value = "分页", notes = "传入AlarmHandleEntity") @ApiOperation(value = "分页", notes = "传入AlarmHandleEntity")
@OperationAnnotation(moduleName = "告警配置", title = "告警配置记录", operatorType = OperatorType.MOBILE, businessType =
BusinessType.GENCODE,
action = "分页")
public R<IPage<AlarmHandleVo>> list(HandleQueryVo param, Query query) { public R<IPage<AlarmHandleVo>> list(HandleQueryVo param, Query query) {
IPage<AlarmHandleVo> pages = service.pageCondition(query, param); IPage<AlarmHandleVo> pages = service.pageCondition(query, param);
return R.data(pages); return R.data(pages);

3
hzims-service/operational/src/main/java/com/hnac/hzims/operational/defect/controller/OperDefectController.java

@ -162,7 +162,8 @@ public class OperDefectController extends BladeController {
@GetMapping("/getDefectStatistics") @GetMapping("/getDefectStatistics")
@ApiOperationSupport(order = 5) @ApiOperationSupport(order = 5)
@ApiOperation(value = "获取缺陷的统计月报", notes = " month 格式:2021-01") @ApiOperation(value = "获取缺陷的统计月报", notes = " month 格式:2021-01")
@OperationAnnotation(moduleName = "缺陷管理", title = "缺陷月报表", operatorType = OperatorType.MOBILE, businessType = BusinessType.GENCODE, @OperationAnnotation(moduleName = "生产月报", title = "缺陷月报表", operatorType = OperatorType.MOBILE, businessType =
BusinessType.GENCODE,
action = "获取缺陷的统计月报") action = "获取缺陷的统计月报")
public R<Map<String, Object>> getDefectStatistics(@ApiParam(value = "month 格式:2021-01", required = true) @RequestParam String month) { public R<Map<String, Object>> getDefectStatistics(@ApiParam(value = "month 格式:2021-01", required = true) @RequestParam String month) {
Map<String, Object> defectStatistics = defectService.getDefectStatistics(month); Map<String, Object> defectStatistics = defectService.getDefectStatistics(month);

3
hzims-service/operational/src/main/java/com/hnac/hzims/operational/defect/controller/OperFaultController.java

@ -60,7 +60,8 @@ public class OperFaultController extends BladeController {
@ApiOperation(value = "分页", notes = "传入fault") @ApiOperation(value = "分页", notes = "传入fault")
@ApiImplicitParams({ @ApiImplicitParams({
}) })
@OperationAnnotation(title = "故障库",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE, @OperationAnnotation(moduleName = "智能诊断",title = "故障库",operatorType = OperatorType.MOBILE,businessType =
BusinessType.GENCODE,
action = "分页查询") action = "分页查询")
public R<IPage<OperFaultVO>> list(OperFaultEntity entity, Query query) { public R<IPage<OperFaultVO>> list(OperFaultEntity entity, Query query) {
LambdaQueryWrapper<OperFaultEntity> queryWrapper = Condition.getQueryWrapper(new OperFaultEntity(),entity); LambdaQueryWrapper<OperFaultEntity> queryWrapper = Condition.getQueryWrapper(new OperFaultEntity(),entity);

5
hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/controller/ImsDutyClassController.java

@ -54,6 +54,9 @@ public class ImsDutyClassController extends BladeController {
@GetMapping("/list") @GetMapping("/list")
@ApiOperationSupport(order = 2) @ApiOperationSupport(order = 2)
@ApiOperation(value = "分页", notes = "传入imsDutyClass") @ApiOperation(value = "分页", notes = "传入imsDutyClass")
@OperationAnnotation(moduleName = "值班管理",title = "值班配置",operatorType = OperatorType.MOBILE,businessType =
BusinessType.GENCODE,action
= "列表(不分页)")
public R<IPage<ImsDutyClassEntity>> list(ImsDutyClassEntity imsDutyClass, Query query) { public R<IPage<ImsDutyClassEntity>> list(ImsDutyClassEntity imsDutyClass, Query query) {
LambdaQueryWrapper<ImsDutyClassEntity> queryWrapper = Condition.getQueryWrapper(new ImsDutyClassEntity(),imsDutyClass); LambdaQueryWrapper<ImsDutyClassEntity> queryWrapper = Condition.getQueryWrapper(new ImsDutyClassEntity(),imsDutyClass);
if(null != imsDutyClass.getCreateDept()){ if(null != imsDutyClass.getCreateDept()){
@ -68,7 +71,7 @@ public class ImsDutyClassController extends BladeController {
*/ */
@GetMapping("/getlist") @GetMapping("/getlist")
@ApiOperationSupport(order = 2) @ApiOperationSupport(order = 2)
@OperationAnnotation(moduleName = "值班管理",title = "班次设置",operatorType = OperatorType.MOBILE,businessType = @OperationAnnotation(moduleName = "值班管理",title = "值班配置",operatorType = OperatorType.MOBILE,businessType =
BusinessType.GENCODE,action BusinessType.GENCODE,action
= "列表(不分页)") = "列表(不分页)")
@ApiOperation(value = "列表(不分页)", notes = "传入imsDutyClass") @ApiOperation(value = "列表(不分页)", notes = "传入imsDutyClass")

145
hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/controller/ImsDutyClassTypeController.java

@ -34,82 +34,87 @@ import java.util.List;
@Api(value = "班次类型controller", tags = "班次类型相关操作") @Api(value = "班次类型controller", tags = "班次类型相关操作")
public class ImsDutyClassTypeController extends BladeController { public class ImsDutyClassTypeController extends BladeController {
private final IImsDutyClassTypeService imsDutyClassTypeService; private final IImsDutyClassTypeService imsDutyClassTypeService;
/** /**
* 详情 * 详情
*/ */
@GetMapping("/detail") @GetMapping("/detail")
@ApiOperationSupport(order = 1) @ApiOperationSupport(order = 1)
@ApiOperation(value = "详情", notes = "传入imsDutyClassType") @ApiOperation(value = "详情", notes = "传入imsDutyClassType")
public R<ImsDutyClassTypeEntity> detail(ImsDutyClassTypeEntity imsDutyClassType) { public R<ImsDutyClassTypeEntity> detail(ImsDutyClassTypeEntity imsDutyClassType) {
ImsDutyClassTypeEntity detail = imsDutyClassTypeService.getOne(Condition.getQueryWrapper(imsDutyClassType)); ImsDutyClassTypeEntity detail = imsDutyClassTypeService.getOne(Condition.getQueryWrapper(imsDutyClassType));
return R.data(detail); return R.data(detail);
} }
/** /**
* 分页 代码自定义代号 * 分页 代码自定义代号
*/ */
@GetMapping("/list") @GetMapping("/list")
@ApiOperationSupport(order = 2) @ApiOperationSupport(order = 2)
@ApiOperation(value = "分页", notes = "传入imsDutyClassType") @OperationAnnotation(moduleName = "值班管理",
public R<IPage<ImsDutyClassTypeEntity>> list(ImsDutyClassTypeEntity imsDutyClassType, Query query) { title = "值班配置",
LambdaQueryWrapper<ImsDutyClassTypeEntity> queryWrapper = Condition.getQueryWrapper(new ImsDutyClassTypeEntity(), imsDutyClassType); operatorType = OperatorType.MOBILE,
if (null != imsDutyClassType.getCreateDept()) { businessType = BusinessType.GENCODE,
queryWrapper.eq(ImsDutyClassTypeEntity::getCreateDept, imsDutyClassType.getCreateDept()); action = "分页")
} @ApiOperation(value = "分页", notes = "传入imsDutyClassType")
queryWrapper.orderByDesc(ImsDutyClassTypeEntity::getCreateTime); public R<IPage<ImsDutyClassTypeEntity>> list(ImsDutyClassTypeEntity imsDutyClassType, Query query) {
IPage<ImsDutyClassTypeEntity> pages = imsDutyClassTypeService.page(Condition.getPage(query), queryWrapper); LambdaQueryWrapper<ImsDutyClassTypeEntity> queryWrapper = Condition.getQueryWrapper(new ImsDutyClassTypeEntity(), imsDutyClassType);
return R.data(pages); if (null != imsDutyClassType.getCreateDept()) {
} queryWrapper.eq(ImsDutyClassTypeEntity::getCreateDept, imsDutyClassType.getCreateDept());
}
queryWrapper.orderByDesc(ImsDutyClassTypeEntity::getCreateTime);
IPage<ImsDutyClassTypeEntity> pages = imsDutyClassTypeService.page(Condition.getPage(query), queryWrapper);
return R.data(pages);
}
/** /**
* 获取所有班次类型 代码自定义代号 * 获取所有班次类型 代码自定义代号
*/ */
@GetMapping("/listClassType") @GetMapping("/listClassType")
@ApiOperationSupport(order = 3) @ApiOperationSupport(order = 3)
@ApiOperation(value = "获取所有班次类型") @ApiOperation(value = "获取所有班次类型")
public R<List<ImsDutyClassTypeEntity>> listClassType(@RequestParam(required = false) Long createDept) { public R<List<ImsDutyClassTypeEntity>> listClassType(@RequestParam(required = false) Long createDept) {
List<ImsDutyClassTypeEntity> list = imsDutyClassTypeService.list(new LambdaQueryWrapper<ImsDutyClassTypeEntity>() {{ List<ImsDutyClassTypeEntity> list = imsDutyClassTypeService.list(new LambdaQueryWrapper<ImsDutyClassTypeEntity>() {{
if (null != createDept) { if (null != createDept) {
eq(ImsDutyClassTypeEntity::getCreateDept, createDept); eq(ImsDutyClassTypeEntity::getCreateDept, createDept);
} }
}}); }});
return R.data(list); return R.data(list);
} }
/** /**
* 新增或修改 代码自定义代号 * 新增或修改 代码自定义代号
*/ */
@PostMapping("/submit") @PostMapping("/submit")
@ApiOperationSupport(order = 6) @ApiOperationSupport(order = 6)
@ApiOperation(value = "新增或修改", notes = "传入imsDutyClassType") @ApiOperation(value = "新增或修改", notes = "传入imsDutyClassType")
public R submit(@Valid @RequestBody ImsDutyClassTypeEntity imsDutyClassType) { public R submit(@Valid @RequestBody ImsDutyClassTypeEntity imsDutyClassType) {
return imsDutyClassTypeService.saveOrUpdateImsDutyClassType(imsDutyClassType); return imsDutyClassTypeService.saveOrUpdateImsDutyClassType(imsDutyClassType);
} }
/** /**
* 删除 代码自定义代号 * 删除 代码自定义代号
*/ */
@PostMapping("/remove") @PostMapping("/remove")
@ApiOperationSupport(order = 7) @ApiOperationSupport(order = 7)
@ApiOperation(value = "逻辑删除", notes = "传入ids") @ApiOperation(value = "逻辑删除", notes = "传入ids")
public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
return imsDutyClassTypeService.doDeleteLogic(Func.toLongList(ids)); return imsDutyClassTypeService.doDeleteLogic(Func.toLongList(ids));
} }
/** /**
* 获取不存在班次中的班次类型 * 获取不存在班次中的班次类型
*/ */
@GetMapping("/classTypeList") @GetMapping("/classTypeList")
@ApiOperationSupport(order = 9) @ApiOperationSupport(order = 9)
@OperationAnnotation(moduleName = "值班管理",title = "班次类型设置",operatorType = OperatorType.MOBILE,businessType = @OperationAnnotation(moduleName = "值班管理", title = "班次类型设置", operatorType = OperatorType.MOBILE, businessType =
BusinessType.GENCODE,action BusinessType.GENCODE, action
= "获取不存在班次中的班次类型") = "获取不存在班次中的班次类型")
@ApiOperation(value = "获取不存在班次中的班次类型", notes = "传入ids") @ApiOperation(value = "获取不存在班次中的班次类型", notes = "传入ids")
public R<List<ImsDutyClassTypeEntity>> classTypeList(@ApiParam(value = "机构ID", required = true) @RequestParam Long createDept,@ApiParam(value = "班次类型ID", required = true) @RequestParam(required = false) Long classTypeId) { public R<List<ImsDutyClassTypeEntity>> classTypeList(@ApiParam(value = "机构ID", required = true) @RequestParam Long createDept, @ApiParam(value = "班次类型ID", required = true) @RequestParam(required = false) Long classTypeId) {
return R.data(imsDutyClassTypeService.getClassTypeList(createDept,classTypeId)); return R.data(imsDutyClassTypeService.getClassTypeList(createDept, classTypeId));
} }
} }

6
hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/controller/ImsDutyGroupController.java

@ -54,8 +54,10 @@ public class ImsDutyGroupController extends BladeController {
/** /**
* 分页 代码自定义代号 * 分页 代码自定义代号
*/ */
@OperationAnnotation(moduleName = "值班管理",title = "班组管理",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE,action @OperationAnnotation(moduleName = "值班管理",title = "签到记录",
= "分页") operatorType = OperatorType.MOBILE,
businessType = BusinessType.GENCODE,
action = "分页")
@GetMapping("/list") @GetMapping("/list")
@ApiOperationSupport(order = 2) @ApiOperationSupport(order = 2)
@ApiOperation(value = "分页", notes = "传入imsDutyGroup") @ApiOperation(value = "分页", notes = "传入imsDutyGroup")

303
hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/controller/ImsDutyMainController.java

@ -2,6 +2,9 @@ package com.hnac.hzims.operational.duty.controller;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; 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.duty.entity.ImsDutyMainEntity; import com.hnac.hzims.operational.duty.entity.ImsDutyMainEntity;
import com.hnac.hzims.operational.duty.service.IImsDutyMainService; import com.hnac.hzims.operational.duty.service.IImsDutyMainService;
import com.hnac.hzims.operational.duty.vo.ChangeDutyMainVo; import com.hnac.hzims.operational.duty.vo.ChangeDutyMainVo;
@ -34,75 +37,75 @@ import java.util.List;
@Api(value = "值班信息主表controller", tags = "值班信息主表相关操作") @Api(value = "值班信息主表controller", tags = "值班信息主表相关操作")
public class ImsDutyMainController extends BladeController { public class ImsDutyMainController extends BladeController {
private final IImsDutyMainService imsDutyMainService; private final IImsDutyMainService imsDutyMainService;
/** /**
* 详情 * 详情
*/ */
@GetMapping("/detail") @GetMapping("/detail")
@ApiOperationSupport(order = 1) @ApiOperationSupport(order = 1)
@ApiOperation(value = "详情", notes = "传入imsDutyMainEntity") @ApiOperation(value = "详情", notes = "传入imsDutyMainEntity")
public R<ImsDutyMainEntity> detail(ImsDutyMainEntity imsDutyMain) { public R<ImsDutyMainEntity> detail(ImsDutyMainEntity imsDutyMain) {
ImsDutyMainEntity detail = imsDutyMainService.getOne(Condition.getQueryWrapper(imsDutyMain)); ImsDutyMainEntity detail = imsDutyMainService.getOne(Condition.getQueryWrapper(imsDutyMain));
return R.data(detail); return R.data(detail);
} }
/** /**
* 分页 代码自定义代号 * 分页 代码自定义代号
*/ */
@GetMapping("/list") @GetMapping("/list")
@ApiOperationSupport(order = 2) @ApiOperationSupport(order = 2)
@ApiOperation(value = "分页", notes = "传入imsDutyMain") @ApiOperation(value = "分页", notes = "传入imsDutyMain")
public R<IPage<ImsDutyMainEntity>> list(ImsDutyMainEntity imsDutyMain, Query query) { public R<IPage<ImsDutyMainEntity>> list(ImsDutyMainEntity imsDutyMain, Query query) {
IPage<ImsDutyMainEntity> pages = imsDutyMainService.page(Condition.getPage(query), Condition.getQueryWrapper(imsDutyMain)); IPage<ImsDutyMainEntity> pages = imsDutyMainService.page(Condition.getPage(query), Condition.getQueryWrapper(imsDutyMain));
return R.data(pages); return R.data(pages);
} }
/** /**
* 根据时间查询所有值班信息列表(不分页) * 根据时间查询所有值班信息列表(不分页)
*/ */
@GetMapping("/getList") @GetMapping("/getList")
@ApiOperationSupport(order = 3) @ApiOperationSupport(order = 3)
@ApiOperation(value = "列表(不分页)", notes = "传入imsDutyMain") @ApiOperation(value = "列表(不分页)", notes = "传入imsDutyMain")
public R getlists(@ApiParam(value = "值班时间") @Valid @RequestParam("dutyDate") String dutyDate, @ApiParam(value = "申请人ID") Long personId) { public R getlists(@ApiParam(value = "值班时间") @Valid @RequestParam("dutyDate") String dutyDate, @ApiParam(value = "申请人ID") Long personId) {
return imsDutyMainService.getByDateListAll(dutyDate, personId); return imsDutyMainService.getByDateListAll(dutyDate, personId);
} }
/** /**
* 新增或修改 代码自定义代号 * 新增或修改 代码自定义代号
*/ */
@PostMapping("/submit") @PostMapping("/submit")
@ApiOperationSupport(order = 6) @ApiOperationSupport(order = 6)
@ApiOperation(value = "新增或修改", notes = "传入imsDutyMain") @ApiOperation(value = "新增或修改", notes = "传入imsDutyMain")
public R submit(@Valid @RequestBody ImsDutyMainEntity imsDutyMain) { public R submit(@Valid @RequestBody ImsDutyMainEntity imsDutyMain) {
return imsDutyMainService.saveOrUpdateImsDutyMain(imsDutyMain); return imsDutyMainService.saveOrUpdateImsDutyMain(imsDutyMain);
} }
/** /**
* 删除 代码自定义代号 * 删除 代码自定义代号
*/ */
@PostMapping("/remove") @PostMapping("/remove")
@ApiOperationSupport(order = 7) @ApiOperationSupport(order = 7)
@ApiOperation(value = "逻辑删除", notes = "传入ids") @ApiOperation(value = "逻辑删除", notes = "传入ids")
public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
return imsDutyMainService.deleteV2(Func.toLongList(ids)); return imsDutyMainService.deleteV2(Func.toLongList(ids));
} }
/** /**
* 排班管理 * 排班管理
*/ */
@PostMapping("/scheduling") @PostMapping("/scheduling")
@ApiOperationSupport(order = 8) @ApiOperationSupport(order = 8)
@ApiOperation(value = "排班管理", notes = "") @ApiOperation(value = "排班管理", notes = "")
public R scheduling(@Valid @RequestBody ImsSchedulingVo imsSchedulingVo) { public R scheduling(@Valid @RequestBody ImsSchedulingVo imsSchedulingVo) {
if (null == imsSchedulingVo.getCreateDept()) { if (null == imsSchedulingVo.getCreateDept()) {
imsSchedulingVo.setCreateDept(Long.valueOf(AuthUtil.getDeptId())); imsSchedulingVo.setCreateDept(Long.valueOf(AuthUtil.getDeptId()));
} }
return imsDutyMainService.getSchedulingV2(imsSchedulingVo); return imsDutyMainService.getSchedulingV2(imsSchedulingVo);
} }
// /** // /**
// * 排班管理 // * 排班管理
@ -116,81 +119,89 @@ public class ImsDutyMainController extends BladeController {
// } // }
// return imsDutyMainService.getScheduling(imsSchedulingVo); // return imsDutyMainService.getScheduling(imsSchedulingVo);
// } // }
/**
* 查询排班 /**
*/ * 查询排班
@PostMapping("/scheduling/list") */
@ApiOperationSupport(order = 8) @PostMapping("/scheduling/list")
@ApiOperation(value = "查询排班", notes = "传年份和月份 year month") @ApiOperationSupport(order = 8)
public R schedulingList(@Valid @ApiParam(value = "年份", required = true) @RequestParam int year, @OperationAnnotation(moduleName = "值班管理", title = "排班计划",
@ApiParam(value = "月份", required = true) @RequestParam int month, operatorType = OperatorType.MOBILE,
@ApiParam(value = "机构Id", required = true) Long deptId) { businessType = BusinessType.GENCODE, action = "查询排班")
if (null == deptId) { @ApiOperation(value = "查询排班", notes = "传年份和月份 year month")
deptId = Long.valueOf(AuthUtil.getDeptId()); public R schedulingList(@Valid @ApiParam(value = "年份", required = true) @RequestParam int year,
} @ApiParam(value = "月份", required = true) @RequestParam int month,
return imsDutyMainService.getSchedulingListV2(year, month, deptId); @ApiParam(value = "机构Id", required = true) Long deptId) {
} if (null == deptId) {
deptId = Long.valueOf(AuthUtil.getDeptId());
/** }
* 根据值班id查询值班人员 return imsDutyMainService.getSchedulingListV2(year, month, deptId);
*/ }
@PostMapping("/person")
@ApiOperationSupport(order = 9) /**
@ApiOperation(value = "根据值班id查询人员", notes = "传id") * 根据值班id查询值班人员
public R person(@ApiParam(value = "值班Id", required = true) @RequestParam Long id) { */
return imsDutyMainService.getMainIdByPersonV2(id); @PostMapping("/person")
} @ApiOperationSupport(order = 9)
@ApiOperation(value = "根据值班id查询人员", notes = "传id")
/** public R person(@ApiParam(value = "值班Id", required = true) @RequestParam Long id) {
* 数据清理 return imsDutyMainService.getMainIdByPersonV2(id);
*/ }
@PostMapping("/dataDelete")
@ApiOperationSupport(order = 9) /**
@ApiOperation(value = "数据清理", notes = "传id") * 数据清理
public R dataDelete(@ApiParam(value = "机构ID", required = true) @RequestParam Long deptId, */
@ApiParam(value = "开始时间", required = true) @RequestParam String startDate, @PostMapping("/dataDelete")
@ApiParam(value = "结束时间", required = true) @RequestParam String endDate) { @ApiOperationSupport(order = 9)
return imsDutyMainService.dataDelete(deptId, startDate, endDate); @ApiOperation(value = "数据清理", notes = "传id")
} public R dataDelete(@ApiParam(value = "机构ID", required = true) @RequestParam Long deptId,
@ApiParam(value = "开始时间", required = true) @RequestParam String startDate,
@ApiParam(value = "结束时间", required = true) @RequestParam String endDate) {
/** return imsDutyMainService.dataDelete(deptId, startDate, endDate);
* 根据值班id查询值班人员 }
*/
@GetMapping("/getHomePageDutyInfo")
@ApiOperationSupport(order = 9) /**
@ApiOperation(value = "获取首页值班数据", notes = "传id") * 根据值班id查询值班人员
public R<List<HomePageDutyMainInfoVo>> getHomePageDutyInfo(Long deptId) { */
return R.data(imsDutyMainService.getHomePageDutyInfo(deptId)); @GetMapping("/getHomePageDutyInfo")
} @ApiOperationSupport(order = 9)
@ApiOperation(value = "获取首页值班数据", notes = "传id")
/** public R<List<HomePageDutyMainInfoVo>> getHomePageDutyInfo(Long deptId) {
* 返回对应部门所有人员 return R.data(imsDutyMainService.getHomePageDutyInfo(deptId));
*/ }
@GetMapping("/getAllPersonInfo")
@ApiOperationSupport(order = 9) /**
@ApiOperation(value = "返回对应部门所有人员", notes = "") * 返回对应部门所有人员
public R getAllPersonInfo(Long deptId) { */
return R.data(imsDutyMainService.getAllPersonInfo(deptId)); @GetMapping("/getAllPersonInfo")
} @ApiOperationSupport(order = 9)
@ApiOperation(value = "返回对应部门所有人员", notes = "")
/** @OperationAnnotation(moduleName = "值班管理", title = "调班管理",
* 值班人员ID对应班次信息 operatorType = OperatorType.MOBILE,
*/ businessType = BusinessType.GENCODE,
@GetMapping("/getDutyMainInfoVoById") action = "返回对应部门所有人员")
@ApiOperationSupport(order = 9) public R getAllPersonInfo(Long deptId) {
@ApiOperation(value = "值班人员ID对应班次信息", notes = "") return R.data(imsDutyMainService.getAllPersonInfo(deptId));
public R getDutyMainInfoVoById(@ApiParam(value = "机构ID") Long deptId,@ApiParam(value = "申请人ID") Long personId) { }
return imsDutyMainService.getDutyEmergencyEntityById(deptId,personId);
} /**
* 值班人员ID对应班次信息
/** */
*灵活调入调出 @GetMapping("/getDutyMainInfoVoById")
*/ @ApiOperationSupport(order = 9)
@PostMapping("/updateDutyMainInfoVoById") @ApiOperation(value = "值班人员ID对应班次信息", notes = "")
@ApiOperationSupport(order = 9) public R getDutyMainInfoVoById(@ApiParam(value = "机构ID") Long deptId, @ApiParam(value = "申请人ID") Long personId) {
@ApiOperation(value = "灵活调入,调出", notes = "") return imsDutyMainService.getDutyEmergencyEntityById(deptId, personId);
public R updateDutyMainInfoVoById(@RequestBody ChangeDutyMainVo changeDutyMainVo) { }
return imsDutyMainService.updateDutyMainInfoVoById(changeDutyMainVo);
} /**
* 灵活调入调出
*/
@PostMapping("/updateDutyMainInfoVoById")
@ApiOperationSupport(order = 9)
@ApiOperation(value = "灵活调入,调出", notes = "")
public R updateDutyMainInfoVoById(@RequestBody ChangeDutyMainVo changeDutyMainVo) {
return imsDutyMainService.updateDutyMainInfoVoById(changeDutyMainVo);
}
} }

10
hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/controller/ImsDutyRecController.java

@ -79,7 +79,8 @@ public class ImsDutyRecController extends BladeController {
/** /**
* 自定义分页 附件表 * 自定义分页 附件表
*/ */
@OperationAnnotation(title = "交接班记录",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE, @OperationAnnotation(moduleName = "值班管理",title = "交接班记录",operatorType = OperatorType.MOBILE,businessType =
BusinessType.GENCODE,
action = "分页--交接班记录") action = "分页--交接班记录")
@GetMapping("/pageList") @GetMapping("/pageList")
@ApiOperationSupport(order = 3) @ApiOperationSupport(order = 3)
@ -254,6 +255,9 @@ public class ImsDutyRecController extends BladeController {
*/ */
@PostMapping("/queryEmergency") @PostMapping("/queryEmergency")
@ApiOperationSupport(order = 6) @ApiOperationSupport(order = 6)
@OperationAnnotation(moduleName = "值班管理",title = "值班突发事件登记",operatorType = OperatorType.MOBILE,businessType =
BusinessType.GENCODE,action
= "列表(不分页)")
@ApiOperation(value = "查询突发事件记录", notes = "传入imsDutyEmergencyEntity") @ApiOperation(value = "查询突发事件记录", notes = "传入imsDutyEmergencyEntity")
public R queryEmergency( @Valid @RequestBody ImsDutyEmergencyVo imsDutyEmergencyVo,Query query) { public R queryEmergency( @Valid @RequestBody ImsDutyEmergencyVo imsDutyEmergencyVo,Query query) {
return iImsDutyEmergencyService.queryEntity(imsDutyEmergencyVo,query); return iImsDutyEmergencyService.queryEntity(imsDutyEmergencyVo,query);
@ -286,6 +290,10 @@ public class ImsDutyRecController extends BladeController {
@PostMapping("/queryAnalyseExample") @PostMapping("/queryAnalyseExample")
@ApiOperationSupport(order = 6) @ApiOperationSupport(order = 6)
@ApiOperation(value = "查询分析实例模板", notes = "传入analyseExample") @ApiOperation(value = "查询分析实例模板", notes = "传入analyseExample")
@OperationAnnotation(moduleName = "值班管理", title = "值班日志配置",
operatorType = OperatorType.MOBILE,
businessType = BusinessType.GENCODE,
action = "查询分析实例模板")
public R queryAnalyseExample( AnalyseExample analyseExample,Query query) { public R queryAnalyseExample( AnalyseExample analyseExample,Query query) {
return iImsAnalyseExampleService.queryAnalyseExample(analyseExample,query); return iImsAnalyseExampleService.queryAnalyseExample(analyseExample,query);
} }

6
hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/controller/GenerateController.java

@ -2,6 +2,9 @@ package com.hnac.hzims.operational.fill.controller;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; 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.fill.entity.GenerateEntity; import com.hnac.hzims.operational.fill.entity.GenerateEntity;
import com.hnac.hzims.operational.fill.service.GenerateService; import com.hnac.hzims.operational.fill.service.GenerateService;
import com.hnac.hzims.operational.fill.vo.GenerateVo; import com.hnac.hzims.operational.fill.vo.GenerateVo;
@ -57,6 +60,9 @@ public class GenerateController extends BladeController {
@ApiLog @ApiLog
@GetMapping("/list") @GetMapping("/list")
@ApiOperationSupport(order = 4) @ApiOperationSupport(order = 4)
@OperationAnnotation(moduleName = "数据填报",
title = "水电站发电量填报",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE,
action = "分页")
@ApiOperation(value = "分页", notes = "查询条件::startTime,endTime,stationCode") @ApiOperation(value = "分页", notes = "查询条件::startTime,endTime,stationCode")
public R<IPage<GenerateVo>> list(QueryVo filter, Query query) { public R<IPage<GenerateVo>> list(QueryVo filter, Query query) {
return service.pageCondition(filter, query); return service.pageCondition(filter, query);

5
hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/controller/OtherController.java

@ -66,8 +66,9 @@ public class OtherController extends BladeController {
@ApiLog @ApiLog
@GetMapping("/list") @GetMapping("/list")
@ApiOperationSupport(order = 4) @ApiOperationSupport(order = 4)
@OperationAnnotation(title = "其他填报",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE, @OperationAnnotation(moduleName = "数据填报",
action = "分页条件") title = "配置数据填报",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE,
action = "分页")
@ApiOperation(value = "分页", notes = "查询条件:createDept,fileName,startTime,endTime") @ApiOperation(value = "分页", notes = "查询条件:createDept,fileName,startTime,endTime")
public R<IPage<OtherVo>> list(OtherVo vo, Query query) { public R<IPage<OtherVo>> list(OtherVo vo, Query query) {
return service.pageCondition(vo, query); return service.pageCondition(vo, query);

3
hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/controller/OverConfigController.java

@ -66,7 +66,8 @@ public class OverConfigController extends BladeController {
@ApiLog @ApiLog
@GetMapping("/list") @GetMapping("/list")
@ApiOperationSupport(order = 4) @ApiOperationSupport(order = 4)
@OperationAnnotation(title = "检修卡配置",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE, @OperationAnnotation(moduleName = "数据填报",
title = "配置数据填报",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE,
action = "查询条件") action = "查询条件")
@ApiOperation(value = "分页", notes = "查询条件:over_name") @ApiOperation(value = "分页", notes = "查询条件:over_name")
public R<IPage<OverConfigVo>> list(OverConfigVo vo, Query query) { public R<IPage<OverConfigVo>> list(OverConfigVo vo, Query query) {

5
hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/controller/OverController.java

@ -67,8 +67,9 @@ public class OverController extends BladeController {
@ApiLog @ApiLog
@GetMapping("/list") @GetMapping("/list")
@ApiOperationSupport(order = 4) @ApiOperationSupport(order = 4)
@OperationAnnotation(title = "检修卡填报",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE, @OperationAnnotation(moduleName = "数据填报",
action = "分页条件") title = "配置数据填报",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE,
action = "分页")
@ApiOperation(value = "分页", notes = "查询条件:createDept,fileName,startTime,endTime") @ApiOperation(value = "分页", notes = "查询条件:createDept,fileName,startTime,endTime")
public R<IPage<OverVo>> list(OverVo vo, Query query) { public R<IPage<OverVo>> list(OverVo vo, Query query) {
return service.pageCondition(vo, query); return service.pageCondition(vo, query);

5
hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/controller/PowerController.java

@ -66,8 +66,9 @@ public class PowerController extends BladeController {
@ApiLog @ApiLog
@GetMapping("/list") @GetMapping("/list")
@ApiOperationSupport(order = 4) @ApiOperationSupport(order = 4)
@OperationAnnotation(title = "(风电 光扶)数据填报",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE, @OperationAnnotation(moduleName = "数据填报",
action = "分页条件") title = "风电数据填报",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE,
action = "分页")
@ApiOperation(value = "分页", notes = "查询条件:createDept,fileName,startTime,endTime") @ApiOperation(value = "分页", notes = "查询条件:createDept,fileName,startTime,endTime")
public R<IPage<PowerVo>> list(PowerVo vo, Query query) { public R<IPage<PowerVo>> list(PowerVo vo, Query query) {
return service.pageCondition(vo, query); return service.pageCondition(vo, query);

6
hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/controller/RainfallController.java

@ -1,6 +1,9 @@
package com.hnac.hzims.operational.fill.controller; package com.hnac.hzims.operational.fill.controller;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
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.fill.vo.RainfallVo; import com.hnac.hzims.operational.fill.vo.RainfallVo;
import org.springblade.core.log.annotation.ApiLog; import org.springblade.core.log.annotation.ApiLog;
import org.springblade.core.mp.support.Query; import org.springblade.core.mp.support.Query;
@ -58,6 +61,9 @@ public class RainfallController extends BladeController {
@ApiLog @ApiLog
@GetMapping("/list") @GetMapping("/list")
@ApiOperationSupport(order = 4) @ApiOperationSupport(order = 4)
@OperationAnnotation(moduleName = "数据填报",
title = "降雨量填报",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE,
action = "分页")
@ApiOperation(value = "分页", notes = "查询条件::startTime,endTime,stationCode") @ApiOperation(value = "分页", notes = "查询条件::startTime,endTime,stationCode")
public R<IPage<RainfallVo>> list(QueryVo filter, Query query) { public R<IPage<RainfallVo>> list(QueryVo filter, Query query) {
return service.pageCondition(filter, query); return service.pageCondition(filter, query);

5
hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/controller/SolveController.java

@ -66,8 +66,9 @@ public class SolveController extends BladeController {
@ApiLog @ApiLog
@GetMapping("/list") @GetMapping("/list")
@ApiOperationSupport(order = 4) @ApiOperationSupport(order = 4)
@OperationAnnotation(title = "消缺填报",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE, @OperationAnnotation(moduleName = "数据填报",
action = "分页条件") title = "配置数据填报",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE,
action = "分页")
@ApiOperation(value = "分页", notes = "查询条件:startDate,endDate,createDept") @ApiOperation(value = "分页", notes = "查询条件:startDate,endDate,createDept")
public R<IPage<SolveVo>> list(SolveVo vo, Query query) { public R<IPage<SolveVo>> list(SolveVo vo, Query query) {
return service.pageCondition(vo, query); return service.pageCondition(vo, query);

6
hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/controller/StorageController.java

@ -2,6 +2,9 @@ package com.hnac.hzims.operational.fill.controller;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; 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.fill.entity.StorageEntity; import com.hnac.hzims.operational.fill.entity.StorageEntity;
import com.hnac.hzims.operational.fill.service.StorageService; import com.hnac.hzims.operational.fill.service.StorageService;
import com.hnac.hzims.operational.fill.vo.QueryVo; import com.hnac.hzims.operational.fill.vo.QueryVo;
@ -55,6 +58,9 @@ public class StorageController extends BladeController {
@ApiLog @ApiLog
@GetMapping("/list") @GetMapping("/list")
@ApiOperationSupport(order = 4) @ApiOperationSupport(order = 4)
@OperationAnnotation(moduleName = "数据填报",
title = "储能站发电量填报",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE,
action = "分页")
@ApiOperation(value = "分页", notes = "查询条件:startTime,endTime,stationCode") @ApiOperation(value = "分页", notes = "查询条件:startTime,endTime,stationCode")
public R<IPage<StorageEntity>> list(QueryVo vo, Query query) { public R<IPage<StorageEntity>> list(QueryVo vo, Query query) {
return service.pageCondition(vo, query); return service.pageCondition(vo, query);

6
hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/controller/UseController.java

@ -2,6 +2,9 @@ package com.hnac.hzims.operational.fill.controller;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; 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.fill.entity.UseEntity; import com.hnac.hzims.operational.fill.entity.UseEntity;
import com.hnac.hzims.operational.fill.service.UseService; import com.hnac.hzims.operational.fill.service.UseService;
import com.hnac.hzims.operational.fill.vo.QueryVo; import com.hnac.hzims.operational.fill.vo.QueryVo;
@ -56,6 +59,9 @@ public class UseController extends BladeController {
@ApiLog @ApiLog
@GetMapping("/list") @GetMapping("/list")
@ApiOperationSupport(order = 4) @ApiOperationSupport(order = 4)
@OperationAnnotation(moduleName = "数据填报",
title = "磊站用电填报",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE,
action = "分页")
@ApiOperation(value = "分页", notes = "查询条件::startTime,endTime,stationCode") @ApiOperation(value = "分页", notes = "查询条件::startTime,endTime,stationCode")
public R<IPage<UseVo>> list(QueryVo filter, Query query) { public R<IPage<UseVo>> list(QueryVo filter, Query query) {
return service.pageCondition(filter, query); return service.pageCondition(filter, query);

4
hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/controller/HomePageController.java

@ -82,8 +82,8 @@ public class HomePageController extends BladeController {
@ApiLog @ApiLog
@ApiOperation("年计划发电完成趋势") @ApiOperation("年计划发电完成趋势")
@GetMapping("/planAactualTrend") @GetMapping("/planAactualTrend")
@OperationAnnotation(moduleName = "演示大屏",title = "演示大屏", operatorType = OperatorType.MOBILE, // @OperationAnnotation(moduleName = "演示大屏",title = "演示大屏", operatorType = OperatorType.MOBILE,
businessType = BusinessType.GENCODE,action = "年计划发电完成趋势") // businessType = BusinessType.GENCODE,action = "年计划发电完成趋势")
@ApiOperationSupport(order = 6) @ApiOperationSupport(order = 6)
public R<List<PowerMonthVo>> planActualTrend(@ApiParam(value = "区域机构ID") Long deptId) { public R<List<PowerMonthVo>> planActualTrend(@ApiParam(value = "区域机构ID") Long deptId) {
return R.data(homePageService.planActualTrend(deptId)); return R.data(homePageService.planActualTrend(deptId));

2
hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/controller/MainSystemMonitoringController.java

@ -128,7 +128,7 @@ public class MainSystemMonitoringController {
@GetMapping("/listByAuthDept") @GetMapping("/listByAuthDept")
@OperationAnnotation(moduleName = "值班管理", @OperationAnnotation(moduleName = "值班管理",
title = "排班计划",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE,action title = "值班配置",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE,action
= "根据用户权限查询站点及部门") = "根据用户权限查询站点及部门")
@ApiOperationSupport(order = 100) @ApiOperationSupport(order = 100)
@ApiOperation(value = "根据用户权限查询站点及部门", notes = "") @ApiOperation(value = "根据用户权限查询站点及部门", notes = "")

2
hzims-service/operational/src/main/java/com/hnac/hzims/operational/maintenance/controller/OperMaintenanceLibraryController.java

@ -87,7 +87,7 @@ public class OperMaintenanceLibraryController extends BladeController {
@ApiLog @ApiLog
@GetMapping("/list") @GetMapping("/list")
@ApiOperationSupport(order = 50) @ApiOperationSupport(order = 50)
@OperationAnnotation(moduleName = "设备管理",title = "设备维护库",operatorType = OperatorType.MOBILE,businessType = @OperationAnnotation(moduleName = "日常维护",title = "设备维护库",operatorType = OperatorType.MOBILE,businessType =
BusinessType.GENCODE, BusinessType.GENCODE,
action = "分页 查询参数:libraryCode,emCode,typeCode,procDefId,disposers(仅支持一人)") action = "分页 查询参数:libraryCode,emCode,typeCode,procDefId,disposers(仅支持一人)")
@ApiOperation(value = "分页 查询参数:libraryCode,emCode,typeCode,procDefId,disposers(仅支持一人)") @ApiOperation(value = "分页 查询参数:libraryCode,emCode,typeCode,procDefId,disposers(仅支持一人)")

6
hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/controller/CheckMonthController.java

@ -3,6 +3,9 @@ package com.hnac.hzims.safeproduct.controller;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; 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.safeproduct.dto.CheckMonthDTO; import com.hnac.hzims.safeproduct.dto.CheckMonthDTO;
import com.hnac.hzims.safeproduct.entity.CheckMonthEntity; import com.hnac.hzims.safeproduct.entity.CheckMonthEntity;
import com.hnac.hzims.safeproduct.service.ICheckMonthService; import com.hnac.hzims.safeproduct.service.ICheckMonthService;
@ -98,6 +101,9 @@ public class CheckMonthController extends BladeController {
@GetMapping("/listNotDataScope") @GetMapping("/listNotDataScope")
@ApiOperationSupport(order = 50) @ApiOperationSupport(order = 50)
@ApiOperation(value = "分页", notes = "查询条件:month,status,createDept") @ApiOperation(value = "分页", notes = "查询条件:month,status,createDept")
@OperationAnnotation(moduleName = "安全管理",
title = "月度自查核查",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE,
action = "分页")
public R<IPage<CheckMonthVo>> listNotDataScope(CheckMonthEntity req, Query query) { public R<IPage<CheckMonthVo>> listNotDataScope(CheckMonthEntity req, Query query) {
R<IPage<CheckMonthVo>> pageR = checkMonthlyService.pageNotDataScope(req, query); R<IPage<CheckMonthVo>> pageR = checkMonthlyService.pageNotDataScope(req, query);
IPage<CheckMonthVo> page = pageR.getData(); IPage<CheckMonthVo> page = pageR.getData();

6
hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/controller/DangerSourceController.java

@ -2,6 +2,9 @@ package com.hnac.hzims.safeproduct.controller;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; 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.safeproduct.dto.DangerSourceDTO; import com.hnac.hzims.safeproduct.dto.DangerSourceDTO;
import com.hnac.hzims.safeproduct.entity.DangerSourceEntity; import com.hnac.hzims.safeproduct.entity.DangerSourceEntity;
import com.hnac.hzims.safeproduct.service.IDangerSourceService; import com.hnac.hzims.safeproduct.service.IDangerSourceService;
@ -78,6 +81,9 @@ public class DangerSourceController extends BladeController {
@GetMapping("/list") @GetMapping("/list")
@ApiOperationSupport(order = 50) @ApiOperationSupport(order = 50)
@ApiOperation(value = "分页", notes = "查询条件:eqId,level,`dangerEle,applyType,type") @ApiOperation(value = "分页", notes = "查询条件:eqId,level,`dangerEle,applyType,type")
@OperationAnnotation(moduleName = "安全管理",title = "危险点列表",operatorType = OperatorType.MOBILE,businessType =
BusinessType.GENCODE,
action = "分页")
public R<IPage<DangerSourceVO>> list(DangerSourceEntity req, Query query) { public R<IPage<DangerSourceVO>> list(DangerSourceEntity req, Query query) {
return dangerSourceService.pageCondition(req, query); return dangerSourceService.pageCondition(req, query);
} }

3
hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/controller/EmergencyPlanController.java

@ -79,7 +79,8 @@ public class EmergencyPlanController extends BladeController {
@ApiLog @ApiLog
@GetMapping("/list") @GetMapping("/list")
@ApiOperationSupport(order = 50) @ApiOperationSupport(order = 50)
@OperationAnnotation(title = "应急预案文件",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE, @OperationAnnotation(moduleName = "安全管理",title = "应急预案文件",operatorType = OperatorType.MOBILE,businessType =
BusinessType.GENCODE,
action = "分页条件") action = "分页条件")
@ApiOperation(value = "分页", notes = "查询条件:typeId,fileStatus,fileName") @ApiOperation(value = "分页", notes = "查询条件:typeId,fileStatus,fileName")
public R<IPage<EmergencyPlanVO>> list(EmergencyPlanListDTO req, Query query) { public R<IPage<EmergencyPlanVO>> list(EmergencyPlanListDTO req, Query query) {

7
hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/controller/ImsMonCameraInfoController.java

@ -3,6 +3,9 @@ package com.hnac.hzims.safeproduct.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; 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.safeproduct.entity.ImsMonCameraInfoEntity; import com.hnac.hzims.safeproduct.entity.ImsMonCameraInfoEntity;
import com.hnac.hzims.safeproduct.service.IImsMonCameraInfoService; import com.hnac.hzims.safeproduct.service.IImsMonCameraInfoService;
import io.swagger.annotations.*; import io.swagger.annotations.*;
@ -76,6 +79,10 @@ public class ImsMonCameraInfoController extends BladeController {
@ApiImplicitParam(name = "isControl", value = "是否云台控制", paramType = "query", dataType = "Integer"), @ApiImplicitParam(name = "isControl", value = "是否云台控制", paramType = "query", dataType = "Integer"),
@ApiImplicitParam(name = "isHikvideo", value = "是否平台接入", paramType = "query", dataType = "Integer"), @ApiImplicitParam(name = "isHikvideo", value = "是否平台接入", paramType = "query", dataType = "Integer"),
}) })
@OperationAnnotation(moduleName = "巡检管理", title = "智能巡检配置",
operatorType = OperatorType.MOBILE,
businessType = BusinessType.GENCODE,
action = "分页")
public R<IPage<ImsMonCameraInfoEntity>> list(@ApiIgnore @RequestParam Map<String,Object> cameraInfo, Query query) { public R<IPage<ImsMonCameraInfoEntity>> list(@ApiIgnore @RequestParam Map<String,Object> cameraInfo, Query query) {
QueryWrapper<ImsMonCameraInfoEntity> queryWrapper = new QueryWrapper<>(); QueryWrapper<ImsMonCameraInfoEntity> queryWrapper = new QueryWrapper<>();
if (!Func.isEmpty(cameraInfo.get("tenantId"))) { if (!Func.isEmpty(cameraInfo.get("tenantId"))) {

3
hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/controller/SafeEquipmentTrialController.java

@ -57,7 +57,8 @@ public class SafeEquipmentTrialController extends BladeController {
@GetMapping("/list") @GetMapping("/list")
@ApiOperationSupport(order = 50) @ApiOperationSupport(order = 50)
@ApiOperation(value = "分页", notes = "查询条件:createDept,fileName,startTime,endTime") @ApiOperation(value = "分页", notes = "查询条件:createDept,fileName,startTime,endTime")
@OperationAnnotation(title = "设备试验",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE, @OperationAnnotation(moduleName = "设备管理",title = "设备试验",operatorType = OperatorType.MOBILE,businessType =
BusinessType.GENCODE,
action = "分页条件") action = "分页条件")
public R<BladePage<SafeEquipmentTrialVO>> list(SafeEquipmentTrialDTO safeEquipmentTrialDTO, Query query) { public R<BladePage<SafeEquipmentTrialVO>> list(SafeEquipmentTrialDTO safeEquipmentTrialDTO, Query query) {
return service.pageCondition(safeEquipmentTrialDTO, query); return service.pageCondition(safeEquipmentTrialDTO, query);

3
hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/controller/SystemFileController.java

@ -85,7 +85,8 @@ public class SystemFileController extends BladeController {
@GetMapping("/list") @GetMapping("/list")
@ApiOperationSupport(order = 50) @ApiOperationSupport(order = 50)
@ApiOperation(value = "分页", notes = "查询条件:fTypeId,fileStatus,fileName") @ApiOperation(value = "分页", notes = "查询条件:fTypeId,fileStatus,fileName")
@OperationAnnotation(title = "体系文件",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE, @OperationAnnotation(moduleName = "安全管理",title = "体系文件",operatorType = OperatorType.MOBILE,businessType =
BusinessType.GENCODE,
action = "分页条件") action = "分页条件")
public R<IPage<SystemFileVO>> list(SystemFileListDTO req, Query query) { public R<IPage<SystemFileVO>> list(SystemFileListDTO req, Query query) {
return systemFileService.pageCondition(req, query); return systemFileService.pageCondition(req, query);

3
hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/repair/controller/OperRepairController.java

@ -56,7 +56,8 @@ public class OperRepairController extends BladeController {
@GetMapping("/list") @GetMapping("/list")
@ApiOperationSupport(order = 1) @ApiOperationSupport(order = 1)
@ApiOperation(value = "确认抢修单", notes = "流程对象") @ApiOperation(value = "确认抢修单", notes = "流程对象")
@OperationAnnotation(title = "两票管理(应急单)",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE, @OperationAnnotation(moduleName = "两票管理",title = "应急单",operatorType = OperatorType.MOBILE,businessType =
BusinessType.GENCODE,
action = "确认抢修单") action = "确认抢修单")
public R<IPage<RepairVO>> list(RepairEntity entity, Query query) { public R<IPage<RepairVO>> list(RepairEntity entity, Query query) {
return R.data(service.pages(entity,query)); return R.data(service.pages(entity,query));

5
hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/twoTicket/service/impl/TicketProcessServiceImpl.java

@ -415,11 +415,12 @@ public class TicketProcessServiceImpl implements TicketProcessService {
message.setPushType(MessageConstants.IMMEDIATELY); message.setPushType(MessageConstants.IMMEDIATELY);
//您有一张工作票待审批,工作内容:*****,审批环节:*****; //您有一张工作票待审批,工作内容:*****,审批环节:*****;
String countent = String countent =
"您有一张工作票待审批,工作内容".concat(workTicketInfo.getWorkContent()) "您有一张工作票待审批,工作内容: ".concat(workTicketInfo.getWorkContent())
.concat(",审批环节:") .concat(",审批环节: ")
.concat(response.getTaskName()); .concat(response.getTaskName());
message.setContent(countent); message.setContent(countent);
message.setDeptId(workTicketInfo.getCreateDept()); message.setDeptId(workTicketInfo.getCreateDept());
message.setCreateDept(workTicketInfo.getCreateDept());
R<String> deptName = sysClient.getDeptName(workTicketInfo.getCreateDept()); R<String> deptName = sysClient.getDeptName(workTicketInfo.getCreateDept());
if (deptName.isSuccess()) { if (deptName.isSuccess()) {
message.setDeptName(deptName.getData()); message.setDeptName(deptName.getData());

2
hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/workTicket/controller/WorkTicketInfoController.java

@ -156,7 +156,7 @@ public class WorkTicketInfoController {
@GetMapping("/userListByRoleAlias") @GetMapping("/userListByRoleAlias")
@ApiOperationSupport(order = 100) @ApiOperationSupport(order = 100)
@OperationAnnotation(moduleName = "两票管理", @OperationAnnotation(moduleName = "两票管理",
title = "两票管理(工作票)", operatorType = OperatorType.MOBILE, businessType = BusinessType.GENCODE, title = "工作票", operatorType = OperatorType.MOBILE, businessType = BusinessType.GENCODE,
action = "获取某机构下角色的人员列表") action = "获取某机构下角色的人员列表")
@ApiOperation(value = "获取某机构下角色的人员列表") @ApiOperation(value = "获取某机构下角色的人员列表")
public R userListByRoleAlias(@RequestParam("roleAlias") @ApiParam("角色别称") String roleAlias) { public R userListByRoleAlias(@RequestParam("roleAlias") @ApiParam("角色别称") String roleAlias) {

Loading…
Cancel
Save