初次提交
This commit is contained in:
32
flowable-center-api/pom.xml
Normal file
32
flowable-center-api/pom.xml
Normal file
@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>ho-cloud</artifactId>
|
||||
<groupId>com.hoenergy</groupId>
|
||||
<version>1.0</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>flowable-center-api</artifactId>
|
||||
|
||||
<properties>
|
||||
<common-tools.version>1.0</common-tools.version>
|
||||
<business-service-api.version>1.0</business-service-api.version>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.hoenergy</groupId>
|
||||
<artifactId>business-service-api</artifactId>
|
||||
<version>${business-service-api.version}</version>
|
||||
</dependency>
|
||||
<!--工具类-->
|
||||
<dependency>
|
||||
<groupId>com.hoenergy</groupId>
|
||||
<artifactId>common-tools</artifactId>
|
||||
<version>${common-tools.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
@ -0,0 +1,31 @@
|
||||
package com.ho.flow.constant;
|
||||
|
||||
/**
|
||||
* @author fancl
|
||||
* @desc: 流程中心常量定义
|
||||
* @date 2023/2/21
|
||||
*/
|
||||
public interface FlowConstant {
|
||||
|
||||
//默认确认人
|
||||
String DEFAULT_CONFIRM_MAN = "system";
|
||||
|
||||
String DEVICE_ALARM = "设备告警";
|
||||
|
||||
String DEVICE_ALARM_RECOVERY = "设备告警恢复";
|
||||
//告警聚合
|
||||
String POLYMERIZATION = "polymerization";
|
||||
|
||||
interface AlarmConfig{
|
||||
|
||||
//告警配置 集团级别
|
||||
Integer SCOPE_GROUP = 1;
|
||||
//电站级别
|
||||
Integer SCOPE_STATION = 2;
|
||||
//已经选中
|
||||
Integer CHECKED = 1;
|
||||
//未选中
|
||||
Integer NOT_CHECKED = 0;
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,152 @@
|
||||
package com.ho.flow.constant;
|
||||
|
||||
/**
|
||||
* @author fancl
|
||||
* @desc: 工作流常量
|
||||
* @date 2022/10/14
|
||||
*/
|
||||
public interface WorkOrderConstant {
|
||||
|
||||
//工单名称
|
||||
String create = "创建工单";
|
||||
|
||||
//新增工单按钮
|
||||
String ADD_WORK_ORDER = "sys:workorder:add";
|
||||
|
||||
//流程定义的类别为 workOrder,以便和其他类别做区分,这个在流程定义时就确定好了
|
||||
String categoryWorkOrder = "workOrder";
|
||||
|
||||
//可分配工单的 assignee,是个伪标识
|
||||
String canDistributeOrder = "canDistributeOrder";
|
||||
|
||||
//可以验收工单的 assignee,是个伪标识
|
||||
String canCheckOrder = "canCheckOrder";
|
||||
|
||||
//发送者
|
||||
String sender = "sender";
|
||||
|
||||
|
||||
//工单状态
|
||||
interface WorkOrderStatus {
|
||||
//待分配1, 即 新建的工单,手工转的工单,或者被退回的工单
|
||||
Integer toBeAllocate = 1;
|
||||
//已分配2;分配后的工单,此时可以接受和退回
|
||||
Integer allocated = 2;
|
||||
// 处理中3;接受后的工单,如果驳回,工单状态重新变为 toBeAllocate
|
||||
Integer working = 3;
|
||||
//待验收 4,工单完成后的状态
|
||||
Integer toCheck = 4;
|
||||
// 已完成4 ->5, 验证完成后的状态
|
||||
Integer finished = 5;
|
||||
|
||||
String notProcessed = "未处理";
|
||||
String processed = "已处理";
|
||||
String processing = "处理中";
|
||||
String completed = "已完成";
|
||||
|
||||
//工单跟踪的状态
|
||||
// 同意
|
||||
Integer agree = 1;
|
||||
//拒绝
|
||||
Integer refuse = 0;
|
||||
}
|
||||
|
||||
//工单类型
|
||||
interface WorkOrderType {
|
||||
//故障自动关联1
|
||||
Integer autoRelate = 1;
|
||||
//定时巡检2
|
||||
Integer scheduleInspect = 2;
|
||||
//人工派单3 手工创建的
|
||||
Integer dispatcher = 3;
|
||||
//手动转工单4 告警数据手动转的
|
||||
Integer manual = 4;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//工单动作
|
||||
interface WorkOrderAction {
|
||||
//工单创建1
|
||||
Integer workOrderCreate = 1;
|
||||
//工单分配2
|
||||
Integer workOrderApply = 2;
|
||||
//工单接受3
|
||||
Integer workOrderDo = 3;
|
||||
//工单退回4
|
||||
Integer workOrderReject = 4;
|
||||
//工单做完待验收 5原来是 工单关闭
|
||||
Integer workOrderBeCheck = 5;
|
||||
//验收通过,工单完成
|
||||
Integer workOrderCheckComplete = 6;
|
||||
//验收不通过
|
||||
Integer workOrderCheckNoPass = 7;
|
||||
}
|
||||
|
||||
//代办节点候选人
|
||||
interface CandidateUser {
|
||||
//第1节点候选人,一般为集合
|
||||
String nodeOneUsers = "nodeOneUsers";
|
||||
//第2节点候选人
|
||||
String nodeTwoUsers = "nodeTwoUsers";
|
||||
//第3节点候选人
|
||||
String nodeThreeUsers = "nodeThreeUsers";
|
||||
}
|
||||
|
||||
//工单类型
|
||||
interface OrderType {
|
||||
//1 故障检修单
|
||||
Integer troubleCheck = 1;
|
||||
//2 电站巡检单
|
||||
Integer stationInspect = 2;
|
||||
//3 电站清洗单
|
||||
Integer stationClean = 3;
|
||||
//电站抄表单
|
||||
Integer stationMeter = 4;
|
||||
//设备巡检单
|
||||
Integer deviceInspection = 5;
|
||||
//单站其他单
|
||||
Integer stationOthers = 6;
|
||||
}
|
||||
|
||||
//任务节点名称
|
||||
interface TaskNodeName {
|
||||
|
||||
//表示作废的节点
|
||||
String deleted = "deleted";
|
||||
//第一节点
|
||||
String node1 = "d1";
|
||||
String node2 = "d2";
|
||||
String node3 = "d3";
|
||||
String node4 = "d4";
|
||||
//已完成节点
|
||||
String end = "end";
|
||||
}
|
||||
|
||||
//工单类型
|
||||
String orderType = "orderType";
|
||||
//电站Id
|
||||
String stationId = "stationId";
|
||||
|
||||
//工单发起人
|
||||
String startUser = "startUser";
|
||||
//操作步骤
|
||||
String completeKey = "complete";
|
||||
String suggestion = "suggestion";
|
||||
//完成标识 complete ==0 代表完成
|
||||
Integer complete = 0;
|
||||
Integer nullifyComplete = 1;
|
||||
|
||||
//以下几个表示退回到的处理节点 序号
|
||||
Integer rejectToNode1 = 1;
|
||||
Integer rejectToNode2 = 2;
|
||||
Integer rejectToNode3 = 3;
|
||||
|
||||
//工单自增id类型
|
||||
String IdTypeWorkOrder = "workOrder";
|
||||
|
||||
|
||||
//告警自动转工单的发起人
|
||||
String autoTransferOrderId = "admin";
|
||||
|
||||
}
|
||||
@ -0,0 +1,81 @@
|
||||
package com.ho.flow.entity;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.hibernate.validator.constraints.Length;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @TableName process_template
|
||||
*/
|
||||
@Data
|
||||
public class ProcessTemplate implements Serializable {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 序列号
|
||||
*/
|
||||
@ApiModelProperty(value = "序列号")
|
||||
private Long serialNum;
|
||||
|
||||
/**
|
||||
* 流程名称
|
||||
*/
|
||||
@ApiModelProperty(value = "流程名称")
|
||||
@Length(max = 50,message = "流程名称不能超过50个字符")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 流程分类
|
||||
*/
|
||||
@ApiModelProperty(value = "流程分类")
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* 流程分类
|
||||
*/
|
||||
@ApiModelProperty(value = "流程分类")
|
||||
private String typeName;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ApiModelProperty(value = "备注")
|
||||
@Length(max = 255,message = "备注不能超过255个字符")
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 状态(0:禁用 1:启用)
|
||||
*/
|
||||
@ApiModelProperty(value = "0:禁用 1:启用")
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 流程图
|
||||
*/
|
||||
@ApiModelProperty(value = "流程图")
|
||||
private String processBpmn;
|
||||
|
||||
|
||||
@ApiModelProperty("流程模板id集合")
|
||||
private List<Integer> ids;
|
||||
|
||||
@ApiModelProperty(value = "第几页")
|
||||
private Integer pageNum=1;
|
||||
|
||||
@ApiModelProperty(value = "分页数量")
|
||||
private Integer pageSize=10;
|
||||
}
|
||||
@ -0,0 +1,66 @@
|
||||
package com.ho.flow.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 发送短信配置表
|
||||
*/
|
||||
@Data
|
||||
public class SendSmsConfig implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "电站id")
|
||||
private Integer stationId;
|
||||
|
||||
@ApiModelProperty(value = "用户id(与sys_user表id保持一致)")
|
||||
private String userId;
|
||||
|
||||
@ApiModelProperty(value = "账户名称")
|
||||
private String username;
|
||||
|
||||
@ApiModelProperty(value = "手机号码")
|
||||
private String phone;
|
||||
|
||||
@ApiModelProperty(value = "真实名称")
|
||||
private String realName;
|
||||
|
||||
@ApiModelProperty(value = "部门名称")
|
||||
private String deptName;
|
||||
|
||||
@ApiModelProperty(value = "邮箱(唯一)")
|
||||
private String email;
|
||||
|
||||
@ApiModelProperty(value = "通知类别")
|
||||
private Integer smsType;
|
||||
|
||||
@ApiModelProperty(value = "告警等级")
|
||||
private String alarmLevel;
|
||||
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private String createId;
|
||||
|
||||
@ApiModelProperty(value = "更新人")
|
||||
private String updateId;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
|
||||
private Date createTime;
|
||||
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
|
||||
private Date updateTime;
|
||||
|
||||
@ApiModelProperty(value = "是否立即发送:是1否2 默认是1")
|
||||
private Integer isSendNow;
|
||||
|
||||
@ApiModelProperty(value = "延迟时间(例:30分钟)")
|
||||
private Integer delayData;
|
||||
|
||||
}
|
||||
@ -0,0 +1,114 @@
|
||||
package com.ho.flow.entity;
|
||||
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.hibernate.validator.constraints.Length;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
*
|
||||
* @TableName work_order
|
||||
*/
|
||||
@Data
|
||||
public class WorkOrder implements Serializable {
|
||||
/**
|
||||
* id Snowflake
|
||||
*/
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long id;
|
||||
/**
|
||||
* 分组id
|
||||
*/
|
||||
private Integer groupId;
|
||||
/**
|
||||
* 电站id
|
||||
*/
|
||||
private Integer stationId;
|
||||
//用户id
|
||||
private String userId;
|
||||
|
||||
//告警id
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long eventId;
|
||||
/**
|
||||
* 工单号
|
||||
*/
|
||||
private String orderId;
|
||||
|
||||
/**
|
||||
* 流程id
|
||||
*/
|
||||
private String processId;
|
||||
/**
|
||||
* 设备id
|
||||
*/
|
||||
private Integer deviceId;
|
||||
|
||||
|
||||
/**
|
||||
* 计划标题
|
||||
*/
|
||||
@ApiModelProperty(value = "计划标题")
|
||||
@Length(max = 50,message = "计划标题不能超过50个字符")
|
||||
private String planTitle;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
@ApiModelProperty(value = "标题")
|
||||
@Length(max = 50,message = "标题不能超过50个字符")
|
||||
private String title;
|
||||
|
||||
/**
|
||||
* 计划处理时间
|
||||
*/
|
||||
//@DateTimeFormat(pattern = CommonConstant.DATE)
|
||||
@ApiModelProperty(value = "计划处理时间")
|
||||
private Date plannedTime;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@ApiModelProperty(value = "修改时间")
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 优先级 ,可以从字典定义取值
|
||||
*/
|
||||
@ApiModelProperty(value = "优先级")
|
||||
private Integer priority;
|
||||
|
||||
/**
|
||||
* 电话
|
||||
*/
|
||||
@ApiModelProperty(value = "电话")
|
||||
private String phone;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
@ApiModelProperty(value = "工单描述")
|
||||
@Length(max = 100,message = "工单描述不能超过100个字符")
|
||||
private String desc;
|
||||
|
||||
/**
|
||||
* 工单类型
|
||||
*/
|
||||
@ApiModelProperty(value = "工单类型 1:故障检修单 2:电站巡检单 3:电站清洗单")
|
||||
private Integer orderType;
|
||||
|
||||
/**
|
||||
* 删除标识
|
||||
*/
|
||||
private Integer deleted;
|
||||
}
|
||||
@ -0,0 +1,93 @@
|
||||
package com.ho.flow.entity;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ho.common.tools.constant.CommonConstant;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.hibernate.validator.constraints.Length;
|
||||
|
||||
import javax.validation.constraints.Max;
|
||||
import javax.validation.constraints.Min;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
*
|
||||
* @TableName work_order_plan
|
||||
*/
|
||||
@Data
|
||||
public class WorkOrderPlan implements Serializable {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@ApiModelProperty(value = "工单计划id")
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 用户id(创建人)
|
||||
*/
|
||||
@ApiModelProperty(value = "用户id(创建人)",hidden = true)
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
* 集团id
|
||||
*/
|
||||
@ApiModelProperty(value = "集团id ",hidden = true)
|
||||
private Integer groupId;
|
||||
|
||||
/**
|
||||
* 循环类型(week:周,month:月)
|
||||
*/
|
||||
@ApiModelProperty(value = "循环类型(week:周,month:月)")
|
||||
private String dateType;
|
||||
|
||||
/**
|
||||
* 定时执行时间
|
||||
*/
|
||||
@ApiModelProperty(value = "定时执行时间")
|
||||
private Integer day;
|
||||
|
||||
/**
|
||||
* 执行天数
|
||||
*/
|
||||
@ApiModelProperty(value = "执行天数")
|
||||
@Min(value = 0,message = "不能小于0天")
|
||||
@Max(value = 36500,message = "不能大于36500天")
|
||||
private Integer execDay;
|
||||
|
||||
/**
|
||||
* 生效日期
|
||||
*/
|
||||
@ApiModelProperty(value = "生效日期")
|
||||
@JsonFormat(pattern = CommonConstant.DATE)
|
||||
private Date effectDate;
|
||||
|
||||
/**
|
||||
* 失效日期
|
||||
*/
|
||||
@ApiModelProperty(value = "失效日期")
|
||||
@JsonFormat(pattern = CommonConstant.DATE)
|
||||
private Date expireDate;
|
||||
|
||||
/**
|
||||
* 工单类型(4:抄表,5:巡检,6:其他)
|
||||
*/
|
||||
@ApiModelProperty(value = "工单类型(4:抄表,5:巡检,6:其他)")
|
||||
private Integer orderType;
|
||||
|
||||
/**
|
||||
* 计划标题
|
||||
*/
|
||||
@ApiModelProperty(value = "计划标题")
|
||||
@Length(max = 50,message = "计划标题不能超过30个字符")
|
||||
private String planTitle;
|
||||
|
||||
/**
|
||||
* 计划描述
|
||||
*/
|
||||
@ApiModelProperty(value = "计划描述")
|
||||
@Length(max = 100,message = "计划描述不能超过100个字符")
|
||||
private String desc;
|
||||
|
||||
}
|
||||
@ -0,0 +1,38 @@
|
||||
package com.ho.flow.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
*
|
||||
* @TableName work_order_plan_sub
|
||||
*/
|
||||
@Data
|
||||
public class WorkOrderPlanSub implements Serializable {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 计划表id
|
||||
*/
|
||||
private Integer pid;
|
||||
|
||||
/**
|
||||
* 类型(1:电站,2:设备)
|
||||
*/
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* 设备id(电站或是设备id)
|
||||
*/
|
||||
private Integer srcId;
|
||||
|
||||
/**
|
||||
* 人员id
|
||||
*/
|
||||
private String userId;
|
||||
|
||||
}
|
||||
@ -0,0 +1,33 @@
|
||||
package com.ho.flow.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
*
|
||||
* @TableName word_order_sub
|
||||
*/
|
||||
@Data
|
||||
public class WorkOrderSub implements Serializable {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 工单表id
|
||||
*/
|
||||
private Long pid;
|
||||
|
||||
/**
|
||||
* 类型(1:电站,2:设备)
|
||||
*/
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* 设备id(电站或是设备id)
|
||||
*/
|
||||
private Long srcId;
|
||||
|
||||
}
|
||||
@ -0,0 +1,125 @@
|
||||
package com.ho.flow.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author gyan
|
||||
* @desc:电站告警配置表 @TableName alarm_config
|
||||
* @DateTime: 2023/2/1 16:16
|
||||
*/
|
||||
@Data
|
||||
public class AlarmConfig {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@ApiModelProperty(value = "分组Id")
|
||||
private Integer groupId;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@ApiModelProperty(value = "电站id")
|
||||
private Integer stationId;
|
||||
|
||||
@ApiModelProperty(value = "1 集团级别 2电站级别")
|
||||
private Integer scope;
|
||||
|
||||
@ApiModelProperty(value = "是否已配置, 1已配置 0未配置")
|
||||
private Integer checked;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@ApiModelProperty(value = "告警配置id")
|
||||
private Integer colDefineId;
|
||||
|
||||
/**
|
||||
* 设备类型id,对应device_type表id
|
||||
*/
|
||||
@ApiModelProperty(value = "设备类型id")
|
||||
private Integer deviceTypeId;
|
||||
|
||||
/**
|
||||
* 设备类型,对应device_type表device_type
|
||||
*/
|
||||
@ApiModelProperty(value = "设备类型")
|
||||
private String deviceType;
|
||||
|
||||
/**
|
||||
* device_name
|
||||
*/
|
||||
@ApiModelProperty(value = "设备类型")
|
||||
private String deviceName;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@ApiModelProperty(value = "英文名称")
|
||||
private String col;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@ApiModelProperty(value = "中文名称")
|
||||
private String colName;
|
||||
|
||||
/**
|
||||
* 1遥信 2遥测
|
||||
*/
|
||||
@ApiModelProperty(value = "(1遥信、2遥测)")
|
||||
private Integer sensType;
|
||||
|
||||
/**
|
||||
* 上限
|
||||
*/
|
||||
@ApiModelProperty(value = "上限")
|
||||
private BigDecimal upperLimit;
|
||||
|
||||
/**
|
||||
* 下限
|
||||
*/
|
||||
@ApiModelProperty(value = "下限")
|
||||
private BigDecimal lowerLimit;
|
||||
|
||||
/**
|
||||
* 告警等级
|
||||
*/
|
||||
@ApiModelProperty(value = "告警等级")
|
||||
private Integer alarmLevel;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 删除标识1 未删除 0 已删除
|
||||
*/
|
||||
@ApiModelProperty(value = " 删除标识1 未删除 0 已删除")
|
||||
private Integer deleted;
|
||||
|
||||
@ApiModelProperty(value = "遥信值是0的信息",hidden = true)
|
||||
private String info0;
|
||||
|
||||
@ApiModelProperty(value = "遥信值是1的信息",hidden = true)
|
||||
private String info1;
|
||||
}
|
||||
|
||||
@ -0,0 +1,25 @@
|
||||
package com.ho.flow.vo;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.ToString;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author fancl
|
||||
* @desc: id自动生成
|
||||
* @date 2022/10/14
|
||||
*/
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@ToString
|
||||
public class BusiIdControl implements Serializable {
|
||||
|
||||
Integer id;
|
||||
//类型, workOrder 工单
|
||||
String idType;
|
||||
|
||||
Long currentValue;
|
||||
}
|
||||
@ -0,0 +1,53 @@
|
||||
package com.ho.flow.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author gyan
|
||||
* @desc: 告警配置实体类 @TableName device_col_define
|
||||
* @DateTime: 2023/2/1 16:11
|
||||
*/
|
||||
@Data
|
||||
public class DeviceColDefine {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@ApiModelProperty(value = "id")
|
||||
Integer id;
|
||||
|
||||
@ApiModelProperty(value = "设备类型Id")
|
||||
Integer deviceTypeId;
|
||||
|
||||
|
||||
@ApiModelProperty(value = "设备类型")
|
||||
String deviceType;
|
||||
|
||||
@ApiModelProperty(value = "设备名称")
|
||||
String deviceName;
|
||||
|
||||
@ApiModelProperty(value = "测点")
|
||||
String col;
|
||||
|
||||
@ApiModelProperty(value = "中文名称")
|
||||
String colName;
|
||||
|
||||
@ApiModelProperty(value = "英文名称")
|
||||
String colEn;
|
||||
|
||||
@ApiModelProperty(value = "语言")
|
||||
String lang;
|
||||
|
||||
@ApiModelProperty(value = "(1遥信、2遥测)")
|
||||
Integer sensType;
|
||||
|
||||
@ApiModelProperty(value = "遥信值是0时的显示信息")
|
||||
String info0;
|
||||
|
||||
@ApiModelProperty(value = "遥信值是1时的显示信息")
|
||||
String info1;
|
||||
|
||||
@ApiModelProperty(value = "1是已配置 0未配置")
|
||||
Integer checked ;
|
||||
|
||||
}
|
||||
112
flowable-center-api/src/main/java/com/ho/flow/vo/Event.java
Normal file
112
flowable-center-api/src/main/java/com/ho/flow/vo/Event.java
Normal file
@ -0,0 +1,112 @@
|
||||
package com.ho.flow.vo;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import com.ho.common.tools.constant.CommonConstant;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @TableName event
|
||||
*/
|
||||
@Data
|
||||
public class Event implements Serializable {
|
||||
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "电站id")
|
||||
private Integer stationId;
|
||||
|
||||
@ApiModelProperty(value = "部门id")
|
||||
private Integer deptId;
|
||||
|
||||
@ApiModelProperty(value = "分组id")
|
||||
private Integer groupId;
|
||||
|
||||
@ApiModelProperty(value = "事件类型")
|
||||
private Integer eventType;
|
||||
|
||||
@ApiModelProperty(value = "事件类型等级:1; //一级(事故)2二级(故障)3三级(告警)4四级(提示)5;//五级(告知)")
|
||||
private Integer eventLevel;
|
||||
|
||||
|
||||
@ApiModelProperty(value = "事件时间")
|
||||
@JsonFormat(pattern = CommonConstant.DATE_YMD_HMSS)
|
||||
private Date timeStamp;
|
||||
|
||||
@ApiModelProperty(value = "事件设备")
|
||||
private Integer targetDevice;
|
||||
|
||||
@ApiModelProperty(value = "设备类型",hidden = true)
|
||||
private String deviceType;
|
||||
|
||||
@ApiModelProperty(value = "关联device_type表的id" ,hidden = true)
|
||||
private Integer deviceTypeId;
|
||||
|
||||
@ApiModelProperty(value = "事件信号")
|
||||
private String signal;
|
||||
|
||||
@ApiModelProperty(value = "事件状态 1已确认 0 未确认")
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty(value = "事件值")
|
||||
private BigDecimal value;
|
||||
|
||||
@ApiModelProperty(value = "事件描述")
|
||||
private String description;
|
||||
|
||||
@ApiModelProperty(value = "1 已确认 0 未确认")
|
||||
private Integer confirmStatus;
|
||||
|
||||
@ApiModelProperty(value = "确认人")
|
||||
private String confirmMan;
|
||||
|
||||
|
||||
@ApiModelProperty(value = "确认时间")
|
||||
@JsonFormat(pattern = CommonConstant.DATE)
|
||||
private Date confirmTime;
|
||||
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String remark;
|
||||
|
||||
@ApiModelProperty(value = "处理建议")
|
||||
private String suggestion;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@JsonFormat(pattern = CommonConstant.DATE)
|
||||
private Date createTime;
|
||||
|
||||
@ApiModelProperty(value = "修改时间")
|
||||
@JsonFormat(pattern = CommonConstant.DATE)
|
||||
private Date updateTime;
|
||||
|
||||
@ApiModelProperty(value = "类别")
|
||||
private Integer category;
|
||||
|
||||
@ApiModelProperty(value = "类型")
|
||||
private Integer type;
|
||||
|
||||
@ApiModelProperty(value = "子类型")
|
||||
private Integer subType;
|
||||
|
||||
@ApiModelProperty(value = "遥信遥测类型(1遥信、2遥测 )")
|
||||
private Integer sensType;
|
||||
|
||||
@ApiModelProperty(value = "故障还是故障恢复的类型(1是故障恢复 0否 )")
|
||||
private Integer isRecovery;
|
||||
|
||||
@ApiModelProperty(value = "告警恢复前一条告警的id")
|
||||
private Long beforeEventId;
|
||||
|
||||
@ApiModelProperty(value = "排除id",hidden = true)
|
||||
private Long excludeId;
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
package com.ho.flow.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author fancl
|
||||
* @desc:
|
||||
* @date 2023/5/12
|
||||
*/
|
||||
@Data
|
||||
public class TestReq {
|
||||
Integer groupId;
|
||||
Integer stationId;
|
||||
Integer scope;
|
||||
String deviceType;
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.ho.flow.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ho.common.tools.constant.CommonConstant;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.hibernate.validator.constraints.Length;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
*
|
||||
* @TableName work_order_circulation
|
||||
*/
|
||||
@Data
|
||||
public class WorkOrderCirculation implements Serializable {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 工单id
|
||||
*/
|
||||
@ApiModelProperty(value = "工单id")
|
||||
private String orderId;
|
||||
|
||||
/**
|
||||
* 发起人
|
||||
*/
|
||||
@ApiModelProperty(value = "发起人id")
|
||||
private String fromId;
|
||||
|
||||
/**
|
||||
* 执行人
|
||||
*/
|
||||
@ApiModelProperty(value = "执行人id")
|
||||
private String toId;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@JsonFormat(pattern= CommonConstant.DATE)
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
@ApiModelProperty(value = "描述")
|
||||
@Length(max = 500,message = "工单描述不能超过500个字符")
|
||||
private String desc;
|
||||
|
||||
/**
|
||||
* 当前动作
|
||||
*/
|
||||
@ApiModelProperty(value = "当前动作")
|
||||
private Integer workOrderAction;
|
||||
|
||||
}
|
||||
@ -0,0 +1,123 @@
|
||||
package com.ho.flow.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ho.common.tools.constant.CommonConstant;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.ToString;
|
||||
import org.hibernate.validator.constraints.Length;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
*
|
||||
* @TableName work_order
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@ToString
|
||||
public class WorkOrderOld implements Serializable {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 工单id
|
||||
*/
|
||||
@ApiModelProperty(value = "工单id")
|
||||
private String orderId;
|
||||
|
||||
/**
|
||||
* 分组id
|
||||
*/
|
||||
@ApiModelProperty(value = "分组id")
|
||||
private Integer groupId;
|
||||
|
||||
/**
|
||||
* 部门id
|
||||
*/
|
||||
@ApiModelProperty(value = "部门id")
|
||||
private Integer deptId;
|
||||
|
||||
/**
|
||||
* 电站id
|
||||
*/
|
||||
@ApiModelProperty(value = "电站id")
|
||||
private Integer stationId;
|
||||
|
||||
/**
|
||||
* 发起人id
|
||||
*/
|
||||
@ApiModelProperty(value = "发起人id")
|
||||
private String fromId;
|
||||
|
||||
/**
|
||||
* 电话号码
|
||||
*/
|
||||
@ApiModelProperty(value = "电话号码")
|
||||
private String phone;
|
||||
|
||||
/**
|
||||
* 执行人id
|
||||
*/
|
||||
@ApiModelProperty(value = "执行人id")
|
||||
private String toId;
|
||||
|
||||
/**
|
||||
* 告警事件id
|
||||
*/
|
||||
@ApiModelProperty(value = "告警事件id")
|
||||
private Long eventId;
|
||||
|
||||
/**
|
||||
* 告警等级
|
||||
*/
|
||||
@ApiModelProperty(value = "告警等级")
|
||||
private Integer eventLevel;
|
||||
|
||||
/**
|
||||
* 新建描述
|
||||
*/
|
||||
@ApiModelProperty(value = "故障描述")
|
||||
@Length(max = 10,message = "工单描述不能超过500个字符")
|
||||
private String desc;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value = "生成时间")
|
||||
@JsonFormat(pattern= CommonConstant.DATE)
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 接收时间
|
||||
*/
|
||||
@ApiModelProperty(value = "接收时间")
|
||||
@JsonFormat(pattern= CommonConstant.DATE)
|
||||
private Date receiveTime;
|
||||
|
||||
/**
|
||||
* 完成时间
|
||||
*/
|
||||
@ApiModelProperty(value = "完成时间")
|
||||
@JsonFormat(pattern= CommonConstant.DATE)
|
||||
private Date completeTime;
|
||||
|
||||
/**
|
||||
* 工单状态
|
||||
*/
|
||||
@ApiModelProperty(value = "工单状态")
|
||||
private Integer workOrderStatus;
|
||||
|
||||
/**
|
||||
* 工单类型
|
||||
*/
|
||||
@ApiModelProperty(value = "工单类型")
|
||||
private Integer workOrderType;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
package com.ho.flow.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class XmlBean {
|
||||
/** 节点key */
|
||||
private String nodeKey;
|
||||
|
||||
/** 前一个节点是否是开始节点 */
|
||||
private boolean preStart;
|
||||
|
||||
/** 前一个节点是否是网关节点 */
|
||||
private boolean preGateway;
|
||||
|
||||
/** 上一个节点key */
|
||||
private String preNodeKey;
|
||||
|
||||
/** 后一个节点是否是结束节点 */
|
||||
private boolean afterEnd;
|
||||
|
||||
/** 后一个节点是否是网关节点 */
|
||||
private boolean afterGateway;
|
||||
|
||||
/** 下一个节点key */
|
||||
private String afterNodeKey;
|
||||
}
|
||||
@ -0,0 +1,75 @@
|
||||
package com.ho.flow.vo.process;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.hibernate.validator.constraints.Length;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @TableName process_template
|
||||
*/
|
||||
@Data
|
||||
public class ProcessTemplate implements Serializable {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 序列号
|
||||
*/
|
||||
@ApiModelProperty(value = "序列号")
|
||||
private Long serialNum;
|
||||
|
||||
/**
|
||||
* 流程名称
|
||||
*/
|
||||
@ApiModelProperty(value = "流程名称")
|
||||
@Length(max = 50,message = "流程名称不能超过50个字符")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 流程分类
|
||||
*/
|
||||
@ApiModelProperty(value = "流程分类")
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ApiModelProperty(value = "备注")
|
||||
@Length(max = 255,message = "备注不能超过255个字符")
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 状态(0:禁用 1:启用)
|
||||
*/
|
||||
@ApiModelProperty(value = "0:禁用 1:启用")
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 流程图
|
||||
*/
|
||||
@ApiModelProperty(value = "流程图")
|
||||
private String processBpmn;
|
||||
|
||||
|
||||
@ApiModelProperty("流程模板id集合")
|
||||
private List<Integer> ids;
|
||||
|
||||
@ApiModelProperty(value = "第几页")
|
||||
private Integer pageNum=1;
|
||||
|
||||
@ApiModelProperty(value = "分页数量")
|
||||
private Integer pageSize=10;
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
package com.ho.flow.vo.process;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author yule
|
||||
* @Date 2023/8/30 19:37
|
||||
* @desc ${流向文本信息}
|
||||
*/
|
||||
@Data
|
||||
public class SequenceText {
|
||||
|
||||
@ApiModelProperty(value = "源流向id")
|
||||
String source;
|
||||
|
||||
@ApiModelProperty(value = "目标流向id")
|
||||
String target;
|
||||
|
||||
@ApiModelProperty(value = "表达式")
|
||||
String expression;
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
package com.ho.flow.vo.process;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author yule
|
||||
* @Date 2023/8/30 19:44
|
||||
* @desc ${用户任务文本信息}
|
||||
*/
|
||||
@Data
|
||||
public class UserTaskText {
|
||||
|
||||
@ApiModelProperty(value = "用户任务id")
|
||||
String userTaskId;
|
||||
|
||||
@ApiModelProperty(value = "岗位编码集合")
|
||||
List<String> code;
|
||||
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package com.ho.flow.vo.req.AlarmConfig;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author fancl
|
||||
* @desc: 批量删除告警配置
|
||||
* @date 2023/2/24
|
||||
*/
|
||||
@Data
|
||||
public class AlarmBatchDeleteReq {
|
||||
|
||||
@ApiModelProperty(value="集团id", hidden = true)
|
||||
Integer groupId;
|
||||
|
||||
@ApiModelProperty(value="电站id")
|
||||
Integer stationId;
|
||||
|
||||
@NotNull(message = "设备类型deviceType不能为空")
|
||||
@ApiModelProperty(value="设备类型")
|
||||
String deviceType;
|
||||
|
||||
@NotNull(message = "sensType不能为空")
|
||||
@ApiModelProperty(value = "(1遥信、2遥测)")
|
||||
Integer sensType;
|
||||
|
||||
@NotNull(message = "scope不能为空")
|
||||
@ApiModelProperty(value="1集团级别 2电站级别")
|
||||
Integer scope;
|
||||
|
||||
@ApiModelProperty(value="要删除的配置id集合")
|
||||
@NotEmpty(message = "ids不能为空数组")
|
||||
List<Integer> colIds;
|
||||
|
||||
}
|
||||
@ -0,0 +1,45 @@
|
||||
package com.ho.flow.vo.req.AlarmConfig;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.ToString;
|
||||
|
||||
import javax.validation.constraints.DecimalMax;
|
||||
import javax.validation.constraints.DecimalMin;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* @author gyan
|
||||
* @desc: 新增入参AlarmConfig
|
||||
* @DateTime: 2023/2/1 17:33
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@ToString
|
||||
public class AlarmConfigAddReqVo {
|
||||
|
||||
@ApiModelProperty(value = "电站id")
|
||||
private Integer stationId;
|
||||
|
||||
@ApiModelProperty(value = "设备id")
|
||||
private Integer deviceTypeId;
|
||||
|
||||
@ApiModelProperty(value = "告警配置id")
|
||||
private Integer colDefineId;
|
||||
|
||||
@ApiModelProperty(value = "上限")
|
||||
@DecimalMax(value ="1000000000" ,message = "上限数值最多为10位")
|
||||
private BigDecimal upperLimit;
|
||||
|
||||
@ApiModelProperty(value = "下限")
|
||||
@DecimalMin(value ="-1000000000" ,message = "下限数值最小不能超过10位")
|
||||
private BigDecimal lowerLimit;
|
||||
|
||||
@ApiModelProperty(value = "告警等级")
|
||||
private Integer alarmLevel;
|
||||
|
||||
@ApiModelProperty(value = "范围 1集体级 2电站级")
|
||||
private Integer scope;
|
||||
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.ho.flow.vo.req.AlarmConfig;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.ToString;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author gyan
|
||||
* @desc: AlarmConfig查询入参
|
||||
* @DateTime: 2023/2/1 17:47
|
||||
*/
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@ToString
|
||||
public class AlarmConfigPageReqVo {
|
||||
|
||||
@ApiModelProperty(value = "第几页")
|
||||
Integer pageNum=1;
|
||||
|
||||
@ApiModelProperty(value = "分页数量")
|
||||
Integer pageSize=10;
|
||||
|
||||
@ApiModelProperty(value = "电站id")
|
||||
private Integer stationId;
|
||||
|
||||
@ApiModelProperty(value = "字段名称")
|
||||
private String colName;
|
||||
|
||||
@ApiModelProperty(value = "多字段名称")
|
||||
private List<String> colNameList;
|
||||
|
||||
@ApiModelProperty(value = "设备类型")
|
||||
private String deviceType;
|
||||
|
||||
@ApiModelProperty(value = "(1遥信、2遥测)")
|
||||
private Integer sensType;
|
||||
|
||||
@ApiModelProperty(value = "告警等级,对应1 ,2,3,4,5")
|
||||
private Integer alarmLevel;
|
||||
|
||||
@ApiModelProperty(value = "不是这个告警等级的数据,对应1 ,2,3,4,5" ,hidden = true)
|
||||
private Integer otherAlarmLevel;
|
||||
|
||||
@ApiModelProperty(value = "集团id" ,hidden = true)
|
||||
private Integer groupId;
|
||||
|
||||
@ApiModelProperty(value = "1 集团级别 2电站级别")
|
||||
private Integer scope;
|
||||
|
||||
@ApiModelProperty(value = "字段定义id,对接口隐藏",hidden = true)
|
||||
private List<Integer> colIds;
|
||||
|
||||
@ApiModelProperty(value = "设备类型集合,对接口隐藏",hidden = true)
|
||||
private List<String> deviceTypeList;
|
||||
|
||||
@ApiModelProperty(value = "设备类型后缀",hidden = true)
|
||||
private String deviceTypeSuffix;
|
||||
}
|
||||
@ -0,0 +1,42 @@
|
||||
package com.ho.flow.vo.req.AlarmConfig;
|
||||
|
||||
import com.ho.business.entity.Station;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class AlarmConfigQueryVo {
|
||||
|
||||
@ApiModelProperty(value = "分组id")
|
||||
private Integer groupId;
|
||||
|
||||
@ApiModelProperty(value="电站id")
|
||||
Integer stationId;
|
||||
|
||||
@ApiModelProperty(value="电站List")
|
||||
List<Station> stationList;
|
||||
|
||||
@ApiModelProperty(value="设备id")
|
||||
Integer srcId;
|
||||
|
||||
@ApiModelProperty(value="事件等级list")
|
||||
List<Integer> eventLevelList;
|
||||
|
||||
@ApiModelProperty(value="设备类型")
|
||||
String deviceType;
|
||||
|
||||
@ApiModelProperty(value = "开始日期,格式为yyyy-MM-dd")
|
||||
private String startTime;
|
||||
|
||||
@ApiModelProperty(value = "结束时间,格式为yyyy-MM-dd")
|
||||
private String endTime;
|
||||
|
||||
@ApiModelProperty(value = "开始日期,格式为yyyy-MM-dd",hidden = true)
|
||||
private String signal;
|
||||
|
||||
@ApiModelProperty(value = "结束时间,格式为yyyy-MM-dd",hidden = true)
|
||||
private Integer isRecovery;
|
||||
|
||||
}
|
||||
@ -0,0 +1,44 @@
|
||||
package com.ho.flow.vo.req.AlarmConfig;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.DecimalMax;
|
||||
import javax.validation.constraints.DecimalMin;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* @author gyan
|
||||
* @desc: 更新入参AlarmConfig
|
||||
* @DateTime: 2023/2/1 17:41
|
||||
*/
|
||||
@Data
|
||||
public class AlarmConfigUpdateReqVo {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
@NotNull
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "上限")
|
||||
@DecimalMax(value ="1000000000" ,message = "上限数值最多为10位")
|
||||
private BigDecimal upperLimit;
|
||||
|
||||
@ApiModelProperty(value = "下限")
|
||||
@DecimalMin(value ="-1000000000" ,message = "下限数值最小不能超过10位")
|
||||
private BigDecimal lowerLimit;
|
||||
|
||||
@ApiModelProperty(value = "告警等级")
|
||||
private Integer alarmLevel;
|
||||
|
||||
@ApiModelProperty(value = "作用范围 1 集团级别 2电站级别 默认可以为电站级别")
|
||||
@NotNull(message = "作用范围不能为空")
|
||||
Integer scope;
|
||||
|
||||
@ApiModelProperty(value = "电站id")
|
||||
private Integer stationId;
|
||||
|
||||
@ApiModelProperty(value = "设备类型")
|
||||
@NotNull(message = "设备类型不能为空")
|
||||
private String deviceType;
|
||||
}
|
||||
@ -0,0 +1,35 @@
|
||||
package com.ho.flow.vo.req.AlarmConfig;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author fancl
|
||||
* @desc: 告警遥信批量配置
|
||||
* @date 2023/2/21
|
||||
*/
|
||||
@Data
|
||||
public class AlarmMeasureBatchAddReq {
|
||||
|
||||
@ApiModelProperty(value = "集团id", hidden = true)
|
||||
private Integer groupId;
|
||||
|
||||
@ApiModelProperty(value = "作用范围 1 集团级别 2电站级别 默认可以为电站级别")
|
||||
Integer scope;
|
||||
|
||||
@ApiModelProperty(value = "电站id")
|
||||
private Integer stationId;
|
||||
|
||||
@ApiModelProperty(value = "设备类型")
|
||||
private String deviceType;
|
||||
|
||||
@ApiModelProperty(value = "1遥信 2遥测")
|
||||
private Integer sensType;
|
||||
|
||||
@ApiModelProperty(value = "遥测字段列表")
|
||||
List<MeasureVo> measureList;
|
||||
|
||||
}
|
||||
@ -0,0 +1,20 @@
|
||||
package com.ho.flow.vo.req.AlarmConfig;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author fancl
|
||||
* @desc:
|
||||
* @date 2023/2/22
|
||||
*/
|
||||
@Data
|
||||
public class AlarmQuery {
|
||||
|
||||
Integer groupId;
|
||||
|
||||
Integer stationId;
|
||||
|
||||
Integer scope;
|
||||
|
||||
Integer colDefineId;
|
||||
}
|
||||
@ -0,0 +1,35 @@
|
||||
package com.ho.flow.vo.req.AlarmConfig;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author fancl
|
||||
* @desc: 告警遥信批量配置
|
||||
* @date 2023/2/21
|
||||
*/
|
||||
@Data
|
||||
public class AlarmSignalBatchAddReq {
|
||||
|
||||
@ApiModelProperty(value = "集团id" ,hidden = true)
|
||||
private Integer groupId;
|
||||
|
||||
@ApiModelProperty(value = "作用范围 1 集团级别 2电站级别 默认可以为电站级别")
|
||||
Integer scope;
|
||||
|
||||
@ApiModelProperty(value = "电站id")
|
||||
private Integer stationId;
|
||||
|
||||
|
||||
@ApiModelProperty(value = "设备类型")
|
||||
private String deviceType;
|
||||
|
||||
@ApiModelProperty(value = "告警等级",required = true)
|
||||
private Integer alarmLevel;
|
||||
|
||||
@ApiModelProperty(value = "告警字段id列表")
|
||||
List<Integer> colIdList;
|
||||
|
||||
}
|
||||
@ -0,0 +1,34 @@
|
||||
package com.ho.flow.vo.req.AlarmConfig;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* @author fancl
|
||||
* @desc: 更改等级请求实体
|
||||
* @date 2023/2/21
|
||||
*/
|
||||
@Data
|
||||
public class AlarmUpdateLevelReq {
|
||||
|
||||
@ApiModelProperty(value = "作用范围 1 集团级别 2电站级别 默认可以为电站级别")
|
||||
@NotNull(message = "作用范围不能为空")
|
||||
Integer scope;
|
||||
|
||||
@ApiModelProperty(value = "电站id")
|
||||
private Integer stationId;
|
||||
|
||||
@ApiModelProperty(value = "设备类型")
|
||||
@NotNull(message = "设备类型不能为空")
|
||||
private String deviceType;
|
||||
|
||||
@ApiModelProperty(value = "告警配置id")
|
||||
@NotNull(message = "告警配置id不能为空")
|
||||
Integer id;
|
||||
|
||||
@ApiModelProperty(value = "告警等级")
|
||||
@NotNull(message = "告警等级不能为空")
|
||||
Integer alarmLevel;
|
||||
}
|
||||
@ -0,0 +1,49 @@
|
||||
package com.ho.flow.vo.req.AlarmConfig;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.ToString;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author gyan
|
||||
* @desc: 告警配置查询
|
||||
* @DateTime: 2023/2/1 16:24
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@ToString
|
||||
public class DeviceColDefineReqVo {
|
||||
|
||||
@ApiModelProperty(value = "第几页")
|
||||
Integer pageNum=1;
|
||||
|
||||
@ApiModelProperty(value = "分页数量")
|
||||
Integer pageSize=10;
|
||||
|
||||
@ApiModelProperty(value = "设备类型")
|
||||
String deviceType;
|
||||
|
||||
@ApiModelProperty(value = "字段名称")
|
||||
private String colName;
|
||||
|
||||
@ApiModelProperty(value = "col",hidden = true)
|
||||
private String col;
|
||||
|
||||
@ApiModelProperty(value = "(1遥信、2遥测)")
|
||||
Integer sensType;
|
||||
|
||||
@ApiModelProperty(value = "名称,根据前端输入的名称过滤")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "设备类型集合",hidden = true)
|
||||
List<String> deviceTypeList;
|
||||
|
||||
@ApiModelProperty(value = "设备类型后缀",hidden = true)
|
||||
String deviceTypeSuffix;
|
||||
|
||||
@ApiModelProperty(value = "多字段名称")
|
||||
List<String> colNameList;
|
||||
}
|
||||
@ -0,0 +1,30 @@
|
||||
package com.ho.flow.vo.req.AlarmConfig;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author fancl
|
||||
* @desc: 告警等级列表查询实体
|
||||
* @date 2023/2/21
|
||||
*/
|
||||
@Data
|
||||
public class LevelReqVo {
|
||||
|
||||
@ApiModelProperty(value = "集团id" ,hidden = true)
|
||||
private Integer groupId;
|
||||
|
||||
@ApiModelProperty(value = "电站id")
|
||||
private Integer stationId;
|
||||
|
||||
@ApiModelProperty(value = "告警等级")
|
||||
private Integer alarmLevel;
|
||||
|
||||
@ApiModelProperty(value = "设备类型")
|
||||
private String deviceType;
|
||||
|
||||
@ApiModelProperty(value = "(1遥信、2遥测)")
|
||||
private Integer sensType;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,37 @@
|
||||
package com.ho.flow.vo.req.AlarmConfig;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.DecimalMax;
|
||||
import javax.validation.constraints.DecimalMin;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* @author fancl
|
||||
* @desc: 包含遥测值上下限的对象
|
||||
* @date 2023/2/24
|
||||
*/
|
||||
@Data
|
||||
public class MeasureVo {
|
||||
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
Integer id;
|
||||
/**
|
||||
* 上限
|
||||
*/
|
||||
@ApiModelProperty(value = "上限")
|
||||
@DecimalMax(value ="1000000000" ,message = "上限数值最多为10位")
|
||||
@NotNull(message = "上限数值不能为空")
|
||||
private BigDecimal upperLimit;
|
||||
|
||||
/**
|
||||
* 下限
|
||||
*/
|
||||
@ApiModelProperty(value = "下限")
|
||||
@NotNull(message = "下限数值不能为空")
|
||||
@DecimalMin(value ="-1000000000" ,message = "下限数值最小不能超过10位")
|
||||
private BigDecimal lowerLimit;
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package com.ho.flow.vo.req.SendSmsConfig;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class SendSmsConfigDeleteReq {
|
||||
|
||||
@ApiModelProperty(value = "告警等级")
|
||||
private List<Integer> ids;
|
||||
|
||||
}
|
||||
@ -0,0 +1,43 @@
|
||||
package com.ho.flow.vo.req.SendSmsConfig;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class SendSmsConfigQueryReq {
|
||||
|
||||
@ApiModelProperty(value = "第几页")
|
||||
private Integer pageNum=1;
|
||||
|
||||
@ApiModelProperty(value = "分页数量")
|
||||
private Integer pageSize=10;
|
||||
|
||||
@ApiModelProperty(value = "电站id")
|
||||
@NotNull(message ="电站id不能为空")
|
||||
private Integer stationId;
|
||||
|
||||
@ApiModelProperty(value = "账户名称")
|
||||
private String username;
|
||||
|
||||
@ApiModelProperty(value = "手机号码")
|
||||
private String phone;
|
||||
|
||||
@ApiModelProperty(value = "通知类别")
|
||||
private Integer smsType;
|
||||
|
||||
@ApiModelProperty(value = "是否立即发送:是1 否2 默认是1")
|
||||
private Integer isSendNow;
|
||||
|
||||
@ApiModelProperty(value = "告警等级")
|
||||
private String alarmLevel;
|
||||
|
||||
@ApiModelProperty(value = "用户id集合",hidden = true)
|
||||
private List<String> userIds;
|
||||
|
||||
@ApiModelProperty(value = "模板参数",hidden = true)
|
||||
private JSONObject param;
|
||||
}
|
||||
@ -0,0 +1,19 @@
|
||||
package com.ho.flow.vo.req.devicecoldefine;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description : DeviceColDefine数据删除实体
|
||||
* @Author : xwz
|
||||
* @Date : 2023/6/14
|
||||
*/
|
||||
@Data
|
||||
public class DeviceColDefineDeleteVO{
|
||||
|
||||
@ApiModelProperty(value = "需要被删除的id集合")
|
||||
List<Integer> idList;
|
||||
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
package com.ho.flow.vo.req.devicecoldefine;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Description : DeviceColDefine数据修改实体
|
||||
* @Author : xwz
|
||||
* @Date : 2023/6/14
|
||||
*/
|
||||
@Data
|
||||
public class DeviceColDefineModifyVO extends DeviceColDefineReqVO{
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
Integer id;
|
||||
|
||||
}
|
||||
@ -0,0 +1,47 @@
|
||||
package com.ho.flow.vo.req.devicecoldefine;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Description : DeviceColDefine数据导入
|
||||
* @Author : xueweizhi
|
||||
* @Date : 2023/3/18 14:56
|
||||
*/
|
||||
@Data
|
||||
public class DeviceColDefineReqVO {
|
||||
|
||||
@ApiModelProperty(value = "设备名称")
|
||||
@ExcelProperty
|
||||
String deviceName;
|
||||
|
||||
@ApiModelProperty(value = "设备类型")
|
||||
@ExcelProperty
|
||||
String deviceType;
|
||||
|
||||
@ApiModelProperty(value = "测点")
|
||||
@ExcelProperty
|
||||
String col;
|
||||
|
||||
@ApiModelProperty(value = "中文名称")
|
||||
@ExcelProperty
|
||||
String colName;
|
||||
|
||||
@ApiModelProperty(value = "(1遥信、2遥测)")
|
||||
@ExcelProperty
|
||||
Integer sensType;
|
||||
|
||||
@ApiModelProperty(value = "遥信值是0时的显示信息")
|
||||
@ExcelProperty
|
||||
String info0;
|
||||
|
||||
@ApiModelProperty(value = "遥信值是1时的显示信息")
|
||||
@ExcelProperty
|
||||
String info1;
|
||||
|
||||
//英文
|
||||
String colEn;
|
||||
//语言
|
||||
String lang;
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
package com.ho.flow.vo.req.devicecoldefine;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Description : DeviceColDefine同步实体
|
||||
* @Author : xueweizhi
|
||||
* @Date : 2023/3/18 14:56
|
||||
*/
|
||||
@Data
|
||||
public class DeviceColDefineSyncVO {
|
||||
|
||||
@ApiModelProperty(value = "电站id")
|
||||
Integer stationId;
|
||||
|
||||
@ApiModelProperty(value = "设备类型")
|
||||
String deviceType;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,64 @@
|
||||
package com.ho.flow.vo.req.event;
|
||||
|
||||
|
||||
import com.ho.business.entity.DeviceType;
|
||||
import com.ho.business.vo.req.EventColReq;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description 告警管理对外请求参数
|
||||
* @Author xwz
|
||||
* @Date 2023/07/24
|
||||
*/
|
||||
@Data
|
||||
public class ApiEventReqVO {
|
||||
|
||||
@ApiModelProperty(value = "api请求密文")
|
||||
private String apiSecret;
|
||||
|
||||
@ApiModelProperty(value = "第几页")
|
||||
private int pageNum=1;
|
||||
|
||||
@ApiModelProperty(value = "分页数量")
|
||||
private int pageSize=10;
|
||||
|
||||
@ApiModelProperty(value = "电站id集合")
|
||||
private List<Integer> stationIds;
|
||||
|
||||
@ApiModelProperty(value = "设备类型集合")
|
||||
private List<DeviceType> deviceTypeList;
|
||||
|
||||
@ApiModelProperty(value = "设备id集合")
|
||||
private List<Integer> srcIdList;
|
||||
|
||||
@ApiModelProperty(value = "事件描述")
|
||||
private String description;
|
||||
|
||||
@ApiModelProperty(value = "事件类型集合,对应字典表中的eventType")
|
||||
private List<Integer> eventTypes;
|
||||
|
||||
@ApiModelProperty(value = "告警等级集合,对应字典表中的eventLevel")
|
||||
private List<Integer> eventLevels;
|
||||
|
||||
@ApiModelProperty(value = "开始日期,格式为yyyy-MM-dd")
|
||||
private String startTime;
|
||||
|
||||
@ApiModelProperty(value = "结束时间,格式为yyyy-MM-dd")
|
||||
private String endTime;
|
||||
|
||||
@ApiModelProperty(value = "事件状态 1已确认 0 未确认")
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty(value = "最大显示limit条数" ,hidden = true)
|
||||
private Integer limitCount;
|
||||
|
||||
@ApiModelProperty(value = "事件设备(设备id)" ,hidden = true)
|
||||
private Integer targetDevice;
|
||||
|
||||
@ApiModelProperty(value = "包含虚拟设备时用这个字段去查告警" ,hidden = true)
|
||||
private List<EventColReq> eventColReqList;
|
||||
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
package com.ho.flow.vo.req.event;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Description 下拉告警数据入参
|
||||
* Author yule
|
||||
* Date 2023/2/10 14:15
|
||||
*/
|
||||
@Data
|
||||
public class DropDownReq {
|
||||
@ApiModelProperty(value = "电站id")
|
||||
Integer stationId;
|
||||
|
||||
@ApiModelProperty(value = "事件设备")
|
||||
Integer targetDevice;
|
||||
|
||||
@ApiModelProperty(value = "当前节点名")
|
||||
String currentStep;
|
||||
}
|
||||
@ -0,0 +1,29 @@
|
||||
package com.ho.flow.vo.req.event;
|
||||
|
||||
import cn.hutool.core.date.DateTime;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author fancl
|
||||
* @desc: 新增告警时间 请求对象
|
||||
* @date 2023/2/13
|
||||
*/
|
||||
@Data
|
||||
public class EventAddReq {
|
||||
//时间
|
||||
DateTime ts ;
|
||||
Integer groupId;
|
||||
Integer stationId;
|
||||
Integer srcId;
|
||||
//设备类型
|
||||
String deviceType;
|
||||
//设备名称
|
||||
String deviceName;
|
||||
Integer deviceTypeId;
|
||||
|
||||
//上送数据的dataSet JSONObject类型
|
||||
JSONObject dataSet;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,24 @@
|
||||
package com.ho.flow.vo.req.event;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author gyan
|
||||
* @desc: 故障时长入参
|
||||
* @DateTime: 2023/5/11 15:45
|
||||
*/
|
||||
@Data
|
||||
public class EventDemoReqVo {
|
||||
|
||||
@ApiModelProperty(value = "电站id")
|
||||
Integer stationId;
|
||||
|
||||
@ApiModelProperty(value = "开始时间")
|
||||
String beginTime;
|
||||
|
||||
@ApiModelProperty(value = "结束时间")
|
||||
String endTime;
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
package com.ho.flow.vo.req.event;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Description 告警统计小铃铛
|
||||
* @Author xwz
|
||||
* @Date 2023/4/24
|
||||
*/
|
||||
@Data
|
||||
public class EventNumReq {
|
||||
|
||||
@ApiModelProperty(value = "电站id")
|
||||
Integer stationId;
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
package com.ho.flow.vo.req.event;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class EventQueryReqVO {
|
||||
|
||||
private Integer stationId;
|
||||
|
||||
private Integer targetDevice;
|
||||
|
||||
private String signal;
|
||||
}
|
||||
@ -0,0 +1,66 @@
|
||||
package com.ho.flow.vo.req.event;
|
||||
|
||||
|
||||
import com.ho.business.entity.DeviceType;
|
||||
import com.ho.business.vo.req.EventColReq;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description 告警管理分页查询参数
|
||||
* Author yule
|
||||
* Date 2022/8/29 16:29
|
||||
*/
|
||||
@Data
|
||||
public class EventReqPageVO {
|
||||
@ApiModelProperty(value = "第几页")
|
||||
private int pageNum = 1;
|
||||
|
||||
@ApiModelProperty(value = "分页数量")
|
||||
private int pageSize = 10;
|
||||
|
||||
@ApiModelProperty(value = "电站id集合")
|
||||
private List<Integer> stationIds;
|
||||
|
||||
@ApiModelProperty(value = "设备类型集合")
|
||||
private List<DeviceType> deviceTypeList;
|
||||
|
||||
@ApiModelProperty(value = "设备id集合")
|
||||
private List<Integer> srcIdList;
|
||||
|
||||
@ApiModelProperty(value = "事件描述")
|
||||
private String description;
|
||||
|
||||
@ApiModelProperty(value = "事件类型集合,对应字典表中的eventType")
|
||||
private List<Integer> eventTypes;
|
||||
|
||||
@ApiModelProperty(value = "告警等级集合,对应字典表中的eventLevel")
|
||||
private List<Integer> eventLevels;
|
||||
|
||||
@ApiModelProperty(value = "开始日期,格式为yyyy-MM-dd")
|
||||
private String startTime;
|
||||
|
||||
@ApiModelProperty(value = "结束时间,格式为yyyy-MM-dd")
|
||||
private String endTime;
|
||||
|
||||
@ApiModelProperty(value = "事件状态 1已确认 0 未确认")
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty(value = "最大显示limit条数", hidden = true)
|
||||
private Integer limitCount;
|
||||
|
||||
@ApiModelProperty(value = "事件设备(设备id)", hidden = true)
|
||||
private Integer targetDevice;
|
||||
|
||||
@ApiModelProperty(value = "包含虚拟设备时用这个字段去查告警", hidden = true)
|
||||
private List<EventColReq> eventColReqList;
|
||||
|
||||
@ApiModelProperty(value = "事件设备(设备id)", hidden = true)
|
||||
private Integer userLevel;
|
||||
|
||||
@ApiModelProperty(value = "告警id集合")
|
||||
private List<Long> ids;
|
||||
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
package com.ho.flow.vo.req.event;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description 告警管理修改参数
|
||||
* Author yule
|
||||
* Date 2022/8/29 16:31
|
||||
*/
|
||||
@Data
|
||||
public class EventReqUpdateVO {
|
||||
|
||||
@ApiModelProperty(value = "事件id集合")
|
||||
@NotNull(message = "事件id集合不能为空")
|
||||
private List<String> ids ;
|
||||
|
||||
}
|
||||
@ -0,0 +1,67 @@
|
||||
package com.ho.flow.vo.req.event;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.hibernate.validator.constraints.Length;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description 告警转工单对象
|
||||
* Author yule
|
||||
* Date 2023/4/23 11:21
|
||||
*/
|
||||
@Data
|
||||
public class EventWorkOrder {
|
||||
|
||||
@ApiModelProperty(value = "告警id集合")
|
||||
@NotEmpty(message = "请选择告警数据")
|
||||
List<Long> eventIds;
|
||||
|
||||
@ApiModelProperty(value = "候选人列表")
|
||||
@NotEmpty(message = "请指定执行人")
|
||||
List<String> candidateUserList;
|
||||
|
||||
/**
|
||||
* 计划标题
|
||||
*/
|
||||
@ApiModelProperty(value = "计划标题")
|
||||
@Length(max = 50, message = "计划标题不能超过50个字符")
|
||||
private String planTitle;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
@ApiModelProperty(value = "标题")
|
||||
@Length(max = 50, message = "标题不能超过50个字符")
|
||||
private String title;
|
||||
|
||||
/**
|
||||
* 计划处理时间
|
||||
*/
|
||||
//@DateTimeFormat(pattern = CommonConstant.DATE)
|
||||
@ApiModelProperty(value = "计划处理时间")
|
||||
private Date plannedTime;
|
||||
|
||||
/**
|
||||
* 优先级 ,可以从字典定义取值
|
||||
*/
|
||||
@ApiModelProperty(value = "优先级")
|
||||
private Integer priority;
|
||||
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
@ApiModelProperty(value = "工单描述")
|
||||
@Length(max = 100, message = "工单描述不能超过100个字符")
|
||||
private String desc;
|
||||
|
||||
@ApiModelProperty(value = "创建人id",hidden = true)
|
||||
String userId;
|
||||
|
||||
@ApiModelProperty(value = "集团id",hidden = true)
|
||||
Integer groupId;
|
||||
}
|
||||
@ -0,0 +1,36 @@
|
||||
package com.ho.flow.vo.req.workorder;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description 流转记录入参
|
||||
* Author yule
|
||||
* Date 2023/2/9 15:07
|
||||
*/
|
||||
@Data
|
||||
public class CirculationTaskReq {
|
||||
|
||||
//任务责任人,包含退回的,也用这个
|
||||
@ApiModelProperty(value = "任务责任人",hidden = true)
|
||||
String assigneeUser;
|
||||
|
||||
//流程实例id
|
||||
@ApiModelProperty(value = "流程实例id")
|
||||
String processInstId;
|
||||
|
||||
//集团id
|
||||
@ApiModelProperty(value = "租户")
|
||||
String tenantId;
|
||||
|
||||
//流程实例id
|
||||
@ApiModelProperty(value = "流程实例id集合")
|
||||
List<String> processInstIds;
|
||||
|
||||
//流程实例id
|
||||
@ApiModelProperty(value = "工单id")
|
||||
Integer orderFormId;
|
||||
|
||||
}
|
||||
@ -0,0 +1,31 @@
|
||||
package com.ho.flow.vo.req.workorder;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Description 代办已办请求参数
|
||||
* Author yule
|
||||
* Date 2023/2/10 10:34
|
||||
*/
|
||||
@Data
|
||||
public class DoListTaskReq {
|
||||
|
||||
@ApiModelProperty(value = "租户id")
|
||||
String tenantId;
|
||||
|
||||
@ApiModelProperty(value = "第几页")
|
||||
private Integer pageNum = 1;
|
||||
|
||||
@ApiModelProperty(value = "分页数量")
|
||||
private Integer pageSize = 10;
|
||||
|
||||
@ApiModelProperty(value = "任务主题")
|
||||
private String title;
|
||||
|
||||
@ApiModelProperty(value = "电站id")
|
||||
private Integer stationId;
|
||||
|
||||
@ApiModelProperty(value = "用户id")
|
||||
String userId;
|
||||
}
|
||||
@ -0,0 +1,43 @@
|
||||
package com.ho.flow.vo.req.workorder;
|
||||
|
||||
import com.ho.common.tools.entity.OrderForm;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description 完成任务入参
|
||||
* Author yule
|
||||
* Date 2023/2/9 14:59
|
||||
*/
|
||||
@Data
|
||||
public class DoTaskReq {
|
||||
//流程实例id
|
||||
@ApiModelProperty(value = "流程实例id")
|
||||
String processInstId;
|
||||
|
||||
//任务责任人,包含退回的,也用这个
|
||||
@ApiModelProperty(value = "任务责任人", hidden = true)
|
||||
String assigneeUser;
|
||||
|
||||
@ApiModelProperty(value = "候选人列表")
|
||||
List<String> candidateUserList;
|
||||
|
||||
@ApiModelProperty(value = "任务表示 0:拒绝,1:通过")
|
||||
String type;
|
||||
|
||||
//集团id
|
||||
@ApiModelProperty(value = "集团id")
|
||||
String tenantId;
|
||||
|
||||
//流程实例id
|
||||
@ApiModelProperty(value = "建议")
|
||||
String suggestion;
|
||||
|
||||
String senderId;
|
||||
|
||||
@ApiModelProperty(value = "表单数据")
|
||||
OrderForm orderForm;
|
||||
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
package com.ho.flow.vo.req.workorder;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Description 回退列表入参
|
||||
* Author yule
|
||||
* Date 2023/2/8 10:20
|
||||
*/
|
||||
@Data
|
||||
public class FallBackTaskReq {
|
||||
|
||||
@ApiModelProperty(value = "租客id",hidden = true)
|
||||
String tenantId;
|
||||
|
||||
@ApiModelProperty(value = "流程id")
|
||||
private String processInstId;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
package com.ho.flow.vo.req.workorder;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.ToString;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author fancl
|
||||
* @desc: 工作流订单请求
|
||||
* @date 2023/1/27
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@ToString
|
||||
public class OrderReq implements Serializable {
|
||||
|
||||
//执行人的userId
|
||||
String workerId;
|
||||
|
||||
//拒绝标识,1拒绝 0 不拒绝 默认不拒绝
|
||||
Integer reject = 0;
|
||||
|
||||
//完成标识 1 完成 0 未完成 默认0
|
||||
Integer complete = 0;
|
||||
}
|
||||
@ -0,0 +1,29 @@
|
||||
package com.ho.flow.vo.req.workorder;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author fancl
|
||||
* @desc: 完成Task的请求请求实体
|
||||
* 这个完成包括通过或退回
|
||||
* @date 2023/2/5
|
||||
*/
|
||||
@Data
|
||||
public class ProcessFlowDoTaskReq {
|
||||
|
||||
//候选人
|
||||
List<String> candiUserNames ;
|
||||
|
||||
//处理意见
|
||||
String suggestion;
|
||||
|
||||
//完成标识,这个实际需要对应reject 或者complete
|
||||
// 0是完成 1退回
|
||||
Integer complete;
|
||||
|
||||
//退回人,必须退回到指定人(即任务的处理人或评价人)
|
||||
//这个userId可以使用登陆名,方便
|
||||
String userId;
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
package com.ho.flow.vo.req.workorder;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author fancl
|
||||
* @desc: 退回Task的请求实体
|
||||
* 这个完成包括通过或退回
|
||||
* @date 2023/2/5
|
||||
*/
|
||||
@Data
|
||||
public class ProcessFlowRejectTaskReq {
|
||||
|
||||
//处理意见
|
||||
String suggestion;
|
||||
|
||||
//完成标识,这个实际需要对应reject 或者complete
|
||||
|
||||
//退回人,必须退回到指定人(即任务的处理人或评价人)
|
||||
//这个userId使用用户id
|
||||
String rejectToUserId;
|
||||
}
|
||||
@ -0,0 +1,23 @@
|
||||
package com.ho.flow.vo.req.workorder;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author fancl
|
||||
* @desc: 发起流程的请求实体
|
||||
* 该实体内容包含WorkOrder的全部属性
|
||||
* @date 2023/2/5
|
||||
*/
|
||||
@Data
|
||||
public class ProcessFlowStartReq {
|
||||
//候选人
|
||||
List<String> candiUserNames ;
|
||||
|
||||
//处理意见
|
||||
String suggestion;
|
||||
|
||||
//完成标识,这个实际需要对应reject 或者complete
|
||||
Integer complete;
|
||||
}
|
||||
@ -0,0 +1,34 @@
|
||||
package com.ho.flow.vo.req.workorder;
|
||||
|
||||
import com.ho.common.tools.entity.OrderForm;
|
||||
import com.ho.flow.vo.resp.workorder.FallBackTaskResp;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Description 回退任务的入参
|
||||
* Author yule
|
||||
* Date 2023/2/8 14:59
|
||||
*/
|
||||
@Data
|
||||
public class RejectTaskReq extends FallBackTaskResp {
|
||||
//流程实例id
|
||||
@ApiModelProperty(value = "流程实例id")
|
||||
String processInstId;
|
||||
|
||||
//流程实例id
|
||||
@ApiModelProperty(value = "建议")
|
||||
String suggestion;
|
||||
|
||||
@ApiModelProperty(value = "任务定义key")
|
||||
private String taskDefinitionKey;
|
||||
|
||||
@ApiModelProperty(value = "任务id")
|
||||
private String taskInstId;
|
||||
|
||||
String userId;
|
||||
|
||||
@ApiModelProperty(value = "表单数据")
|
||||
OrderForm orderForm;
|
||||
|
||||
}
|
||||
@ -0,0 +1,41 @@
|
||||
package com.ho.flow.vo.req.workorder;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author fancl
|
||||
* @desc: 工作流任务查询实体
|
||||
* @date 2023/2/6
|
||||
*/
|
||||
@Data
|
||||
public class TaskReq {
|
||||
//集团id
|
||||
@ApiModelProperty(value = "集团id",hidden = true)
|
||||
String tenantId;
|
||||
|
||||
//流程实例id
|
||||
@ApiModelProperty(value = "流程实例id")
|
||||
String processInstId;
|
||||
|
||||
//完成标识,这个实际需要对应reject 或者complete
|
||||
//下一个处理人,如果是退回,需要选个具体的节点进行退回
|
||||
@ApiModelProperty(value = "完成标识,内部用,对前端隐藏",hidden = true)
|
||||
String complete;
|
||||
|
||||
//任务责任人,包含退回的,也用这个
|
||||
@ApiModelProperty(value = "任务责任人")
|
||||
String assigneeUser;
|
||||
|
||||
//候选人 userId
|
||||
String candidateUser;
|
||||
|
||||
@ApiModelProperty(value = "候选人列表")
|
||||
List<String> candidateUserList;
|
||||
|
||||
@ApiModelProperty(value = "处理意见")
|
||||
String suggestion;
|
||||
|
||||
}
|
||||
@ -0,0 +1,39 @@
|
||||
package com.ho.flow.vo.req.workorder;
|
||||
|
||||
import com.ho.common.tools.entity.OrderForm;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.Valid;
|
||||
|
||||
/**
|
||||
* @author fancl
|
||||
* @desc: 工作流任务查询实体
|
||||
* @date 2023/2/6
|
||||
*/
|
||||
@Data
|
||||
public class TaskUserReq {
|
||||
//集团id
|
||||
@ApiModelProperty(value = "租户id", hidden = true)
|
||||
String tenantId;
|
||||
|
||||
@ApiModelProperty(value = "用户id", hidden = true)
|
||||
String userId;
|
||||
|
||||
@ApiModelProperty(value = "部门id", hidden = true)
|
||||
String deptId;
|
||||
|
||||
//流程实例id
|
||||
@ApiModelProperty(value = "流程实例id")
|
||||
String processInstId;
|
||||
|
||||
//工单表单数据
|
||||
@ApiModelProperty(value = "工单表单数据")
|
||||
@Valid
|
||||
OrderForm orderForm;
|
||||
|
||||
@ApiModelProperty(value = "作废理由")
|
||||
String suggestion;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
package com.ho.flow.vo.req.workorder;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author gyan
|
||||
* @desc: TODO
|
||||
* @DateTime: 2022/10/18 19:25
|
||||
*/
|
||||
@Data
|
||||
public class WorkDeleteOrderReq {
|
||||
/**
|
||||
* 工单id
|
||||
*/
|
||||
@ApiModelProperty(value = "对应工单号")
|
||||
String orderId;
|
||||
}
|
||||
@ -0,0 +1,31 @@
|
||||
package com.ho.flow.vo.req.workorder;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.hibernate.validator.constraints.Length;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description 新增工单入参
|
||||
* Author yule
|
||||
* Date 2022/10/14 11:32
|
||||
*/
|
||||
@Data
|
||||
public class WorkOrderAddReq implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "电站id")
|
||||
@NotNull(message = "请选择电站")
|
||||
Integer stationId;
|
||||
|
||||
@ApiModelProperty(value = "工单类型")
|
||||
@NotNull(message = "请选择工单类型")
|
||||
Integer workOrderType;
|
||||
|
||||
@ApiModelProperty(value = "工单描述")
|
||||
@NotNull(message = "请填写工单描述")
|
||||
@Length(min = 1,max = 500,message = "工单描述不能超过500个字符")
|
||||
String desc;
|
||||
|
||||
}
|
||||
@ -0,0 +1,37 @@
|
||||
package com.ho.flow.vo.req.workorder;
|
||||
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import com.ho.flow.entity.WorkOrder;
|
||||
import com.ho.flow.entity.WorkOrderSub;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description 新增工单业务对象
|
||||
* Author yule
|
||||
* Date 2023/2/4 14:41
|
||||
*/
|
||||
@Data
|
||||
public class WorkOrderAddReqVO extends WorkOrder {
|
||||
//图片id集合
|
||||
List<Integer> pictureIds;
|
||||
|
||||
@ApiModelProperty(value = "电站id集合")
|
||||
List<Integer> stationIds;
|
||||
|
||||
@ApiModelProperty(value = "设备id集合")
|
||||
List<Integer> deviceIds;
|
||||
|
||||
@ApiModelProperty(value = "告警id集合")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
List<Long> eventIds;
|
||||
|
||||
//子表集合
|
||||
@ApiModelProperty(value = "设备id集合",hidden = true)
|
||||
List<WorkOrderSub> workOrderSubs;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,37 @@
|
||||
package com.ho.flow.vo.req.workorder;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.ToString;
|
||||
import org.hibernate.validator.constraints.Length;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author fancl
|
||||
* @desc: 工单分配请求实体
|
||||
* @date 2022/10/14
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@ToString
|
||||
public class WorkOrderApplyReqVO implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "工单号,必填")
|
||||
String orderId;
|
||||
|
||||
@ApiModelProperty(value = "任务id,工作流需要的元素,必填")
|
||||
String taskId;
|
||||
|
||||
@ApiModelProperty(value = "执行人(维修人)id,分配工单的接口必填,其他接口不用填")
|
||||
String toId;
|
||||
|
||||
@ApiModelProperty(value = "执行人(维修人)手机号,分配工单时必填,其他接口不用填")
|
||||
String phone;
|
||||
|
||||
@ApiModelProperty(value = "描述,选填")
|
||||
@Length(max = 500,message = "工单描述不能超过500个字符")
|
||||
String distributionDesc;
|
||||
|
||||
}
|
||||
@ -0,0 +1,86 @@
|
||||
package com.ho.flow.vo.req.workorder;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.ToString;
|
||||
import org.hibernate.validator.constraints.Length;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description 查询工单参数
|
||||
* Author yule
|
||||
* Date 2022/10/14 12:06
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@ToString
|
||||
public class WorkOrderPageReq implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "电站id")
|
||||
//@NotNull(message = "请选择电站")
|
||||
private Integer stationId;
|
||||
|
||||
@ApiModelProperty(value = "集团id",hidden = true)
|
||||
private Integer groupId;
|
||||
|
||||
@ApiModelProperty(value = "工单号")
|
||||
String orderId;
|
||||
|
||||
@ApiModelProperty(value = "工单类型")
|
||||
Integer orderType;
|
||||
|
||||
@ApiModelProperty(value = "流程id,和工作流关联")
|
||||
String ProcessId;
|
||||
|
||||
@ApiModelProperty(value = "工单号集合", hidden = true)
|
||||
List<String> orderIds;
|
||||
|
||||
@ApiModelProperty(value = "故障等级")
|
||||
Integer eventLevel;
|
||||
|
||||
@ApiModelProperty(value = "故障描述")
|
||||
@Length(max = 500,message = "工单描述不能超过500个字符")
|
||||
String desc;
|
||||
|
||||
@ApiModelProperty(value = "工单状态")
|
||||
Integer workOrderStatus;
|
||||
|
||||
@ApiModelProperty(value = "工单类型")
|
||||
Integer workOrderType;
|
||||
|
||||
@ApiModelProperty(value = "开始时间")
|
||||
String beginTime;
|
||||
|
||||
@ApiModelProperty(value = "结束时间")
|
||||
String endTime;
|
||||
|
||||
@ApiModelProperty(value = "电站id列表",hidden = true)
|
||||
private List<Integer> stationIds = new ArrayList<>();
|
||||
|
||||
@ApiModelProperty(value = "第几页")
|
||||
private Integer pageNum = 1;
|
||||
|
||||
@ApiModelProperty(value = "分页数量")
|
||||
private Integer pageSize = 10;
|
||||
|
||||
//去掉执行人名称
|
||||
//@ApiModelProperty(value = "执行人名称")
|
||||
//private String toName;
|
||||
|
||||
|
||||
String toId;
|
||||
//用于查询多个id
|
||||
List<String> toIds;
|
||||
|
||||
String roleLeader;
|
||||
|
||||
String roleWorker;
|
||||
|
||||
String roleOther;
|
||||
|
||||
String fromId;
|
||||
}
|
||||
@ -0,0 +1,51 @@
|
||||
package com.ho.flow.vo.req.workorder;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.ToString;
|
||||
import org.hibernate.validator.constraints.Length;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* @author gyan
|
||||
* @desc: TODO
|
||||
* @DateTime: 2022/10/14 15:23
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@ToString
|
||||
public class WorkOrderUpdateReq{
|
||||
/**
|
||||
* 工单id
|
||||
*/
|
||||
@ApiModelProperty(value = "工单id")
|
||||
private String orderId;
|
||||
|
||||
@ApiModelProperty(value = "电站id")
|
||||
@NotNull(message = "请选择电站")
|
||||
Integer stationId;
|
||||
|
||||
/**
|
||||
* 电话号码
|
||||
*/
|
||||
@ApiModelProperty(value = "电话号码")
|
||||
private String phone;
|
||||
|
||||
/**
|
||||
* 执行人id
|
||||
*/
|
||||
@ApiModelProperty(value = "执行人id")
|
||||
private String toId;
|
||||
|
||||
/**
|
||||
* 新建描述
|
||||
*/
|
||||
@ApiModelProperty(value = "故障描述")
|
||||
@Length(max = 500,message = "工单描述不能超过500个字符")
|
||||
private String desc;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,26 @@
|
||||
package com.ho.flow.vo.req.workorder;
|
||||
|
||||
import com.ho.flow.entity.WorkOrder;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description 修改工单业务入参
|
||||
* Author yule
|
||||
* Date 2023/2/4 15:35
|
||||
*/
|
||||
@Data
|
||||
public class WorkOrderUpdateReqVO extends WorkOrder {
|
||||
|
||||
//图片id集合
|
||||
List<Integer> pictureIds;
|
||||
|
||||
List<Integer> stationIds;
|
||||
|
||||
List<Integer> deviceIds;
|
||||
|
||||
List<Long> eventIds;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,26 @@
|
||||
package com.ho.flow.vo.req.workorderplan;
|
||||
|
||||
import com.ho.flow.entity.WorkOrderPlan;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description 工单计划新增入参
|
||||
* Author yule
|
||||
* Date 2023/3/16 15:50
|
||||
*/
|
||||
@Data
|
||||
public class WorkOrderPlanAddReqVO extends WorkOrderPlan {
|
||||
|
||||
@ApiModelProperty(value = "电站id集合")
|
||||
List<Integer> stationIds;
|
||||
|
||||
@ApiModelProperty(value = "设备id集合")
|
||||
List<Integer> deviceIds;
|
||||
|
||||
@ApiModelProperty(value = "工单执行人员id集合")
|
||||
List<String> userIds;
|
||||
|
||||
}
|
||||
@ -0,0 +1,26 @@
|
||||
package com.ho.flow.vo.req.workorderplan;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Description 工单计划入参
|
||||
* Author yule
|
||||
* Date 2023/3/16 16:21
|
||||
*/
|
||||
@Data
|
||||
public class WorkOrderPlanReqVO {
|
||||
|
||||
@ApiModelProperty(value = "第几页")
|
||||
private Integer pageNum = 1;
|
||||
|
||||
@ApiModelProperty(value = "分页数量")
|
||||
private Integer pageSize = 10;
|
||||
|
||||
|
||||
@ApiModelProperty(value = "工单计划id")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "集团id",hidden = true)
|
||||
private Integer groupId;
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package com.ho.flow.vo.resp.SendSmsConfig;
|
||||
|
||||
import com.ho.flow.entity.SendSmsConfig;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class SendSmsConfigRsp extends SendSmsConfig {
|
||||
|
||||
@ApiModelProperty(value = "告警等级集合")
|
||||
private List<String> levelList;
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
package com.ho.flow.vo.resp;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Author : HXJ
|
||||
* @Date : 2023/3/23 15:14
|
||||
*/
|
||||
@Data
|
||||
public class StationStatusRespVO {
|
||||
|
||||
/**
|
||||
* 电站id
|
||||
*/
|
||||
Integer stationId;
|
||||
|
||||
/**
|
||||
* 电站状态 true 正常 false 异常
|
||||
*/
|
||||
Boolean stationStatus;
|
||||
}
|
||||
@ -0,0 +1,35 @@
|
||||
package com.ho.flow.vo.resp.alarm;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* @author fancl
|
||||
* @desc: 遥测返回实体
|
||||
* @date 2023/2/23
|
||||
*/
|
||||
@Data
|
||||
public class AlarmMeasureRepVo {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "列名称")
|
||||
private String colName;
|
||||
|
||||
@ApiModelProperty(value = "1 集团级 2 电站级")
|
||||
private Integer scope;
|
||||
|
||||
@ApiModelProperty(value = "上限")
|
||||
private BigDecimal upperLimit;
|
||||
|
||||
@ApiModelProperty(value = "下限")
|
||||
private BigDecimal lowerLimit;
|
||||
|
||||
@ApiModelProperty(value = "是否选中 1已经选择过,无法继续选择 0 可以继续选择")
|
||||
private Integer checked;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
package com.ho.flow.vo.resp.alarm;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author fancl
|
||||
* @desc: 遥信返回实体
|
||||
* @date 2023/2/23
|
||||
*/
|
||||
@Data
|
||||
public class AlarmSignalRepVo {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "列名称")
|
||||
private String colName;
|
||||
|
||||
@ApiModelProperty(value = "1 集团级 2 电站级")
|
||||
private Integer scope;
|
||||
|
||||
@ApiModelProperty(value = "是否选中 1已经选择过,无法继续选择 0 可以继续选择")
|
||||
private Integer checked;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,58 @@
|
||||
package com.ho.flow.vo.resp.event;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import com.ho.common.tools.constant.CommonConstant;
|
||||
import com.ho.flow.vo.Event;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
|
||||
/**
|
||||
* @Description 告警管理对外请求参数
|
||||
* @Author xwz
|
||||
* @Date 2023/07/24
|
||||
*/
|
||||
@Data
|
||||
public class ApiEventRespVO{
|
||||
|
||||
@ApiModelProperty(value = "事件类型等级")
|
||||
private Integer eventLevel;
|
||||
|
||||
@ApiModelProperty(value = "事件时间")
|
||||
@JsonFormat(pattern = CommonConstant.DATE)
|
||||
private Date timeStamp;
|
||||
|
||||
@ApiModelProperty(value = "事件状态 1已确认 0 未确认")
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty(value = "事件描述")
|
||||
private String description;
|
||||
|
||||
@ApiModelProperty(value = "确认人")
|
||||
private String confirmMan;
|
||||
|
||||
@ApiModelProperty(value = "确认时间")
|
||||
@JsonFormat(pattern = CommonConstant.DATE)
|
||||
private Date confirmTime;
|
||||
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String remark;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@JsonFormat(pattern = CommonConstant.DATE)
|
||||
private Date createTime;
|
||||
|
||||
@ApiModelProperty(value = "电站名称")
|
||||
private String stationName;
|
||||
|
||||
@ApiModelProperty(value = "设备的名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "设备Id")
|
||||
private Integer targetDevice;
|
||||
}
|
||||
@ -0,0 +1,26 @@
|
||||
package com.ho.flow.vo.resp.event;
|
||||
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author fancl
|
||||
* @desc: 大屏的监控数据
|
||||
* @date 2023/1/13
|
||||
*/
|
||||
@Data
|
||||
public class EventBigScreenResp implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "告警列表")
|
||||
List<EventRespVO> eventRespVOS;
|
||||
|
||||
@ApiModelProperty(value = "告警数据个数")
|
||||
Integer alarmNum ;
|
||||
|
||||
@ApiModelProperty(value = "已确认个数")
|
||||
Integer confirmNum;
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package com.ho.flow.vo.resp.event;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class EventDayNum {
|
||||
|
||||
@ApiModelProperty(value = "日期")
|
||||
private String day;
|
||||
|
||||
@ApiModelProperty(value = "数量")
|
||||
private Integer count;
|
||||
}
|
||||
@ -0,0 +1,28 @@
|
||||
package com.ho.flow.vo.resp.event;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author gyan
|
||||
* @desc: 故障时长返回值
|
||||
* @DateTime: 2023/5/11 14:27
|
||||
*/
|
||||
@Data
|
||||
public class EventDemo {
|
||||
@ApiModelProperty(value = "告警id")
|
||||
Long id;
|
||||
|
||||
@ApiModelProperty(value = "电站id")
|
||||
Integer stationId;
|
||||
|
||||
@ApiModelProperty(value = "故障开始时间")
|
||||
String beginTime;
|
||||
|
||||
@ApiModelProperty(value = "故障结束时间")
|
||||
String endTime;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,20 @@
|
||||
package com.ho.flow.vo.resp.event;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Description TODO
|
||||
* Author yule
|
||||
* Date 2022/9/1 18:46
|
||||
*/
|
||||
@Data
|
||||
public class EventLevelNum {
|
||||
|
||||
@ApiModelProperty(value = "告警等级代表值")
|
||||
private Integer eventLevel;
|
||||
|
||||
@ApiModelProperty(value = "数量")
|
||||
private Integer count;
|
||||
}
|
||||
|
||||
@ -0,0 +1,28 @@
|
||||
package com.ho.flow.vo.resp.event;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description 告警数量出参(告警类型以及告警级别)
|
||||
* Author yule
|
||||
* Date 2022/9/1 15:36
|
||||
*/
|
||||
@Data
|
||||
public class EventNumRespVO {
|
||||
|
||||
@ApiModelProperty("告警类型数量集合")
|
||||
private List<EventTypeNum> typeNums;
|
||||
|
||||
@ApiModelProperty("告警等级数量集合")
|
||||
private List<EventLevelNum> levelNums;
|
||||
|
||||
@ApiModelProperty("告警类型总数")
|
||||
private Integer sumTypes;
|
||||
|
||||
@ApiModelProperty("告警等级总数")
|
||||
private Integer sumLevels;
|
||||
|
||||
}
|
||||
@ -0,0 +1,28 @@
|
||||
package com.ho.flow.vo.resp.event;
|
||||
|
||||
import com.ho.flow.vo.Event;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* @Description 事件实体类出参
|
||||
* Author yule
|
||||
* Date 2022/9/1 10:53
|
||||
*/
|
||||
@Data
|
||||
public class EventRespVO extends Event {
|
||||
|
||||
@ApiModelProperty(value = "电站名称")
|
||||
private String stationName;
|
||||
|
||||
@ApiModelProperty(value = "设备名称")
|
||||
private String deviceName;
|
||||
|
||||
@ApiModelProperty(value = "转化工单状态 0 不能被转化 1 未转化工单 2 已转化工单")
|
||||
private Integer conversionStatus;
|
||||
|
||||
@ApiModelProperty(value = "设备的名称")
|
||||
private String name;
|
||||
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
package com.ho.flow.vo.resp.event;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Description TODO
|
||||
* Author yule
|
||||
* Date 2022/9/1 16:00
|
||||
*/
|
||||
@Data
|
||||
public class EventTypeAndLevelsReqVO {
|
||||
//发生次数(提示信息以上级别)
|
||||
@ApiModelProperty("告警发生次数")
|
||||
private Integer alarmOccurrencesNumber;
|
||||
|
||||
//未解决数量(提示信息以上级别)
|
||||
@ApiModelProperty("未解决数量")
|
||||
private Integer alarmUnresolvedNumber;
|
||||
|
||||
}
|
||||
@ -0,0 +1,19 @@
|
||||
package com.ho.flow.vo.resp.event;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Description TODO
|
||||
* Author yule
|
||||
* Date 2022/9/1 18:42
|
||||
*/
|
||||
@Data
|
||||
public class EventTypeNum {
|
||||
|
||||
@ApiModelProperty(value = "告警类型代表值")
|
||||
private Integer eventType;
|
||||
|
||||
@ApiModelProperty(value = "数量")
|
||||
private Integer count;
|
||||
}
|
||||
@ -0,0 +1,64 @@
|
||||
package com.ho.flow.vo.resp.event;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ho.common.tools.constant.CommonConstant;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author gyan
|
||||
* @desc: 实时数据导出
|
||||
* @DateTime: 2024/2/23 11:23
|
||||
*/
|
||||
@Data
|
||||
public class ExportEvnData {
|
||||
|
||||
|
||||
@ApiModelProperty(value = "电站名称")
|
||||
@ExcelProperty(value = "电站名称")
|
||||
private String stationName;
|
||||
|
||||
//设备类型
|
||||
@ApiModelProperty(value = "设备类型")
|
||||
@ExcelProperty(value = "设备类型")
|
||||
private String deviceName;
|
||||
//所属设备
|
||||
@ApiModelProperty(value = "所属设备")
|
||||
@ExcelProperty(value = "所属设备")
|
||||
private String name;
|
||||
|
||||
//状态
|
||||
@ApiModelProperty(value = "事件状态 1已确认 0 未确认")
|
||||
@ExcelProperty(value = "事件状态")
|
||||
private String status;
|
||||
//事件
|
||||
@ApiModelProperty(value = "事件类型等级:1; //一级(事故)2二级(故障)3三级(告警)4四级(提示)5;//五级(告知)")
|
||||
@ExcelProperty(value = "事件")
|
||||
private String eventLevel;
|
||||
//告警时间
|
||||
@ApiModelProperty(value = "告警时间")
|
||||
@JsonFormat(pattern = CommonConstant.DATE_YMD_HMSS)
|
||||
@ExcelProperty(value = "告警时间")
|
||||
private Date timeStamp;
|
||||
//告警内容
|
||||
@ApiModelProperty(value = "事件描述")
|
||||
@ExcelProperty(value = "事件描述")
|
||||
private String description;
|
||||
//确认人
|
||||
@ApiModelProperty(value = "确认人")
|
||||
@ExcelProperty(value = "确认人")
|
||||
private String confirmMan;
|
||||
//确认时间
|
||||
@ApiModelProperty(value = "确认时间")
|
||||
@JsonFormat(pattern = CommonConstant.DATE)
|
||||
@ExcelProperty(value = "确认时间")
|
||||
private Date confirmTime;
|
||||
//备注
|
||||
@ApiModelProperty(value = "备注")
|
||||
@ExcelProperty(value = "备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
package com.ho.flow.vo.resp.event;
|
||||
|
||||
import com.ho.common.tools.util.PageResult;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Description TODO
|
||||
* Author yule
|
||||
* Date 2022/9/2 9:34
|
||||
*/
|
||||
@Data
|
||||
public class PageResultMap<T> extends PageResult {
|
||||
@ApiModelProperty(value = "告警类型集合")
|
||||
private Map<Integer,Integer> eventTypes;
|
||||
|
||||
@ApiModelProperty(value = "告警等级集合")
|
||||
private Map<Integer,Integer> eventLevels;
|
||||
}
|
||||
@ -0,0 +1,34 @@
|
||||
package com.ho.flow.vo.resp.workorder;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description 回退列表返回参数
|
||||
* Author yule
|
||||
* Date 2023/2/8 10:24
|
||||
*/
|
||||
@Data
|
||||
public class FallBackTaskResp {
|
||||
|
||||
@ApiModelProperty(value = "taskInst")
|
||||
private List<String> taskInstIds;
|
||||
|
||||
@ApiModelProperty(value = "任务名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "任务定义key")
|
||||
private String taskDefinitionKey;
|
||||
|
||||
@ApiModelProperty(value = "流程id")
|
||||
private String processInstId;
|
||||
|
||||
@ApiModelProperty(value = "任务id")
|
||||
private String taskInstId;
|
||||
|
||||
//集团id
|
||||
@ApiModelProperty(value = "租户id")
|
||||
String tenantId;
|
||||
}
|
||||
@ -0,0 +1,50 @@
|
||||
package com.ho.flow.vo.resp.workorder;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ho.common.tools.constant.CommonConstant;
|
||||
import com.ho.common.tools.entity.OrderForm;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description 流程历史任务对象
|
||||
* Author yule
|
||||
* Date 2023/2/8 15:42
|
||||
*/
|
||||
@Data
|
||||
public class HisTaskResp {
|
||||
|
||||
@ApiModelProperty(value = "任务名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "任务耗时")
|
||||
private BigDecimal taskTime;
|
||||
|
||||
@ApiModelProperty(value = "执行人名称")
|
||||
private String userName = "";
|
||||
|
||||
@ApiModelProperty(value = "开始时间")
|
||||
private Date startTime;
|
||||
|
||||
@ApiModelProperty(value = "结束时间")
|
||||
@JsonFormat(pattern = CommonConstant.DATE)
|
||||
private Date endTime;
|
||||
|
||||
@ApiModelProperty(value = "建议")
|
||||
private String suggestion;
|
||||
|
||||
@ApiModelProperty(value = "状态 : 1同意 0拒绝")
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty(value = "表单数据")
|
||||
private OrderForm orderForm;
|
||||
|
||||
@ApiModelProperty(value = "执行人名称")
|
||||
private List<String> candidates = new ArrayList<>();
|
||||
|
||||
}
|
||||
@ -0,0 +1,25 @@
|
||||
package com.ho.flow.vo.resp.workorder;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Description 图片对象
|
||||
* Author yule
|
||||
* Date 2023/1/3 18:06
|
||||
*/
|
||||
@Data
|
||||
public class PictureRespVO {
|
||||
|
||||
@ApiModelProperty(value = "图片id")
|
||||
Integer pictureId;
|
||||
|
||||
@ApiModelProperty(value = "图片类型")
|
||||
String pictureType;
|
||||
|
||||
@ApiModelProperty(value = "图片base64码")
|
||||
String base;
|
||||
|
||||
@ApiModelProperty(value = "文件名")
|
||||
String fileName;
|
||||
}
|
||||
@ -0,0 +1,26 @@
|
||||
package com.ho.flow.vo.resp.workorder;
|
||||
|
||||
import com.ho.common.tools.entity.OrderDept;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author fancl
|
||||
* @desc: 流程流转前返回实体
|
||||
* @date 2023/2/8
|
||||
*/
|
||||
@Data
|
||||
public class PreDoResp {
|
||||
|
||||
@ApiModelProperty(value = "可选择人员列表")
|
||||
List<OrderDept> orderDeptUsers;
|
||||
|
||||
@ApiModelProperty(value = "下一节点任务名")
|
||||
String nextTaskName;
|
||||
|
||||
@ApiModelProperty(value = "任务标题")
|
||||
String title;
|
||||
|
||||
}
|
||||
@ -0,0 +1,83 @@
|
||||
package com.ho.flow.vo.resp.workorder;
|
||||
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import com.ho.common.tools.entity.OrderForm;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.ToString;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author fancl
|
||||
* @desc: 任务列表元素
|
||||
* @date 2023/2/7
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
@ToString
|
||||
@EqualsAndHashCode
|
||||
public class TaskDone {
|
||||
|
||||
@ApiModelProperty(value = "任务id")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private String id;
|
||||
|
||||
@ApiModelProperty(value = "工单类型 1:故障检修单,2:电站巡检单,3:电站清洗单")
|
||||
private Integer orderType;
|
||||
|
||||
@ApiModelProperty(value = "任务名称")
|
||||
private String planTitle;
|
||||
|
||||
@ApiModelProperty(value = "任务主题")
|
||||
private String title;
|
||||
|
||||
@ApiModelProperty(value = "发起人id")
|
||||
private String startUserId;
|
||||
|
||||
@ApiModelProperty(value = "发起人名字")
|
||||
private String startUserName;
|
||||
|
||||
@ApiModelProperty(value = "发送时间")
|
||||
private Date startTime;
|
||||
|
||||
@ApiModelProperty(value = "状态: ")
|
||||
private String status;
|
||||
|
||||
@ApiModelProperty(value = "租客id")
|
||||
String tenantId;
|
||||
|
||||
@ApiModelProperty(value = "优先级")
|
||||
private String priority;
|
||||
|
||||
@ApiModelProperty(value = "流程id")
|
||||
private String processInstanceId;
|
||||
|
||||
@ApiModelProperty(value = "表单数据")
|
||||
OrderForm orderForm;
|
||||
|
||||
@ApiModelProperty(value = "转发人员id")
|
||||
List<String> candidateUserList;
|
||||
|
||||
@ApiModelProperty(value = "发起人员id")
|
||||
String sender;
|
||||
|
||||
@ApiModelProperty(value = "任务名称")
|
||||
String taskName;
|
||||
|
||||
@ApiModelProperty(value = "建议")
|
||||
String suggestion;
|
||||
|
||||
@ApiModelProperty(value = "流转人")
|
||||
String assignee;
|
||||
|
||||
/**
|
||||
* 电站id
|
||||
*/
|
||||
@ApiModelProperty(value = "电站id")
|
||||
private Integer stationId;
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
package com.ho.flow.vo.resp.workorder;
|
||||
|
||||
import com.ho.flow.entity.WorkOrder;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.ToString;
|
||||
|
||||
/**
|
||||
* @author fancl
|
||||
* @desc: 工单任务对象,除了包含工单业务对象,还包括工单状态等
|
||||
* @date 2023/2/5
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
@ToString
|
||||
public class TaskRespVO extends WorkOrder {
|
||||
|
||||
}
|
||||
@ -0,0 +1,19 @@
|
||||
package com.ho.flow.vo.resp.workorder;
|
||||
|
||||
import com.ho.flow.vo.WorkOrderCirculation;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Description 查询工单流转返回参数
|
||||
* Author yule
|
||||
* Date 2022/10/17 15:06
|
||||
*/
|
||||
@Data
|
||||
public class WorkOrderCirculationRespVO extends WorkOrderCirculation {
|
||||
@ApiModelProperty(value = "发起人")
|
||||
String fromName;
|
||||
|
||||
@ApiModelProperty(value = "执行人")
|
||||
String toName;
|
||||
}
|
||||
@ -0,0 +1,39 @@
|
||||
package com.ho.flow.vo.resp.workorder;
|
||||
|
||||
import com.ho.flow.vo.WorkOrderOld;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.ToString;
|
||||
|
||||
/**
|
||||
* @Description 查询工单返回参数
|
||||
* Author yule
|
||||
* Date 2022/10/14 12:21
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
@ToString(callSuper = true)
|
||||
public class WorkOrderOldPageRespVO extends WorkOrderOld {
|
||||
|
||||
@ApiModelProperty(value = "任务id,工作流相关")
|
||||
String taskId;
|
||||
|
||||
@ApiModelProperty(value = "发起人")
|
||||
String fromName;
|
||||
|
||||
@ApiModelProperty(value = "执行人")
|
||||
String toName;
|
||||
|
||||
@ApiModelProperty(value = "电站名称")
|
||||
String stationName;
|
||||
|
||||
@ApiModelProperty(value = "0:跟踪 1:接收/关闭/分配 跟踪 " )
|
||||
Integer operation;
|
||||
|
||||
@ApiModelProperty(value = "0:不显示退回 1:退回")
|
||||
Integer returnFlag;
|
||||
|
||||
@ApiModelProperty(value = "0: 不可编辑 1: 可编辑")
|
||||
Integer edit;
|
||||
}
|
||||
@ -0,0 +1,36 @@
|
||||
package com.ho.flow.vo.resp.workorder;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author yule
|
||||
* @Date 2023/9/21 8:37
|
||||
* @desc 工单PDF导出对象
|
||||
*/
|
||||
@Data
|
||||
public class WorkOrderPDF {
|
||||
|
||||
//标题
|
||||
String title;
|
||||
|
||||
//工单类型
|
||||
String workOrderType;
|
||||
|
||||
//创建人
|
||||
String createName;
|
||||
|
||||
//创建时间
|
||||
String creatTime;
|
||||
|
||||
//计划处理时间
|
||||
String planTime;
|
||||
|
||||
//电站名称
|
||||
String stationName;
|
||||
|
||||
//设备名称
|
||||
String deviceName;
|
||||
|
||||
//告警描述
|
||||
String eventDecs;
|
||||
}
|
||||
@ -0,0 +1,32 @@
|
||||
package com.ho.flow.vo.resp.workorder;
|
||||
|
||||
import com.ho.common.tools.entity.file.OrderFile;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author yule
|
||||
* @Date 2023/9/21 8:47
|
||||
* @desc 工单PDF
|
||||
*/
|
||||
@Data
|
||||
public class WorkOrderPDFText {
|
||||
//处理人
|
||||
String assignee;
|
||||
|
||||
//任务状态
|
||||
String taskStatus;
|
||||
|
||||
//意见
|
||||
String suggestion;
|
||||
|
||||
//处理时间
|
||||
String endTime;
|
||||
|
||||
//文件
|
||||
List<OrderFile> files;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -0,0 +1,46 @@
|
||||
package com.ho.flow.vo.resp.workorder;
|
||||
|
||||
|
||||
import com.ho.business.entity.Station;
|
||||
import com.ho.business.vo.resp.DeviceRespVO;
|
||||
import com.ho.flow.entity.WorkOrder;
|
||||
import com.ho.flow.vo.Event;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description TODO
|
||||
* Author yule
|
||||
* Date 2023/2/4 14:53
|
||||
*/
|
||||
@Data
|
||||
public class WorkOrderRespVO extends WorkOrder {
|
||||
@ApiModelProperty(value = "设备名称")
|
||||
private List<DeviceRespVO> deviceList;
|
||||
|
||||
@ApiModelProperty(value = "电站名称")
|
||||
private List<Station> stationList;
|
||||
|
||||
@ApiModelProperty(value = "告警集合")
|
||||
private List<Event> eventList;
|
||||
|
||||
@ApiModelProperty(value = "事件描述")
|
||||
private String description;
|
||||
|
||||
@ApiModelProperty(value = "图片对象")
|
||||
private List<PictureRespVO> pictureResps;
|
||||
|
||||
@ApiModelProperty(value = "发起人")
|
||||
private String userName;
|
||||
|
||||
@ApiModelProperty(value = "当前节点名 , d1 ,d2 ,d3, d4,deleted,end")
|
||||
private String currentStep;
|
||||
|
||||
@ApiModelProperty(value = "是否有执行人, false:没有执行人,需要先接收 true:有执行人,可以流转和退回 ")
|
||||
private Boolean haveAssignee;
|
||||
|
||||
@ApiModelProperty(value = "判断告警是否存在 0:存在 /1:不存")
|
||||
private Integer flag;
|
||||
}
|
||||
@ -0,0 +1,19 @@
|
||||
package com.ho.flow.vo.resp.workorderplan;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Description 设备id及设备名称
|
||||
* Author yule
|
||||
* Date 2023/3/17 11:21
|
||||
*/
|
||||
@Data
|
||||
public class DeviceWorkOrder {
|
||||
|
||||
@ApiModelProperty(value = "设备id")
|
||||
Integer deviceId;
|
||||
|
||||
@ApiModelProperty(value = "名称")
|
||||
String Name;
|
||||
}
|
||||
@ -0,0 +1,20 @@
|
||||
package com.ho.flow.vo.resp.workorderplan;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Description 电站id及电站名称
|
||||
* Author yule
|
||||
* Date 2023/3/17 11:19
|
||||
*/
|
||||
@Data
|
||||
public class StationWorkOrder {
|
||||
|
||||
@ApiModelProperty(value = "电站id")
|
||||
Integer stationId;
|
||||
|
||||
@ApiModelProperty(value = "名称")
|
||||
String Name;
|
||||
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
package com.ho.flow.vo.resp.workorderplan;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Description 用户id级名称
|
||||
* Author yule
|
||||
* Date 2023/3/17 16:14
|
||||
*/
|
||||
@Data
|
||||
public class UserWorkOrder {
|
||||
@ApiModelProperty(value = "用户id")
|
||||
String userId;
|
||||
|
||||
@ApiModelProperty(value = "名称")
|
||||
String Name;
|
||||
}
|
||||
@ -0,0 +1,25 @@
|
||||
package com.ho.flow.vo.resp.workorderplan;
|
||||
|
||||
import com.ho.flow.entity.WorkOrderPlan;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description 查询工单计划返回值
|
||||
* Author yule
|
||||
* Date 2023/3/16 16:05
|
||||
*/
|
||||
@Data
|
||||
public class WorkOrderPlanRespVO extends WorkOrderPlan {
|
||||
|
||||
@ApiModelProperty(value = "电站名称集合")
|
||||
List<Integer> stationList;
|
||||
|
||||
@ApiModelProperty(value = "设备名称集合")
|
||||
List<Integer> deviceList;
|
||||
|
||||
@ApiModelProperty(value = "用户名称集合")
|
||||
List<String> userList;
|
||||
}
|
||||
Reference in New Issue
Block a user