yang_shj
1 year ago
20 changed files with 363 additions and 31 deletions
@ -0,0 +1,49 @@
|
||||
package com.hnac.hzinfo.inspect.task.vo; |
||||
|
||||
import java.io.Serializable; |
||||
import java.util.Date; |
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.AllArgsConstructor; |
||||
import lombok.Builder; |
||||
import lombok.Getter; |
||||
import lombok.NoArgsConstructor; |
||||
import lombok.Setter; |
||||
import org.springframework.format.annotation.DateTimeFormat; |
||||
|
||||
@ApiModel(value = "巡检情况列表") |
||||
@Getter |
||||
@Setter |
||||
@Builder |
||||
@NoArgsConstructor |
||||
@AllArgsConstructor |
||||
public class EventListVO implements Serializable { |
||||
|
||||
private static final long serialVersionUID = 3596553809412766823L; |
||||
|
||||
@ApiModelProperty(value = "eventId") |
||||
private Long id; |
||||
|
||||
@ApiModelProperty(value = "巡检对象名称") |
||||
private String objectName; |
||||
@ApiModelProperty(value = "巡检项目名称") |
||||
private String projectName; |
||||
|
||||
/** |
||||
* 是否问题 0:否 1 是 默认0 |
||||
*/ |
||||
@ApiModelProperty(value = "是否问题 0:否 1 是 默认0") |
||||
private String isProblem; |
||||
|
||||
@DateTimeFormat( |
||||
pattern = "yyyy-MM-dd HH:mm:ss" |
||||
) |
||||
@JsonFormat( |
||||
pattern = "yyyy-MM-dd HH:mm:ss" |
||||
) |
||||
@ApiModelProperty(value = "登记时间") |
||||
private Date checkInTime; |
||||
} |
@ -0,0 +1,138 @@
|
||||
package com.hnac.hzinfo.inspect.task.vo; |
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
||||
import com.fasterxml.jackson.databind.ser.std.NullSerializer; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.*; |
||||
import org.springblade.core.tool.utils.DateUtil; |
||||
import org.springframework.format.annotation.DateTimeFormat; |
||||
|
||||
import java.io.Serializable; |
||||
import java.time.LocalDateTime; |
||||
|
||||
/** |
||||
* 任务对象项目内容 |
||||
* @author ninglong |
||||
* @create 2020-08-24 8:55 |
||||
*/ |
||||
@Setter |
||||
@Getter |
||||
@ApiModel(value = "任务对象项目内容") |
||||
@NoArgsConstructor |
||||
@AllArgsConstructor |
||||
@Builder |
||||
public class TaskObjectProjectContentVO implements Serializable { |
||||
|
||||
/** |
||||
* 内容ID |
||||
*/ |
||||
@ApiModelProperty(value = "内容ID") |
||||
private Long contentId; |
||||
|
||||
/** |
||||
* 内容名称 |
||||
*/ |
||||
@ApiModelProperty(value = "内容名称") |
||||
private String name; |
||||
/** |
||||
* 检测标准 |
||||
*/ |
||||
@ApiModelProperty(value = "检测标准") |
||||
private String description; |
||||
|
||||
/** |
||||
* 完成标识 |
||||
*/ |
||||
@ApiModelProperty(value = "完成标识 0 不可用 1 可用") |
||||
private String available; |
||||
/** |
||||
* 检测类型 |
||||
*/ |
||||
@ApiModelProperty(value = "检测类型") |
||||
private String checkType; |
||||
/** |
||||
* 记录类型 |
||||
*/ |
||||
@ApiModelProperty(value = "记录类型") |
||||
private String recordType; |
||||
|
||||
/** |
||||
* 内容当前状态 0 异常 1 正常 |
||||
*/ |
||||
@ApiModelProperty(value = "内容当前状态 0 异常 1 正常 ") |
||||
private String currentStatus; |
||||
/** |
||||
* 内容当前值 |
||||
*/ |
||||
@ApiModelProperty(value = "内容当前值") |
||||
private String currentValue; |
||||
|
||||
/** |
||||
* 文件地址 |
||||
*/ |
||||
@ApiModelProperty(value = "文件地址") |
||||
private String fileUrl; |
||||
|
||||
/** |
||||
* 表针识别,表盘ID |
||||
*/ |
||||
@JsonSerialize(nullsUsing = NullSerializer.class) |
||||
@ApiModelProperty(value = "表针识别,表盘ID") |
||||
private Long clockId; |
||||
|
||||
/** |
||||
* 视频巡检摄像机ID |
||||
*/ |
||||
@JsonSerialize(nullsUsing = NullSerializer.class) |
||||
@ApiModelProperty(value = "视频巡检摄像机ID") |
||||
private Long cameraId; |
||||
|
||||
/** |
||||
* 检测类型子类 |
||||
*/ |
||||
@ApiModelProperty(value = "检测类型子类") |
||||
private String checkTypeSon; |
||||
|
||||
/** |
||||
* 开关/灯/表盘在摄像机可视面二维坐标位置,例如:2,1 表示第三行第二列,行列均从0开始记录,默认 0,0,如果有多张图则:0,0,1( 最后一位表示所在图片,最后一位1表示第二张图),默认0,0,0 |
||||
*/ |
||||
@ApiModelProperty(value = "开关/灯/表盘在摄像机可视面二维坐标位置,例如:2,1 表示第三行第二列,行列均从0开始记录,默认 0,0,如果有多张图则:0,0,1( 最后一位表示所在图片,最后一位1表示第二张图),默认0,0,0") |
||||
private String cameraAddr; |
||||
|
||||
|
||||
/** |
||||
* 其他参数,例如多联断路器内断路器的个数 |
||||
*/ |
||||
@ApiModelProperty(value = "其他参数,例如多联断路器内断路器的个数") |
||||
private String otherParam; |
||||
|
||||
/** |
||||
* 校验值,用来判断当前值是否正确:枚举数据通过 “ , ”隔开, 区间通过~隔开 |
||||
*/ |
||||
@ApiModelProperty(value = "校验值,用来判断当前值是否正确:枚举数据通过 “ , ”隔开, 区间通过~隔开") |
||||
private String checkVal; |
||||
|
||||
/** |
||||
* 记值方式为选择时选择值 |
||||
*/ |
||||
@ApiModelProperty(value = "记值方式为选择时选择值") |
||||
private String dictType; |
||||
|
||||
@ApiModelProperty(value = "实时数据") |
||||
private String realData; |
||||
|
||||
@ApiModelProperty(value = "实时数据采集时间") |
||||
private String gatherTime; |
||||
|
||||
@ApiModelProperty(value = "绑定物模型属性标识") |
||||
private String attrSignage; |
||||
|
||||
@ApiModelProperty(value = "绑定物模型属性名称") |
||||
private String attrName; |
||||
|
||||
@ApiModelProperty(value = "设备编号") |
||||
private String emCode; |
||||
|
||||
} |
@ -0,0 +1,51 @@
|
||||
package com.hnac.hzinfo.inspect.task.vo; |
||||
|
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import org.springblade.core.tenant.mp.TenantEntity; |
||||
|
||||
|
||||
/** |
||||
* 实体类 |
||||
* |
||||
* @author Chill |
||||
*/ |
||||
@Data |
||||
public class TaskObjectProjectOfflineVO extends TenantEntity { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 任务ID |
||||
*/ |
||||
@ApiModelProperty(value = "任务ID") |
||||
private Long taskId; |
||||
/** |
||||
* 对象ID |
||||
*/ |
||||
@ApiModelProperty(value = "对象ID") |
||||
private Long objectId; |
||||
/** |
||||
* 项目ID |
||||
*/ |
||||
@ApiModelProperty(value = "项目ID") |
||||
private Long projectId; |
||||
|
||||
|
||||
/** |
||||
* 目标编码 |
||||
*/ |
||||
@ApiModelProperty(value = "目标编码") |
||||
private String code; |
||||
/** |
||||
* 目标名称 |
||||
*/ |
||||
@ApiModelProperty(value = "目标名称") |
||||
private String name; |
||||
|
||||
/** |
||||
* 目标描述 |
||||
*/ |
||||
@ApiModelProperty(value = "目标描述") |
||||
private String description; |
||||
} |
@ -0,0 +1,34 @@
|
||||
package com.hnac.hzinfo.inspect.task.vo; |
||||
|
||||
import com.google.common.collect.Lists; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.*; |
||||
|
||||
import java.io.Serializable; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 任务对象项目 |
||||
* @author ninglong |
||||
* @create 2020-08-24 8:52 |
||||
*/ |
||||
@Getter |
||||
@Setter |
||||
@ApiModel(value = "任务对象项目") |
||||
@AllArgsConstructor |
||||
@NoArgsConstructor |
||||
@Builder |
||||
public class TaskObjectProjectVO implements Serializable { |
||||
|
||||
@ApiModelProperty(value = "任务对象项目ID") |
||||
private Long projectId; |
||||
@ApiModelProperty(value = "任务对象项目名称") |
||||
private String projectName; |
||||
@ApiModelProperty(value = "项目状态") |
||||
private Integer status; |
||||
|
||||
@Builder.Default |
||||
@ApiModelProperty(value = "任务对象项目内容") |
||||
private List<TaskObjectProjectContentVO> contents = Lists.newArrayList(); |
||||
} |
@ -0,0 +1,61 @@
|
||||
package com.hnac.hzinfo.inspect.task.vo; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import com.google.common.collect.Lists; |
||||
import com.hnac.hzims.safeproduct.entity.DangerSourceEntity; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.*; |
||||
import org.springblade.core.tool.utils.ObjectUtil; |
||||
|
||||
import java.io.Serializable; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 任务对象 |
||||
* @author ninglong |
||||
* @create 2020-08-24 8:51 |
||||
*/ |
||||
@Setter |
||||
@Getter |
||||
@ApiModel(value = "任务对象") |
||||
@AllArgsConstructor |
||||
@NoArgsConstructor |
||||
@Builder |
||||
public class TaskObjectVO implements Serializable { |
||||
/** |
||||
* 任务ID |
||||
*/ |
||||
@ApiModelProperty(value = "任务ID") |
||||
private Long taskId; |
||||
|
||||
@ApiModelProperty(value = "任务对象ID") |
||||
private Long objId; |
||||
@ApiModelProperty(value = "任务对象名称") |
||||
private String objName; |
||||
@ApiModelProperty(value = "对象状态") |
||||
private Integer status; |
||||
|
||||
/** |
||||
* 是否重复记录 0 不允许 1允许 |
||||
*/ |
||||
@ApiModelProperty(value = "是否重复记录 0 不允许 1允许") |
||||
private String duplicateRecord; |
||||
|
||||
@ApiModelProperty(value = "排序") |
||||
private Integer order; |
||||
|
||||
@ApiModelProperty(value = "巡检对象危险点信息") |
||||
private List<DangerSourceEntity> dangers; |
||||
|
||||
@Builder.Default |
||||
@ApiModelProperty(value = "任务对象项目") |
||||
private List<TaskObjectProjectVO> projects = Lists.newArrayList(); |
||||
|
||||
public Integer getOrder() { |
||||
if(ObjectUtil.isEmpty(this.order)){ |
||||
return 1; |
||||
} |
||||
return order; |
||||
} |
||||
} |
Loading…
Reference in new issue