41 changed files with 790 additions and 71 deletions
@ -0,0 +1,11 @@ |
|||
package com.epmet.constant; |
|||
|
|||
public interface ExtConstant { |
|||
String APP_RESI = "resi"; |
|||
|
|||
String APP_WORK = "work"; |
|||
|
|||
String APP_GOV = "gov"; |
|||
|
|||
String PUSH_WXMP = "1"; |
|||
} |
@ -0,0 +1 @@ |
|||
ALTER TABLE user_message ADD REFERER VARCHAR(20) COMMENT '调用者'; |
@ -0,0 +1,32 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 对外接口-根据组织Id获取组织信息-接口入参 |
|||
* @Author sun |
|||
*/ |
|||
@Data |
|||
public class AgencyInfoFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -1719033407335647411L; |
|||
|
|||
/** |
|||
* 组织或网格Id |
|||
*/ |
|||
@NotBlank(message = "组织或网格Id不能为空", groups = StaffIdGroup.class) |
|||
private String orgId; |
|||
/** |
|||
* 组织或网格类型(agency/grid) |
|||
*/ |
|||
@NotBlank(message = "组织或网格类型不能为空", groups = StaffIdGroup.class) |
|||
private String orgType; |
|||
public interface StaffIdGroup extends CustomerClientShowGroup { |
|||
} |
|||
|
|||
|
|||
} |
@ -0,0 +1,66 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 组织信息 |
|||
* |
|||
* @author sun |
|||
*/ |
|||
@Data |
|||
public class AgencyInfoResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
/** |
|||
* 机关组织Id |
|||
*/ |
|||
private String agencyId; |
|||
/** |
|||
* 机关组织名称 |
|||
*/ |
|||
private String agencyName; |
|||
/** |
|||
* 所有上级名称,以-连接 |
|||
*/ |
|||
private String allParentName; |
|||
/** |
|||
* 上级组织机构ID |
|||
*/ |
|||
private String pid; |
|||
/** |
|||
* 所有上级组织机构ID(以英文:隔开) |
|||
*/ |
|||
private String pids; |
|||
/** |
|||
* 机关级别(社区级:community,乡(镇、街道)级:street,区县级: district,市级: city省级:province) |
|||
*/ |
|||
private String level; |
|||
/** |
|||
* 地区编码 |
|||
*/ |
|||
private String areaCode; |
|||
} |
@ -0,0 +1,31 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description 外挂-部门信息 |
|||
* @Auth sun |
|||
*/ |
|||
@Data |
|||
public class OrganizeTreeDeptResultDTO implements Serializable { |
|||
private static final long serialVersionUID = 1792371558965832432L; |
|||
|
|||
/** |
|||
* 部门Id |
|||
* */ |
|||
private String deptId; |
|||
/** |
|||
* 部门名称 |
|||
* */ |
|||
private String deptName; |
|||
/** |
|||
* 所有上级组织机构ID(以英文:隔开) |
|||
*/ |
|||
private String pids; |
|||
/** |
|||
* 所有上级名称,以-连接 |
|||
*/ |
|||
private String allParentName; |
|||
} |
@ -0,0 +1,31 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description 外挂-网格信息 |
|||
* @Auth sun |
|||
*/ |
|||
@Data |
|||
public class OrganizeTreeGridResultDTO implements Serializable { |
|||
private static final long serialVersionUID = -4531574240525562587L; |
|||
|
|||
/** |
|||
* 网格Id |
|||
* */ |
|||
private String gridId; |
|||
/** |
|||
* 网格名称 |
|||
* */ |
|||
private String gridName; |
|||
/** |
|||
* 所有上级组织机构ID(以英文:隔开) |
|||
*/ |
|||
private String pids; |
|||
/** |
|||
* 所有上级名称,以-连接 |
|||
*/ |
|||
private String allParentName; |
|||
} |
@ -0,0 +1,50 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description 外挂-获取当前组织及部门、网格数据,递归查询所有下级数据-接口返参 |
|||
* @Auth sun |
|||
*/ |
|||
@Data |
|||
public class OrganizeTreeResultDTO implements Serializable { |
|||
private static final long serialVersionUID = 2513553862809278219L; |
|||
|
|||
/** |
|||
* 直属机关Id |
|||
* */ |
|||
private String agencyId; |
|||
/** |
|||
* 直属机关名称 |
|||
* */ |
|||
private String agencyName; |
|||
/** |
|||
* 机关级别(社区级:community, 乡(镇、街道)级:street, 区县级: district, 市级: city 省级:province) |
|||
* */ |
|||
private String level; |
|||
/** |
|||
* 所有上级组织机构ID(以英文:隔开) |
|||
*/ |
|||
private String pids; |
|||
/** |
|||
* 所有上级名称,以-连接 |
|||
*/ |
|||
private String allParentName; |
|||
|
|||
/** |
|||
* 直属机关直属网格列表 |
|||
* */ |
|||
private List<OrganizeTreeGridResultDTO> gridList = new ArrayList<>(); |
|||
/** |
|||
* 直属机关直属部门列表 |
|||
* */ |
|||
private List<OrganizeTreeDeptResultDTO> departmentList = new ArrayList<>(); |
|||
/** |
|||
* 子集机关列表 |
|||
* */ |
|||
private List<OrganizeTreeResultDTO> subAgencyList = new ArrayList<>(); |
|||
} |
@ -0,0 +1,21 @@ |
|||
package com.epmet.dto.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 OrganizeTreeFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -5093758817860808310L; |
|||
@NotBlank(message = "组织Id不能为空" , groups = StaffIdGroup.class) |
|||
private String agencyId; |
|||
|
|||
public interface StaffIdGroup extends CustomerClientShowGroup{} |
|||
} |
Loading…
Reference in new issue