forked from luyan/epmet-cloud-lingshan
234 changed files with 11987 additions and 215 deletions
@ -0,0 +1,12 @@ |
|||
package com.epmet.commons.tools.redis.common.bean; |
|||
|
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class GridInfoCache { |
|||
private String gridId; |
|||
private String gridNamePath; |
|||
private String customerId; |
|||
private String pid; |
|||
private String pids; |
|||
} |
|||
@ -0,0 +1,67 @@ |
|||
package com.epmet.dataaggre.dto.datastats.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.NotNull; |
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/9/10 11:04 上午 |
|||
* @DESC |
|||
*/ |
|||
@Data |
|||
public class CustomerDataManageFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 6462094914874831738L; |
|||
|
|||
public interface CustomerDataManageForm{} |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
@NotBlank(message = "客户ID不能为空",groups = CustomerDataManageForm.class) |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 组织ID |
|||
*/ |
|||
@NotBlank(message = "组织ID不能为空",groups = CustomerDataManageForm.class) |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 区间:Interval 截止:end |
|||
*/ |
|||
@NotBlank(message = "type不能为空",groups = CustomerDataManageForm.class) |
|||
private String type; |
|||
|
|||
/** |
|||
* 开始时间【yyyymmdd】 |
|||
*/ |
|||
private String startTime; |
|||
|
|||
/** |
|||
* 结束时间【yyyymmdd】 |
|||
*/ |
|||
@NotBlank(message = "结束时间不能为空",groups = CustomerDataManageForm.class) |
|||
private String endTime; |
|||
|
|||
private Integer pageNo = 1; |
|||
|
|||
private Integer pageSize = 20; |
|||
|
|||
/** |
|||
* 是否分页【true分 false不分】 |
|||
*/ |
|||
@NotNull(message = "是否分页不能为空",groups = CustomerDataManageForm.class) |
|||
private Boolean isPage; |
|||
|
|||
//组织或网格Id集合
|
|||
private List<String> idList; |
|||
//按起始时间还是结束时间查数据【start end】
|
|||
private String sourceType; |
|||
//数据类型【组织agency 网格grid】
|
|||
private String dataType; |
|||
} |
|||
@ -0,0 +1,57 @@ |
|||
package com.epmet.dataaggre.dto.datastats.result; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import lombok.Data; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description 运营情况数据导出-接口返参 |
|||
* @Auth sun |
|||
*/ |
|||
@Data |
|||
public class CustomerDataManageResultDTO { |
|||
|
|||
List<CustomerDataManage> list = new ArrayList<>(); |
|||
private Integer total; |
|||
|
|||
@Data |
|||
public static class CustomerDataManage { |
|||
//组织、网格Id
|
|||
private String orgId; |
|||
//组织、网格名称
|
|||
private String orgName; |
|||
//用户数
|
|||
private Integer userCount = 0; |
|||
//居民数
|
|||
private Integer residentCount = 0; |
|||
//党员数
|
|||
private Integer partyMemberCount = 0; |
|||
//小组数
|
|||
private Integer groupCount = 0; |
|||
//话题数
|
|||
private Integer topicCount = 0; |
|||
//议题数
|
|||
private Integer issueCount = 0; |
|||
//项目数
|
|||
private Integer projectCount = 0; |
|||
//结案项目数
|
|||
private Integer closedProjectCount = 0; |
|||
//巡查人数
|
|||
private Integer patrolPeopleCount = 0; |
|||
//巡查次数
|
|||
private Integer patrolCount = 0; |
|||
//巡查时长
|
|||
private String patrolDuration; |
|||
//未转换前的巡查时长
|
|||
private Integer patrolDurationInteger = 0; |
|||
//数据对应dateId
|
|||
@JsonIgnore |
|||
private String dateId; |
|||
@JsonIgnore |
|||
private String staffId; |
|||
} |
|||
|
|||
|
|||
} |
|||
@ -0,0 +1,27 @@ |
|||
package com.epmet.dataaggre.dto.evaluationindex; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author sun |
|||
* @Description 根据组织Id判断查询直属下级组织/网格列表,组织存在子客户的查询包含子客户组织数据 |
|||
*/ |
|||
@Data |
|||
public class ScreenAgencyOrGridListDTO implements Serializable { |
|||
private static final long serialVersionUID = 6328123559936824470L; |
|||
//组织级别(社区级:community,乡(镇、街道)级:street,区县级: district,市级: city,省级:province)
|
|||
private String level; |
|||
//直属下级组织或网格集合
|
|||
private List<AgencyGrid> agencyGridList; |
|||
|
|||
@Data |
|||
public static class AgencyGrid { |
|||
//组织id
|
|||
private String orgId; |
|||
//组织名称
|
|||
private String orgName; |
|||
} |
|||
} |
|||
@ -0,0 +1,55 @@ |
|||
package com.epmet.dataaggre.excel; |
|||
|
|||
import cn.afterturn.easypoi.excel.annotation.Excel; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/9/10 10:15 上午 |
|||
* @DESC |
|||
*/ |
|||
@Data |
|||
public class CustomerDataManageExcel { |
|||
|
|||
@Excel(name = "组织") |
|||
private String orgName; |
|||
|
|||
@Excel(name = "用户数") |
|||
private Integer userCount; |
|||
|
|||
@Excel(name = "居民数") |
|||
private Integer residentCount; |
|||
|
|||
@Excel(name = "党员数") |
|||
private Integer partyMemberCount; |
|||
|
|||
@Excel(name = "小组数") |
|||
private Integer groupCount; |
|||
|
|||
@Excel(name = "话题数") |
|||
private Integer topicCount; |
|||
|
|||
@Excel(name = "议题数") |
|||
private Integer issueCount; |
|||
|
|||
@Excel(name = "项目数") |
|||
private Integer projectCount; |
|||
|
|||
@Excel(name = "结案项目数") |
|||
private Integer closedProjectCount; |
|||
|
|||
@Excel(name = "巡查人数") |
|||
private Integer patrolPeopleCount; |
|||
|
|||
@Excel(name = "巡查次数") |
|||
private Integer patrolCount; |
|||
|
|||
@Excel(name = "巡查时长") |
|||
private String patrolDuration; |
|||
|
|||
/** |
|||
* 未转换前的巡查时长 |
|||
*/ |
|||
private Integer patrolDurationInteger; |
|||
|
|||
} |
|||
@ -0,0 +1,46 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import com.epmet.commons.tools.constant.NumConstant; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.Min; |
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/9/6 3:13 下午 |
|||
* @DESC |
|||
*/ |
|||
@Data |
|||
public class AllPartyFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -600409785611581009L; |
|||
|
|||
|
|||
/** |
|||
* 页码 |
|||
**/ |
|||
private Integer pageNo = NumConstant.ONE; |
|||
|
|||
/** |
|||
* 每页数据条数 |
|||
**/ |
|||
private Integer pageSize = NumConstant.TEN; |
|||
|
|||
/** |
|||
* 本月 monthly 总排行 all; |
|||
* */ |
|||
private String type; |
|||
|
|||
/** |
|||
* 认证成功的党员 的用户ID |
|||
* */ |
|||
private List<String> userIds; |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
} |
|||
@ -0,0 +1,49 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import com.epmet.commons.tools.constant.NumConstant; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/9/6 3:12 下午 |
|||
* @DESC |
|||
*/ |
|||
@Data |
|||
public class AllPartyResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -5889648842876122793L; |
|||
|
|||
/** |
|||
* 排序 |
|||
**/ |
|||
private Integer ranking; |
|||
|
|||
/** |
|||
* 积分 |
|||
**/ |
|||
private Integer point; |
|||
|
|||
/** |
|||
* 头像 |
|||
**/ |
|||
private String userHeadPhoto; |
|||
|
|||
/** |
|||
* 名称 |
|||
**/ |
|||
private String realName; |
|||
|
|||
/** |
|||
* 用户id |
|||
**/ |
|||
private String userId; |
|||
|
|||
public AllPartyResultDTO() { |
|||
this.point = NumConstant.ZERO; |
|||
this.userHeadPhoto = ""; |
|||
this.realName = ""; |
|||
this.userId = ""; |
|||
} |
|||
} |
|||
@ -0,0 +1,21 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
import lombok.NoArgsConstructor; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description |
|||
* @Author zhaoqifeng |
|||
* @Date 2021/9/10 14:11 |
|||
*/ |
|||
@NoArgsConstructor |
|||
@Data |
|||
public class GridPointRankResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 3288606889536923166L; |
|||
private String gridName; |
|||
private String agencyRank; |
|||
private String customerRank; |
|||
} |
|||
@ -0,0 +1,22 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
import lombok.NoArgsConstructor; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description |
|||
* @Author zhaoqifeng |
|||
* @Date 2021/9/10 13:44 |
|||
*/ |
|||
@NoArgsConstructor |
|||
@Data |
|||
public class MyPointRankResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -2438231097029179782L; |
|||
private String headPhoto; |
|||
private String gridRank; |
|||
private String customerRank; |
|||
private String userName; |
|||
} |
|||
@ -0,0 +1,18 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/9/13 3:20 下午 |
|||
* @DESC |
|||
*/ |
|||
@Data |
|||
public class GetAgencyListFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -5846836779036328298L; |
|||
|
|||
private String customerId; |
|||
} |
|||
@ -0,0 +1,17 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description |
|||
* @Author zhaoqifeng |
|||
* @Date 2021/9/7 15:41 |
|||
*/ |
|||
@Data |
|||
public class OrgFormDTO implements Serializable { |
|||
private static final long serialVersionUID = -5975063766883885089L; |
|||
private String orgId; |
|||
private String orgType; |
|||
} |
|||
@ -0,0 +1,31 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description |
|||
* @Author zhaoqifeng |
|||
* @Date 2021/9/8 15:06 |
|||
*/ |
|||
@Data |
|||
public class AgencyTreeResultDTO implements Serializable { |
|||
private static final long serialVersionUID = -311212619121062367L; |
|||
/** |
|||
* 机关组织Id |
|||
*/ |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 机关组织名称 |
|||
*/ |
|||
private String agencyName; |
|||
|
|||
private String pid; |
|||
/** |
|||
* 下级机关组织 |
|||
*/ |
|||
private List<AgencyTreeResultDTO> subAgencyList; |
|||
} |
|||
@ -0,0 +1,27 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description |
|||
* @Author zhaoqifeng |
|||
* @Date 2021/9/8 15:11 |
|||
*/ |
|||
@Data |
|||
public class StaffOrgListResultDTO implements Serializable { |
|||
private static final long serialVersionUID = -7717333635633000120L; |
|||
/** |
|||
* 组织ID |
|||
*/ |
|||
private String orgId; |
|||
/** |
|||
* 组织名称 |
|||
*/ |
|||
private String orgName; |
|||
/** |
|||
* 组织类型机关agency 网格grid 部门dept |
|||
*/ |
|||
private String orgType; |
|||
} |
|||
@ -0,0 +1,22 @@ |
|||
package com.epmet.dto; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description |
|||
* @Author zhaoqifeng |
|||
* @Date 2021/9/7 16:21 |
|||
*/ |
|||
@Data |
|||
public class AttachmentDTO implements Serializable { |
|||
private static final long serialVersionUID = 6505979559566901869L; |
|||
private String name; |
|||
private String format; |
|||
private String type; |
|||
private String url; |
|||
private Integer size; |
|||
private Integer duration; |
|||
|
|||
} |
|||
@ -0,0 +1,56 @@ |
|||
/** |
|||
* 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; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
|
|||
/** |
|||
* 指南外链表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-09-06 |
|||
*/ |
|||
@Data |
|||
public class ExternalLinkDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 链接说明 |
|||
*/ |
|||
private String description; |
|||
|
|||
/** |
|||
* 外部链接 |
|||
*/ |
|||
private String externalLink; |
|||
|
|||
/** |
|||
* 外部链接 |
|||
*/ |
|||
private Integer sort; |
|||
|
|||
} |
|||
@ -0,0 +1,117 @@ |
|||
/** |
|||
* 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; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
|
|||
/** |
|||
* 办事指南附件 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-09-06 |
|||
*/ |
|||
@Data |
|||
public class GuideAttachmentDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 唯一标识 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 办事指南ID |
|||
*/ |
|||
private String guideId; |
|||
|
|||
/** |
|||
* 附件名 |
|||
*/ |
|||
private String attachmentName; |
|||
|
|||
/** |
|||
* 文件大小 单位byte |
|||
*/ |
|||
private Integer attachmentSize; |
|||
|
|||
/** |
|||
* 文件格式 word、excel、pdf |
|||
*/ |
|||
private String attachmentFormat; |
|||
|
|||
/** |
|||
* 类型 |
|||
*/ |
|||
private String attachmentType; |
|||
|
|||
/** |
|||
* 附件地址 |
|||
*/ |
|||
private String attachmentUrl; |
|||
|
|||
/** |
|||
* 语音或视频时长,秒 |
|||
*/ |
|||
private Integer duration; |
|||
|
|||
/** |
|||
* 排序 |
|||
*/ |
|||
private Integer sort; |
|||
|
|||
/** |
|||
* 删除标识 0.未删除 1.已删除 |
|||
*/ |
|||
private Integer delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
|||
@ -0,0 +1,104 @@ |
|||
/** |
|||
* 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; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
|
|||
/** |
|||
* 指南分类 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-09-08 |
|||
*/ |
|||
@Data |
|||
public class GuideCategoryDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户id,产品默认配置此列存储default |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 分类名,客户内唯一 |
|||
*/ |
|||
private String categoryName; |
|||
|
|||
/** |
|||
* 分类编码:分类名的全拼; eg:gongjijin |
|||
*/ |
|||
private String categoryCode; |
|||
|
|||
/** |
|||
* 排序 |
|||
*/ |
|||
private Integer sort; |
|||
|
|||
/** |
|||
* 状态 禁用disable 启用enable |
|||
*/ |
|||
private String status; |
|||
|
|||
/** |
|||
* 删除标识 0未删除、1已删除 |
|||
*/ |
|||
@JsonIgnore |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
@JsonIgnore |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
@JsonIgnore |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
@JsonIgnore |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
@JsonIgnore |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
@JsonIgnore |
|||
private Date updatedTime; |
|||
|
|||
} |
|||
@ -0,0 +1,91 @@ |
|||
/** |
|||
* 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; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import lombok.Data; |
|||
|
|||
|
|||
/** |
|||
* 指南收藏表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-09-06 |
|||
*/ |
|||
@Data |
|||
public class GuideCollectionDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 指南ID |
|||
*/ |
|||
private String guideId; |
|||
|
|||
/** |
|||
* 用户ID |
|||
*/ |
|||
private String userId; |
|||
|
|||
/** |
|||
* 用户所属客户端 居民端resi 工作端gov |
|||
*/ |
|||
private String app; |
|||
|
|||
/** |
|||
* 删除标识 0未删除、1已删除 |
|||
*/ |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
|||
@ -0,0 +1,112 @@ |
|||
/** |
|||
* 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; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
|
|||
/** |
|||
* 办事指南表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-09-06 |
|||
*/ |
|||
@Data |
|||
public class GuideDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* ID 唯一标识 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 发布单位类型 机关agency 网格grid 部门dept |
|||
*/ |
|||
private String orgType; |
|||
|
|||
/** |
|||
* 发布单位ID |
|||
*/ |
|||
private String orgId; |
|||
|
|||
/** |
|||
* 发布单位名称 |
|||
*/ |
|||
private String orgName; |
|||
|
|||
/** |
|||
* 所属组织机构ID(customer_agency.id) |
|||
*/ |
|||
private String pid; |
|||
|
|||
/** |
|||
* 所有上级组织ID,英文:隔开 |
|||
*/ |
|||
private String pids; |
|||
|
|||
/** |
|||
* 标题 |
|||
*/ |
|||
private String title; |
|||
|
|||
/** |
|||
* 分类ID |
|||
*/ |
|||
private String categoryCode; |
|||
|
|||
/** |
|||
* 删除标识:0.未删除 1.已删除 |
|||
*/ |
|||
private Integer delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
|||
@ -0,0 +1,96 @@ |
|||
/** |
|||
* 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; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import lombok.Data; |
|||
|
|||
|
|||
/** |
|||
* 指南外链表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-09-06 |
|||
*/ |
|||
@Data |
|||
public class GuideExternalLinkDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 指南ID |
|||
*/ |
|||
private String guideId; |
|||
|
|||
/** |
|||
* 链接说明 |
|||
*/ |
|||
private String description; |
|||
|
|||
/** |
|||
* 外部链接 |
|||
*/ |
|||
private String externalLink; |
|||
|
|||
/** |
|||
* 排序 |
|||
*/ |
|||
private Integer sort; |
|||
|
|||
/** |
|||
* 删除标识 0未删除、1已删除 |
|||
*/ |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
|||
@ -0,0 +1,91 @@ |
|||
/** |
|||
* 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; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import lombok.Data; |
|||
|
|||
|
|||
/** |
|||
* 指南模块关联表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-09-06 |
|||
*/ |
|||
@Data |
|||
public class GuideModuleDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 指南ID |
|||
*/ |
|||
private String guideId; |
|||
|
|||
/** |
|||
* 模块ID |
|||
*/ |
|||
private String moduleId; |
|||
|
|||
/** |
|||
* |
|||
*/ |
|||
private String moduleContent; |
|||
|
|||
/** |
|||
* 删除标识 0未删除、1已删除 |
|||
*/ |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
|||
@ -0,0 +1,96 @@ |
|||
/** |
|||
* 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; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import lombok.Data; |
|||
|
|||
|
|||
/** |
|||
* 指南模块字典表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-09-06 |
|||
*/ |
|||
@Data |
|||
public class GuideModuleDictDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 模块key |
|||
*/ |
|||
private String moduleValue; |
|||
|
|||
/** |
|||
* 模块名 |
|||
*/ |
|||
private String moduleName; |
|||
|
|||
/** |
|||
* 排序 |
|||
*/ |
|||
private Integer sort; |
|||
|
|||
/** |
|||
* 状态 禁用disable 启用enable |
|||
*/ |
|||
private String status; |
|||
|
|||
/** |
|||
* 删除标识 0未删除、1已删除 |
|||
*/ |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
|||
@ -0,0 +1,91 @@ |
|||
/** |
|||
* 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; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import lombok.Data; |
|||
|
|||
|
|||
/** |
|||
* 指南模块默认字典表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-09-06 |
|||
*/ |
|||
@Data |
|||
public class GuideModuleDictDefaultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 模块key |
|||
*/ |
|||
private String moduleValue; |
|||
|
|||
/** |
|||
* 模块名 |
|||
*/ |
|||
private String moduleName; |
|||
|
|||
/** |
|||
* 排序 |
|||
*/ |
|||
private Integer sort; |
|||
|
|||
/** |
|||
* 状态 禁用disable 启用enable |
|||
*/ |
|||
private String status; |
|||
|
|||
/** |
|||
* 删除标识 0未删除、1已删除 |
|||
*/ |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
|||
@ -0,0 +1,58 @@ |
|||
/** |
|||
* 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; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
|
|||
/** |
|||
* 指南模块字典表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-09-06 |
|||
*/ |
|||
@Data |
|||
public class ModuleDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String guideModuleId; |
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String moduleId; |
|||
|
|||
/** |
|||
* 模块key |
|||
*/ |
|||
private String moduleValue; |
|||
|
|||
/** |
|||
* 模块名 |
|||
*/ |
|||
private String moduleName; |
|||
|
|||
/** |
|||
* 模块内容 |
|||
*/ |
|||
private String moduleContent; |
|||
} |
|||
@ -0,0 +1,49 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import lombok.Data; |
|||
import org.hibernate.validator.constraints.Length; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description 编辑、禁用、删除统一入参 |
|||
* @Author yinzuomei |
|||
* @Date 2021/9/8 4:15 下午 |
|||
*/ |
|||
@Data |
|||
public class EditGuideCategoryFormDTO implements Serializable { |
|||
private static final long serialVersionUID = -6853534660181580456L; |
|||
|
|||
public interface AddUserInternalGroup { |
|||
} |
|||
|
|||
public interface StatusGroup { |
|||
} |
|||
|
|||
public interface UpdateInfoGroup extends CustomerClientShowGroup { |
|||
} |
|||
public interface SaveInfoGroup extends CustomerClientShowGroup { |
|||
} |
|||
|
|||
public interface DelGroup { |
|||
} |
|||
@NotBlank(message = "当前操作人id不能为空", groups = AddUserInternalGroup.class) |
|||
private String staffId; |
|||
|
|||
@NotBlank(message = "客户id不能为空",groups = {DelGroup.class,UpdateInfoGroup.class,SaveInfoGroup.class}) |
|||
private String customerId; |
|||
|
|||
@NotBlank(message = "id不能为空", groups = {StatusGroup.class,DelGroup.class,UpdateInfoGroup.class}) |
|||
private String id; |
|||
|
|||
@NotBlank(message = "status不能为空", groups = StatusGroup.class) |
|||
private String status; |
|||
|
|||
@NotBlank(message = "分类名称不能为空不能为空", groups = {UpdateInfoGroup.class,SaveInfoGroup.class}) |
|||
@Length(max = 10, message = "分类名称最多填入10个字", groups = {UpdateInfoGroup.class,SaveInfoGroup.class}) |
|||
private String categoryName; |
|||
|
|||
} |
|||
|
|||
@ -0,0 +1,61 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import com.epmet.dto.AttachmentDTO; |
|||
import com.epmet.dto.ExternalLinkDTO; |
|||
import com.epmet.dto.ModuleDTO; |
|||
import lombok.Data; |
|||
import lombok.NoArgsConstructor; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description |
|||
* @Author zhaoqifeng |
|||
* @Date 2021/9/7 10:24 |
|||
*/ |
|||
@NoArgsConstructor |
|||
@Data |
|||
public class GuideAddFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -7750999102010191460L; |
|||
/** |
|||
* 标题 |
|||
*/ |
|||
@NotBlank(message = "标题不能为空") |
|||
private String title; |
|||
/** |
|||
* 标题 |
|||
*/ |
|||
@NotBlank(message = "分类不能为空") |
|||
private String categoryCode; |
|||
/** |
|||
* 机关类型 机关agency 网格grid 部门dept |
|||
*/ |
|||
@NotBlank(message = "所属机关类型不能为空") |
|||
private String orgType; |
|||
/** |
|||
* 所属机关 |
|||
*/ |
|||
@NotBlank(message = "所属机关ID不能为空") |
|||
private String orgId; |
|||
/** |
|||
* 所属机关 |
|||
*/ |
|||
@NotBlank(message = "所属机关名不能为空") |
|||
private String orgName; |
|||
/** |
|||
* 外部链接 |
|||
*/ |
|||
private List<ExternalLinkDTO> externalLinks; |
|||
/** |
|||
* 内容模块 |
|||
*/ |
|||
private List<ModuleDTO> moduleList; |
|||
/** |
|||
* 附件 |
|||
*/ |
|||
private List<AttachmentDTO> attachmentList; |
|||
|
|||
} |
|||
@ -0,0 +1,56 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.NotEmpty; |
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description 分类排序入参DTO |
|||
* @Author yinzuomei |
|||
* @Date 2021/9/8 4:03 下午 |
|||
*/ |
|||
@Data |
|||
public class GuideCateOrderFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 8671295475212569124L; |
|||
|
|||
public interface AddUserInternalGroup { |
|||
} |
|||
|
|||
@NotBlank(message = "当前操作人id不能为空", groups = AddUserInternalGroup.class) |
|||
private String staffId; |
|||
|
|||
|
|||
@NotEmpty(message = "顺序不能为空", groups = {AddUserInternalGroup.class}) |
|||
private List<OrderIndexDTO> orderList; |
|||
|
|||
/** |
|||
* 排序索引号dto |
|||
*/ |
|||
public static class OrderIndexDTO { |
|||
private String id; |
|||
private Integer orderIndex; |
|||
|
|||
public OrderIndexDTO() { |
|||
} |
|||
|
|||
public String getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(String id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Integer getOrderIndex() { |
|||
return orderIndex; |
|||
} |
|||
|
|||
public void setOrderIndex(Integer orderIndex) { |
|||
this.orderIndex = orderIndex; |
|||
} |
|||
} |
|||
} |
|||
|
|||
@ -0,0 +1,28 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description 发布指南、编辑指南、查询指南列表 分类下拉框 |
|||
* @Author yinzuomei |
|||
* @Date 2021/9/8 2:57 下午 |
|||
*/ |
|||
@Data |
|||
public class GuideCategoryDropDownFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 9122708701080412461L; |
|||
public interface AddUserInternalGroup { |
|||
} |
|||
/** |
|||
* 新增指南:saveorupdate;查询指南列表:query |
|||
*/ |
|||
@NotBlank(message = "新增指南:saveorupdate;查询指南列表:query",groups = AddUserInternalGroup.class) |
|||
private String queryOrigin; |
|||
|
|||
@NotBlank(message = "当前工作人员所属客户id不能为空",groups = AddUserInternalGroup.class) |
|||
private String customerId; |
|||
|
|||
} |
|||
|
|||
@ -0,0 +1,21 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description 工作端PC或者运营端分页 |
|||
* @Author yinzuomei |
|||
* @Date 2021/9/8 1:35 下午 |
|||
*/ |
|||
@Data |
|||
public class GuideCategoryPageFormDTO implements Serializable { |
|||
private static final long serialVersionUID = -7551388716349439643L; |
|||
public interface AddUserInternalGroup { |
|||
} |
|||
@NotBlank(message = "客户id不能为空,运营端传default", groups = AddUserInternalGroup.class) |
|||
private String customerId; |
|||
} |
|||
|
|||
@ -0,0 +1,70 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import com.epmet.dto.AttachmentDTO; |
|||
import com.epmet.dto.ExternalLinkDTO; |
|||
import com.epmet.dto.ModuleDTO; |
|||
import lombok.Data; |
|||
import lombok.NoArgsConstructor; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description |
|||
* @Author zhaoqifeng |
|||
* @Date 2021/9/7 10:24 |
|||
*/ |
|||
@NoArgsConstructor |
|||
@Data |
|||
public class GuideEditFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -7750999102010191460L; |
|||
/** |
|||
* 工作人员ID |
|||
*/ |
|||
private String staffId; |
|||
/** |
|||
* 指南ID |
|||
*/ |
|||
@NotBlank(message = "指南id不能为空") |
|||
private String guideId; |
|||
/** |
|||
* 标题 |
|||
*/ |
|||
@NotBlank(message = "标题不能为空") |
|||
private String title; |
|||
/** |
|||
* 标题 |
|||
*/ |
|||
@NotBlank(message = "分类不能为空") |
|||
private String categoryCode; |
|||
/** |
|||
* 机关类型 机关agency 网格grid 部门dept |
|||
*/ |
|||
@NotBlank(message = "所属机关类型不能为空") |
|||
private String orgType; |
|||
/** |
|||
* 所属机关 |
|||
*/ |
|||
@NotBlank(message = "所属机关ID不能为空") |
|||
private String orgId; |
|||
/** |
|||
* 所属机关 |
|||
*/ |
|||
@NotBlank(message = "所属机关名不能为空") |
|||
private String orgName; |
|||
/** |
|||
* 外部链接 |
|||
*/ |
|||
private List<ExternalLinkDTO> externalLinks; |
|||
/** |
|||
* 内容模块 |
|||
*/ |
|||
private List<ModuleDTO> moduleList; |
|||
/** |
|||
* 附件 |
|||
*/ |
|||
private List<AttachmentDTO> attachmentList; |
|||
|
|||
} |
|||
@ -0,0 +1,39 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import com.epmet.dto.ExternalLinkDTO; |
|||
import com.epmet.dto.GuideAttachmentDTO; |
|||
import com.epmet.dto.ModuleDTO; |
|||
import lombok.Data; |
|||
import lombok.NoArgsConstructor; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description |
|||
* @Author zhaoqifeng |
|||
* @Date 2021/9/7 10:24 |
|||
*/ |
|||
@NoArgsConstructor |
|||
@Data |
|||
public class GuideFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -7750999102010191460L; |
|||
/** |
|||
* 标题 |
|||
*/ |
|||
@NotBlank(message = "指南id不能为空") |
|||
private String guideId; |
|||
|
|||
/** |
|||
* 工作人员 |
|||
*/ |
|||
private String staffId; |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
} |
|||
@ -0,0 +1,32 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import com.epmet.commons.tools.dto.form.PageFormDTO; |
|||
import lombok.Data; |
|||
import lombok.NoArgsConstructor; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description |
|||
* @Author zhaoqifeng |
|||
* @Date 2021/9/7 9:38 |
|||
*/ |
|||
@NoArgsConstructor |
|||
@Data |
|||
public class GuideListFormDTO extends PageFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -4471422632936288213L; |
|||
private String customerId; |
|||
/** |
|||
* 组织ID |
|||
*/ |
|||
private String agencyId; |
|||
/** |
|||
* 分类 |
|||
*/ |
|||
private String categoryCode; |
|||
/** |
|||
* 标题 |
|||
*/ |
|||
private String guideTitle; |
|||
} |
|||
@ -0,0 +1,17 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description |
|||
* @Author zhaoqifeng |
|||
* @Date 2021/9/7 10:52 |
|||
*/ |
|||
@Data |
|||
public class GetCategoryResultDTO implements Serializable { |
|||
private static final long serialVersionUID = 3527239091132653541L; |
|||
private String categoryId; |
|||
private String categoryName; |
|||
} |
|||
@ -0,0 +1,67 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import com.epmet.dto.AttachmentDTO; |
|||
import com.epmet.dto.ExternalLinkDTO; |
|||
import com.epmet.dto.ModuleDTO; |
|||
import lombok.Data; |
|||
import lombok.NoArgsConstructor; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description |
|||
* @Author zhaoqifeng |
|||
* @Date 2021/9/7 10:24 |
|||
*/ |
|||
@NoArgsConstructor |
|||
@Data |
|||
public class GuideDetailResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -7750999102010191460L; |
|||
/** |
|||
* 标题 |
|||
*/ |
|||
private String guideId; |
|||
/** |
|||
* 标题 |
|||
*/ |
|||
private String title; |
|||
/** |
|||
* 分类ID |
|||
*/ |
|||
private String categoryCode; |
|||
/** |
|||
* 分类名 |
|||
*/ |
|||
private String categoryName; |
|||
/** |
|||
* 机关类型 机关agency 网格grid 部门dept |
|||
*/ |
|||
private String orgType; |
|||
/** |
|||
* 所属机关 |
|||
*/ |
|||
private String orgId; |
|||
/** |
|||
* 所属机关名 |
|||
*/ |
|||
private String orgName; |
|||
/** |
|||
* 是否收藏 1是, 0否 |
|||
*/ |
|||
private String collectionFlag; |
|||
/** |
|||
* 外部链接 |
|||
*/ |
|||
private List<ExternalLinkDTO> externalLinks; |
|||
/** |
|||
* 内容模块 |
|||
*/ |
|||
private List<ModuleDTO> moduleList; |
|||
/** |
|||
* 附件 |
|||
*/ |
|||
private List<AttachmentDTO> attachmentList; |
|||
|
|||
} |
|||
@ -0,0 +1,39 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description 办事指南】可用分类列表 新增、编辑指南时的下拉框:展示未禁用的分类; 查询指南列表:如果禁用的分类下存在指南列表,则展示,不存在直接不展示 |
|||
* @Author yinzuomei |
|||
* @Date 2021/9/8 2:44 下午 |
|||
*/ |
|||
@Data |
|||
public class GuideDictResDTO implements Serializable { |
|||
|
|||
/** |
|||
* 分类名,客户内唯一 |
|||
*/ |
|||
private String categoryName; |
|||
|
|||
/** |
|||
* 分类编码:分类名的全拼; eg:gongjijin |
|||
*/ |
|||
private String categoryCode; |
|||
|
|||
/** |
|||
* 排序 |
|||
*/ |
|||
@JsonIgnore |
|||
private Integer sort; |
|||
|
|||
/** |
|||
* 状态 禁用disable 启用enable |
|||
*/ |
|||
@JsonIgnore |
|||
private String status; |
|||
} |
|||
|
|||
|
|||
@ -0,0 +1,35 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* @author Administrator |
|||
*/ |
|||
@Data |
|||
public class GuideListResultDTO implements Serializable { |
|||
private static final long serialVersionUID = -1360741408368601140L; |
|||
private String guideId; |
|||
/** |
|||
* 标题 |
|||
*/ |
|||
private String title; |
|||
/** |
|||
* 分类 |
|||
*/ |
|||
private String categoryName; |
|||
/** |
|||
* 创建人ID |
|||
*/ |
|||
private String createdId; |
|||
/** |
|||
* 创建人姓名 |
|||
*/ |
|||
private String createdName; |
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
} |
|||
@ -0,0 +1,171 @@ |
|||
/** |
|||
* 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.controller; |
|||
|
|||
import com.epmet.commons.tools.annotation.LoginUser; |
|||
import com.epmet.commons.tools.page.PageData; |
|||
import com.epmet.commons.tools.security.dto.TokenDto; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.commons.tools.validator.ValidatorUtils; |
|||
import com.epmet.dto.GuideCategoryDTO; |
|||
import com.epmet.dto.form.EditGuideCategoryFormDTO; |
|||
import com.epmet.dto.form.GuideCateOrderFormDTO; |
|||
import com.epmet.dto.form.GuideCategoryDropDownFormDTO; |
|||
import com.epmet.dto.form.GuideCategoryPageFormDTO; |
|||
import com.epmet.dto.result.GuideDictResDTO; |
|||
import com.epmet.service.GuideCategoryService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import java.util.List; |
|||
|
|||
|
|||
/** |
|||
* 指南分类 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-09-06 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("guidecategory") |
|||
public class GuideCategoryController { |
|||
|
|||
@Autowired |
|||
private GuideCategoryService guideCategoryService; |
|||
|
|||
/** |
|||
* 【办事指南】分类列表-工作端PC和运营端用不分页 |
|||
* |
|||
* @param formDTO |
|||
* @return com.epmet.commons.tools.utils.Result<com.epmet.commons.tools.page.PageData<com.epmet.dto.GuideCategoryDTO>> |
|||
* @author yinzuomei |
|||
* @date 2021/9/8 1:33 下午 |
|||
*/ |
|||
@PostMapping("page") |
|||
public Result<PageData<GuideCategoryDTO>> page(@RequestBody GuideCategoryPageFormDTO formDTO){ |
|||
ValidatorUtils.validateEntity(formDTO, GuideCategoryPageFormDTO.AddUserInternalGroup.class); |
|||
PageData<GuideCategoryDTO> page = guideCategoryService.page(formDTO); |
|||
return new Result<PageData<GuideCategoryDTO>>().ok(page); |
|||
} |
|||
|
|||
/** |
|||
* 办事指南】可用分类列表 新增、编辑指南时的下拉框:展示未禁用的分类; 查询指南列表:如果禁用的分类下存在指南列表,则展示,不存在直接不展示 |
|||
* |
|||
* @param tokenDto |
|||
* @return com.epmet.commons.tools.utils.Result<java.util.List<com.epmet.dto.result.GuideDictResDTO>> |
|||
* @author yinzuomei |
|||
* @date 2021/9/8 2:47 下午 |
|||
*/ |
|||
@PostMapping("getcategory") |
|||
public Result<List<GuideDictResDTO>> getCategory(@LoginUser TokenDto tokenDto,@RequestBody GuideCategoryDropDownFormDTO formDTO){ |
|||
formDTO.setCustomerId(tokenDto.getCustomerId()); |
|||
ValidatorUtils.validateEntity(formDTO,GuideCategoryDropDownFormDTO.AddUserInternalGroup.class); |
|||
return new Result<List<GuideDictResDTO>>().ok(guideCategoryService.getCategory(formDTO)); |
|||
} |
|||
|
|||
|
|||
/** |
|||
* 保存排序 |
|||
* |
|||
* @param tokenDto |
|||
* @param formDTO |
|||
* @return com.epmet.commons.tools.utils.Result |
|||
* @author yinzuomei |
|||
* @date 2021/9/8 4:09 下午 |
|||
*/ |
|||
@PostMapping("saveorder") |
|||
public Result saveOrder(@LoginUser TokenDto tokenDto,@RequestBody GuideCateOrderFormDTO formDTO){ |
|||
formDTO.setStaffId(tokenDto.getUserId()); |
|||
ValidatorUtils.validateEntity(formDTO,GuideCateOrderFormDTO.AddUserInternalGroup.class); |
|||
guideCategoryService.saveOrder(formDTO); |
|||
return new Result(); |
|||
} |
|||
|
|||
/** |
|||
* 禁用或者启用分类 |
|||
* |
|||
* @param tokenDto |
|||
* @param formDTO |
|||
* @return com.epmet.commons.tools.utils.Result |
|||
* @author yinzuomei |
|||
* @date 2021/9/8 4:19 下午 |
|||
*/ |
|||
@PostMapping("disable") |
|||
public Result disable(@LoginUser TokenDto tokenDto,@RequestBody EditGuideCategoryFormDTO formDTO){ |
|||
formDTO.setStaffId(tokenDto.getUserId()); |
|||
ValidatorUtils.validateEntity(formDTO,EditGuideCategoryFormDTO.StatusGroup.class,EditGuideCategoryFormDTO.AddUserInternalGroup.class); |
|||
guideCategoryService.disableGuideCategory(formDTO); |
|||
return new Result(); |
|||
} |
|||
|
|||
/** |
|||
* 删除分类,已经存在指南的不允许删除,给予提示 |
|||
* |
|||
* @param tokenDto |
|||
* @param formDTO |
|||
* @return com.epmet.commons.tools.utils.Result |
|||
* @author yinzuomei |
|||
* @date 2021/9/8 4:45 下午 |
|||
*/ |
|||
@PostMapping("delete") |
|||
public Result delete(@LoginUser TokenDto tokenDto,@RequestBody EditGuideCategoryFormDTO formDTO){ |
|||
formDTO.setStaffId(tokenDto.getUserId()); |
|||
ValidatorUtils.validateEntity(formDTO,EditGuideCategoryFormDTO.AddUserInternalGroup.class,EditGuideCategoryFormDTO.DelGroup.class); |
|||
guideCategoryService.delete(formDTO); |
|||
return new Result(); |
|||
} |
|||
|
|||
|
|||
/** |
|||
* 新增分类,名称和编码客户内唯一 |
|||
* |
|||
* @param tokenDto |
|||
* @param formDTO |
|||
* @return com.epmet.commons.tools.utils.Result |
|||
* @author yinzuomei |
|||
* @date 2021/9/8 5:11 下午 |
|||
*/ |
|||
@PostMapping("save") |
|||
public Result<GuideCategoryDTO> save(@LoginUser TokenDto tokenDto,@RequestBody EditGuideCategoryFormDTO formDTO){ |
|||
formDTO.setStaffId(tokenDto.getUserId()); |
|||
ValidatorUtils.validateEntity(formDTO,EditGuideCategoryFormDTO.AddUserInternalGroup.class,EditGuideCategoryFormDTO.SaveInfoGroup.class); |
|||
return new Result<GuideCategoryDTO>().ok(guideCategoryService.save(formDTO)); |
|||
} |
|||
|
|||
|
|||
/** |
|||
* 编辑名称 |
|||
* |
|||
* @param tokenDto |
|||
* @param formDTO |
|||
* @return com.epmet.commons.tools.utils.Result |
|||
* @author yinzuomei |
|||
* @date 2021/9/8 5:37 下午 |
|||
*/ |
|||
@PostMapping("update") |
|||
public Result<GuideCategoryDTO> update(@LoginUser TokenDto tokenDto,@RequestBody EditGuideCategoryFormDTO formDTO){ |
|||
formDTO.setStaffId(tokenDto.getUserId()); |
|||
ValidatorUtils.validateEntity(formDTO,EditGuideCategoryFormDTO.AddUserInternalGroup.class,EditGuideCategoryFormDTO.UpdateInfoGroup.class); |
|||
return new Result<GuideCategoryDTO>().ok(guideCategoryService.update(formDTO)); |
|||
} |
|||
|
|||
|
|||
} |
|||
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue