forked from luyan/epmet-cloud-lingshan
				
			
				 8 changed files with 181 additions and 7 deletions
			
			
		@ -0,0 +1,44 @@ | 
				
			|||
package com.epmet.evaluationindex.screen.dto.form; | 
				
			|||
 | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import javax.validation.constraints.NotBlank; | 
				
			|||
import javax.validation.constraints.NotNull; | 
				
			|||
import java.io.Serializable; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @Author zxc | 
				
			|||
 * @DateTime 2020/8/20 9:54 上午 | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class GridIndexRankFormDTO implements Serializable { | 
				
			|||
 | 
				
			|||
 | 
				
			|||
    private static final long serialVersionUID = 7865119038417362515L; | 
				
			|||
    /** | 
				
			|||
     * 机关ID | 
				
			|||
     */ | 
				
			|||
    private String agencyId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 默认查询前几名 | 
				
			|||
     */ | 
				
			|||
    @NotNull(message = "默认查询名次不能为空") | 
				
			|||
    private Integer topNum; | 
				
			|||
    /** | 
				
			|||
     * 客户I | 
				
			|||
     */ | 
				
			|||
    @NotBlank(message = "客户Id不能为空") | 
				
			|||
    private String customerId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 年Id | 
				
			|||
     */ | 
				
			|||
    private String yearId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 组织类别 agency:组织;部门:department;网格:grid | 
				
			|||
     */ | 
				
			|||
    private String orgType; | 
				
			|||
 | 
				
			|||
} | 
				
			|||
@ -0,0 +1,48 @@ | 
				
			|||
package com.epmet.datareport.eum; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * 需要组织类型枚举类 | 
				
			|||
 * | 
				
			|||
 * @author jianjun liu | 
				
			|||
 * @date 2020-08-26 11:14 | 
				
			|||
 **/ | 
				
			|||
public enum OrgTypeEnum { | 
				
			|||
    DEPARTMENT("department", "部门"), | 
				
			|||
    AGENCY("agency", "组织"), | 
				
			|||
    GRID("grid", "网格"), | 
				
			|||
    ; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * code | 
				
			|||
     */ | 
				
			|||
    private String code; | 
				
			|||
    /** | 
				
			|||
     * name | 
				
			|||
     */ | 
				
			|||
    private String name; | 
				
			|||
 | 
				
			|||
 | 
				
			|||
    OrgTypeEnum(String code, String name) { | 
				
			|||
        this.code = code; | 
				
			|||
        this.name = name; | 
				
			|||
 | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
    public static OrgTypeEnum getEnum(String code) { | 
				
			|||
        OrgTypeEnum[] values = OrgTypeEnum.values(); | 
				
			|||
        for (OrgTypeEnum value : values) { | 
				
			|||
            if (code != null && value.getCode().equals(code)) { | 
				
			|||
                return value; | 
				
			|||
            } | 
				
			|||
        } | 
				
			|||
        return null; | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
    public String getCode() { | 
				
			|||
        return code; | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
    public String getName() { | 
				
			|||
        return name; | 
				
			|||
    } | 
				
			|||
} | 
				
			|||
					Loading…
					
					
				
		Reference in new issue