forked from rongchao/epmet-cloud-rizhao
15 changed files with 460 additions and 11 deletions
@ -0,0 +1,37 @@ |
|||
package com.epmet.commons.tools.enums; |
|||
|
|||
public enum PartyOrgTypeEnum { |
|||
|
|||
PROVINCIAL("0", "省委"), |
|||
MUNICIPAL("1", "市委"), |
|||
DISTRICT("2", "区委"), |
|||
WORKING("3", "党工委"), |
|||
PARTY("4", "党委"), |
|||
BRANCH("5", "支部"); |
|||
|
|||
|
|||
private String code; |
|||
private String name; |
|||
|
|||
|
|||
PartyOrgTypeEnum(String code, String name) { |
|||
this.code = code; |
|||
this.name = name; |
|||
} |
|||
|
|||
public String getCode() { |
|||
return code; |
|||
} |
|||
|
|||
public void setCode(String code) { |
|||
this.code = code; |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name; |
|||
} |
|||
} |
@ -0,0 +1,29 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotNull; |
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @program: epmet-cloud |
|||
* @description: |
|||
* @author: wangtong |
|||
* @create: 2022-05-18 16:46 |
|||
**/ |
|||
@Data |
|||
public class OrgTreeByUserAndTypeFormDTO implements Serializable { |
|||
|
|||
@NotNull(message ="组织id不可为空") |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 党组织类型 0省委,1市委,2区委,3党工委,4党委 |
|||
*/ |
|||
@NotNull(message ="组织类型不可为空") |
|||
private String orgType; |
|||
|
|||
|
|||
private List<String> orgTypeList; |
|||
} |
@ -0,0 +1,44 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @program: epmet-cloud |
|||
* @description: |
|||
* @author: wangtong |
|||
* @create: 2022-05-18 16:48 |
|||
**/ |
|||
@Data |
|||
public class PartyOrgTreeResultDTO implements Serializable { |
|||
|
|||
/** |
|||
* 行政组织id |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 行政组织pid |
|||
*/ |
|||
private String pid; |
|||
|
|||
/** |
|||
* 行政组织名称 |
|||
*/ |
|||
private String name; |
|||
|
|||
/** |
|||
* 行政组织等级 |
|||
*/ |
|||
private String level; |
|||
|
|||
/** |
|||
* 行政组织父ids |
|||
*/ |
|||
private String pids; |
|||
|
|||
private List<PartyOrgTreeResultDTO> children = new ArrayList<>(); |
|||
} |
@ -0,0 +1,91 @@ |
|||
package com.epmet.resi.partymember.dto.partyOrg.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
|
|||
/** |
|||
* 党组织表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2022-05-17 |
|||
*/ |
|||
@Data |
|||
public class IcPartyOrgTreeDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 唯一标识 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 党组织的上级ID,没有上级时为0(前端展示用) |
|||
*/ |
|||
private String pid; |
|||
|
|||
|
|||
/** |
|||
* 党组织的上级ID,没有上级时为0 |
|||
*/ |
|||
private String orgPid; |
|||
|
|||
/** |
|||
* 党组织的所有上级ID,没有上级时为0 |
|||
*/ |
|||
private String orgPids; |
|||
|
|||
/** |
|||
* 行政组织 机关ID |
|||
*/ |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 行政组织 机关ID |
|||
*/ |
|||
private String agencyPids; |
|||
|
|||
/** |
|||
* 党组织类型 0省委,1市委,2区委,3党工委,4党委,5支部 |
|||
*/ |
|||
private String partyOrgType; |
|||
|
|||
/** |
|||
* 组织名称 |
|||
*/ |
|||
private String partyOrgName; |
|||
|
|||
/** |
|||
* 组织编码 |
|||
*/ |
|||
private String partyOrgCode; |
|||
|
|||
/** |
|||
* 经度 |
|||
*/ |
|||
private String longitude; |
|||
|
|||
/** |
|||
* 纬度 |
|||
*/ |
|||
private String latitude; |
|||
|
|||
/** |
|||
* 地址 |
|||
*/ |
|||
private String address; |
|||
|
|||
/** |
|||
* 党组织介绍 |
|||
*/ |
|||
private String introduction; |
|||
|
|||
|
|||
private List<IcPartyOrgTreeDTO> children = new ArrayList<>(); |
|||
|
|||
|
|||
} |
Loading…
Reference in new issue