forked from rongchao/epmet-cloud-rizhao
				
			
				 11 changed files with 463 additions and 20 deletions
			
			
		@ -0,0 +1,47 @@ | 
				
			|||
package com.epmet.dto.form.patrol; | 
				
			|||
 | 
				
			|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import javax.validation.constraints.NotBlank; | 
				
			|||
import java.io.Serializable; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @Description 网格员例行工作 | 
				
			|||
 * @Author sun | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class GridMemberRoutineWorkFormDTO implements Serializable { | 
				
			|||
 | 
				
			|||
    private static final long serialVersionUID = -3522636529743412120L; | 
				
			|||
    public interface RoutineWork extends CustomerClientShowGroup {} | 
				
			|||
    public interface RoutineWorkDetail extends CustomerClientShowGroup {} | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     *  网格Id | 
				
			|||
     */ | 
				
			|||
    @NotBlank(message = "网格Id不能为空", groups = RoutineWork.class) | 
				
			|||
    private String gridId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     *  例行工作Id | 
				
			|||
     */ | 
				
			|||
    @NotBlank(message = "例行工作Id不能为空", groups = RoutineWorkDetail.class) | 
				
			|||
    private String routineWorkId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     *  当前页 | 
				
			|||
     */ | 
				
			|||
    private Integer pageNo = 1; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     *  每页记录数 | 
				
			|||
     */ | 
				
			|||
    private Integer pageSize = 20; | 
				
			|||
 | 
				
			|||
    //token中客户Id
 | 
				
			|||
    private String customerId; | 
				
			|||
    //token中用户Id
 | 
				
			|||
    private String staffId; | 
				
			|||
 | 
				
			|||
} | 
				
			|||
@ -0,0 +1,84 @@ | 
				
			|||
package com.epmet.dto.result; | 
				
			|||
 | 
				
			|||
import com.fasterxml.jackson.annotation.JsonFormat; | 
				
			|||
import com.fasterxml.jackson.annotation.JsonIgnore; | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import java.io.Serializable; | 
				
			|||
import java.util.Date; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @Description 网格员例行工作详情 | 
				
			|||
 * @Author sun | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class RoutineWorkDetailResultDTO implements Serializable { | 
				
			|||
    private static final long serialVersionUID = 1L; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 例行工作Id | 
				
			|||
     */ | 
				
			|||
    private String routineWorkId; | 
				
			|||
    /** | 
				
			|||
     * 网格Id | 
				
			|||
     */ | 
				
			|||
    private String gridId; | 
				
			|||
    /** | 
				
			|||
     * 网格名称 | 
				
			|||
     */ | 
				
			|||
    private String gridName; | 
				
			|||
    /** | 
				
			|||
     * 网格员Id | 
				
			|||
     */ | 
				
			|||
    private String staffId; | 
				
			|||
    /** | 
				
			|||
     * 网格员姓名 | 
				
			|||
     */ | 
				
			|||
    private String staffName; | 
				
			|||
    /** | 
				
			|||
     * 提交日期 | 
				
			|||
     */ | 
				
			|||
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") | 
				
			|||
    private Date submitTime; | 
				
			|||
    /** | 
				
			|||
     * 事项类型名称,一类-二类 | 
				
			|||
     */ | 
				
			|||
    private String workTypeName; | 
				
			|||
    /** | 
				
			|||
     * 重点人员是否在当地 | 
				
			|||
     */ | 
				
			|||
    private String isKeyPeopleLocateName; | 
				
			|||
    /** | 
				
			|||
     * 重点人员现状 | 
				
			|||
     */ | 
				
			|||
    private String keyPeopleStatus; | 
				
			|||
    /** | 
				
			|||
     * 事项名称 | 
				
			|||
     */ | 
				
			|||
    private String title; | 
				
			|||
    /** | 
				
			|||
     * 是否异常 | 
				
			|||
     */ | 
				
			|||
    private String isNormalName; | 
				
			|||
    /** | 
				
			|||
     * 发生日期 | 
				
			|||
     */ | 
				
			|||
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") | 
				
			|||
    private Date happenTime; | 
				
			|||
    /** | 
				
			|||
     * 发生地点 | 
				
			|||
     */ | 
				
			|||
    private String address; | 
				
			|||
    /** | 
				
			|||
     * 事项简述 | 
				
			|||
     */ | 
				
			|||
    private String workContent; | 
				
			|||
 | 
				
			|||
    //例行工作一类编码
 | 
				
			|||
    @JsonIgnore | 
				
			|||
    private String allPCode; | 
				
			|||
    //例行工作二类编码
 | 
				
			|||
    @JsonIgnore | 
				
			|||
    private String workTypeCode; | 
				
			|||
 | 
				
			|||
} | 
				
			|||
@ -0,0 +1,63 @@ | 
				
			|||
package com.epmet.dto.result; | 
				
			|||
 | 
				
			|||
import com.fasterxml.jackson.annotation.JsonFormat; | 
				
			|||
import com.fasterxml.jackson.annotation.JsonIgnore; | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import java.io.Serializable; | 
				
			|||
import java.util.Date; | 
				
			|||
import java.util.List; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @Description 网格员例行工作列表 | 
				
			|||
 * @Author sun | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class RoutineWorkListResultDTO implements Serializable { | 
				
			|||
    private static final long serialVersionUID = 1L; | 
				
			|||
    /** | 
				
			|||
     * 总条数 | 
				
			|||
     */ | 
				
			|||
    private Integer total = 0; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 集合对象 | 
				
			|||
     */ | 
				
			|||
    private List<RoutineWorkList> list; | 
				
			|||
 | 
				
			|||
    @Data | 
				
			|||
    public static class RoutineWorkList { | 
				
			|||
        /** | 
				
			|||
         * 例行工作Id | 
				
			|||
         */ | 
				
			|||
        private String routineWorkId; | 
				
			|||
 | 
				
			|||
        /** | 
				
			|||
         * 标题 | 
				
			|||
         */ | 
				
			|||
        private String title; | 
				
			|||
 | 
				
			|||
        /** | 
				
			|||
         * 提交日期 | 
				
			|||
         */ | 
				
			|||
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") | 
				
			|||
        private Date submitTime; | 
				
			|||
 | 
				
			|||
        /** | 
				
			|||
         * 工作类型[一类-二类名称] | 
				
			|||
         */ | 
				
			|||
        private String workTypeName; | 
				
			|||
 | 
				
			|||
        /** | 
				
			|||
         * 是否异常 | 
				
			|||
         */ | 
				
			|||
        private String isNormalName; | 
				
			|||
        //例行工作一类编码
 | 
				
			|||
        @JsonIgnore | 
				
			|||
        private String allPCode; | 
				
			|||
        //例行工作二类编码
 | 
				
			|||
        @JsonIgnore | 
				
			|||
        private String workTypeCode; | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
} | 
				
			|||
@ -0,0 +1,35 @@ | 
				
			|||
package com.epmet.dto.result; | 
				
			|||
 | 
				
			|||
import com.fasterxml.jackson.annotation.JsonFormat; | 
				
			|||
import com.fasterxml.jackson.annotation.JsonIgnore; | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import java.io.Serializable; | 
				
			|||
import java.util.Date; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @Description 网格员例行工作数据统计 | 
				
			|||
 * @Author sun | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class StatsdataResultDTO implements Serializable { | 
				
			|||
    private static final long serialVersionUID = 1L; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 巡查总次数 | 
				
			|||
     */ | 
				
			|||
    private Integer patrolTotal; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 巡查时长(xx小时xx分钟) | 
				
			|||
     */ | 
				
			|||
    private String totalTime; | 
				
			|||
    @JsonIgnore | 
				
			|||
    private Integer totalNum; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 例行工作总次数 | 
				
			|||
     */ | 
				
			|||
    private Integer routineWorkCount; | 
				
			|||
 | 
				
			|||
} | 
				
			|||
					Loading…
					
					
				
		Reference in new issue