Browse Source

Merge remote-tracking branch 'origin/master'

zhongwei
ty 11 months ago
parent
commit
997aa203c7
  1. 11
      hzims-biz-common/src/main/java/com/hnac/hzims/common/utils/DateUtil.java
  2. 8
      hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/fill/entity/RainfallEntity.java
  3. 4
      hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/maintenance/constants/ScheduledConstant.java
  4. 4
      hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/maintenance/entity/OperMaintenanceTaskEntity.java
  5. 1
      hzims-service-api/message-api/src/main/java/com/hnac/hzims/message/MessageConstants.java
  6. 12
      hzims-service-api/safeproduct-api/pom.xml
  7. 5
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/Constants.java
  8. 9
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/dto/AccidentDTO.java
  9. 2
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/dto/ConferenceExportDTO.java
  10. 26
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/dto/InnerDangerDTO.java
  11. 4
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/entity/CarEntity.java
  12. 2
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/entity/CarUsedRecordEntity.java
  13. 15
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/entity/DangerSourceEntity.java
  14. 68
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/entity/DeviceEntity.java
  15. 3
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/entity/HygienePlanEntity.java
  16. 299
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/entity/InnerDangerEntity.java
  17. 30
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/enums/CarMaintenanceTypeEnum.java
  18. 30
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/enums/DeviceStatusEnum.java
  19. 2
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/hazard/dto/DangerSourceDTO.java
  20. 2
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/hazard/dto/DangerSourcePositionDTO.java
  21. 31
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/hazard/dto/HazardInstanceDTO.java
  22. 15
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/hazard/dto/HazardLibraryDTO.java
  23. 61
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/hazard/entity/HazardLibraryEntity.java
  24. 2
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/hazard/enums/DangerSourceLevelEnum.java
  25. 2
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/hazard/vo/DangerSourcePositionVO.java
  26. 5
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/hazard/vo/DangerSourceVO.java
  27. 15
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/hazard/vo/HazardLibraryVO.java
  28. 53
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/entity/DocumentManagement.java
  29. 14
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/entity/RatingScale.java
  30. 33
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/entity/SafeStandardNecessary.java
  31. 44
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/entity/SafeStandardResult.java
  32. 18
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/entity/TargetManagement.java
  33. 57
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/entity/TargetTemplate.java
  34. 6
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/vo/DocumentManagementQueryVo.java
  35. 5
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/vo/RatingScaleVo.java
  36. 19
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/vo/TargetTemplateQueryVo.java
  37. 58
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/constants/HazardRiskConstants.java
  38. 25
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/dto/CorrelationDTO.java
  39. 22
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/dto/HazardRiskProcessDTO.java
  40. 22
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/dto/HazardSourceDTO.java
  41. 24
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/dto/RiskCheckDTO.java
  42. 26
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/entity/Correlation.java
  43. 26
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/entity/HazardCategory.java
  44. 71
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/entity/HazardEstimate.java
  45. 41
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/entity/HazardLevel.java
  46. 56
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/entity/HazardSource.java
  47. 55
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/entity/HazardTask.java
  48. 48
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/entity/HazardWork.java
  49. 46
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/entity/RiskCheckEntity.java
  50. 29
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/entity/RiskEstimate.java
  51. 89
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/entity/RiskEstimatePoint.java
  52. 19
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/feign/HazardRiskClientFallBack.java
  53. 25
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/feign/IHazardRiskClient.java
  54. 29
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/vo/CategorySourceVo.java
  55. 22
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/vo/CorrelationDetailsVo.java
  56. 78
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/vo/ExportEstimateVo.java
  57. 20
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/vo/HazardDetailsVo.java
  58. 32
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/vo/HazardEstimateVo.java
  59. 27
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/vo/HazardTaskVo.java
  60. 48
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/vo/PersonalCheckItemVO.java
  61. 42
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/vo/SourceVo.java
  62. 29
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/vo/StationEstimateVo.java
  63. 25
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/vo/StationRiskLevelVo.java
  64. 26
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/wrapper/HazardSourceWrapper.java
  65. 33
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/wrapper/RiskCheckWrapper.java
  66. 44
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/riskhazards/entity/ControlLevel.java
  67. 52
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/riskhazards/entity/DangerSourceInfo.java
  68. 2
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/riskhazards/entity/HiddenDanger.java
  69. 59
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/riskhazards/entity/RiskHazardsScreening.java
  70. 69
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/riskhazards/entity/RiskInfo.java
  71. 55
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/riskhazards/entity/RiskMatrixX.java
  72. 51
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/riskhazards/entity/RiskMatrixY.java
  73. 54
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/riskhazards/entity/RiskPointInfo.java
  74. 7
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/riskhazards/entity/WorkArea.java
  75. 8
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/riskhazards/vo/ControlLevelQueryVo.java
  76. 8
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/riskhazards/vo/DangerSourceInfoQueryVo.java
  77. 2
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/riskhazards/vo/HiddenDangerQueryVo.java
  78. 10
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/riskhazards/vo/RiskHazardsScreeningVo.java
  79. 7
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/riskhazards/vo/RiskInfoQueryVo.java
  80. 8
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/riskhazards/vo/RiskMatrixXQueryVo.java
  81. 7
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/riskhazards/vo/RiskMatrixYQueryVo.java
  82. 8
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/riskhazards/vo/RiskPointInfoQueryVo.java
  83. 2
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/riskhazards/vo/WorkAreaQueryVo.java
  84. 4
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/statistic/Constants.java
  85. 31
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/statistic/vo/DangerRiskScatterVO.java
  86. 34
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/statistic/vo/RiskDangerAccidentMonthCountVO.java
  87. 38
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/statistic/vo/RiskDangerStatisticVO.java
  88. 26
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/statistic/vo/RiskInnerVO.java
  89. 29
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/statistic/vo/StationRiskStatisticVO.java
  90. 3
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/vo/CarMaintenanceDetailVO.java
  91. 3
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/vo/ConferenceRecordDetailVO.java
  92. 170
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/vo/HiddenDangerBaseVo.java
  93. 69
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/vo/HiddenDangerCheckVo.java
  94. 62
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/vo/HiddenDangerConclusionVo.java
  95. 104
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/vo/HiddenDangerRectifierVo.java
  96. 38
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/vo/InnerDangerVo.java
  97. 29
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/vo/RiskCheckVO.java
  98. 8
      hzims-service-api/ticket-api/src/main/java/com/hnac/hzims/ticket/repair/entity/WorkTaskEntity.java
  99. 5
      hzims-service-api/ticket-api/src/main/java/com/hnac/hzims/ticket/repair/vo/WorkTaskContentVO.java
  100. 24
      hzims-service-api/ticket-api/src/main/java/com/hnac/hzims/ticket/repair/vo/WorkTaskPreviewVO.java
  101. Some files were not shown because too many files have changed in this diff Show More

11
hzims-biz-common/src/main/java/com/hnac/hzims/common/utils/DateUtil.java

@ -18,6 +18,17 @@ import java.util.stream.IntStream;
*/ */
public class DateUtil { public class DateUtil {
public static final String yyyy_MM_dd_HH_MM_SS= "yyyy-MM-dd HH:mm:ss";
public static final String yyyy_MM_dd= "yyyy-MM-dd";
public static final String yyyy_MM= "yyyy-MM";
public static final String yyyy= "yyyy";
public static final String YEAR = "year";
public static final String QUARTER = "quarter";
public static final String MONTH = "month";
public static final String WEEK = "week";
public static final String DAY = "day";
/*** /***
* Date 转换为 LocalDateTime * Date 转换为 LocalDateTime
* @param convertDate 需转换的时间 * @param convertDate 需转换的时间

8
hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/fill/entity/RainfallEntity.java

@ -2,18 +2,20 @@ package com.hnac.hzims.operational.fill.entity;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity; import org.springblade.core.tenant.mp.TenantEntity;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable; import java.io.Serializable;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date;
/**
* @author ysj
*/
@EqualsAndHashCode(callSuper = true)
@Data @Data
@TableName("hzims_fill_rainfall") @TableName("hzims_fill_rainfall")
@ApiModel(value="RainfallEntity", description="水利降雨量填报") @ApiModel(value="RainfallEntity", description="水利降雨量填报")

4
hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/maintenance/constants/ScheduledConstant.java

@ -19,4 +19,8 @@ public interface ScheduledConstant {
String STATION_MONTH_REPORT = "stationMonthReport"; String STATION_MONTH_REPORT = "stationMonthReport";
//自动生成个人运维月报 //自动生成个人运维月报
String PERSONAL_MONTH_REPORT = "personalMonthReport"; String PERSONAL_MONTH_REPORT = "personalMonthReport";
//生成日常维护任务
String GENERATE_MAINTENANCE_TASK_SCHEDULE = "generateMaintenanceTask";
//日常维护任务到期提醒
String REMIND_MAINTENANCE_BECOME_TASK = "remindMaintenanceBecomeTask";
} }

4
hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/maintenance/entity/OperMaintenanceTaskEntity.java

@ -75,9 +75,13 @@ public class OperMaintenanceTaskEntity extends TenantEntity {
* 执行日期 * 执行日期
*/ */
@ApiModelProperty(value = "任务按周期生成计划时间") @ApiModelProperty(value = "任务按周期生成计划时间")
@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
private Date disposeTime; private Date disposeTime;
@ApiModelProperty(value = "执行时间") @ApiModelProperty(value = "执行时间")
@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
private LocalDateTime executeTime; private LocalDateTime executeTime;
/** /**
* 标准工时 * 标准工时

1
hzims-service-api/message-api/src/main/java/com/hnac/hzims/message/MessageConstants.java

@ -50,6 +50,7 @@ public class MessageConstants {
OPERATIONAL("dailyRemind","运维管理"), OPERATIONAL("dailyRemind","运维管理"),
EQUIPMENT("equipment","设备管理"), EQUIPMENT("equipment","设备管理"),
SAFE_PRODUCT("safeProduct","安全管理"), SAFE_PRODUCT("safeProduct","安全管理"),
SAFEPRODUCT_HIDDENDANGER("safeProduct-hiddenDanger","隐患处理消息"),
ASSETS("assets","资产管理"), ASSETS("assets","资产管理"),
WARNING("warning","告警消息"), WARNING("warning","告警消息"),
DUTY("duty","值班消息"), DUTY("duty","值班消息"),

12
hzims-service-api/safeproduct-api/pom.xml

@ -20,6 +20,18 @@
<groupId>com.alibaba</groupId> <groupId>com.alibaba</groupId>
<artifactId>easyexcel</artifactId> <artifactId>easyexcel</artifactId>
</dependency> </dependency>
<dependency>
<groupId>com.hnac.hzims</groupId>
<artifactId>middle-api</artifactId>
</dependency>
<dependency>
<groupId>org.springblade</groupId>
<artifactId>blade-user-api</artifactId>
</dependency>
<dependency>
<groupId>org.springblade</groupId>
<artifactId>blade-dict-api</artifactId>
</dependency>
</dependencies> </dependencies>
<packaging>jar</packaging> <packaging>jar</packaging>

5
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/Constants.java

@ -55,4 +55,9 @@ public class Constants {
this.describe = describe; this.describe = describe;
} }
} }
/**
* 隐患流程标识
*/
public static final String HIDDEN_DANGER_CHECK = "hiddenDangerCheck";
} }

9
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/dto/AccidentDTO.java

@ -8,6 +8,7 @@ import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder; import lombok.experimental.SuperBuilder;
import java.io.Serializable; import java.io.Serializable;
import java.time.LocalDateTime;
/** /**
* @author hx * @author hx
@ -15,5 +16,13 @@ import java.io.Serializable;
@Data @Data
@EqualsAndHashCode @EqualsAndHashCode
public class AccidentDTO extends AccidentEntity implements Serializable { public class AccidentDTO extends AccidentEntity implements Serializable {
private String yearMonth;
private String stationCode;
private LocalDateTime startTime;
private LocalDateTime endTime;
private Long deptId;
} }

2
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/dto/ConferenceExportDTO.java

@ -46,6 +46,6 @@ public class ConferenceExportDTO {
private String host; private String host;
@ApiModelProperty("会议状态") @ApiModelProperty("会议状态")
@ExcelProperty(value = "会议状态", index = 9) @ExcelProperty(value = "会议状态", index = 7)
private String conferenceStatus; private String conferenceStatus;
} }

26
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/dto/InnerDangerDTO.java

@ -0,0 +1,26 @@
package com.hnac.hzims.safeproduct.dto;
import com.hnac.hzims.safeproduct.entity.InnerDangerEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
* @ClassName InnerDangerDTO
* @description:
* @author: hx
* @create: 2023-09-20 14:50
* @Version 4.0
**/
@Data
@ApiModel("隐患信息DTO")
@EqualsAndHashCode
public class InnerDangerDTO extends InnerDangerEntity implements Serializable {
@ApiModelProperty("隐患发起日期")
private String date;
}

4
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/entity/CarEntity.java

@ -89,6 +89,10 @@ public class CarEntity extends BaseEntity {
private String maintenanceStatus; private String maintenanceStatus;
@NotNull @NotNull
@ApiModelProperty("车辆管理人id")
private Long managerId;
@NotNull
@Size(max = 50, message = "车辆管理人长度不能超过50") @Size(max = 50, message = "车辆管理人长度不能超过50")
@ApiModelProperty("车辆管理人") @ApiModelProperty("车辆管理人")
private String manager; private String manager;

2
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/entity/CarUsedRecordEntity.java

@ -55,10 +55,10 @@ public class CarUsedRecordEntity extends BaseEntity {
@ApiModelProperty("出车公里数") @ApiModelProperty("出车公里数")
private BigDecimal startMiles; private BigDecimal startMiles;
@NotNull
@ApiModelProperty("收车公里数") @ApiModelProperty("收车公里数")
private BigDecimal endMiles; private BigDecimal endMiles;
@NotNull
@ApiModelProperty("行驶公里数") @ApiModelProperty("行驶公里数")
private BigDecimal miles; private BigDecimal miles;

15
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/entity/DangerSourceEntity.java

@ -22,6 +22,15 @@ public class DangerSourceEntity extends TenantEntity {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ApiModelProperty("所属机构")
private Long refDept;
@ApiModelProperty("所属机构名称")
private String refDeptName;
@ApiModelProperty(value = "危险源库ID")
private Long libraryId;
/** /**
* 危险源类型 1=作业活动 2=设备 * 危险源类型 1=作业活动 2=设备
*/ */
@ -34,6 +43,12 @@ public class DangerSourceEntity extends TenantEntity {
@ApiModelProperty(value = "设备ID") @ApiModelProperty(value = "设备ID")
@JsonSerialize(nullsUsing = NullSerializer.class) @JsonSerialize(nullsUsing = NullSerializer.class)
private Long eqId; private Long eqId;
@ApiModelProperty("设备编号")
private String emCode;
@ApiModelProperty("设备名称")
private String emName;
/** /**
* 危险源名称 * 危险源名称
*/ */

68
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/entity/DeviceEntity.java

@ -0,0 +1,68 @@
package com.hnac.hzims.safeproduct.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
import javax.validation.constraints.Size;
import java.util.Date;
/**
* @author liwen
* @date 2024-01-12
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("hzims_device")
@ApiModel(value = "特种设备实体类")
public class DeviceEntity extends BaseEntity {
@Size(max = 50, message = "设备名称长度不能超过50")
@ApiModelProperty("设备名称")
private String name;
@Size(max = 50, message = "规格型号长度不能超过50")
@ApiModelProperty("规格型号")
private String type;
@Size(max = 50, message = "设备编码长度不能超过50")
@ApiModelProperty("设备编码")
private String code;
@Size(max = 255, message = "产品合格证号长度不能超过255")
@ApiModelProperty("产品合格证号")
private String qualityCertificateNo;
@ApiModelProperty("生产日期")
private Date productionTime;
@ApiModelProperty("使用时间")
private Date usedTime;
@Size(max = 255, message = "使用地点长度不能超过255")
@ApiModelProperty("使用地点")
private String usedLocation;
@ApiModelProperty("检验周期")
private Integer inspectionPeriod;
@ApiModelProperty("本次检验日期")
private Date inspectionCurrentTime;
@ApiModelProperty("下次检验日期")
private Date inspectionNextTime;
@ApiModelProperty("上次检验日期")
private Date inspectionLastTime;
@Size(max = 50, message = "设备管理人长度不能超过50")
@ApiModelProperty("设备管理人")
private String manager;
@Size(max = 20, message = "设备状态长度不能超过20")
@ApiModelProperty("设备状态")
private String deviceStatus;
}

3
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/entity/HygienePlanEntity.java

@ -9,6 +9,7 @@ import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity; import org.springblade.core.mp.base.BaseEntity;
import javax.validation.constraints.NotNull; import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date; import java.util.Date;
/** /**
@ -21,9 +22,11 @@ import java.util.Date;
@ApiModel(value = "卫生自查计划实体类") @ApiModel(value = "卫生自查计划实体类")
public class HygienePlanEntity extends BaseEntity { public class HygienePlanEntity extends BaseEntity {
@Size(max = 50, message = "计划名称字段长度不能超过50")
@ApiModelProperty("计划名称") @ApiModelProperty("计划名称")
private String name; private String name;
@Size(max = 50, message = "单位字段长度不能超过50")
@ApiModelProperty("单位") @ApiModelProperty("单位")
private String unit; private String unit;

299
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/entity/InnerDangerEntity.java

@ -0,0 +1,299 @@
package com.hnac.hzims.safeproduct.entity;
import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.support.QueryField;
import org.springblade.core.tenant.mp.TenantEntity;
import org.springblade.core.tool.utils.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;
/**
* Created by ty 2023/9/18 10:16
*/
@Data
@TableName("hzims_inner_danger_info")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "隐患信息", description = "隐患信息")
public class InnerDangerEntity extends TenantEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 隐患编码
*/
@QueryField(condition = SqlCondition.LIKE)
@ApiModelProperty(value = "隐患编码")
private String code;
/**
* 流程实例
*/
@ApiModelProperty(value = "流程实例")
private String processInstanceId;
/**
* 平台taskId
*/
@ApiModelProperty(value = "平台任务Id")
private String taskId;
//===================风险点基础信息========================
/**
* 站点编码
*/
@ApiModelProperty(value = "站点编码")
private String stationCode;
/**
* 风险点Id
*/
@QueryField(condition = SqlCondition.LIKE)
@ApiModelProperty(value = "风险点Id")
private String riskPointId;
/**
* 风险点名称
*/
@QueryField(condition = SqlCondition.LIKE)
@ApiModelProperty(value = "风险点名称")
private String riskPointName;
/**
* 排查项目
*/
@QueryField(condition = SqlCondition.LIKE)
@ApiModelProperty(value = "排查项目")
private String investigation;
/**
* 风险点类型
*/
@QueryField(condition = SqlCondition.LIKE)
@ApiModelProperty(value = "风险点类型")
private String riskPointType;
/**
* 隐患责任部门
*/
@ApiModelProperty(value = "隐患责任部门")
private Long hiddenDangerDept;
/**
* 隐患责任部门
*/
@QueryField(condition = SqlCondition.LIKE)
@ApiModelProperty(value = "隐患责任部门")
private String hiddenDangerDeptName;
/**
* 隐患地点
*/
@QueryField(condition = SqlCondition.LIKE)
@ApiModelProperty(value = "隐患地点")
private String hiddenDangerAddr;
//===================隐患基础信息========================
/**
* 隐患名称
*/
@QueryField(condition = SqlCondition.LIKE)
@ApiModelProperty(value = "隐患名称")
private String hiddenDangerName;
/**
* 隐患类别
*/
@QueryField(condition = SqlCondition.LIKE)
@ApiModelProperty(value = "隐患类别")
private String hiddenDangerType;
/**
* 隐患照片地址
*/
@ApiModelProperty(value = "隐患照片地址")
private String hiddenDangerPic;
/**
* 登记人
*/
@ApiModelProperty(value = "登记人")
private Long registrant;
/**
* 登记人姓名
*/
@QueryField(condition = SqlCondition.LIKE)
@ApiModelProperty(value = "登记人姓名")
private String registrantName;
/**
* 登记时间
*/
@ApiModelProperty(value = "登记时间")
@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
private Date registrantTime;
/**
* 当前处理环节
*/
@QueryField(condition = SqlCondition.LIKE)
@JsonSerialize(nullsUsing = NullSerializer.class)
@ApiModelProperty(value = "当前处理环节")
private String currentOperator;
/**
* 当前环节处理人
*/
@JsonSerialize(nullsUsing = NullSerializer.class)
@ApiModelProperty(value = "当前环节处理人")
private String currentLinkHandler;
//===================判定信息========================
/**
* 判定人
*/
@ApiModelProperty(value = "判定人")
private Long judge;
/**
* 判定人姓名
*/
@QueryField(condition = SqlCondition.LIKE)
@ApiModelProperty(value = "判定人姓名")
private String judgeName;
/**
* 是否是隐患
*/
@ApiModelProperty(value = "是否是隐患")
@QueryField(condition = SqlCondition.EQUAL)
private Integer judgeRes;
/**
* 判定内容
*/
@QueryField(condition = SqlCondition.LIKE)
@ApiModelProperty(value = "判定内容")
private String judgeContext;
//===================核查信息========================
/**
* 隐患等级核查结果
*/
@ApiModelProperty(value = "隐患等级(核查结果)")
private Integer hiddenDangerLevel;
/**
* 核查意见
*/
@QueryField(condition = SqlCondition.LIKE)
@ApiModelProperty(value = "核查意见")
private String checkView;
/**
* 核查治理措施
*/
@QueryField(condition = SqlCondition.LIKE)
@ApiModelProperty(value = "核查治理措施")
private String measures;
/**
* 核查人
*/
@ApiModelProperty(value = "核查人")
private Long checkPeople;
/**
* 核查人姓名
*/
@QueryField(condition = SqlCondition.LIKE)
@ApiModelProperty(value = "核查人姓名")
private String checkPeopleName;
/**
* 核查时间
*/
@ApiModelProperty(value = "核查时间")
@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
private Date checkTime;
//===================整改信息========================
/**
* 整改责任人
*/
@ApiModelProperty(value = "整改责任人")
private Long rectifier;
/**
* 整改责任人姓名
*/
@QueryField(condition = SqlCondition.LIKE)
@ApiModelProperty(value = "整改责任人姓名")
private String rectifierName;
/**
* 整改责任部门ID
*/
@ApiModelProperty(value = "整改责任部门ID")
private Long rectifierDept;
/**
* 整改责任部门名称
*/
@QueryField(condition = SqlCondition.LIKE)
@ApiModelProperty(value = "整改责任部门名称")
private String rectifierDeptName;
/**
* 整改类型立即整改)
*/
@ApiModelProperty(value = "整改类型(立即整改)")
private Integer rectifierType;
/**
* 完成期限
*/
@ApiModelProperty(value = "完成期限")
@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
private Date deadLine;
/**
* 整改通知单号
*/
@ApiModelProperty(value = "整改通知单号")
private Long rectifierId;
//===================隐患整改反馈表========================
/**
* 隐患存在原因
*/
@QueryField(condition = SqlCondition.LIKE)
@ApiModelProperty(value = "隐患存在原因")
private String rectifierReason;
/**
* 治理后的效果图
*/
@ApiModelProperty(value = "治理后的效果图")
private String rectifierPic;
/**
* 反馈时间
*/
@ApiModelProperty(value = "反馈时间")
@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
private Date rectifierTime;
//===================验收信息========================
/**
* 验收结果1完成0未完成
*/
@ApiModelProperty(value = "验收结果(完成,未完成)")
private Integer conclusionRes;
/**
* 验收人
*/
@ApiModelProperty(value = "验收人")
private Long conclusionPeople;
/**
* 验收验收人姓名
*/
@ApiModelProperty(value = "验收验收人姓名")
private String conclusionPeopleName;
/**
* 验收意见
*/
@QueryField(condition = SqlCondition.LIKE)
@ApiModelProperty(value = "验收意见")
private String conclusionView;
/**
* 验收时间
*/
@ApiModelProperty(value = "验收时间")
@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
private Date conclusionTime;
}

30
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/enums/CarMaintenanceTypeEnum.java

@ -0,0 +1,30 @@
package com.hnac.hzims.safeproduct.enums;
/**
* 车辆维保类型枚举类
*
* @author liwen
* @date 2024-01-16
*/
public enum CarMaintenanceTypeEnum {
MAINTAIN("MAINTAIN", "保养"),
REPAIR("REPAIR", "维修");
private final String value;
private final String desc;
CarMaintenanceTypeEnum(String value, String desc) {
this.value = value;
this.desc = desc;
}
public String getValue() {
return value;
}
public String getDesc() {
return desc;
}
}

30
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/enums/DeviceStatusEnum.java

@ -0,0 +1,30 @@
package com.hnac.hzims.safeproduct.enums;
/**
* 特种设备状态枚举类
*
* @author liwen
* @date 2024-01-16
*/
public enum DeviceStatusEnum {
NORMAL("NORMAL", "正常"),
EXPIRED("EXPIRED", "待检修");
private final String value;
private final String desc;
DeviceStatusEnum(String value, String desc) {
this.value = value;
this.desc = desc;
}
public String getValue() {
return value;
}
public String getDesc() {
return desc;
}
}

2
hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/dto/DangerSourceDTO.java → hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/hazard/dto/DangerSourceDTO.java

@ -1,4 +1,4 @@
package com.hnac.hzims.safeproduct.dto; package com.hnac.hzims.safeproduct.hazard.dto;
import com.hnac.hzims.safeproduct.entity.DangerSourceEntity; import com.hnac.hzims.safeproduct.entity.DangerSourceEntity;
import lombok.Data; import lombok.Data;

2
hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/dto/DangerSourcePositionDTO.java → hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/hazard/dto/DangerSourcePositionDTO.java

@ -1,4 +1,4 @@
package com.hnac.hzims.safeproduct.dto; package com.hnac.hzims.safeproduct.hazard.dto;
import com.hnac.hzims.safeproduct.entity.DangerSourcePositionEntity; import com.hnac.hzims.safeproduct.entity.DangerSourcePositionEntity;
import lombok.Data; import lombok.Data;

31
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/hazard/dto/HazardInstanceDTO.java

@ -0,0 +1,31 @@
package com.hnac.hzims.safeproduct.hazard.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.List;
@Data
@ApiModel("危险源库实例化")
@EqualsAndHashCode
public class HazardInstanceDTO implements Serializable {
@ApiModelProperty("所属站点")
private Long deptId;
@ApiModelProperty("所属站点名称")
private String deptName;
@ApiModelProperty("设备编号")
private String emCode;
@ApiModelProperty("设备名称")
private String emName;
@ApiModelProperty("危险源列表")
private List<HazardLibraryDTO> hazardList;
}

15
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/hazard/dto/HazardLibraryDTO.java

@ -0,0 +1,15 @@
package com.hnac.hzims.safeproduct.hazard.dto;
import com.hnac.hzims.safeproduct.hazard.entity.HazardLibraryEntity;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
@Data
@EqualsAndHashCode
@ApiModel(value = "危险源库DTO对象",description = "危险源库DTO对象")
public class HazardLibraryDTO extends HazardLibraryEntity implements Serializable {
}

61
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/hazard/entity/HazardLibraryEntity.java

@ -0,0 +1,61 @@
package com.hnac.hzims.safeproduct.hazard.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.support.QueryField;
import org.springblade.core.mp.support.SqlCondition;
import org.springblade.core.tenant.mp.TenantEntity;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
@TableName("hzims_hazard_library")
@Data
@ApiModel("危险源库")
@EqualsAndHashCode
public class HazardLibraryEntity extends TenantEntity implements Serializable {
@ApiModelProperty(value = "站点类型")
@QueryField(condition = SqlCondition.EQUAL)
@NotNull
private Integer stationType;
@ApiModelProperty("站点类型名称")
@NotNull
private String stationTypeName;
@ApiModelProperty(value = "危险源类型")
@NotNull
@QueryField(condition = SqlCondition.EQUAL)
private String type;
@ApiModelProperty("危险源名称")
@QueryField(condition = SqlCondition.LIKE)
@NotNull
private String name;
@ApiModelProperty("所在部位")
private String position;
@ApiModelProperty(value = "危险因素")
@NotNull
private String dangerEle;
@ApiModelProperty(value = "可能导致的事故")
@NotNull
private String cause;
@ApiModelProperty(value = "措施")
private String measures;
@ApiModelProperty(value = "风险等级 10=稍有危险 20=一般危险 30=显著危险 40=高度危险")
@JsonSerialize(nullsUsing = NullSerializer.class)
@QueryField(condition = SqlCondition.EQUAL)
private Integer level;
}

2
hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/enums/DangerSourceLevelEnum.java → hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/hazard/enums/DangerSourceLevelEnum.java

@ -1,4 +1,4 @@
package com.hnac.hzims.safeproduct.enums; package com.hnac.hzims.safeproduct.hazard.enums;
import org.springblade.core.tool.utils.StringUtil; import org.springblade.core.tool.utils.StringUtil;

2
hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/vo/DangerSourcePositionVO.java → hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/hazard/vo/DangerSourcePositionVO.java

@ -1,4 +1,4 @@
package com.hnac.hzims.safeproduct.vo; package com.hnac.hzims.safeproduct.hazard.vo;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;

5
hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/vo/DangerSourceVO.java → hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/hazard/vo/DangerSourceVO.java

@ -1,7 +1,8 @@
package com.hnac.hzims.safeproduct.vo; package com.hnac.hzims.safeproduct.hazard.vo;
import com.hnac.hzims.safeproduct.entity.DangerSourceEntity; import com.hnac.hzims.safeproduct.entity.DangerSourceEntity;
import com.hnac.hzims.safeproduct.enums.DangerSourceLevelEnum; import com.hnac.hzims.safeproduct.hazard.enums.DangerSourceLevelEnum;
import com.hnac.hzims.safeproduct.hazard.vo.DangerSourcePositionVO;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;

15
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/hazard/vo/HazardLibraryVO.java

@ -0,0 +1,15 @@
package com.hnac.hzims.safeproduct.hazard.vo;
import com.hnac.hzims.safeproduct.hazard.entity.HazardLibraryEntity;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
@Data
@EqualsAndHashCode
@ApiModel(value = "危险源库VO对象",description = "危险源库VO对象")
public class HazardLibraryVO extends HazardLibraryEntity implements Serializable {
}

53
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/entity/DocumentManagement.java

@ -1,16 +1,15 @@
package com.hnac.hzims.safeproduct.management.entity; package com.hnac.hzims.safeproduct.management.entity;
import com.baomidou.mybatisplus.annotation.*; import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
import org.springblade.core.mp.base.BaseEntity;
import java.io.Serializable;
import java.time.LocalDateTime;
/** /**
* <p> * <p>
* 文档管理 * 电站安全标准化文档管理
* </p> * </p>
* *
* @author dfy * @author dfy
@ -20,13 +19,9 @@ import java.time.LocalDateTime;
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@Accessors(chain = true) @Accessors(chain = true)
@TableName("document_management") @TableName("document_management")
public class DocumentManagement implements Serializable { public class DocumentManagement extends BaseEntity{
private static final long serialVersionUID=1L; private static final long serialVersionUID=1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/** /**
* 文档名称 * 文档名称
*/ */
@ -34,41 +29,33 @@ public class DocumentManagement implements Serializable {
private String documentName; private String documentName;
/** /**
* 文档路径 * 电站编码
*/ */
@TableField("document_url") @TableField("station_code")
private String documentUrl; private String stationCode;
/** /**
* 创建人Id * 指标项id
*/ */
@TableField("creator_id") @TableField("indicator_management_id")
private Long creatorId; private String indicatorManagementId;
/** /**
* 创建人名称 * 文档路径
*/
@TableField("creator_name")
private String creatorName;
/**
* 创建时间
*/ */
@TableField("create_time") @TableField("document_url")
private LocalDateTime createTime; private String documentUrl;
/** /**
* 更新时间 * 电站名称
*/ */
@TableField("update_time") @TableField(exist = false)
private LocalDateTime updateTime; private String stationName;
/** /**
* 逻辑删除 * 项目名称
*/ */
@TableLogic @TableField(exist = false)
@TableField("is_deleted") private String productName;
private Integer isDeleted;
} }

14
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/entity/RatingScale.java

@ -27,7 +27,7 @@ public class RatingScale implements Serializable {
/** /**
* 编号 * 编号
*/ */
@TableId(value = "id", type = IdType.AUTO) @TableId(value = "id", type = IdType.ASSIGN_ID)
private Long id; private Long id;
/** /**
@ -49,6 +49,18 @@ public class RatingScale implements Serializable {
private String reviewDescription; private String reviewDescription;
/** /**
* 电站编码
*/
@TableField("station_code")
private String stationCode;
/**
* 评分时间
*/
@TableField("score_time")
private LocalDateTime scoreTime;
/**
* 创建时间 * 创建时间
*/ */
@TableField("create_time") @TableField("create_time")

33
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/entity/SafeStandardNecessary.java

@ -0,0 +1,33 @@
package com.hnac.hzims.safeproduct.management.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springblade.core.mp.base.BaseEntity;
/**
* <p>
* 安全标准必要条件
* </p>
*
* @author zhaiqm
* @since 2023-09-16
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("safe_standard_necessary")
public class SafeStandardNecessary extends BaseEntity {
/**
* 名称
*/
@TableField("name")
private String name;
@TableField(exist = false)
private String check;
}

44
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/entity/SafeStandardResult.java

@ -0,0 +1,44 @@
package com.hnac.hzims.safeproduct.management.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springblade.core.mp.base.BaseEntity;
import java.time.LocalDateTime;
/**
* <p>
* 安全标准必要条件结果
* </p>
*
* @author zhaiqm
* @since 2023-09-16
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("safe_standard_result")
public class SafeStandardResult extends BaseEntity {
/**
* 必要条件id
*/
@TableField("necessary_id")
private Long necessaryId;
/**
* 电站编码
*/
@TableField("station_code")
private String stationCode;
/**
* 评分时间
*/
@TableField("score_time")
private LocalDateTime scoreTime;
}

18
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/entity/TargetManagement.java

@ -5,7 +5,6 @@ import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
import java.io.Serializable;
import java.time.LocalDateTime; import java.time.LocalDateTime;
import java.util.List; import java.util.List;
@ -21,17 +20,21 @@ import java.util.List;
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@Accessors(chain = true) @Accessors(chain = true)
@TableName("target_management") @TableName("target_management")
public class TargetManagement implements Serializable { public class TargetManagement {
private static final long serialVersionUID = 1L;
/** /**
* 编号 * 编号
*/ */
@TableId(value = "id", type = IdType.AUTO) @TableId(value = "id", type = IdType.ASSIGN_ID)
private Long id; private Long id;
/** /**
* 模板id
*/
@TableField("template_id")
private Long templateId;
/**
* 名称 * 名称
*/ */
@TableField("name") @TableField("name")
@ -72,10 +75,11 @@ public class TargetManagement implements Serializable {
*/ */
@TableLogic @TableLogic
@TableField("is_deleted") @TableField("is_deleted")
private Boolean deleted; private Boolean isDeleted;
@TableField(exist = false) @TableField(exist = false)
private List<TargetManagement> children; private List<TargetManagement> children;
@TableField(exist = false)
private List<IndicatorManagement> childrens;
} }

57
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/entity/TargetTemplate.java

@ -0,0 +1,57 @@
package com.hnac.hzims.safeproduct.management.entity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("target_template")
public class TargetTemplate implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.ASSIGN_ID)
private Long id;
/**
* 模板名称
*/
@TableField("template_name")
private String templateName;
/**
* 模板状态 0-未启用1-启用
*/
@TableField("state")
private Integer state;
/**
* 创建时间
*/
@TableField("create_time")
private LocalDateTime createTime;
/**
* 更新时间
*/
@TableField("update_time")
private LocalDateTime updateTime;
/**
* 逻辑删除
*/
@TableLogic
@TableField("is_deleted")
private Boolean isDeleted;
@TableField(exist = false)
private List<TargetManagement> targetManagement;
}

6
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/vo/DocumentManagementQueryVo.java

@ -17,4 +17,10 @@ public class DocumentManagementQueryVo {
*/ */
@TableField("document_name") @TableField("document_name")
private String documentName; private String documentName;
@TableField("station_code")
private String stationCode;
@TableField("indicator_management_id")
private Long indicatorManagementId;
} }

5
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/vo/RatingScaleVo.java

@ -26,4 +26,9 @@ public class RatingScaleVo {
* 评审描述 * 评审描述
*/ */
private String reviewDescription; private String reviewDescription;
/**
* 电站编码
*/
private String stationCode;
} }

19
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/vo/TargetTemplateQueryVo.java

@ -0,0 +1,19 @@
package com.hnac.hzims.safeproduct.management.vo;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
@Data
public class TargetTemplateQueryVo {
/**
* 模板名称
*/
@TableField("template_name")
private String templateName;
/**
* 模板状态 0-未启用1-启用
*/
@TableField("state")
private Integer state;
}

58
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/constants/HazardRiskConstants.java

@ -0,0 +1,58 @@
package com.hnac.hzims.safeproduct.risk.constants;
import java.util.Arrays;
import java.util.List;
/**
* @author ysj
*/
public interface HazardRiskConstants {
String END = "流程结束";
String EXAMINE = "examine";
String REVIEW = "review";
/**
* 风险排查用户
*/
String HAZARD_RISK_KEY = "hazard_risk";
/**
* 风险排查用户
*/
String TROUBLE = "trouble";
/**
* LS 风险评估方法 : L * C/S
*/
Integer LS = 1;
/**
* LEC 风险评估方法 : L * E * C/S
*/
Integer LEC = 2;
/**
* 风险等级 : 1-低风险 2-一般风险 3-较大风险 4-重大风险
*/
List<Long> HAZARD_LEVELS = Arrays.asList(1L,2L,3L,4L);
Integer SIGNIFICANT_RISK = 1;
/**
* 流程步骤 :
* 1 - 危险源排查
* 2 - 排查结果审核
* 3 - 重大风险整改
* 4 - 整改审核
*/
String HAZARD_RISK_NEW_PROPERTY = "defaultExpression";
String HAZARD_RISK_NEW_PROPERTY_1 = "1";
String HAZARD_RISK_NEW_PROPERTY_2 = "2";
String HAZARD_RISK_NEW_PROPERTY_3 = "3";
String HAZARD_RISK_NEW_PROPERTY_4 = "4";
}

25
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/dto/CorrelationDTO.java

@ -0,0 +1,25 @@
package com.hnac.hzims.safeproduct.risk.dto;
import com.hnac.hzims.safeproduct.risk.entity.HazardSource;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.List;
/**
* @author ysj
*/
@Data
@ApiModel("风险点实体类DTO")
@EqualsAndHashCode(callSuper = false)
public class CorrelationDTO {
@ApiModelProperty(value = "作业区域Id")
private Long workId;
@ApiModelProperty(value = "危险源列表")
private List<HazardSource> sources;
}

22
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/dto/HazardRiskProcessDTO.java

@ -0,0 +1,22 @@
package com.hnac.hzims.safeproduct.risk.dto;
import com.hnac.hzims.safeproduct.risk.entity.HazardEstimate;
import com.hnac.hzims.safeproduct.risk.entity.HazardTask;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.List;
/**
* @author ysj
*/
@Data
@ApiModel("风险流程启动实体类")
@EqualsAndHashCode(callSuper = false)
public class HazardRiskProcessDTO extends HazardTask {
@ApiModelProperty(value = "危险源Id集合")
private List<HazardEstimate> estimates;
}

22
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/dto/HazardSourceDTO.java

@ -0,0 +1,22 @@
package com.hnac.hzims.safeproduct.risk.dto;
import com.hnac.hzims.safeproduct.risk.entity.HazardSource;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
* @ClassName HazardSourceDTO
* @description: 风险点DTO
* @author: hx
* @create: 2023-09-18 14:11
* @Version 4.0
**/
@Data
@ApiModel("风险点实体类DTO")
@EqualsAndHashCode(callSuper = false)
public class HazardSourceDTO extends HazardSource implements Serializable {
}

24
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/dto/RiskCheckDTO.java

@ -0,0 +1,24 @@
package com.hnac.hzims.safeproduct.risk.dto;
import com.hnac.hzims.safeproduct.risk.entity.RiskCheckEntity;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
* @ClassName RiskCheckDTO
* @description: 风险检查项DTO
* @author: hx
* @create: 2023-09-19 09:27
* @Version 4.0
**/
@Data
@EqualsAndHashCode
@ApiModel("风险检查项DTO")
public class RiskCheckDTO extends RiskCheckEntity implements Serializable {
}

26
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/entity/Correlation.java

@ -0,0 +1,26 @@
package com.hnac.hzims.safeproduct.risk.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
/**
* @author ysj
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("hzims_risk_work_source_correlation")
public class Correlation extends BaseEntity {
@ApiModelProperty(value = "作业区域ID")
private Long workId;
@ApiModelProperty(value = "风险点Id")
private Long categoryId;
@ApiModelProperty(value = "危险源ID")
private Long sourceId;
}

26
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/entity/HazardCategory.java

@ -0,0 +1,26 @@
package com.hnac.hzims.safeproduct.risk.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
/**
* @author ysj
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("hzims_risk_hazard_category")
public class HazardCategory extends BaseEntity {
@ApiModelProperty(value = "站点类别")
private Integer stationType;
@ApiModelProperty(value = "类别 :构筑物类、金属结构类、设备设施类")
private Integer category;
@ApiModelProperty(value = "危险点")
private String perilPoint;
}

71
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/entity/HazardEstimate.java

@ -0,0 +1,71 @@
package com.hnac.hzims.safeproduct.risk.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
/**
* @author ysj
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("hzims_risk_hazard_estimate")
public class HazardEstimate extends BaseEntity {
@ApiModelProperty(value = "风险任务排查Id")
private Long taskId;
@ApiModelProperty(value = "风险点Id")
private Long categoryId;
@ApiModelProperty(value = "风险等级ID")
private Long levelId;
@ApiModelProperty(value = "风险等级")
private Integer level;
@ApiModelProperty(value = "风险等级名称")
private String levelDesc;
@ApiModelProperty(value = "危险源Id")
private Long sourceId;
@ApiModelProperty(value = "危险源名称")
private String hazardName;
@ApiModelProperty(value = "事故诱因")
private String accidentIncentive;
@ApiModelProperty(value = "导致后果")
private String causeConsequence;
@ApiModelProperty(value = "评价方法 :LS、LEC")
private Integer evaluationMethod;
@ApiModelProperty(value = "L值")
@JsonSerialize(nullsUsing = NullSerializer.class)
private Double lValue;
@ApiModelProperty(value = "E值")
@JsonSerialize(nullsUsing = NullSerializer.class)
private Double eValue;
@ApiModelProperty(value = "cs值")
@JsonSerialize(nullsUsing = NullSerializer.class)
private Double cSValue;
@ApiModelProperty(value = "R/D计算值")
@JsonSerialize(nullsUsing = NullSerializer.class)
private Double rDValue;
@ApiModelProperty(value = "整改描述")
private String rectificationDesc;
@ApiModelProperty(value = "整改附件")
private String rectificationAttachment;
}

41
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/entity/HazardLevel.java

@ -0,0 +1,41 @@
package com.hnac.hzims.safeproduct.risk.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
/**
* @author ysj
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("hzims_risk_hazard_level")
public class HazardLevel extends BaseEntity {
@ApiModelProperty(value = "风险点Id")
private Long categoryId;
@ApiModelProperty(value = "危险源Id")
private Long sourceId;
@ApiModelProperty(value = "危险源名称")
private String hazardName;
@ApiModelProperty(value = "R值上限值")
private Double rMaxValue;
@ApiModelProperty(value = "R值下限值")
private Double rMinValue;
@ApiModelProperty(value = "危险程度 : 极其危险、高度危险、中度危险、轻度危险")
private Integer risk;
@ApiModelProperty(value = "风险等级 : 重大风险、较大风险、一般风险、低风险")
private Integer riskLevel;
@ApiModelProperty(value = "颜色标识 : 红、橙、黄、蓝")
private Integer colour;
}

56
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/entity/HazardSource.java

@ -0,0 +1,56 @@
package com.hnac.hzims.safeproduct.risk.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
import org.springblade.core.mp.support.QueryField;
import org.springblade.core.mp.support.SqlCondition;
/**
* @author ysj
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("hzims_risk_hazard_source")
public class HazardSource extends BaseEntity {
@ApiModelProperty(value = "风险点主键ID")
private Long categoryId;
@ApiModelProperty(value = "危险源")
@QueryField(condition = SqlCondition.LIKE)
private String hazardName;
@ApiModelProperty(value = "事故诱因")
@QueryField(condition = SqlCondition.LIKE)
private String accidentIncentive;
@ApiModelProperty(value = "导致后果")
@QueryField(condition = SqlCondition.LIKE)
private String causeConsequence;
@ApiModelProperty(value = "评价方法 :LS、LEC")
@QueryField(condition = SqlCondition.EQUAL)
private Integer evaluationMethod;
@ApiModelProperty(value = "L上限值")
private Double lUpLimit;
@ApiModelProperty(value = "L下限值")
private Double lDownLimit;
@ApiModelProperty(value = "E上限值")
private Double eUpLimit;
@ApiModelProperty(value = "E下限值")
private Double eDownLimit;
@ApiModelProperty(value = "C/S上限值")
private Double cSUpLimit;
@ApiModelProperty(value = "C/S下限值")
private Double cSDownLimit;
}

55
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/entity/HazardTask.java

@ -0,0 +1,55 @@
package com.hnac.hzims.safeproduct.risk.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
import java.util.Date;
/**
* @author ysj
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("hzims_risk_hazard_task")
public class HazardTask extends BaseEntity {
@ApiModelProperty(value = "工作流实例Id")
private String processInstanceId;
@ApiModelProperty(value = "站点编码")
private String stationCode;
@ApiModelProperty(value = "站点名称")
private String stationName;
@ApiModelProperty(value = "排查任务名称")
private String taskName;
@ApiModelProperty(value = "作业区域Id")
private Long workId;
@ApiModelProperty(value = "负责人")
private Long head;
@ApiModelProperty(value = "排查任务计划开始时间")
private Date planStartTime;
@ApiModelProperty(value = "排查任务计划完成时间")
private Date planEndTime;
@ApiModelProperty(value = "任务实际开始时间")
private Date actStartTime;
@ApiModelProperty(value = "任务实际完成时间")
private Date actEndTime;
@ApiModelProperty(value = "流程步骤名称")
private String processSteps;
@ApiModelProperty(value = "流程步骤人员名称")
private String nextStepOperator;
}

48
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/entity/HazardWork.java

@ -0,0 +1,48 @@
package com.hnac.hzims.safeproduct.risk.entity;
import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
import org.springblade.core.mp.support.QueryField;
/**
* @author ysj
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("hzims_risk_hazard_work")
public class HazardWork extends BaseEntity {
@ApiModelProperty(value = "站点编码")
@QueryField(condition = SqlCondition.EQUAL)
private String stationCode;
@ApiModelProperty(value = "站点名称")
private String stationName;
@ApiModelProperty(value = "作业区域名称")
@QueryField(condition = SqlCondition.LIKE)
private String regionName;
@ApiModelProperty(value = "经度")
private Double longitude;
@ApiModelProperty(value = "经度")
private Double latitude;
@ApiModelProperty(value = "负责人")
@QueryField(condition = SqlCondition.EQUAL)
private Long head;
@ApiModelProperty(value = "监管部门")
@QueryField(condition = SqlCondition.LIKE)
private String regulator;
@ApiModelProperty(value = "分管领导")
@QueryField(condition = SqlCondition.EQUAL)
private Long manage;
}

46
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/entity/RiskCheckEntity.java

@ -0,0 +1,46 @@
package com.hnac.hzims.safeproduct.risk.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.support.QueryField;
import org.springblade.core.mp.support.SqlCondition;
import org.springblade.core.tenant.mp.TenantEntity;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
* @ClassName RiskCheckEntity
* @description:
* @author: hx
* @create: 2023-09-19 09:21
* @Version 4.0
**/
@Data
@ApiModel("风险点检查项")
@EqualsAndHashCode
@TableName("hzims_risk_check")
public class RiskCheckEntity extends TenantEntity implements Serializable {
@ApiModelProperty(value = "风险点Id",required = true)
@QueryField(condition = SqlCondition.EQUAL)
@NotNull
private Long categoryId;
@ApiModelProperty("风险点名称")
@QueryField(condition = SqlCondition.LIKE)
private String categoryName;
@ApiModelProperty("类型")
@QueryField(condition = SqlCondition.EQUAL)
private String type;
@ApiModelProperty(value = "检查项",required = true)
@QueryField(condition = SqlCondition.LIKE)
@NotNull
private String checkItem;
}

29
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/entity/RiskEstimate.java

@ -0,0 +1,29 @@
package com.hnac.hzims.safeproduct.risk.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
/**
* @author ysj
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("hzims_risk_estimate")
public class RiskEstimate extends BaseEntity {
@ApiModelProperty(value = "站点编码")
private String stationCode;
@ApiModelProperty(value = "站点名称")
private String stationName;
@ApiModelProperty(value = "站点类别 :闸门、水库")
private Integer stationType;
@ApiModelProperty(value = "风险评估年度")
private String estimateYear;
}

89
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/entity/RiskEstimatePoint.java

@ -0,0 +1,89 @@
package com.hnac.hzims.safeproduct.risk.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
/**
* @author ysj
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("hzims_risk_estimate_point")
public class RiskEstimatePoint extends BaseEntity {
@ApiModelProperty(value = "风险评估Id")
private Long estimateId;
@ApiModelProperty(value = "风险点Id")
private Long categoryId;
@ApiModelProperty(value = "风险点类别")
private Integer category;
@ApiModelProperty(value = "危险点")
private String perilPoint;
@ApiModelProperty(value = "危险源Id")
private Long sourceId;
@ApiModelProperty(value = "危险源")
private String hazardName;
@ApiModelProperty(value = "事故诱因")
private String accidentIncentive;
@ApiModelProperty(value = "导致后果")
private String causeConsequence;
@ApiModelProperty(value = "评价方法 :LS、LEC")
private Integer evaluationMethod;
@ApiModelProperty(value = "L上限值")
private Double lUpLimit;
@ApiModelProperty(value = "L下限值")
private Double lDownLimit;
@ApiModelProperty(value = "E上限值")
private Double eUpLimit;
@ApiModelProperty(value = "E下限值")
private Double eDownLimit;
@ApiModelProperty(value = "C/S上限值")
private Double cSUpLimit;
@ApiModelProperty(value = "C/S下限值")
private Double cSDownLimit;
@ApiModelProperty(value = "L值")
@JsonSerialize(nullsUsing = NullSerializer.class)
private Double lValue;
@ApiModelProperty(value = "E值")
@JsonSerialize(nullsUsing = NullSerializer.class)
private Double eValue;
@ApiModelProperty(value = "cs值")
@JsonSerialize(nullsUsing = NullSerializer.class)
private Double cSValue;
@ApiModelProperty(value = "R/D计算值")
@JsonSerialize(nullsUsing = NullSerializer.class)
private Double rDValue;
@ApiModelProperty(value = "风险等级Id")
private Long levelId;
@ApiModelProperty(value = "风险等级")
private Integer level;
@ApiModelProperty(value = "等级描述")
private String levelDesc;
}

19
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/feign/HazardRiskClientFallBack.java

@ -0,0 +1,19 @@
package com.hnac.hzims.safeproduct.risk.feign;
import com.hnac.hzims.middle.process.to.ProcessWorkFlowResponse;
import lombok.extern.slf4j.Slf4j;
import org.springblade.core.tool.api.R;
import org.springframework.stereotype.Component;
/**
* @author ysj
*/
@Slf4j
@Component
public class HazardRiskClientFallBack implements IHazardRiskClient {
@Override
public R<Boolean> listener(ProcessWorkFlowResponse processWorkFlowResponse) {
return R.fail("执行失败!");
}
}

25
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/feign/IHazardRiskClient.java

@ -0,0 +1,25 @@
package com.hnac.hzims.safeproduct.risk.feign;
import com.hnac.hzims.middle.process.to.ProcessWorkFlowResponse;
import com.hnac.hzims.safeproduct.Constants;
import org.springblade.core.tool.api.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
/**
* @author ysj
*/
@FeignClient(
value = Constants.APP_NAME,
fallback = HazardRiskClientFallBack.class
)
public interface IHazardRiskClient {
String API_PREFIX = "/feign/hazardRisk";
String PLAN_PROCESS_LISTENER = API_PREFIX + "/listener";
@PostMapping(PLAN_PROCESS_LISTENER)
R<Boolean> listener(@RequestBody ProcessWorkFlowResponse processWorkFlowResponse);
}

29
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/vo/CategorySourceVo.java

@ -0,0 +1,29 @@
package com.hnac.hzims.safeproduct.risk.vo;
import com.hnac.hzims.safeproduct.risk.entity.HazardSource;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* @author ysj
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class CategorySourceVo extends HazardSource {
@ApiModelProperty(value = "站点类型")
private Integer stationType;
@ApiModelProperty(value = "类别 :构筑物类、金属结构类、设备设施类")
private Integer category;
@ApiModelProperty(value = "危险点")
private String perilPoint;
@ApiModelProperty(value = "创建时间")
private Date time;
}

22
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/vo/CorrelationDetailsVo.java

@ -0,0 +1,22 @@
package com.hnac.hzims.safeproduct.risk.vo;
import com.hnac.hzims.safeproduct.risk.entity.HazardSource;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.List;
/**
* @author ysj
*/
@EqualsAndHashCode(callSuper = false)
@Data
public class CorrelationDetailsVo {
@ApiModelProperty(value = "作业区域Id")
private Long workId;
@ApiModelProperty(value = "风险点主键ID")
private List<HazardSource> sources;
}

78
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/vo/ExportEstimateVo.java

@ -0,0 +1,78 @@
package com.hnac.hzims.safeproduct.risk.vo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
/**
* @author ysj
*/
@EqualsAndHashCode(callSuper = false)
@Data
public class ExportEstimateVo implements Serializable {
@ApiModelProperty(value = "序号")
private Integer index;
@ApiModelProperty(value = "站点编码")
private String stationCode;
@ApiModelProperty(value = "站点名称")
private String stationName;
@ApiModelProperty(value = "类别")
private Integer category;
@ApiModelProperty(value = "类别名称")
private String categoryName;
@ApiModelProperty(value = "风险点Id")
private Long perilPointId;
@ApiModelProperty(value = "风险点名称")
private String perilPoint;
@ApiModelProperty(value = "危险源Id")
private Long sourceId;
@ApiModelProperty(value = "危险源名称")
private String hazardName;
@ApiModelProperty(value = "事故诱因")
private String accidentIncentive;
@ApiModelProperty(value = "导致后果")
private String causeConsequence;
@ApiModelProperty(value = "评价方法")
private Integer evaluationMethod;
@ApiModelProperty(value = "评价方法描述")
private String methodName;
@ApiModelProperty(value = "L值")
private Double l;
@ApiModelProperty(value = "E值")
private Double e;
@ApiModelProperty(value = "C/S值")
private Double s;
@ApiModelProperty(value = "R/D值")
private Double r;
@ApiModelProperty(value = "风险等级")
private Integer level;
@ApiModelProperty(value = "风险等级名称")
private String levelName;
@ApiModelProperty(value = "创建时间")
private Date createTime;
}

20
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/vo/HazardDetailsVo.java

@ -0,0 +1,20 @@
package com.hnac.hzims.safeproduct.risk.vo;
import com.hnac.hzims.safeproduct.risk.entity.HazardCategory;
import com.hnac.hzims.safeproduct.risk.entity.HazardSource;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.List;
/**
* @author ysj
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class HazardDetailsVo extends HazardCategory {
@ApiModelProperty(value = "风险点主键ID")
private List<HazardSource> sources;
}

32
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/vo/HazardEstimateVo.java

@ -0,0 +1,32 @@
package com.hnac.hzims.safeproduct.risk.vo;
import com.hnac.hzims.safeproduct.risk.entity.HazardEstimate;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* @author ysj
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class HazardEstimateVo extends HazardEstimate {
@ApiModelProperty(value = "L上限值")
private Double lUpLimit;
@ApiModelProperty(value = "L下限值")
private Double lDownLimit;
@ApiModelProperty(value = "E上限值")
private Double eUpLimit;
@ApiModelProperty(value = "E下限值")
private Double eDownLimit;
@ApiModelProperty(value = "C/S上限值")
private Double cSUpLimit;
@ApiModelProperty(value = "C/S下限值")
private Double cSDownLimit;
}

27
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/vo/HazardTaskVo.java

@ -0,0 +1,27 @@
package com.hnac.hzims.safeproduct.risk.vo;
import com.hnac.hzims.safeproduct.risk.entity.HazardEstimate;
import com.hnac.hzims.safeproduct.risk.entity.HazardTask;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
import java.util.List;
/**
* @author ysj
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class HazardTaskVo extends HazardTask {
@ApiModelProperty("开始时间")
private Date startTime;
@ApiModelProperty("结束时间")
private Date endTime;
@ApiModelProperty("风险评估对象")
private List<HazardEstimate> estimates;
}

48
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/vo/PersonalCheckItemVO.java

@ -0,0 +1,48 @@
package com.hnac.hzims.safeproduct.risk.vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
@Data
@EqualsAndHashCode
@ApiModel("个人排查项")
public class PersonalCheckItemVO implements Serializable {
@ApiModelProperty(value = "负责人ID")
private Long userId;
@ApiModelProperty(value = "负责人名称")
private String userName;
@ApiModelProperty(value = "区域ID")
private Long areaId;
@ApiModelProperty(value = "区域")
private String areaName;
@ApiModelProperty(value = "风险点主键ID")
private Long categoryId;
@ApiModelProperty(value = "风险点")
private String categoryName;
@ApiModelProperty(value = "危险源ID")
private Long hazardId;
@ApiModelProperty(value = "危险源")
private String hazardName;
@ApiModelProperty(value = "事故诱因")
private String accidentIncentive;
@ApiModelProperty(value = "导致后果")
private String causeConsequence;
@ApiModelProperty(value = "评价方法 :LS、LEC")
private Integer evaluationMethod;
}

42
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/vo/SourceVo.java

@ -0,0 +1,42 @@
package com.hnac.hzims.safeproduct.risk.vo;
import com.hnac.hzims.safeproduct.risk.entity.HazardSource;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.List;
/**
* @author ysj
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class SourceVo extends HazardSource {
@ApiModelProperty
private Long workId;
@ApiModelProperty
private List<Long> sourceIds;
@ApiModelProperty(value = "站点类别")
private Integer stationType;
@ApiModelProperty(value = "类别 :构筑物类、金属结构类、设备设施类")
private Integer category;
@ApiModelProperty(value = "危险点")
private String perilPoint;
@ApiModelProperty(value = "风险评价方法")
private String estimateMethod;
@ApiModelProperty(value = "类别名称")
private String categoryName;
@ApiModelProperty(value = "风险评价方法名称")
private String estimateMethodName;
}

29
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/vo/StationEstimateVo.java

@ -0,0 +1,29 @@
package com.hnac.hzims.safeproduct.risk.vo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.List;
/**
* @author ysj
*/
@EqualsAndHashCode(callSuper = false)
@Data
public class StationEstimateVo implements Serializable {
@ApiModelProperty(value = "年份")
private String year;
@ApiModelProperty(value = "站点编码")
private String stationCode;
@ApiModelProperty(value = "站点名称")
private String stationName;
@ApiModelProperty(value = "评估记录列表")
private List<ExportEstimateVo> exportEstimates;
}

25
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/vo/StationRiskLevelVo.java

@ -0,0 +1,25 @@
package com.hnac.hzims.safeproduct.risk.vo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* @author ysj
*/
@EqualsAndHashCode(callSuper = false)
@Data
public class StationRiskLevelVo {
@ApiModelProperty("站点编码")
private String stationCode;
@ApiModelProperty("站点名称")
private String stationName;
@ApiModelProperty("风险等级")
private Long level;
@ApiModelProperty("风险等级名称")
private Long levelName;
}

26
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/wrapper/HazardSourceWrapper.java

@ -0,0 +1,26 @@
package com.hnac.hzims.safeproduct.risk.wrapper;
import com.hnac.hzims.safeproduct.risk.entity.HazardSource;
import com.hnac.hzims.safeproduct.risk.vo.SourceVo;
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
/**
* @ClassName HazardSourceWrapper
* @description:
* @author: hx
* @create: 2023-09-18 14:21
* @Version 4.0
**/
public class HazardSourceWrapper extends BaseEntityWrapper<HazardSource, SourceVo> {
public static HazardSourceWrapper build() {
return new HazardSourceWrapper();
}
@Override
public SourceVo entityVO(HazardSource entity) {
SourceVo sourceVo = BeanUtil.copy(entity, SourceVo.class);
return sourceVo;
}
}

33
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/wrapper/RiskCheckWrapper.java

@ -0,0 +1,33 @@
package com.hnac.hzims.safeproduct.risk.wrapper;
import com.hnac.hzims.safeproduct.risk.entity.RiskCheckEntity;
import com.hnac.hzims.safeproduct.vo.RiskCheckVO;
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import org.springblade.system.user.cache.UserCache;
import org.springblade.system.user.entity.User;
import java.util.Optional;
/**
* @ClassName RiskCheckWrapper
* @description:
* @author: hx
* @create: 2023-09-19 09:43
* @Version 4.0
**/
public class RiskCheckWrapper extends BaseEntityWrapper<RiskCheckEntity, RiskCheckVO> {
public static RiskCheckWrapper build() {
return new RiskCheckWrapper();
}
@Override
public RiskCheckVO entityVO(RiskCheckEntity entity) {
RiskCheckVO checkVO = BeanUtil.copy(entity, RiskCheckVO.class);
checkVO.setCreatorName(Optional.ofNullable(entity.getCreateUser()).map(UserCache::getUser).map(User::getName).orElse(null));
checkVO.setUpdateUserName(Optional.ofNullable(entity.getUpdateUser()).map(UserCache::getUser).map(User::getName).orElse(null));
return checkVO;
}
}

44
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/riskhazards/entity/ControlLevel.java

@ -0,0 +1,44 @@
package com.hnac.hzims.safeproduct.riskhazards.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springblade.core.mp.base.BaseEntity;
/**
* <p>
* 管控级别定义表
* </p>
*
* @author zhaiqm
* @since 2023-09-13
*/
@Data
@TableName("control_level")
public class ControlLevel extends BaseEntity {
/**
* 管控级别
*/
@TableField("level_desc")
private String levelDesc;
/**
* 风险等级
*/
@TableField("risk_level_id")
private Long riskLevelId;
/**
* 到位人员
*/
@TableField("in_place_op")
private String inPlaceOp;
/**
* 管理人员
*/
@TableField("manage_op")
private String manageOp;
}

52
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/riskhazards/entity/DangerSourceInfo.java

@ -0,0 +1,52 @@
package com.hnac.hzims.safeproduct.riskhazards.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springblade.core.mp.base.BaseEntity;
/**
* <p>
* 危险源信息
* </p>
*
* @author zhaiqm
* @since 2023-09-15
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("danger_source_info")
public class DangerSourceInfo extends BaseEntity {
/**
* 危险源名称
*/
@TableField("danger_source_name")
private String dangerSourceName;
/**
* 危险源分类
*/
@TableField("danger_source_type")
private String dangerSourceType;
/**
* 风险点id
*/
@TableField("risk_point_id")
private Long riskPointId;
/**
* 责任人
*/
@TableField("direct_user")
private Long directUser;
/**
* 责任部门
*/
@TableField("direct_dept")
private Long directDept;
}

2
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/hiddendanger/entity/HiddenDanger.java → hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/riskhazards/entity/HiddenDanger.java

@ -1,4 +1,4 @@
package com.hnac.hzims.safeproduct.hiddendanger.entity; package com.hnac.hzims.safeproduct.riskhazards.entity;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;

59
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/riskhazards/entity/RiskHazardsScreening.java

@ -0,0 +1,59 @@
package com.hnac.hzims.safeproduct.riskhazards.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springblade.core.mp.base.BaseEntity;
import org.springblade.core.tool.utils.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//风险隐患排查表
@Data
@TableName("risk_hazards_screening")
public class RiskHazardsScreening extends BaseEntity{
@ApiModelProperty("项目编码")
private String project;//
@ApiModelProperty("电站编码")
private String stationCode;
@ApiModelProperty("电站名称")
private String stationName;
@ApiModelProperty("项目名称")
private String projectName;
//企业职工伤亡事故标准 casualty_accident 字典
@ApiModelProperty("隐患类型")
private String casualtyAccident;
@ApiModelProperty("隐患部位")
private String dangerArea;
@ApiModelProperty("隐患内容")
private String dangerContent;
@ApiModelProperty("隐患等级")
private String dangerLevel;
@ApiModelProperty("责任人")
private String dutyPerson;
@ApiModelProperty("责任人电话")
private String dutyPhone;
@ApiModelProperty("整改措施")
private String correctiveMeasure;
@ApiModelProperty("整改时间")
@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
private Date correctiveDate;
@ApiModelProperty("是否整改")
private Integer corrective;
}

69
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/riskhazards/entity/RiskInfo.java

@ -0,0 +1,69 @@
package com.hnac.hzims.safeproduct.riskhazards.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
/**
* <p>
* 风险信息表
* </p>
*
* @author zhaiqm
* @since 2023-09-01
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("risk_info")
public class RiskInfo implements Serializable {
private static final long serialVersionUID=1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 矩阵ID
*/
@TableField("matrix_id")
private Long matrixId;
/**
* 最小值
*/
@TableField("risk_value_min")
private Integer riskValueMin;
/**
* 最大值
*/
@TableField("risk_value_max")
private Integer riskValueMax;
/**
* 可能性
*/
@TableField("risk_level")
private String riskLevel;
/**
* 颜色
*/
@TableField("color")
private String color;
/**
* 备注
*/
@TableField("remark")
private String remark;
}

55
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/riskhazards/entity/RiskMatrixX.java

@ -0,0 +1,55 @@
package com.hnac.hzims.safeproduct.riskhazards.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
/**
* <p>
* 风险矩阵X表
* </p>
*
* @author zhaiqm
* @since 2023-09-01
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("risk_matrix_x")
public class RiskMatrixX implements Serializable {
private static final long serialVersionUID=1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 矩阵ID
*/
@TableField("matrix_id")
private Long matrixId;
/**
*
*/
@TableField("risk_value_x")
private Integer riskValueX;
/**
* 可能性
*/
@TableField("happen_possible")
private String happenPossible;
/**
* 发生频率
*/
@TableField("happen_rate")
private String happenRate;
}

51
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/riskhazards/entity/RiskMatrixY.java

@ -0,0 +1,51 @@
package com.hnac.hzims.safeproduct.riskhazards.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
/**
* <p>
* 风险矩阵Y表
* </p>
*
* @author zhaiqm
* @since 2023-09-01
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("risk_matrix_y")
public class RiskMatrixY implements Serializable {
private static final long serialVersionUID=1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 矩阵ID
*/
@TableField("matrix_id")
private Long matrixId;
/**
*
*/
@TableField("risk_value_y")
private Integer riskValueY;
/**
* 可能损失
*/
@TableField("possible_loss")
private String possibleLoss;
}

54
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/riskhazards/entity/RiskPointInfo.java

@ -0,0 +1,54 @@
package com.hnac.hzims.safeproduct.riskhazards.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springblade.core.mp.base.BaseEntity;
/**
* <p>
* 风险点信息表
* </p>
*
* @author zhaiqm
* @since 2023-09-14
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("risk_point_info")
public class RiskPointInfo extends BaseEntity {
/**
* 管控级别
*/
@TableField("risk_point_name")
private String riskPointName;
/**
* 电站编码
*/
@TableField("station_code")
private String stationCode;
/**
* 风险等级
*/
@TableField("risk_level_id")
private Long riskLevelId;
/**
* 作业区域
*/
@TableField("work_area_id")
private Long workAreaId;
/**
* 事故分类
*/
@TableField("casualty_accident")
private String casualtyAccident;
}

7
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/workarea/entity/WorkArea.java → hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/riskhazards/entity/WorkArea.java

@ -1,4 +1,4 @@
package com.hnac.hzims.safeproduct.workarea.entity; package com.hnac.hzims.safeproduct.riskhazards.entity;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
@ -13,7 +13,7 @@ import lombok.experimental.Accessors;
@Accessors(chain = true) @Accessors(chain = true)
@TableName("work_area") @TableName("work_area")
public class WorkArea { public class WorkArea {
@TableId(value = "id", type = IdType.AUTO) @TableId(value = "id", type = IdType.ASSIGN_ID)
private Long id; private Long id;
/** /**
@ -46,9 +46,12 @@ public class WorkArea {
@TableField("area_range") @TableField("area_range")
private String areaRange; private String areaRange;
@TableField(exist = false)
private String directOpName; private String directOpName;
@TableField(exist = false)
private String departName; private String departName;
@TableField(exist = false)
private String leadOpName; private String leadOpName;
} }

8
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/riskhazards/vo/ControlLevelQueryVo.java

@ -0,0 +1,8 @@
package com.hnac.hzims.safeproduct.riskhazards.vo;
import com.hnac.hzims.safeproduct.riskhazards.entity.ControlLevel;
import lombok.Data;
@Data
public class ControlLevelQueryVo extends ControlLevel {
}

8
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/riskhazards/vo/DangerSourceInfoQueryVo.java

@ -0,0 +1,8 @@
package com.hnac.hzims.safeproduct.riskhazards.vo;
import com.hnac.hzims.safeproduct.riskhazards.entity.DangerSourceInfo;
import lombok.Data;
@Data
public class DangerSourceInfoQueryVo extends DangerSourceInfo {
}

2
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/hiddendanger/vo/HiddenDangerQueryVo.java → hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/riskhazards/vo/HiddenDangerQueryVo.java

@ -1,4 +1,4 @@
package com.hnac.hzims.safeproduct.hiddendanger.vo; package com.hnac.hzims.safeproduct.riskhazards.vo;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data; import lombok.Data;

10
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/riskhazards/vo/RiskHazardsScreeningVo.java

@ -0,0 +1,10 @@
package com.hnac.hzims.safeproduct.riskhazards.vo;
import com.hnac.hzims.safeproduct.riskhazards.entity.RiskHazardsScreening;
import lombok.Data;
@Data
public class RiskHazardsScreeningVo extends RiskHazardsScreening {
String createUserName;
String casualtyAccidentName;//类型名
}

7
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/riskhazards/vo/RiskInfoQueryVo.java

@ -0,0 +1,7 @@
package com.hnac.hzims.safeproduct.riskhazards.vo;
import lombok.Data;
@Data
public class RiskInfoQueryVo {
}

8
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/riskhazards/vo/RiskMatrixXQueryVo.java

@ -0,0 +1,8 @@
package com.hnac.hzims.safeproduct.riskhazards.vo;
import lombok.Data;
@Data
public class RiskMatrixXQueryVo {
}

7
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/riskhazards/vo/RiskMatrixYQueryVo.java

@ -0,0 +1,7 @@
package com.hnac.hzims.safeproduct.riskhazards.vo;
import lombok.Data;
@Data
public class RiskMatrixYQueryVo {
}

8
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/riskhazards/vo/RiskPointInfoQueryVo.java

@ -0,0 +1,8 @@
package com.hnac.hzims.safeproduct.riskhazards.vo;
import com.hnac.hzims.safeproduct.riskhazards.entity.RiskPointInfo;
import lombok.Data;
@Data
public class RiskPointInfoQueryVo extends RiskPointInfo {
}

2
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/workarea/vo/WorkAreaQueryVo.java → hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/riskhazards/vo/WorkAreaQueryVo.java

@ -1,4 +1,4 @@
package com.hnac.hzims.safeproduct.workarea.vo; package com.hnac.hzims.safeproduct.riskhazards.vo;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data; import lombok.Data;

4
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/statistic/Constants.java

@ -0,0 +1,4 @@
package com.hnac.hzims.safeproduct.statistic;
public interface Constants {
}

31
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/statistic/vo/DangerRiskScatterVO.java

@ -0,0 +1,31 @@
package com.hnac.hzims.safeproduct.statistic.vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
* @ClassName DangerRiskScatterVO
* @description:
* @author: hx
* @create: 2023-09-20 10:20
* @Version 4.0
**/
@Data
@EqualsAndHashCode
@ApiModel("隐患分布统计")
public class DangerRiskScatterVO implements Serializable {
@ApiModelProperty("统计年月")
private String yearAndMonth;
@ApiModelProperty("隐患等级")
private String hiddenDangerLevel;
@ApiModelProperty("隐患个数")
private Integer hiddenDangerCount;
}

34
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/statistic/vo/RiskDangerAccidentMonthCountVO.java

@ -0,0 +1,34 @@
package com.hnac.hzims.safeproduct.statistic.vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
* @ClassName RiskDangerAccidentMonthCount
* @description:
* @author: hx
* @create: 2023-09-20 10:31
* @Version 4.0
**/
@ApiModel("风险/隐患/事故月份统计")
@Data
@EqualsAndHashCode
public class RiskDangerAccidentMonthCountVO implements Serializable {
@ApiModelProperty("年月")
private String yearAndMonth;
@ApiModelProperty("风险个数")
private Integer riskCount;
@ApiModelProperty("隐患个数")
private Integer dangerCount;
@ApiModelProperty("事故个数")
private Integer accidentCount;
}

38
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/statistic/vo/RiskDangerStatisticVO.java

@ -0,0 +1,38 @@
package com.hnac.hzims.safeproduct.statistic.vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.List;
/**
* @ClassName RiskDangerStatisticVO
* @description: 首页-风险隐患模块返回数据
* @author: hx
* @create: 2023-09-20 09:43
* @Version 4.0
**/
@Data
@ApiModel("风险隐患模块返回数据")
@EqualsAndHashCode
public class RiskDangerStatisticVO implements Serializable {
@ApiModelProperty("风险等级站点统计")
private List<StationRiskStatisticVO> stationRiskStatistics;
@ApiModelProperty("本月风险辨识评价数")
private Integer riskCheckMonthCount;
@ApiModelProperty("本月隐患排查数")
private Integer dangerCheckMonthCount;
@ApiModelProperty("今日新增隐患数")
private Integer dangerAddDailyCount;
@ApiModelProperty("本月各级隐患分布统计")
private List<DangerRiskScatterVO> riskScatterCurrentMonth;
}

26
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/statistic/vo/RiskInnerVO.java

@ -0,0 +1,26 @@
package com.hnac.hzims.safeproduct.statistic.vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
* @author ysj
*/
@Data
@ApiModel("电站风险/隐患统计")
@EqualsAndHashCode
public class RiskInnerVO implements Serializable {
@ApiModelProperty("风险等级:1-低风险 2-一般风险 3-较大风险 4-重大风险")
private Integer riskLevel;
@ApiModelProperty("风险个数")
private Integer riskCount;
@ApiModelProperty("隐患个数")
private Integer innerCount;
}

29
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/statistic/vo/StationRiskStatisticVO.java

@ -0,0 +1,29 @@
package com.hnac.hzims.safeproduct.statistic.vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.List;
/**
* @ClassName StationRiskStatisticVO
* @description:
* @author: hx
* @create: 2023-09-20 09:50
* @Version 4.0
**/
@Data
@EqualsAndHashCode
@ApiModel("站点风险统计一览")
public class StationRiskStatisticVO implements Serializable {
@ApiModelProperty("风险等级")
private Long riskLevel;
@ApiModelProperty("站点名称集合")
private List<String> stations;
}

3
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/vo/CarMaintenanceDetailVO.java

@ -58,4 +58,7 @@ public class CarMaintenanceDetailVO {
@ApiModelProperty("车牌号") @ApiModelProperty("车牌号")
private String plateNumber; private String plateNumber;
@ApiModelProperty("维保类型")
private String maintenanceType;
} }

3
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/vo/ConferenceRecordDetailVO.java

@ -14,6 +14,9 @@ import java.util.Date;
@ApiModel(value = "会议记录表VO类") @ApiModel(value = "会议记录表VO类")
public class ConferenceRecordDetailVO { public class ConferenceRecordDetailVO {
@ApiModelProperty("编码")
private String code;
@ApiModelProperty("会议实际开始时间") @ApiModelProperty("会议实际开始时间")
private Date actualStartTime; private Date actualStartTime;

170
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/vo/HiddenDangerBaseVo.java

@ -0,0 +1,170 @@
package com.hnac.hzims.safeproduct.vo;
import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.support.QueryField;
import org.springblade.core.tenant.mp.TenantEntity;
import org.springblade.core.tool.utils.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;
/**
* Created by ty 2023/9/18 10:16
*/
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "隐患基础信息", description = "隐患基础信息")
public class HiddenDangerBaseVo extends TenantEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 隐患编码
*/
@QueryField(condition = SqlCondition.LIKE)
@ApiModelProperty(value = "隐患编码")
private String code;
/**
* 平台taskId
*/
@ApiModelProperty(value = "平台任务Id")
private String taskId;
/**
* 流程实例
*/
@ApiModelProperty(value = "流程实例")
private String processInstanceId;
//===================风险点基础信息========================
/**
* 站点编码
*/
@ApiModelProperty(value = "站点编码")
private String stationCode;
/**
* 风险点Id
*/
@ApiModelProperty(value = "风险点Id")
private String riskPointId;
/**
* 风险点名称
*/
@ApiModelProperty(value = "风险点名称")
private String riskPointName;
/**
* 排查项目
*/
@ApiModelProperty(value = "排查项目")
private String investigation;
/**
* 风险点类型
*/
@ApiModelProperty(value = "风险点类型")
private String riskPointType;
/**
* 隐患责任部门
*/
@ApiModelProperty(value = "隐患责任部门")
private String hiddenDangerDept;
/**
* 隐患责任部门
*/
@ApiModelProperty(value = "隐患责任部门")
private String hiddenDangerDeptName;
/**
* 隐患地点
*/
@ApiModelProperty(value = "隐患地点")
private String hiddenDangerAddr;
//===================隐患基础信息========================
/**
* 隐患名称
*/
@ApiModelProperty(value = "隐患名称")
private String hiddenDangerName;
/**
* 隐患类别
*/
@ApiModelProperty(value = "隐患类别")
private String hiddenDangerType;
/**
* 隐患照片地址
*/
@ApiModelProperty(value = "隐患照片地址")
private String hiddenDangerPic;
/**
* 登记人
*/
@ApiModelProperty(value = "登记人")
private String registrant;
/**
* 登记人姓名
*/
@ApiModelProperty(value = "登记人姓名")
private String registrantName;
/**
* 登记时间
*/
@ApiModelProperty(value = "登记时间")
@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
private Date registrantTime;
/**
* 登记时间
*/
@ApiModelProperty(value = "登记时间")
@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
private Date registrantStartTime;
/**
* 登记时间
*/
@ApiModelProperty(value = "登记时间")
@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
private Date registrantEndTime;
/**
* 当前处理环节
*/
@JsonSerialize(nullsUsing = NullSerializer.class)
@ApiModelProperty(value = "当前处理环节")
private String currentOperator;
/**
* 当前环节处理人
*/
@JsonSerialize(nullsUsing = NullSerializer.class)
@ApiModelProperty(value = "当前环节处理人")
private String currentLinkHandler;
//===================判定信息========================
/**
* 判定人
*/
@ApiModelProperty(value = "判定人")
private String judge;
/**
* 判定人姓名
*/
@ApiModelProperty(value = "判定人姓名")
private String judgeName;
/**
* 判定结果
*/
@ApiModelProperty(value = "判定结果")
private String judgeRes;
/**
* 判定结果
*/
@ApiModelProperty(value = "判定结果")
private String judgeContext;
}

69
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/vo/HiddenDangerCheckVo.java

@ -0,0 +1,69 @@
package com.hnac.hzims.safeproduct.vo;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tool.utils.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
* Created by ty 2023/9/18 10:16
*/
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "隐患核查信息", description = "隐患核查信息")
public class HiddenDangerCheckVo extends HiddenDangerBaseVo {
//===================核查信息========================
/**
* 隐患等级核查结果1.低风险2一般风险3较大风险4重大风险
*/
@ApiModelProperty(value = "隐患等级(核查结果)")
private Integer hiddenDangerLevel;
/**
* 核查意见
*/
@ApiModelProperty(value = "核查意见")
private String checkView;
/**
* 核查治理措施
*/
@ApiModelProperty(value = "核查治理措施")
private String measures;
/**
* 核查人
*/
@ApiModelProperty(value = "核查人")
private Integer checkPeople;
/**
* 核查人姓名
*/
@ApiModelProperty(value = "核查人姓名")
private String checkPeopleName;
/**
* 核查时间
*/
@ApiModelProperty(value = "核查时间")
@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
private Date checkTime;
/**
* 核查时间
*/
@ApiModelProperty(value = "核查开始时间")
@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
private Date checkStartTime;
/**
* 核查时间
*/
@ApiModelProperty(value = "核查结束时间")
@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
private Date checkEndTime;
}

62
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/vo/HiddenDangerConclusionVo.java

@ -0,0 +1,62 @@
package com.hnac.hzims.safeproduct.vo;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tool.utils.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
* Created by ty 2023/9/18 10:16
*/
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "隐患验收信息", description = "隐患验收信息")
public class HiddenDangerConclusionVo extends HiddenDangerBaseVo {
/**
* 验收结果完成未完成
*/
@ApiModelProperty(value = "验收结果(完成,未完成)")
private Integer conclusionRes;
/**
* 验收人
*/
@ApiModelProperty(value = "验收人")
private String conclusionPeople;
/**
* 验收验收人姓名
*/
@ApiModelProperty(value = "验收验收人姓名")
private String conclusionPeopleName;
/**
* 验收意见
*/
@ApiModelProperty(value = "验收意见")
private String conclusionView;
/**
* 验收时间
*/
@ApiModelProperty(value = "验收时间")
@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
private Date conclusionTime;
/**
* 验收时间
*/
@ApiModelProperty(value = "验收时间")
@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
private Date conclusionStartTime;
/**
* 验收时间
*/
@ApiModelProperty(value = "验收时间")
@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
private Date conclusionEndTime;
}

104
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/vo/HiddenDangerRectifierVo.java

@ -0,0 +1,104 @@
package com.hnac.hzims.safeproduct.vo;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tool.utils.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
* Created by ty 2023/9/18 10:16
*/
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "隐患整改信息", description = "隐患整改信息")
public class HiddenDangerRectifierVo extends HiddenDangerBaseVo {
/**
* 整改责任人
*/
@ApiModelProperty(value = "整改责任人")
private Integer rectifier;
/**
* 整改责任人姓名
*/
@ApiModelProperty(value = "整改责任人姓名")
private String rectifierName;
/**
* 整改责任部门ID
*/
@ApiModelProperty(value = "整改责任部门ID")
private Integer rectifierDept;
/**
* 整改责任部门名称
*/
@ApiModelProperty(value = "整改责任部门名称")
private String rectifierDeptName;
/**
* 整改类型立即整改)
*/
@ApiModelProperty(value = "整改类型(立即整改)1立即整改、2停产停业整改、3限期整改")
private Integer rectifierType;
/**
* 完成期限
*/
@ApiModelProperty(value = "完成期限")
@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
private Date deadLine;
/**
* 反馈时间
*/
@ApiModelProperty(value = "期限开始时间")
@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
private Date deadLineStartTime;
/**
* 反馈时间
*/
@ApiModelProperty(value = "期限结束时间")
@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
private Date deadLineEndTime;
/**
* 整改通知单号
*/
@ApiModelProperty(value = "整改通知单号")
private Long rectifierId;
//===================隐患整改反馈表========================
/**
* 隐患存在原因
*/
@ApiModelProperty(value = "隐患存在原因")
private String rectifierReason;
/**
* 治理后的效果图
*/
@ApiModelProperty(value = "治理后的效果图")
private String rectifierPic;
/**
* 反馈时间
*/
@ApiModelProperty(value = "反馈时间")
@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
private Date rectifierTime;
/**
* 反馈时间
*/
@ApiModelProperty(value = "反馈开始时间")
@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
private Date rectifierStartTime;
/**
* 反馈时间
*/
@ApiModelProperty(value = "反馈结束时间")
@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
private Date rectifierEndTime;
}

38
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/vo/InnerDangerVo.java

@ -0,0 +1,38 @@
package com.hnac.hzims.safeproduct.vo;
import com.hnac.hzims.safeproduct.entity.InnerDangerEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
* Created by ty 2023/9/18 10:16
*/
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "隐患信息表", description = "隐患信息表")
public class InnerDangerVo extends InnerDangerEntity implements Serializable {
/**
* 判定人
*/
@ApiModelProperty(value = "判定人")
private String judgeFlow;
/**
* 核查人
*/
@ApiModelProperty(value = "核查人")
private String checkPeopleFlow;
/**
* 整改责任人
*/
@ApiModelProperty(value = "整改责任人")
private String rectifierFlow;
/**
* 验收人
*/
@ApiModelProperty(value = "验收人")
private String conclusionPeopleFlow;
}

29
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/vo/RiskCheckVO.java

@ -0,0 +1,29 @@
package com.hnac.hzims.safeproduct.vo;
import com.hnac.hzims.safeproduct.risk.entity.RiskCheckEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
* @ClassName RiskCheckVO
* @description: 风险点检查项VO
* @author: hx
* @create: 2023-09-19 09:28
* @Version 4.0
**/
@Data
@EqualsAndHashCode
@ApiModel("风险点检查项VO")
public class RiskCheckVO extends RiskCheckEntity implements Serializable {
@ApiModelProperty("创建人名称")
private String creatorName;
@ApiModelProperty("更新人名称")
private String updateUserName;
}

8
hzims-service-api/ticket-api/src/main/java/com/hnac/hzims/ticket/repair/entity/WorkTaskEntity.java

@ -1,12 +1,19 @@
package com.hnac.hzims.ticket.repair.entity; package com.hnac.hzims.ticket.repair.entity;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity; import org.springblade.core.tenant.mp.TenantEntity;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date; import java.util.Date;
@ -95,4 +102,5 @@ public class WorkTaskEntity extends TenantEntity {
@ApiModelProperty(value = "创建机构名称") @ApiModelProperty(value = "创建机构名称")
private String deptName; private String deptName;
} }

5
hzims-service-api/ticket-api/src/main/java/com/hnac/hzims/ticket/repair/vo/WorkTaskContentVO.java

@ -13,6 +13,9 @@ public class WorkTaskContentVO {
private String location; private String location;
@ApiModelProperty(value = "工作内容") @ApiModelProperty(value = "工作内容")
private Integer content; private String content;
@ApiModelProperty(value = "下标")
private Integer $index;
} }

24
hzims-service-api/ticket-api/src/main/java/com/hnac/hzims/ticket/repair/vo/WorkTaskPreviewVO.java

@ -1,9 +1,13 @@
package com.hnac.hzims.ticket.repair.vo; package com.hnac.hzims.ticket.repair.vo;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hnac.hzims.ticket.repair.entity.WorkTaskEntity; import com.hnac.hzims.ticket.repair.entity.WorkTaskEntity;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/** /**
* @author ysj * @author ysj
@ -12,8 +16,23 @@ import lombok.EqualsAndHashCode;
@Data @Data
public class WorkTaskPreviewVO extends WorkTaskEntity { public class WorkTaskPreviewVO extends WorkTaskEntity {
@ApiModelProperty(value = "机构名称") @ApiModelProperty("创建人")
private String deptName; private Long userId;
@ApiModelProperty("创建部门")
private Long deptId;
@ApiModelProperty("创建时间")
@DateTimeFormat(
pattern = "yyyy-MM-dd HH:mm:ss"
)
@JsonFormat(
pattern = "yyyy-MM-dd HH:mm:ss"
)
private Date time;
@ApiModelProperty(value = "单位")
private String company;
@ApiModelProperty(value = "班组成员数量") @ApiModelProperty(value = "班组成员数量")
private Integer groupCount; private Integer groupCount;
@ -45,7 +64,6 @@ public class WorkTaskPreviewVO extends WorkTaskEntity {
@ApiModelProperty(value = "签发时间: 分") @ApiModelProperty(value = "签发时间: 分")
private Integer createMin; private Integer createMin;
@ApiModelProperty(value = "开票处理时间: 年") @ApiModelProperty(value = "开票处理时间: 年")
private Integer headYear; private Integer headYear;

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save