7 changed files with 190 additions and 6 deletions
@ -0,0 +1,53 @@ |
|||||
|
package com.epmet.dto.form.patrol; |
||||
|
|
||||
|
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.Min; |
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Description 【网格员工作统计】巡查记录列表 |
||||
|
* @Author sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class PcworkRecordListFormDTO implements Serializable { |
||||
|
private static final long serialVersionUID = 9156247659994638103L; |
||||
|
|
||||
|
/** |
||||
|
* 组织或网格Id |
||||
|
*/ |
||||
|
@NotBlank(message = "组织Id不能为空", groups = Staff.class) |
||||
|
private String orgId; |
||||
|
/** |
||||
|
* 组织agency 网格grid |
||||
|
*/ |
||||
|
@NotBlank(message = "组织类型不能为空", groups = Staff.class) |
||||
|
private String orgType; |
||||
|
/** |
||||
|
* 工作人员Id |
||||
|
*/ |
||||
|
private String staffId; |
||||
|
/** |
||||
|
* 开始时间【yyyymmdd】 |
||||
|
*/ |
||||
|
private String startTime; |
||||
|
/** |
||||
|
* 结束时间【yyyymmdd】 |
||||
|
*/ |
||||
|
@NotBlank(message = "结束时间不能为空",groups = Staff.class) |
||||
|
private String endTime; |
||||
|
/** |
||||
|
* 页码 |
||||
|
* */ |
||||
|
@Min(1) |
||||
|
private Integer pageNo; |
||||
|
/** |
||||
|
* 每页多少条 |
||||
|
* */ |
||||
|
private Integer pageSize = 20; |
||||
|
private Boolean isPage = true; |
||||
|
public interface Staff extends CustomerClientShowGroup {} |
||||
|
|
||||
|
} |
@ -0,0 +1,43 @@ |
|||||
|
package com.epmet.dto.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @Description 【网格员工作统计】巡查记录列表 |
||||
|
* @Author sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class PcworkRecordListResultDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = -1L; |
||||
|
|
||||
|
List<StaffPatrol> list = new ArrayList<>(); |
||||
|
private Integer total; |
||||
|
|
||||
|
@Data |
||||
|
public static class StaffPatrol { |
||||
|
//人员ID
|
||||
|
private String staffId; |
||||
|
//人员名称
|
||||
|
private String staffName; |
||||
|
//网格ID
|
||||
|
private String gridId; |
||||
|
//网格名称
|
||||
|
private String gridName; |
||||
|
//状态(英文key)
|
||||
|
private String status; |
||||
|
//状态(中文)
|
||||
|
private String statusName; |
||||
|
//巡查开始时间 返回返回格式化字符串,yyyy-MM-dd HH:mm:ss
|
||||
|
private String patrolStartTime; |
||||
|
//巡查结束时间 返回返回格式化字符串,yyyy-MM-dd HH:mm:ss
|
||||
|
private String patrolEndTime; |
||||
|
//巡查时长 xx小时xx分钟
|
||||
|
private String totalTime; |
||||
|
} |
||||
|
|
||||
|
} |
Loading…
Reference in new issue