9 changed files with 182 additions and 12 deletions
@ -0,0 +1,36 @@ |
|||
package com.kms.yxgh.df.dto; |
|||
|
|||
import com.shuili.common.annotation.Excel; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
|
|||
@Data |
|||
@ApiModel("堤防巡视检查路线导出") |
|||
public class DfCheckingLineExportDto { |
|||
|
|||
@Excel(name = "提防编码", sort = 3) |
|||
@ApiModelProperty("堤防代码") |
|||
private String dikeCode; |
|||
@Excel(name = "提防名称", sort = 1) |
|||
@ApiModelProperty("堤防名称") |
|||
private String dikeName; |
|||
@Excel(name = "提防类型", dictType = "embankment_type", sort = 2) |
|||
@ApiModelProperty("堤防类型") |
|||
private String dikeType; |
|||
@Excel(name = "巡查路线名称", sort = 4) |
|||
@ApiModelProperty("巡查名称") |
|||
private String name; |
|||
@Excel(name = "巡查类型", dictType = "xs_classfy", sort = 5) |
|||
@ApiModelProperty("巡查路线类型") |
|||
private String type; |
|||
@Excel(name = "巡查责任人类型", sort = 6, dictType = "person_type") |
|||
@ApiModelProperty("巡查责任人类型") |
|||
private String dutyHolderType; |
|||
@Excel(name = "创建时间", dateFormat = "yyyy-MM-dd HH:mm:ss", sort = 7) |
|||
@ApiModelProperty("创建时间") |
|||
private Date createTime; |
|||
|
|||
} |
@ -0,0 +1,78 @@ |
|||
package com.kms.yxgh.df.dto; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.shuili.common.annotation.Excel; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* @ClassName: DfRecordDetailDto |
|||
* @Description: TODO |
|||
* @Date: 2023/11/15 上午10:36 * |
|||
* @author: hxh |
|||
* @version: 1.0 |
|||
*/ |
|||
|
|||
@Data |
|||
@ApiModel("堤防巡视检查记录详情导出") |
|||
public class DfRecordDetailExportDto { |
|||
|
|||
|
|||
@Excel(name = "提防名称", sort = 1) |
|||
@ApiModelProperty("堤防名称") |
|||
private String dikeName; |
|||
|
|||
@Excel(name = "提防类型", dictType = "embankment_type", sort = 2) |
|||
@ApiModelProperty("堤防类型") |
|||
private String dikeType; |
|||
|
|||
@Excel(name = "巡查计划名称", sort = 3) |
|||
@ApiModelProperty("计划名称") |
|||
private String planName; |
|||
|
|||
@Excel(name = "巡查计划子项名称", sort = 4) |
|||
@ApiModelProperty("子计划名称") |
|||
private String subPlanName; |
|||
|
|||
@Excel(name = "巡查计划开始时间", dateFormat = "yyyy-MM-dd HH:mm:ss", sort = 5) |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
@ApiModelProperty("子项开始时间") |
|||
private Date subPlanStartDate; |
|||
|
|||
@Excel(name = "巡查计划结束时间", dateFormat = "yyyy-MM-dd HH:mm:ss", sort = 6) |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
@ApiModelProperty("子项结束时间") |
|||
private Date subPlanEndDate; |
|||
|
|||
@Excel(name = "巡查人", sort = 7) |
|||
private String createName; |
|||
|
|||
@Excel(name = "巡查时长", sort = 8) |
|||
@ApiModelProperty("巡查时长") |
|||
private String duration; |
|||
|
|||
@Excel(name = "巡查开始时间", dateFormat = "yyyy-MM-dd HH:mm:ss", sort = 9) |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
@ApiModelProperty("巡查开始时间") |
|||
private Date startDate; |
|||
|
|||
@Excel(name = "巡查结束时间", dateFormat = "yyyy-MM-dd HH:mm:ss", sort = 10) |
|||
@ApiModelProperty("巡查结束时间") |
|||
private Date endDate; |
|||
|
|||
@Excel(name = "隐患状态", sort = 11) |
|||
@ApiModelProperty("状态") |
|||
private String status; |
|||
|
|||
public void initDuration() { |
|||
if (this.startDate != null && this.endDate != null) { |
|||
long diff = this.endDate.getTime() - this.startDate.getTime(); |
|||
long hours = diff / (1000 * 60 * 60); |
|||
this.duration = hours + ""; |
|||
} |
|||
} |
|||
|
|||
} |
Loading…
Reference in new issue