ty
11 months ago
301 changed files with 10183 additions and 1380 deletions
@ -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; |
||||
|
||||
} |
@ -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; |
||||
} |
@ -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; |
||||
|
||||
|
||||
} |
@ -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; |
||||
} |
||||
} |
@ -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; |
||||
} |
||||
} |
@ -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 lombok.Data; |
@ -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 lombok.Data; |
@ -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; |
||||
|
||||
} |
@ -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 { |
||||
|
||||
} |
@ -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; |
||||
|
||||
} |
@ -1,4 +1,4 @@
|
||||
package com.hnac.hzims.safeproduct.enums; |
||||
package com.hnac.hzims.safeproduct.hazard.enums; |
||||
|
||||
import org.springblade.core.tool.utils.StringUtil; |
||||
|
@ -1,4 +1,4 @@
|
||||
package com.hnac.hzims.safeproduct.vo; |
||||
package com.hnac.hzims.safeproduct.hazard.vo; |
||||
|
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
@ -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.enums.DangerSourceLevelEnum; |
||||
import com.hnac.hzims.safeproduct.hazard.enums.DangerSourceLevelEnum; |
||||
import com.hnac.hzims.safeproduct.hazard.vo.DangerSourcePositionVO; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
@ -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 { |
||||
|
||||
} |
@ -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; |
||||
|
||||
} |
@ -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; |
||||
|
||||
} |
@ -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; |
||||
} |
@ -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; |
||||
} |
@ -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"; |
||||
|
||||
} |
@ -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; |
||||
|
||||
} |
@ -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; |
||||
} |
@ -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 { |
||||
|
||||
} |
@ -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 { |
||||
|
||||
|
||||
|
||||
} |
@ -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; |
||||
} |
@ -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; |
||||
} |
@ -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; |
||||
} |
@ -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; |
||||
} |
@ -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; |
||||
} |
@ -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; |
||||
} |
@ -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; |
||||
} |
@ -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; |
||||
|
||||
} |
@ -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; |
||||
} |
@ -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; |
||||
} |
@ -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("执行失败!"); |
||||
} |
||||
} |
@ -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); |
||||
} |
@ -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; |
||||
} |
@ -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; |
||||
} |
@ -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; |
||||
|
||||
|
||||
} |
@ -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; |
||||
} |
@ -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; |
||||
} |
@ -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; |
||||
} |
@ -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; |
||||
|
||||
} |
@ -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; |
||||
|
||||
} |
@ -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; |
||||
|
||||
} |
@ -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; |
||||
} |
@ -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; |
||||
} |
||||
} |
@ -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; |
||||
} |
||||
|
||||
} |
@ -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; |
||||
|
||||
} |
@ -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; |
||||
} |
@ -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.TableField; |
@ -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; |
||||
|
||||
} |
@ -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; |
||||
|
||||
|
||||
} |
@ -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; |
||||
} |
@ -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; |
||||
|
||||
|
||||
} |
@ -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; |
||||
|
||||
} |
@ -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 { |
||||
} |
@ -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 { |
||||
} |
@ -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 lombok.Data; |
@ -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;//类型名
|
||||
} |
@ -0,0 +1,7 @@
|
||||
package com.hnac.hzims.safeproduct.riskhazards.vo; |
||||
|
||||
import lombok.Data; |
||||
|
||||
@Data |
||||
public class RiskInfoQueryVo { |
||||
} |
@ -0,0 +1,8 @@
|
||||
package com.hnac.hzims.safeproduct.riskhazards.vo; |
||||
|
||||
import lombok.Data; |
||||
|
||||
@Data |
||||
public class RiskMatrixXQueryVo { |
||||
|
||||
} |
@ -0,0 +1,7 @@
|
||||
package com.hnac.hzims.safeproduct.riskhazards.vo; |
||||
|
||||
import lombok.Data; |
||||
|
||||
@Data |
||||
public class RiskMatrixYQueryVo { |
||||
} |
@ -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 { |
||||
} |
@ -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 lombok.Data; |
@ -0,0 +1,4 @@
|
||||
package com.hnac.hzims.safeproduct.statistic; |
||||
|
||||
public interface Constants { |
||||
} |
@ -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; |
||||
|
||||
} |
@ -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; |
||||
|
||||
} |
@ -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; |
||||
|
||||
} |
@ -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; |
||||
} |
@ -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; |
||||
|
||||
} |
@ -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; |
||||
|
||||
} |
@ -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; |
||||
} |
@ -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; |
||||
} |
@ -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; |
||||
|
||||
} |
@ -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; |
||||
} |
@ -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; |
||||
|
||||
} |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue