/*
|
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
|
*
|
* Redistribution and use in source and binary forms, with or without
|
* modification, are permitted provided that the following conditions are met:
|
*
|
* Redistributions of source code must retain the above copyright notice,
|
* this list of conditions and the following disclaimer.
|
* Redistributions in binary form must reproduce the above copyright
|
* notice, this list of conditions and the following disclaimer in the
|
* documentation and/or other materials provided with the distribution.
|
* Neither the name of the dreamlu.net developer nor the names of its
|
* contributors may be used to endorse or promote products derived from
|
* this software without specific prior written permission.
|
* Author: Chill 庄骞 (smallchill@163.com)
|
*/
|
package org.sxkj.resource.vo;
|
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import org.sxkj.common.func.Streams;
|
import org.sxkj.resource.entity.Attach;
|
|
import java.util.List;
|
|
/**
|
* 附件表视图实体类
|
*
|
* @author Chill
|
*/
|
@Data
|
@ApiModel(value = "AttachVO对象", description = "附件表")
|
public class AttachVO extends Attach {
|
private static final long serialVersionUID = 1L;
|
|
@ApiModelProperty(value = "开始时间")
|
private String startTime;
|
|
@ApiModelProperty(value = "结束时间")
|
private String endTime;
|
|
@ApiModelProperty(value = "区域编码")
|
private String areaCode;
|
|
@ApiModelProperty(value = "事件类型")
|
private String wordOrderType;
|
|
@ApiModelProperty(value = "ai状态")
|
private Integer aiStatus;
|
|
@ApiModelProperty(value = "照片类型")
|
private String photoType;
|
|
@ApiModelProperty(value = "照片结果类型")
|
private List<Integer> resultTypes;
|
|
@ApiModelProperty(value = "排序方式 true:任务执行时间 false:附件创建时间")
|
private Boolean orderByCreateTime;
|
// 倒序还是顺序
|
@ApiModelProperty(value = "排序方式 true:升序 false:降序")
|
private Boolean orderAsc;
|
|
@ApiModelProperty(value = "任务名称")
|
private String jobName;
|
|
@ApiModelProperty(value = "任务时间")
|
private String jobTime;
|
|
@ApiModelProperty(value = "任务id")
|
private String wayLineJobId;
|
|
@ApiModelProperty(value = "任务id集合")
|
private List<String> wayLineJobIdList;
|
|
@ApiModelProperty(value = "区域名称")
|
private String regionName;
|
|
|
@ApiModelProperty(value = "机巢名称")
|
private String nestName;
|
|
|
@ApiModelProperty(value = "事件编号")
|
private String eventNum;
|
|
@ApiModelProperty(value = "事件名称")
|
private String eventName;
|
|
/**
|
* 操作记录id
|
*/
|
private List<Long> eventRecordIds;
|
/**
|
* md5值
|
*/
|
private List<String> md5s;
|
|
@ApiModelProperty(value = "机场经度")
|
private String dockLongitude;
|
|
@ApiModelProperty(value = "机场纬度")
|
private String dockLatitude;
|
// index
|
@ApiModelProperty(value = "index")
|
private String index;
|
|
/**
|
* 设置昵称数据
|
*
|
* @param list
|
*/
|
public static void settingNickName(List<AttachVO> list) {
|
Streams.toList(list, entity -> {
|
entity.setNickName(Attach.getNickName(entity));
|
return entity;
|
});
|
}
|
}
|