forked from luyan/epmet-cloud-lingshan
				
			
				 16 changed files with 385 additions and 5 deletions
			
			
		@ -0,0 +1,29 @@ | 
				
			|||
package com.epmet.dataaggre.dto.epmetuser.form; | 
				
			|||
 | 
				
			|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import javax.validation.constraints.NotBlank; | 
				
			|||
import java.io.Serializable; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @Description 对外接口--查询工作人员基本信息-接口入参 | 
				
			|||
 * @Auth sun | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class OpenStaffDetailFormDTO implements Serializable { | 
				
			|||
 | 
				
			|||
    private static final long serialVersionUID = -3381286960911634231L; | 
				
			|||
    /** | 
				
			|||
     * 客户Id | 
				
			|||
     */ | 
				
			|||
    @NotBlank(message = "客户Id不能为空", groups = OpenStaffDetailFormDTO.Open.class) | 
				
			|||
    private String customerId; | 
				
			|||
    /** | 
				
			|||
     * 手机号 | 
				
			|||
     */ | 
				
			|||
    @NotBlank(message = "手机号不能为空", groups = OpenStaffDetailFormDTO.Open.class) | 
				
			|||
    private String mobile; | 
				
			|||
    public interface Open extends CustomerClientShowGroup {} | 
				
			|||
 | 
				
			|||
} | 
				
			|||
@ -0,0 +1,28 @@ | 
				
			|||
package com.epmet.dataaggre.dto.epmetuser.result; | 
				
			|||
 | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import java.io.Serializable; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @Description 对外接口--查询工作人员基本信息-接口返参 | 
				
			|||
 * @Auth sun | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class OpenStaffDetailResultDTO implements Serializable { | 
				
			|||
    private static final long serialVersionUID = 7129564173128153335L; | 
				
			|||
 | 
				
			|||
    //工作人员用户id
 | 
				
			|||
    private String staffId = ""; | 
				
			|||
    //工作人员姓名
 | 
				
			|||
    private String staffName = ""; | 
				
			|||
    //手机号
 | 
				
			|||
    private String mobile = ""; | 
				
			|||
    //用户所属组织id
 | 
				
			|||
    private String agencyId = ""; | 
				
			|||
    //用户所属组织全路径名称
 | 
				
			|||
    private String agencyAllName = ""; | 
				
			|||
    //客户Id
 | 
				
			|||
    private String customerId = ""; | 
				
			|||
 | 
				
			|||
} | 
				
			|||
@ -0,0 +1,81 @@ | 
				
			|||
package com.epmet.dto.stats.form; | 
				
			|||
 | 
				
			|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import javax.validation.constraints.NotEmpty; | 
				
			|||
import java.io.Serializable; | 
				
			|||
import java.math.BigDecimal; | 
				
			|||
import java.util.Date; | 
				
			|||
import java.util.List; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @Description 数据上报--网格员事件总数上报-接口入参 | 
				
			|||
 * @Auth sun | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class GmUploadDataFormDTO implements Serializable { | 
				
			|||
    private static final long serialVersionUID = -9178779369245037701L; | 
				
			|||
    /** | 
				
			|||
     * 为true时需要删除历史数据 | 
				
			|||
     */ | 
				
			|||
    private Boolean isFirst; | 
				
			|||
    //客户Id
 | 
				
			|||
    private String customerId; | 
				
			|||
    //日维度Id
 | 
				
			|||
    private String dateId; | 
				
			|||
    //数据集合对象
 | 
				
			|||
    @NotEmpty(message = "数据集合对象不能为空",groups = AgencyProjectForm.class) | 
				
			|||
    private List<DataList> dataList; | 
				
			|||
    public interface AgencyProjectForm extends CustomerClientShowGroup {} | 
				
			|||
 | 
				
			|||
    @Data | 
				
			|||
    public static class DataList{ | 
				
			|||
        //客户Id 【dim_customer.id】
 | 
				
			|||
        private String customerId; | 
				
			|||
        //机关Id 【dim_agency.id】
 | 
				
			|||
        private String agencyId; | 
				
			|||
        //日维度Id 【dim_date.id】
 | 
				
			|||
        private String dateId; | 
				
			|||
        //月维度Id 【dim_month.id】
 | 
				
			|||
        private String monthId; | 
				
			|||
        //年维度Id 【dim_year.id】
 | 
				
			|||
        private String yearId; | 
				
			|||
        //网格id
 | 
				
			|||
        private String gridId; | 
				
			|||
        //上级ID(网格所属Agency的上级组织Id)
 | 
				
			|||
        private String pid; | 
				
			|||
        //所有agencyId的上级组织ID(包含agencyId)
 | 
				
			|||
        private String pids; | 
				
			|||
        //工作人员id
 | 
				
			|||
        private String staffId; | 
				
			|||
        //工作人员姓名
 | 
				
			|||
        private String staffName; | 
				
			|||
        //项目立项数,截止到当前dateId的总数
 | 
				
			|||
        private Integer projectCount; | 
				
			|||
        //议题转项目数,截止到当前dateId的总数
 | 
				
			|||
        private Integer issueToProjectCount; | 
				
			|||
        //议题关闭数,截止到当前dateId的总数
 | 
				
			|||
        private Integer closedIssueCount; | 
				
			|||
        //项目响应数,截止到当前dateId的总数
 | 
				
			|||
        private Integer projectResponseCount; | 
				
			|||
        //项目吹哨数,截止到当前dateId的总数
 | 
				
			|||
        private Integer projectTransferCount; | 
				
			|||
        //项目结案数,dateId这一天的增量
 | 
				
			|||
        private Integer projectClosedCount; | 
				
			|||
        //项目立项数,dateId这一天的增量
 | 
				
			|||
        private Integer projectIncr; | 
				
			|||
        //议题转项目数,dateId这一天的增量
 | 
				
			|||
        private Integer issueToProjectIncr; | 
				
			|||
        //议题关闭数,dateId这一天的增量
 | 
				
			|||
        private Integer closedIssueIncr; | 
				
			|||
        //项目响应数,dateId这一天的增量
 | 
				
			|||
        private Integer projectResponseIncr; | 
				
			|||
        //项目吹哨数,dateId这一天的增量
 | 
				
			|||
        private Integer projectTransferIncr; | 
				
			|||
        //项目结案数,截止到当前dateId的总数
 | 
				
			|||
        private Integer projectClosedIncr; | 
				
			|||
 | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
} | 
				
			|||
@ -0,0 +1,65 @@ | 
				
			|||
package com.epmet.dto.stats.form; | 
				
			|||
 | 
				
			|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import javax.validation.constraints.NotEmpty; | 
				
			|||
import java.io.Serializable; | 
				
			|||
import java.math.BigDecimal; | 
				
			|||
import java.util.Date; | 
				
			|||
import java.util.List; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @Description 数据上报--网格员事件总数上报-接口入参 | 
				
			|||
 * @Auth sun | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class GmUploadEventFormDTO implements Serializable { | 
				
			|||
    private static final long serialVersionUID = -9178779369245037701L; | 
				
			|||
    //为true时需要删除历史数据
 | 
				
			|||
    private Boolean isFirst; | 
				
			|||
    //客户Id
 | 
				
			|||
    private String customerId; | 
				
			|||
    //日维度Id
 | 
				
			|||
    private String dateId; | 
				
			|||
    //数据集合对象
 | 
				
			|||
    @NotEmpty(message = "数据集合对象不能为空",groups = AgencyProjectForm.class) | 
				
			|||
    private List<DataList> dataList; | 
				
			|||
    public interface AgencyProjectForm extends CustomerClientShowGroup {} | 
				
			|||
 | 
				
			|||
    @Data | 
				
			|||
    public static class DataList{ | 
				
			|||
        //客户Id 【dim_customer.id】
 | 
				
			|||
        private String customerId; | 
				
			|||
        //机关Id 【dim_agency.id】
 | 
				
			|||
        private String agencyId; | 
				
			|||
        //日维度Id 【dim_date.id】
 | 
				
			|||
        private String dateId; | 
				
			|||
        //周维度Id 【dim_week.id】
 | 
				
			|||
        private String weekId; | 
				
			|||
        //月维度Id 【dim_month.id】
 | 
				
			|||
        private String monthId; | 
				
			|||
        //季ID
 | 
				
			|||
        private String quarterId; | 
				
			|||
        //年维度Id 【dim_year.id】
 | 
				
			|||
        private String yearId; | 
				
			|||
        //网格id
 | 
				
			|||
        private String gridId; | 
				
			|||
        //网格所有上级id
 | 
				
			|||
        private String gridPids; | 
				
			|||
        //产品这边工作人员用户id
 | 
				
			|||
        private String staffId; | 
				
			|||
        //巡查次数
 | 
				
			|||
        private Integer patrolTotal = 0; | 
				
			|||
        //巡查时长 单位:秒
 | 
				
			|||
        private Integer totalTime = 0; | 
				
			|||
        //事件数【立项项目数】
 | 
				
			|||
        private Integer reportProjectCount = 0; | 
				
			|||
        //最新的巡查开始时间
 | 
				
			|||
        private String latestPatrolTime; | 
				
			|||
        //最新的巡查状态 正在巡查中:patrolling;结束:end
 | 
				
			|||
        private String latestPatrolStatus = "end"; | 
				
			|||
 | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
} | 
				
			|||
					Loading…
					
					
				
		Reference in new issue