forked from rongchao/epmet-cloud-rizhao
Browse Source
# Conflicts: # epmet-module/data-aggregator/data-aggregator-server/src/main/java/com/epmet/dataaggre/service/epmetuser/EpmetUserService.java # epmet-module/data-aggregator/data-aggregator-server/src/main/java/com/epmet/dataaggre/service/epmetuser/impl/EpmetUserServiceImpl.java # epmet-module/epmet-third/epmet-third-client/src/main/java/com/epmet/feign/ThirdOpenFeignClient.javadev
154 changed files with 8249 additions and 46 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,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,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,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,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 GuideCategoryDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
private String id; |
||||
|
|
||||
|
/** |
||||
|
* 客户id |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 分类名 |
||||
|
*/ |
||||
|
private String categoryName; |
||||
|
|
||||
|
/** |
||||
|
* 排序 |
||||
|
*/ |
||||
|
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 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,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,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,31 @@ |
|||||
|
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; |
||||
|
/** |
||||
|
* 组织ID |
||||
|
*/ |
||||
|
private String agencyId; |
||||
|
/** |
||||
|
* 分类 |
||||
|
*/ |
||||
|
private String categoryId; |
||||
|
/** |
||||
|
* 标题 |
||||
|
*/ |
||||
|
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 categoryId; |
||||
|
/** |
||||
|
* 分类名 |
||||
|
*/ |
||||
|
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,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,84 @@ |
|||||
|
/** |
||||
|
* 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.page.PageData; |
||||
|
import com.epmet.commons.tools.utils.Result; |
||||
|
import com.epmet.commons.tools.validator.AssertUtils; |
||||
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
||||
|
import com.epmet.commons.tools.validator.group.AddGroup; |
||||
|
import com.epmet.commons.tools.validator.group.DefaultGroup; |
||||
|
import com.epmet.commons.tools.validator.group.UpdateGroup; |
||||
|
import com.epmet.dto.GuideCategoryDTO; |
||||
|
import com.epmet.service.GuideCategoryService; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import java.util.Map; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 指南分类 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-09-06 |
||||
|
*/ |
||||
|
@RestController |
||||
|
@RequestMapping("guidecategory") |
||||
|
public class GuideCategoryController { |
||||
|
|
||||
|
@Autowired |
||||
|
private GuideCategoryService guideCategoryService; |
||||
|
|
||||
|
@GetMapping("page") |
||||
|
public Result<PageData<GuideCategoryDTO>> page(@RequestParam Map<String, Object> params){ |
||||
|
PageData<GuideCategoryDTO> page = guideCategoryService.page(params); |
||||
|
return new Result<PageData<GuideCategoryDTO>>().ok(page); |
||||
|
} |
||||
|
|
||||
|
@GetMapping("{id}") |
||||
|
public Result<GuideCategoryDTO> get(@PathVariable("id") String id){ |
||||
|
GuideCategoryDTO data = guideCategoryService.get(id); |
||||
|
return new Result<GuideCategoryDTO>().ok(data); |
||||
|
} |
||||
|
|
||||
|
@PostMapping |
||||
|
public Result save(@RequestBody GuideCategoryDTO dto){ |
||||
|
//效验数据
|
||||
|
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |
||||
|
guideCategoryService.save(dto); |
||||
|
return new Result(); |
||||
|
} |
||||
|
|
||||
|
@PutMapping |
||||
|
public Result update(@RequestBody GuideCategoryDTO dto){ |
||||
|
//效验数据
|
||||
|
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); |
||||
|
guideCategoryService.update(dto); |
||||
|
return new Result(); |
||||
|
} |
||||
|
|
||||
|
@DeleteMapping |
||||
|
public Result delete(@RequestBody String[] ids){ |
||||
|
//效验数据
|
||||
|
AssertUtils.isArrayEmpty(ids, "id"); |
||||
|
guideCategoryService.delete(ids); |
||||
|
return new Result(); |
||||
|
} |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,84 @@ |
|||||
|
/** |
||||
|
* 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.page.PageData; |
||||
|
import com.epmet.commons.tools.utils.Result; |
||||
|
import com.epmet.commons.tools.validator.AssertUtils; |
||||
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
||||
|
import com.epmet.commons.tools.validator.group.AddGroup; |
||||
|
import com.epmet.commons.tools.validator.group.DefaultGroup; |
||||
|
import com.epmet.commons.tools.validator.group.UpdateGroup; |
||||
|
import com.epmet.dto.GuideCollectionDTO; |
||||
|
import com.epmet.service.GuideCollectionService; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import java.util.Map; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 指南收藏表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-09-06 |
||||
|
*/ |
||||
|
@RestController |
||||
|
@RequestMapping("guidecollection") |
||||
|
public class GuideCollectionController { |
||||
|
|
||||
|
@Autowired |
||||
|
private GuideCollectionService guideCollectionService; |
||||
|
|
||||
|
@GetMapping("page") |
||||
|
public Result<PageData<GuideCollectionDTO>> page(@RequestParam Map<String, Object> params){ |
||||
|
PageData<GuideCollectionDTO> page = guideCollectionService.page(params); |
||||
|
return new Result<PageData<GuideCollectionDTO>>().ok(page); |
||||
|
} |
||||
|
|
||||
|
@GetMapping("{id}") |
||||
|
public Result<GuideCollectionDTO> get(@PathVariable("id") String id){ |
||||
|
GuideCollectionDTO data = guideCollectionService.get(id); |
||||
|
return new Result<GuideCollectionDTO>().ok(data); |
||||
|
} |
||||
|
|
||||
|
@PostMapping |
||||
|
public Result save(@RequestBody GuideCollectionDTO dto){ |
||||
|
//效验数据
|
||||
|
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |
||||
|
guideCollectionService.save(dto); |
||||
|
return new Result(); |
||||
|
} |
||||
|
|
||||
|
@PutMapping |
||||
|
public Result update(@RequestBody GuideCollectionDTO dto){ |
||||
|
//效验数据
|
||||
|
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); |
||||
|
guideCollectionService.update(dto); |
||||
|
return new Result(); |
||||
|
} |
||||
|
|
||||
|
@DeleteMapping |
||||
|
public Result delete(@RequestBody String[] ids){ |
||||
|
//效验数据
|
||||
|
AssertUtils.isArrayEmpty(ids, "id"); |
||||
|
guideCollectionService.delete(ids); |
||||
|
return new Result(); |
||||
|
} |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,172 @@ |
|||||
|
/** |
||||
|
* 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.dto.form.PageFormDTO; |
||||
|
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.AssertUtils; |
||||
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
||||
|
import com.epmet.commons.tools.validator.group.AddGroup; |
||||
|
import com.epmet.commons.tools.validator.group.DefaultGroup; |
||||
|
import com.epmet.commons.tools.validator.group.UpdateGroup; |
||||
|
import com.epmet.dto.GuideDTO; |
||||
|
import com.epmet.dto.form.GuideAddFormDTO; |
||||
|
import com.epmet.dto.form.GuideEditFormDTO; |
||||
|
import com.epmet.dto.form.GuideFormDTO; |
||||
|
import com.epmet.dto.form.GuideListFormDTO; |
||||
|
import com.epmet.dto.result.GuideDetailResultDTO; |
||||
|
import com.epmet.dto.result.GuideListResultDTO; |
||||
|
import com.epmet.service.GuideService; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import java.util.Map; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 办事指南表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-09-06 |
||||
|
*/ |
||||
|
@RestController |
||||
|
@RequestMapping("guide") |
||||
|
public class GuideController { |
||||
|
|
||||
|
@Autowired |
||||
|
private GuideService guideService; |
||||
|
|
||||
|
@GetMapping("page") |
||||
|
public Result<PageData<GuideDTO>> page(@RequestParam Map<String, Object> params) { |
||||
|
PageData<GuideDTO> page = guideService.page(params); |
||||
|
return new Result<PageData<GuideDTO>>().ok(page); |
||||
|
} |
||||
|
|
||||
|
@GetMapping("{id}") |
||||
|
public Result<GuideDTO> get(@PathVariable("id") String id) { |
||||
|
GuideDTO data = guideService.get(id); |
||||
|
return new Result<GuideDTO>().ok(data); |
||||
|
} |
||||
|
|
||||
|
@PostMapping |
||||
|
public Result save(@RequestBody GuideDTO dto) { |
||||
|
//效验数据
|
||||
|
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |
||||
|
guideService.save(dto); |
||||
|
return new Result(); |
||||
|
} |
||||
|
|
||||
|
@PutMapping |
||||
|
public Result update(@RequestBody GuideDTO dto) { |
||||
|
//效验数据
|
||||
|
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); |
||||
|
guideService.update(dto); |
||||
|
return new Result(); |
||||
|
} |
||||
|
|
||||
|
@DeleteMapping |
||||
|
public Result delete(@RequestBody String[] ids) { |
||||
|
//效验数据
|
||||
|
AssertUtils.isArrayEmpty(ids, "id"); |
||||
|
guideService.delete(ids); |
||||
|
return new Result(); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @Description 办事指南列表 |
||||
|
* @Param formDTO |
||||
|
* @Return {@link Result< PageData< GuideListResultDTO>>} |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2021/9/7 13:59 |
||||
|
*/ |
||||
|
@PostMapping("list") |
||||
|
public Result<PageData<GuideListResultDTO>> guideList(@LoginUser TokenDto tokenDto, @RequestBody GuideListFormDTO formDTO) { |
||||
|
ValidatorUtils.validateEntity(formDTO, PageFormDTO.AddUserInternalGroup.class); |
||||
|
PageData<GuideListResultDTO> page = guideService.guideList(tokenDto, formDTO); |
||||
|
return new Result<PageData<GuideListResultDTO>>().ok(page); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* @Description 添加指南 |
||||
|
* @Param tokenDto |
||||
|
* @Param formDTO |
||||
|
* @Return {@link Result} |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2021/9/7 14:13 |
||||
|
*/ |
||||
|
@PostMapping("add") |
||||
|
public Result guideAdd(@LoginUser TokenDto tokenDto, @RequestBody GuideAddFormDTO formDTO) { |
||||
|
ValidatorUtils.validateEntity(formDTO); |
||||
|
guideService.guideAdd(tokenDto, formDTO); |
||||
|
return new Result(); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @Description 修改指南 |
||||
|
* @Param tokenDto |
||||
|
* @Param formDTO |
||||
|
* @Return {@link Result} |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2021/9/7 14:13 |
||||
|
*/ |
||||
|
@PostMapping("edit") |
||||
|
public Result guideEdit(@LoginUser TokenDto tokenDto, @RequestBody GuideEditFormDTO formDTO) { |
||||
|
ValidatorUtils.validateEntity(formDTO); |
||||
|
formDTO.setStaffId(tokenDto.getUserId()); |
||||
|
guideService.guideEdit(formDTO); |
||||
|
return new Result(); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @Description 删除指南 |
||||
|
* @Param tokenDto |
||||
|
* @Param formDTO |
||||
|
* @Return {@link Result} |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2021/9/7 14:13 |
||||
|
*/ |
||||
|
@PostMapping("del") |
||||
|
public Result guideDel(@LoginUser TokenDto tokenDto, @RequestBody GuideFormDTO formDTO) { |
||||
|
ValidatorUtils.validateEntity(formDTO); |
||||
|
formDTO.setStaffId(tokenDto.getUserId()); |
||||
|
guideService.guideDel(formDTO); |
||||
|
return new Result(); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @Description 指南详情 |
||||
|
* @Param tokenDto |
||||
|
* @Param formDTO |
||||
|
* @Return {@link Result< GuideDetailResultDTO>} |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2021/9/7 14:13 |
||||
|
*/ |
||||
|
@PostMapping("detail") |
||||
|
public Result<GuideDetailResultDTO> guideDetail(@LoginUser TokenDto tokenDto, @RequestBody GuideFormDTO formDTO) { |
||||
|
ValidatorUtils.validateEntity(formDTO); |
||||
|
formDTO.setCustomerId(tokenDto.getCustomerId()); |
||||
|
GuideDetailResultDTO result = guideService.guideDetail(formDTO); |
||||
|
return new Result<GuideDetailResultDTO>().ok(result); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
||||
@ -0,0 +1,84 @@ |
|||||
|
/** |
||||
|
* 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.page.PageData; |
||||
|
import com.epmet.commons.tools.utils.Result; |
||||
|
import com.epmet.commons.tools.validator.AssertUtils; |
||||
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
||||
|
import com.epmet.commons.tools.validator.group.AddGroup; |
||||
|
import com.epmet.commons.tools.validator.group.DefaultGroup; |
||||
|
import com.epmet.commons.tools.validator.group.UpdateGroup; |
||||
|
import com.epmet.dto.GuideModuleDTO; |
||||
|
import com.epmet.service.GuideModuleService; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import java.util.Map; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 指南模块关联表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-09-06 |
||||
|
*/ |
||||
|
@RestController |
||||
|
@RequestMapping("guidemodule") |
||||
|
public class GuideModuleController { |
||||
|
|
||||
|
@Autowired |
||||
|
private GuideModuleService guideModuleService; |
||||
|
|
||||
|
@GetMapping("page") |
||||
|
public Result<PageData<GuideModuleDTO>> page(@RequestParam Map<String, Object> params){ |
||||
|
PageData<GuideModuleDTO> page = guideModuleService.page(params); |
||||
|
return new Result<PageData<GuideModuleDTO>>().ok(page); |
||||
|
} |
||||
|
|
||||
|
@GetMapping("{id}") |
||||
|
public Result<GuideModuleDTO> get(@PathVariable("id") String id){ |
||||
|
GuideModuleDTO data = guideModuleService.get(id); |
||||
|
return new Result<GuideModuleDTO>().ok(data); |
||||
|
} |
||||
|
|
||||
|
@PostMapping |
||||
|
public Result save(@RequestBody GuideModuleDTO dto){ |
||||
|
//效验数据
|
||||
|
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |
||||
|
guideModuleService.save(dto); |
||||
|
return new Result(); |
||||
|
} |
||||
|
|
||||
|
@PutMapping |
||||
|
public Result update(@RequestBody GuideModuleDTO dto){ |
||||
|
//效验数据
|
||||
|
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); |
||||
|
guideModuleService.update(dto); |
||||
|
return new Result(); |
||||
|
} |
||||
|
|
||||
|
@DeleteMapping |
||||
|
public Result delete(@RequestBody String[] ids){ |
||||
|
//效验数据
|
||||
|
AssertUtils.isArrayEmpty(ids, "id"); |
||||
|
guideModuleService.delete(ids); |
||||
|
return new Result(); |
||||
|
} |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,84 @@ |
|||||
|
/** |
||||
|
* 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.page.PageData; |
||||
|
import com.epmet.commons.tools.utils.Result; |
||||
|
import com.epmet.commons.tools.validator.AssertUtils; |
||||
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
||||
|
import com.epmet.commons.tools.validator.group.AddGroup; |
||||
|
import com.epmet.commons.tools.validator.group.DefaultGroup; |
||||
|
import com.epmet.commons.tools.validator.group.UpdateGroup; |
||||
|
import com.epmet.dto.GuideModuleDictDTO; |
||||
|
import com.epmet.service.GuideModuleDictService; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import java.util.Map; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 指南模块字典表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-09-06 |
||||
|
*/ |
||||
|
@RestController |
||||
|
@RequestMapping("guidemoduledict") |
||||
|
public class GuideModuleDictController { |
||||
|
|
||||
|
@Autowired |
||||
|
private GuideModuleDictService guideModuleDictService; |
||||
|
|
||||
|
@GetMapping("page") |
||||
|
public Result<PageData<GuideModuleDictDTO>> page(@RequestParam Map<String, Object> params){ |
||||
|
PageData<GuideModuleDictDTO> page = guideModuleDictService.page(params); |
||||
|
return new Result<PageData<GuideModuleDictDTO>>().ok(page); |
||||
|
} |
||||
|
|
||||
|
@GetMapping("{id}") |
||||
|
public Result<GuideModuleDictDTO> get(@PathVariable("id") String id){ |
||||
|
GuideModuleDictDTO data = guideModuleDictService.get(id); |
||||
|
return new Result<GuideModuleDictDTO>().ok(data); |
||||
|
} |
||||
|
|
||||
|
@PostMapping |
||||
|
public Result save(@RequestBody GuideModuleDictDTO dto){ |
||||
|
//效验数据
|
||||
|
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |
||||
|
guideModuleDictService.save(dto); |
||||
|
return new Result(); |
||||
|
} |
||||
|
|
||||
|
@PutMapping |
||||
|
public Result update(@RequestBody GuideModuleDictDTO dto){ |
||||
|
//效验数据
|
||||
|
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); |
||||
|
guideModuleDictService.update(dto); |
||||
|
return new Result(); |
||||
|
} |
||||
|
|
||||
|
@DeleteMapping |
||||
|
public Result delete(@RequestBody String[] ids){ |
||||
|
//效验数据
|
||||
|
AssertUtils.isArrayEmpty(ids, "id"); |
||||
|
guideModuleDictService.delete(ids); |
||||
|
return new Result(); |
||||
|
} |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,33 @@ |
|||||
|
/** |
||||
|
* 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.dao; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.dao.BaseDao; |
||||
|
import com.epmet.entity.GuideAttachmentEntity; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
|
||||
|
/** |
||||
|
* 办事指南附件 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-09-06 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface GuideAttachmentDao extends BaseDao<GuideAttachmentEntity> { |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,33 @@ |
|||||
|
/** |
||||
|
* 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.dao; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.dao.BaseDao; |
||||
|
import com.epmet.entity.GuideCategoryEntity; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
|
||||
|
/** |
||||
|
* 指南分类 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-09-06 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface GuideCategoryDao extends BaseDao<GuideCategoryEntity> { |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,33 @@ |
|||||
|
/** |
||||
|
* 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.dao; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.dao.BaseDao; |
||||
|
import com.epmet.entity.GuideCollectionEntity; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
|
||||
|
/** |
||||
|
* 指南收藏表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-09-06 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface GuideCollectionDao extends BaseDao<GuideCollectionEntity> { |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,59 @@ |
|||||
|
/** |
||||
|
* 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.dao; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.dao.BaseDao; |
||||
|
import com.epmet.dto.form.GuideListFormDTO; |
||||
|
import com.epmet.dto.result.GuideDetailResultDTO; |
||||
|
import com.epmet.dto.result.GuideListResultDTO; |
||||
|
import com.epmet.entity.GuideEntity; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 办事指南表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-09-06 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface GuideDao extends BaseDao<GuideEntity> { |
||||
|
|
||||
|
/** |
||||
|
* 指南列表 |
||||
|
* |
||||
|
* @Param formDTO |
||||
|
* @Return {@link List<GuideListResultDTO>} |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2021/9/7 14:21 |
||||
|
*/ |
||||
|
List<GuideListResultDTO> getGuideList(GuideListFormDTO formDTO); |
||||
|
|
||||
|
/** |
||||
|
* 指南详情 |
||||
|
* |
||||
|
* @Param guideId |
||||
|
* @Return {@link GuideDetailResultDTO} |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2021/9/8 9:59 |
||||
|
*/ |
||||
|
GuideDetailResultDTO getGuideDetail(@Param("guideId") String guideId); |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,33 @@ |
|||||
|
/** |
||||
|
* 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.dao; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.dao.BaseDao; |
||||
|
import com.epmet.entity.GuideExternalLinkEntity; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
|
||||
|
/** |
||||
|
* 指南外链表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-09-06 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface GuideExternalLinkDao extends BaseDao<GuideExternalLinkEntity> { |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,45 @@ |
|||||
|
/** |
||||
|
* 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.dao; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.dao.BaseDao; |
||||
|
import com.epmet.dto.ModuleDTO; |
||||
|
import com.epmet.entity.GuideModuleEntity; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 指南模块关联表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-09-06 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface GuideModuleDao extends BaseDao<GuideModuleEntity> { |
||||
|
/** |
||||
|
* @Description 获取指南的内容模块 |
||||
|
* @Param guideId |
||||
|
* @Return {@link List< ModuleDTO>} |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2021/9/8 10:18 |
||||
|
*/ |
||||
|
List<ModuleDTO> selectByGuideId(@Param("customerId") String customerId, @Param("guideId") String guideId); |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,33 @@ |
|||||
|
/** |
||||
|
* 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.dao; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.dao.BaseDao; |
||||
|
import com.epmet.entity.GuideModuleDictEntity; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
|
||||
|
/** |
||||
|
* 指南模块字典表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-09-06 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface GuideModuleDictDao extends BaseDao<GuideModuleDictEntity> { |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,33 @@ |
|||||
|
/** |
||||
|
* 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.dao; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.dao.BaseDao; |
||||
|
import com.epmet.entity.GuideModuleDictDefaultEntity; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
|
||||
|
/** |
||||
|
* 指南模块默认字典表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-09-06 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface GuideModuleDictDefaultDao extends BaseDao<GuideModuleDictDefaultEntity> { |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,83 @@ |
|||||
|
/** |
||||
|
* 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.entity; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
||||
|
import lombok.Data; |
||||
|
import lombok.EqualsAndHashCode; |
||||
|
|
||||
|
/** |
||||
|
* 办事指南附件 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-09-06 |
||||
|
*/ |
||||
|
@Data |
||||
|
@EqualsAndHashCode(callSuper=false) |
||||
|
@TableName("guide_attachment") |
||||
|
public class GuideAttachmentEntity extends BaseEpmetEntity { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 客户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,0 +1,61 @@ |
|||||
|
/** |
||||
|
* 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.entity; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
||||
|
import lombok.Data; |
||||
|
import lombok.EqualsAndHashCode; |
||||
|
|
||||
|
import java.util.Date; |
||||
|
|
||||
|
/** |
||||
|
* 指南分类 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-09-06 |
||||
|
*/ |
||||
|
@Data |
||||
|
@EqualsAndHashCode(callSuper=false) |
||||
|
@TableName("guide_category") |
||||
|
public class GuideCategoryEntity extends BaseEpmetEntity { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 客户id |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 分类名 |
||||
|
*/ |
||||
|
private String categoryName; |
||||
|
|
||||
|
/** |
||||
|
* 排序 |
||||
|
*/ |
||||
|
private Integer sort; |
||||
|
|
||||
|
/** |
||||
|
* 状态 禁用disable 启用enable |
||||
|
*/ |
||||
|
private String status; |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,61 @@ |
|||||
|
/** |
||||
|
* 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.entity; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
||||
|
import lombok.Data; |
||||
|
import lombok.EqualsAndHashCode; |
||||
|
|
||||
|
import java.util.Date; |
||||
|
|
||||
|
/** |
||||
|
* 指南收藏表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-09-06 |
||||
|
*/ |
||||
|
@Data |
||||
|
@EqualsAndHashCode(callSuper=false) |
||||
|
@TableName("guide_collection") |
||||
|
public class GuideCollectionEntity extends BaseEpmetEntity { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 客户id |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 指南ID |
||||
|
*/ |
||||
|
private String guideId; |
||||
|
|
||||
|
/** |
||||
|
* 用户ID |
||||
|
*/ |
||||
|
private String userId; |
||||
|
|
||||
|
/** |
||||
|
* 用户所属客户端 居民端resi 工作端gov |
||||
|
*/ |
||||
|
private String app; |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,78 @@ |
|||||
|
/** |
||||
|
* 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.entity; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
||||
|
import lombok.Data; |
||||
|
import lombok.EqualsAndHashCode; |
||||
|
|
||||
|
/** |
||||
|
* 办事指南表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-09-06 |
||||
|
*/ |
||||
|
@Data |
||||
|
@EqualsAndHashCode(callSuper=false) |
||||
|
@TableName("guide") |
||||
|
public class GuideEntity extends BaseEpmetEntity { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 客户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,0 +1,63 @@ |
|||||
|
/** |
||||
|
* 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.entity; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
||||
|
import lombok.Data; |
||||
|
import lombok.EqualsAndHashCode; |
||||
|
|
||||
|
/** |
||||
|
* 指南外链表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-09-06 |
||||
|
*/ |
||||
|
@Data |
||||
|
@EqualsAndHashCode(callSuper=false) |
||||
|
@TableName("guide_external_link") |
||||
|
public class GuideExternalLinkEntity extends BaseEpmetEntity { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 客户id |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 指南ID |
||||
|
*/ |
||||
|
private String guideId; |
||||
|
|
||||
|
/** |
||||
|
* 链接说明 |
||||
|
*/ |
||||
|
private String description; |
||||
|
|
||||
|
/** |
||||
|
* 外部链接 |
||||
|
*/ |
||||
|
private String externalLink; |
||||
|
|
||||
|
/** |
||||
|
* 排序 |
||||
|
*/ |
||||
|
private Integer sort; |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,61 @@ |
|||||
|
/** |
||||
|
* 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.entity; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
||||
|
import lombok.Data; |
||||
|
import lombok.EqualsAndHashCode; |
||||
|
|
||||
|
import java.util.Date; |
||||
|
|
||||
|
/** |
||||
|
* 指南模块默认字典表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-09-06 |
||||
|
*/ |
||||
|
@Data |
||||
|
@EqualsAndHashCode(callSuper=false) |
||||
|
@TableName("guide_module_dict_default") |
||||
|
public class GuideModuleDictDefaultEntity extends BaseEpmetEntity { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 模块key |
||||
|
*/ |
||||
|
private String moduleValue; |
||||
|
|
||||
|
/** |
||||
|
* 模块名 |
||||
|
*/ |
||||
|
private String moduleName; |
||||
|
|
||||
|
/** |
||||
|
* 排序 |
||||
|
*/ |
||||
|
private Integer sort; |
||||
|
|
||||
|
/** |
||||
|
* 状态 禁用disable 启用enable |
||||
|
*/ |
||||
|
private String status; |
||||
|
|
||||
|
} |
||||
@ -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.entity; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
||||
|
import lombok.Data; |
||||
|
import lombok.EqualsAndHashCode; |
||||
|
|
||||
|
import java.util.Date; |
||||
|
|
||||
|
/** |
||||
|
* 指南模块字典表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-09-06 |
||||
|
*/ |
||||
|
@Data |
||||
|
@EqualsAndHashCode(callSuper=false) |
||||
|
@TableName("guide_module_dict") |
||||
|
public class GuideModuleDictEntity extends BaseEpmetEntity { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 客户id |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 模块key |
||||
|
*/ |
||||
|
private String moduleValue; |
||||
|
|
||||
|
/** |
||||
|
* 模块名 |
||||
|
*/ |
||||
|
private String moduleName; |
||||
|
|
||||
|
/** |
||||
|
* 排序 |
||||
|
*/ |
||||
|
private Integer sort; |
||||
|
|
||||
|
/** |
||||
|
* 状态 禁用disable 启用enable |
||||
|
*/ |
||||
|
private String status; |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,61 @@ |
|||||
|
/** |
||||
|
* 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.entity; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
||||
|
import lombok.Data; |
||||
|
import lombok.EqualsAndHashCode; |
||||
|
|
||||
|
import java.util.Date; |
||||
|
|
||||
|
/** |
||||
|
* 指南模块关联表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-09-06 |
||||
|
*/ |
||||
|
@Data |
||||
|
@EqualsAndHashCode(callSuper=false) |
||||
|
@TableName("guide_module") |
||||
|
public class GuideModuleEntity extends BaseEpmetEntity { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 客户id |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 指南ID |
||||
|
*/ |
||||
|
private String guideId; |
||||
|
|
||||
|
/** |
||||
|
* 模块ID |
||||
|
*/ |
||||
|
private String moduleId; |
||||
|
|
||||
|
/** |
||||
|
* |
||||
|
*/ |
||||
|
private String moduleContent; |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,114 @@ |
|||||
|
/** |
||||
|
* 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.service; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.service.BaseService; |
||||
|
import com.epmet.commons.tools.page.PageData; |
||||
|
import com.epmet.dto.AttachmentDTO; |
||||
|
import com.epmet.dto.GuideAttachmentDTO; |
||||
|
import com.epmet.entity.GuideAttachmentEntity; |
||||
|
|
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* 办事指南附件 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-09-06 |
||||
|
*/ |
||||
|
public interface GuideAttachmentService extends BaseService<GuideAttachmentEntity> { |
||||
|
|
||||
|
/** |
||||
|
* 默认分页 |
||||
|
* |
||||
|
* @param params |
||||
|
* @return PageData<GuideAttachmentDTO> |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
PageData<GuideAttachmentDTO> page(Map<String, Object> params); |
||||
|
|
||||
|
/** |
||||
|
* 默认查询 |
||||
|
* |
||||
|
* @param params |
||||
|
* @return java.util.List<GuideAttachmentDTO> |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
List<GuideAttachmentDTO> list(Map<String, Object> params); |
||||
|
|
||||
|
/** |
||||
|
* 单条查询 |
||||
|
* |
||||
|
* @param id |
||||
|
* @return GuideAttachmentDTO |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
GuideAttachmentDTO get(String id); |
||||
|
|
||||
|
/** |
||||
|
* 默认保存 |
||||
|
* |
||||
|
* @param dto |
||||
|
* @return void |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
void save(GuideAttachmentDTO dto); |
||||
|
|
||||
|
/** |
||||
|
* 默认更新 |
||||
|
* |
||||
|
* @param dto |
||||
|
* @return void |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
void update(GuideAttachmentDTO dto); |
||||
|
|
||||
|
/** |
||||
|
* 批量删除 |
||||
|
* |
||||
|
* @param ids |
||||
|
* @return void |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
void delete(String[] ids); |
||||
|
|
||||
|
/** |
||||
|
* @Description 删除指南附件 |
||||
|
* @Param guideId |
||||
|
* @Return |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2021/9/7 17:16 |
||||
|
*/ |
||||
|
void deleteByGuideId(String guideId); |
||||
|
|
||||
|
/** |
||||
|
* @Description 获取指南附件 |
||||
|
* @Param guideId |
||||
|
* @Return {@link List< AttachmentDTO>} |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2021/9/8 10:49 |
||||
|
*/ |
||||
|
List<AttachmentDTO> getByGuideId(String guideId); |
||||
|
} |
||||
@ -0,0 +1,95 @@ |
|||||
|
/** |
||||
|
* 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.service; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.service.BaseService; |
||||
|
import com.epmet.commons.tools.page.PageData; |
||||
|
import com.epmet.dto.GuideCategoryDTO; |
||||
|
import com.epmet.entity.GuideCategoryEntity; |
||||
|
|
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* 指南分类 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-09-06 |
||||
|
*/ |
||||
|
public interface GuideCategoryService extends BaseService<GuideCategoryEntity> { |
||||
|
|
||||
|
/** |
||||
|
* 默认分页 |
||||
|
* |
||||
|
* @param params |
||||
|
* @return PageData<GuideCategoryDTO> |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
PageData<GuideCategoryDTO> page(Map<String, Object> params); |
||||
|
|
||||
|
/** |
||||
|
* 默认查询 |
||||
|
* |
||||
|
* @param params |
||||
|
* @return java.util.List<GuideCategoryDTO> |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
List<GuideCategoryDTO> list(Map<String, Object> params); |
||||
|
|
||||
|
/** |
||||
|
* 单条查询 |
||||
|
* |
||||
|
* @param id |
||||
|
* @return GuideCategoryDTO |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
GuideCategoryDTO get(String id); |
||||
|
|
||||
|
/** |
||||
|
* 默认保存 |
||||
|
* |
||||
|
* @param dto |
||||
|
* @return void |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
void save(GuideCategoryDTO dto); |
||||
|
|
||||
|
/** |
||||
|
* 默认更新 |
||||
|
* |
||||
|
* @param dto |
||||
|
* @return void |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
void update(GuideCategoryDTO dto); |
||||
|
|
||||
|
/** |
||||
|
* 批量删除 |
||||
|
* |
||||
|
* @param ids |
||||
|
* @return void |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
void delete(String[] ids); |
||||
|
} |
||||
@ -0,0 +1,95 @@ |
|||||
|
/** |
||||
|
* 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.service; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.service.BaseService; |
||||
|
import com.epmet.commons.tools.page.PageData; |
||||
|
import com.epmet.dto.GuideCollectionDTO; |
||||
|
import com.epmet.entity.GuideCollectionEntity; |
||||
|
|
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* 指南收藏表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-09-06 |
||||
|
*/ |
||||
|
public interface GuideCollectionService extends BaseService<GuideCollectionEntity> { |
||||
|
|
||||
|
/** |
||||
|
* 默认分页 |
||||
|
* |
||||
|
* @param params |
||||
|
* @return PageData<GuideCollectionDTO> |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
PageData<GuideCollectionDTO> page(Map<String, Object> params); |
||||
|
|
||||
|
/** |
||||
|
* 默认查询 |
||||
|
* |
||||
|
* @param params |
||||
|
* @return java.util.List<GuideCollectionDTO> |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
List<GuideCollectionDTO> list(Map<String, Object> params); |
||||
|
|
||||
|
/** |
||||
|
* 单条查询 |
||||
|
* |
||||
|
* @param id |
||||
|
* @return GuideCollectionDTO |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
GuideCollectionDTO get(String id); |
||||
|
|
||||
|
/** |
||||
|
* 默认保存 |
||||
|
* |
||||
|
* @param dto |
||||
|
* @return void |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
void save(GuideCollectionDTO dto); |
||||
|
|
||||
|
/** |
||||
|
* 默认更新 |
||||
|
* |
||||
|
* @param dto |
||||
|
* @return void |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
void update(GuideCollectionDTO dto); |
||||
|
|
||||
|
/** |
||||
|
* 批量删除 |
||||
|
* |
||||
|
* @param ids |
||||
|
* @return void |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
void delete(String[] ids); |
||||
|
} |
||||
@ -0,0 +1,114 @@ |
|||||
|
/** |
||||
|
* 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.service; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.service.BaseService; |
||||
|
import com.epmet.commons.tools.page.PageData; |
||||
|
import com.epmet.dto.ExternalLinkDTO; |
||||
|
import com.epmet.dto.GuideExternalLinkDTO; |
||||
|
import com.epmet.entity.GuideExternalLinkEntity; |
||||
|
|
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* 指南外链表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-09-06 |
||||
|
*/ |
||||
|
public interface GuideExternalLinkService extends BaseService<GuideExternalLinkEntity> { |
||||
|
|
||||
|
/** |
||||
|
* 默认分页 |
||||
|
* |
||||
|
* @param params |
||||
|
* @return PageData<GuideExternalLinkDTO> |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
PageData<GuideExternalLinkDTO> page(Map<String, Object> params); |
||||
|
|
||||
|
/** |
||||
|
* 默认查询 |
||||
|
* |
||||
|
* @param params |
||||
|
* @return java.util.List<GuideExternalLinkDTO> |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
List<GuideExternalLinkDTO> list(Map<String, Object> params); |
||||
|
|
||||
|
/** |
||||
|
* 单条查询 |
||||
|
* |
||||
|
* @param id |
||||
|
* @return GuideExternalLinkDTO |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
GuideExternalLinkDTO get(String id); |
||||
|
|
||||
|
/** |
||||
|
* 默认保存 |
||||
|
* |
||||
|
* @param dto |
||||
|
* @return void |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
void save(GuideExternalLinkDTO dto); |
||||
|
|
||||
|
/** |
||||
|
* 默认更新 |
||||
|
* |
||||
|
* @param dto |
||||
|
* @return void |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
void update(GuideExternalLinkDTO dto); |
||||
|
|
||||
|
/** |
||||
|
* 批量删除 |
||||
|
* |
||||
|
* @param ids |
||||
|
* @return void |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
void delete(String[] ids); |
||||
|
|
||||
|
/** |
||||
|
* @Description 删除指南外链 |
||||
|
* @Param guideId |
||||
|
* @Return |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2021/9/7 17:20 |
||||
|
*/ |
||||
|
void deleteByGuideId(String guideId); |
||||
|
|
||||
|
/** |
||||
|
* @Description 获取指南外链 |
||||
|
* @Param guideId |
||||
|
* @Return {@link List< ExternalLinkDTO>} |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2021/9/8 11:05 |
||||
|
*/ |
||||
|
List<ExternalLinkDTO> getByGuideId(String guideId); |
||||
|
} |
||||
@ -0,0 +1,95 @@ |
|||||
|
/** |
||||
|
* 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.service; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.service.BaseService; |
||||
|
import com.epmet.commons.tools.page.PageData; |
||||
|
import com.epmet.dto.GuideModuleDictDefaultDTO; |
||||
|
import com.epmet.entity.GuideModuleDictDefaultEntity; |
||||
|
|
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* 指南模块默认字典表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-09-06 |
||||
|
*/ |
||||
|
public interface GuideModuleDictDefaultService extends BaseService<GuideModuleDictDefaultEntity> { |
||||
|
|
||||
|
/** |
||||
|
* 默认分页 |
||||
|
* |
||||
|
* @param params |
||||
|
* @return PageData<GuideModuleDictDefaultDTO> |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
PageData<GuideModuleDictDefaultDTO> page(Map<String, Object> params); |
||||
|
|
||||
|
/** |
||||
|
* 默认查询 |
||||
|
* |
||||
|
* @param params |
||||
|
* @return java.util.List<GuideModuleDictDefaultDTO> |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
List<GuideModuleDictDefaultDTO> list(Map<String, Object> params); |
||||
|
|
||||
|
/** |
||||
|
* 单条查询 |
||||
|
* |
||||
|
* @param id |
||||
|
* @return GuideModuleDictDefaultDTO |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
GuideModuleDictDefaultDTO get(String id); |
||||
|
|
||||
|
/** |
||||
|
* 默认保存 |
||||
|
* |
||||
|
* @param dto |
||||
|
* @return void |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
void save(GuideModuleDictDefaultDTO dto); |
||||
|
|
||||
|
/** |
||||
|
* 默认更新 |
||||
|
* |
||||
|
* @param dto |
||||
|
* @return void |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
void update(GuideModuleDictDefaultDTO dto); |
||||
|
|
||||
|
/** |
||||
|
* 批量删除 |
||||
|
* |
||||
|
* @param ids |
||||
|
* @return void |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
void delete(String[] ids); |
||||
|
} |
||||
@ -0,0 +1,95 @@ |
|||||
|
/** |
||||
|
* 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.service; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.service.BaseService; |
||||
|
import com.epmet.commons.tools.page.PageData; |
||||
|
import com.epmet.dto.GuideModuleDictDTO; |
||||
|
import com.epmet.entity.GuideModuleDictEntity; |
||||
|
|
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* 指南模块字典表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-09-06 |
||||
|
*/ |
||||
|
public interface GuideModuleDictService extends BaseService<GuideModuleDictEntity> { |
||||
|
|
||||
|
/** |
||||
|
* 默认分页 |
||||
|
* |
||||
|
* @param params |
||||
|
* @return PageData<GuideModuleDictDTO> |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
PageData<GuideModuleDictDTO> page(Map<String, Object> params); |
||||
|
|
||||
|
/** |
||||
|
* 默认查询 |
||||
|
* |
||||
|
* @param params |
||||
|
* @return java.util.List<GuideModuleDictDTO> |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
List<GuideModuleDictDTO> list(Map<String, Object> params); |
||||
|
|
||||
|
/** |
||||
|
* 单条查询 |
||||
|
* |
||||
|
* @param id |
||||
|
* @return GuideModuleDictDTO |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
GuideModuleDictDTO get(String id); |
||||
|
|
||||
|
/** |
||||
|
* 默认保存 |
||||
|
* |
||||
|
* @param dto |
||||
|
* @return void |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
void save(GuideModuleDictDTO dto); |
||||
|
|
||||
|
/** |
||||
|
* 默认更新 |
||||
|
* |
||||
|
* @param dto |
||||
|
* @return void |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
void update(GuideModuleDictDTO dto); |
||||
|
|
||||
|
/** |
||||
|
* 批量删除 |
||||
|
* |
||||
|
* @param ids |
||||
|
* @return void |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
void delete(String[] ids); |
||||
|
} |
||||
@ -0,0 +1,115 @@ |
|||||
|
/** |
||||
|
* 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.service; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.service.BaseService; |
||||
|
import com.epmet.commons.tools.page.PageData; |
||||
|
import com.epmet.dto.GuideModuleDTO; |
||||
|
import com.epmet.dto.ModuleDTO; |
||||
|
import com.epmet.entity.GuideModuleEntity; |
||||
|
|
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* 指南模块关联表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-09-06 |
||||
|
*/ |
||||
|
public interface GuideModuleService extends BaseService<GuideModuleEntity> { |
||||
|
|
||||
|
/** |
||||
|
* 默认分页 |
||||
|
* |
||||
|
* @param params |
||||
|
* @return PageData<GuideModuleDTO> |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
PageData<GuideModuleDTO> page(Map<String, Object> params); |
||||
|
|
||||
|
/** |
||||
|
* 默认查询 |
||||
|
* |
||||
|
* @param params |
||||
|
* @return java.util.List<GuideModuleDTO> |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
List<GuideModuleDTO> list(Map<String, Object> params); |
||||
|
|
||||
|
/** |
||||
|
* 单条查询 |
||||
|
* |
||||
|
* @param id |
||||
|
* @return GuideModuleDTO |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
GuideModuleDTO get(String id); |
||||
|
|
||||
|
/** |
||||
|
* 默认保存 |
||||
|
* |
||||
|
* @param dto |
||||
|
* @return void |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
void save(GuideModuleDTO dto); |
||||
|
|
||||
|
/** |
||||
|
* 默认更新 |
||||
|
* |
||||
|
* @param dto |
||||
|
* @return void |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
void update(GuideModuleDTO dto); |
||||
|
|
||||
|
/** |
||||
|
* 批量删除 |
||||
|
* |
||||
|
* @param ids |
||||
|
* @return void |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
void delete(String[] ids); |
||||
|
|
||||
|
/** |
||||
|
* @Description 删除指南的内容模块 |
||||
|
* @Param guideId |
||||
|
* @Return |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2021/9/7 17:01 |
||||
|
*/ |
||||
|
void deleteByGuideId(String guideId); |
||||
|
|
||||
|
/** |
||||
|
* @Description |
||||
|
* @Param customerId |
||||
|
* @Param guideId |
||||
|
* @Return {@link ModuleDTO} |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2021/9/8 10:13 |
||||
|
*/ |
||||
|
List<ModuleDTO> getByGuideId(String customerId, String guideId); |
||||
|
} |
||||
@ -0,0 +1,153 @@ |
|||||
|
/** |
||||
|
* 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.service; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.service.BaseService; |
||||
|
import com.epmet.commons.tools.page.PageData; |
||||
|
import com.epmet.commons.tools.security.dto.TokenDto; |
||||
|
import com.epmet.dto.GuideDTO; |
||||
|
import com.epmet.dto.form.GuideAddFormDTO; |
||||
|
import com.epmet.dto.form.GuideEditFormDTO; |
||||
|
import com.epmet.dto.form.GuideFormDTO; |
||||
|
import com.epmet.dto.form.GuideListFormDTO; |
||||
|
import com.epmet.dto.result.GuideDetailResultDTO; |
||||
|
import com.epmet.dto.result.GuideListResultDTO; |
||||
|
import com.epmet.entity.GuideEntity; |
||||
|
|
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* 办事指南表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-09-06 |
||||
|
*/ |
||||
|
public interface GuideService extends BaseService<GuideEntity> { |
||||
|
|
||||
|
/** |
||||
|
* 默认分页 |
||||
|
* |
||||
|
* @param params |
||||
|
* @return PageData<GuideDTO> |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
PageData<GuideDTO> page(Map<String, Object> params); |
||||
|
|
||||
|
/** |
||||
|
* 默认查询 |
||||
|
* |
||||
|
* @param params |
||||
|
* @return java.util.List<GuideDTO> |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
List<GuideDTO> list(Map<String, Object> params); |
||||
|
|
||||
|
/** |
||||
|
* 单条查询 |
||||
|
* |
||||
|
* @param id |
||||
|
* @return GuideDTO |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
GuideDTO get(String id); |
||||
|
|
||||
|
/** |
||||
|
* 默认保存 |
||||
|
* |
||||
|
* @param dto |
||||
|
* @return void |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
void save(GuideDTO dto); |
||||
|
|
||||
|
/** |
||||
|
* 默认更新 |
||||
|
* |
||||
|
* @param dto |
||||
|
* @return void |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
void update(GuideDTO dto); |
||||
|
|
||||
|
/** |
||||
|
* 批量删除 |
||||
|
* |
||||
|
* @param ids |
||||
|
* @return void |
||||
|
* @author generator |
||||
|
* @date 2021-09-06 |
||||
|
*/ |
||||
|
void delete(String[] ids); |
||||
|
|
||||
|
/** |
||||
|
* 办事指南列表 |
||||
|
* |
||||
|
* @Param formDTO |
||||
|
* @Return {@link PageData<GuideListResultDTO>} |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2021/9/7 14:00 |
||||
|
*/ |
||||
|
PageData<GuideListResultDTO> guideList(TokenDto tokenDto, GuideListFormDTO formDTO); |
||||
|
|
||||
|
/** |
||||
|
* 添加指南 |
||||
|
* |
||||
|
* @Param tokenDto |
||||
|
* @Param formDTO |
||||
|
* @Return |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2021/9/7 14:12 |
||||
|
*/ |
||||
|
void guideAdd(TokenDto tokenDto, GuideAddFormDTO formDTO); |
||||
|
|
||||
|
/** |
||||
|
* 修改指南 |
||||
|
* |
||||
|
* @Param formDTO |
||||
|
* @Return |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2021/9/7 14:12 |
||||
|
*/ |
||||
|
void guideEdit(GuideEditFormDTO formDTO); |
||||
|
|
||||
|
/** |
||||
|
* 删除指南 |
||||
|
* |
||||
|
* @Param formDTO |
||||
|
* @Return |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2021/9/7 14:12 |
||||
|
*/ |
||||
|
void guideDel(GuideFormDTO formDTO); |
||||
|
|
||||
|
/** |
||||
|
* 指南详情 |
||||
|
* |
||||
|
* @Param formDTO |
||||
|
* @Return {@link GuideDetailResultDTO} |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2021/9/7 14:12 |
||||
|
*/ |
||||
|
GuideDetailResultDTO guideDetail(GuideFormDTO formDTO); |
||||
|
} |
||||
@ -0,0 +1,149 @@ |
|||||
|
/** |
||||
|
* 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.service.impl; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
||||
|
import com.epmet.commons.tools.constant.FieldConstant; |
||||
|
import com.epmet.commons.tools.page.PageData; |
||||
|
import com.epmet.commons.tools.utils.ConvertUtils; |
||||
|
import com.epmet.dao.GuideAttachmentDao; |
||||
|
import com.epmet.dto.AttachmentDTO; |
||||
|
import com.epmet.dto.GuideAttachmentDTO; |
||||
|
import com.epmet.entity.GuideAttachmentEntity; |
||||
|
import com.epmet.service.GuideAttachmentService; |
||||
|
import org.apache.commons.collections4.CollectionUtils; |
||||
|
import org.apache.commons.lang3.StringUtils; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
import org.springframework.transaction.annotation.Transactional; |
||||
|
|
||||
|
import java.util.Arrays; |
||||
|
import java.util.Collections; |
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
import java.util.stream.Collectors; |
||||
|
|
||||
|
/** |
||||
|
* 办事指南附件 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-09-06 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class GuideAttachmentServiceImpl extends BaseServiceImpl<GuideAttachmentDao, GuideAttachmentEntity> implements GuideAttachmentService { |
||||
|
|
||||
|
|
||||
|
@Override |
||||
|
public PageData<GuideAttachmentDTO> page(Map<String, Object> params) { |
||||
|
IPage<GuideAttachmentEntity> page = baseDao.selectPage( |
||||
|
getPage(params, FieldConstant.CREATED_TIME, false), |
||||
|
getWrapper(params) |
||||
|
); |
||||
|
return getPageData(page, GuideAttachmentDTO.class); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public List<GuideAttachmentDTO> list(Map<String, Object> params) { |
||||
|
List<GuideAttachmentEntity> entityList = baseDao.selectList(getWrapper(params)); |
||||
|
|
||||
|
return ConvertUtils.sourceToTarget(entityList, GuideAttachmentDTO.class); |
||||
|
} |
||||
|
|
||||
|
private QueryWrapper<GuideAttachmentEntity> getWrapper(Map<String, Object> params){ |
||||
|
String id = (String)params.get(FieldConstant.ID_HUMP); |
||||
|
|
||||
|
QueryWrapper<GuideAttachmentEntity> wrapper = new QueryWrapper<>(); |
||||
|
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
||||
|
|
||||
|
return wrapper; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public GuideAttachmentDTO get(String id) { |
||||
|
GuideAttachmentEntity entity = baseDao.selectById(id); |
||||
|
return ConvertUtils.sourceToTarget(entity, GuideAttachmentDTO.class); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@Transactional(rollbackFor = Exception.class) |
||||
|
public void save(GuideAttachmentDTO dto) { |
||||
|
GuideAttachmentEntity entity = ConvertUtils.sourceToTarget(dto, GuideAttachmentEntity.class); |
||||
|
insert(entity); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@Transactional(rollbackFor = Exception.class) |
||||
|
public void update(GuideAttachmentDTO dto) { |
||||
|
GuideAttachmentEntity entity = ConvertUtils.sourceToTarget(dto, GuideAttachmentEntity.class); |
||||
|
updateById(entity); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@Transactional(rollbackFor = Exception.class) |
||||
|
public void delete(String[] ids) { |
||||
|
// 逻辑删除(@TableLogic 注解)
|
||||
|
baseDao.deleteBatchIds(Arrays.asList(ids)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @param guideId |
||||
|
* @Description 删除指南附件 |
||||
|
* @Param guideId |
||||
|
* @Return |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2021/9/7 17:16 |
||||
|
*/ |
||||
|
@Override |
||||
|
public void deleteByGuideId(String guideId) { |
||||
|
LambdaQueryWrapper<GuideAttachmentEntity> wrapper = new LambdaQueryWrapper<>(); |
||||
|
wrapper.eq(GuideAttachmentEntity::getGuideId, guideId); |
||||
|
baseDao.delete(wrapper); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @param guideId |
||||
|
* @Description 获取指南附件 |
||||
|
* @Param guideId |
||||
|
* @Return {@link List< AttachmentDTO >} |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2021/9/8 10:49 |
||||
|
*/ |
||||
|
@Override |
||||
|
public List<AttachmentDTO> getByGuideId(String guideId) { |
||||
|
LambdaQueryWrapper<GuideAttachmentEntity> wrapper = new LambdaQueryWrapper<>(); |
||||
|
wrapper.eq(GuideAttachmentEntity::getGuideId, guideId); |
||||
|
wrapper.orderByAsc(GuideAttachmentEntity::getSort); |
||||
|
List<GuideAttachmentEntity> list = baseDao.selectList(wrapper); |
||||
|
if (CollectionUtils.isEmpty(list)) { |
||||
|
return Collections.emptyList(); |
||||
|
} |
||||
|
return list.stream().map(item -> { |
||||
|
AttachmentDTO dto = new AttachmentDTO(); |
||||
|
dto.setName(item.getAttachmentName()); |
||||
|
dto.setType(item.getAttachmentType()); |
||||
|
dto.setUrl(item.getAttachmentUrl()); |
||||
|
dto.setSize(item.getAttachmentSize()); |
||||
|
dto.setFormat(item.getAttachmentFormat()); |
||||
|
dto.setDuration(item.getDuration()); |
||||
|
return dto; |
||||
|
}).collect(Collectors.toList()); |
||||
|
} |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,100 @@ |
|||||
|
/** |
||||
|
* 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.service.impl; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
||||
|
import com.epmet.commons.tools.constant.FieldConstant; |
||||
|
import com.epmet.commons.tools.page.PageData; |
||||
|
import com.epmet.commons.tools.utils.ConvertUtils; |
||||
|
import com.epmet.dao.GuideCategoryDao; |
||||
|
import com.epmet.dto.GuideCategoryDTO; |
||||
|
import com.epmet.entity.GuideCategoryEntity; |
||||
|
import com.epmet.service.GuideCategoryService; |
||||
|
import org.apache.commons.lang3.StringUtils; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
import org.springframework.transaction.annotation.Transactional; |
||||
|
|
||||
|
import java.util.Arrays; |
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* 指南分类 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-09-06 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class GuideCategoryServiceImpl extends BaseServiceImpl<GuideCategoryDao, GuideCategoryEntity> implements GuideCategoryService { |
||||
|
|
||||
|
|
||||
|
@Override |
||||
|
public PageData<GuideCategoryDTO> page(Map<String, Object> params) { |
||||
|
IPage<GuideCategoryEntity> page = baseDao.selectPage( |
||||
|
getPage(params, FieldConstant.CREATED_TIME, false), |
||||
|
getWrapper(params) |
||||
|
); |
||||
|
return getPageData(page, GuideCategoryDTO.class); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public List<GuideCategoryDTO> list(Map<String, Object> params) { |
||||
|
List<GuideCategoryEntity> entityList = baseDao.selectList(getWrapper(params)); |
||||
|
|
||||
|
return ConvertUtils.sourceToTarget(entityList, GuideCategoryDTO.class); |
||||
|
} |
||||
|
|
||||
|
private QueryWrapper<GuideCategoryEntity> getWrapper(Map<String, Object> params){ |
||||
|
String id = (String)params.get(FieldConstant.ID_HUMP); |
||||
|
|
||||
|
QueryWrapper<GuideCategoryEntity> wrapper = new QueryWrapper<>(); |
||||
|
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
||||
|
|
||||
|
return wrapper; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public GuideCategoryDTO get(String id) { |
||||
|
GuideCategoryEntity entity = baseDao.selectById(id); |
||||
|
return ConvertUtils.sourceToTarget(entity, GuideCategoryDTO.class); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@Transactional(rollbackFor = Exception.class) |
||||
|
public void save(GuideCategoryDTO dto) { |
||||
|
GuideCategoryEntity entity = ConvertUtils.sourceToTarget(dto, GuideCategoryEntity.class); |
||||
|
insert(entity); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@Transactional(rollbackFor = Exception.class) |
||||
|
public void update(GuideCategoryDTO dto) { |
||||
|
GuideCategoryEntity entity = ConvertUtils.sourceToTarget(dto, GuideCategoryEntity.class); |
||||
|
updateById(entity); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@Transactional(rollbackFor = Exception.class) |
||||
|
public void delete(String[] ids) { |
||||
|
// 逻辑删除(@TableLogic 注解)
|
||||
|
baseDao.deleteBatchIds(Arrays.asList(ids)); |
||||
|
} |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,100 @@ |
|||||
|
/** |
||||
|
* 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.service.impl; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
||||
|
import com.epmet.commons.tools.constant.FieldConstant; |
||||
|
import com.epmet.commons.tools.page.PageData; |
||||
|
import com.epmet.commons.tools.utils.ConvertUtils; |
||||
|
import com.epmet.dao.GuideCollectionDao; |
||||
|
import com.epmet.dto.GuideCollectionDTO; |
||||
|
import com.epmet.entity.GuideCollectionEntity; |
||||
|
import com.epmet.service.GuideCollectionService; |
||||
|
import org.apache.commons.lang3.StringUtils; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
import org.springframework.transaction.annotation.Transactional; |
||||
|
|
||||
|
import java.util.Arrays; |
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* 指南收藏表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-09-06 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class GuideCollectionServiceImpl extends BaseServiceImpl<GuideCollectionDao, GuideCollectionEntity> implements GuideCollectionService { |
||||
|
|
||||
|
|
||||
|
@Override |
||||
|
public PageData<GuideCollectionDTO> page(Map<String, Object> params) { |
||||
|
IPage<GuideCollectionEntity> page = baseDao.selectPage( |
||||
|
getPage(params, FieldConstant.CREATED_TIME, false), |
||||
|
getWrapper(params) |
||||
|
); |
||||
|
return getPageData(page, GuideCollectionDTO.class); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public List<GuideCollectionDTO> list(Map<String, Object> params) { |
||||
|
List<GuideCollectionEntity> entityList = baseDao.selectList(getWrapper(params)); |
||||
|
|
||||
|
return ConvertUtils.sourceToTarget(entityList, GuideCollectionDTO.class); |
||||
|
} |
||||
|
|
||||
|
private QueryWrapper<GuideCollectionEntity> getWrapper(Map<String, Object> params){ |
||||
|
String id = (String)params.get(FieldConstant.ID_HUMP); |
||||
|
|
||||
|
QueryWrapper<GuideCollectionEntity> wrapper = new QueryWrapper<>(); |
||||
|
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
||||
|
|
||||
|
return wrapper; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public GuideCollectionDTO get(String id) { |
||||
|
GuideCollectionEntity entity = baseDao.selectById(id); |
||||
|
return ConvertUtils.sourceToTarget(entity, GuideCollectionDTO.class); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@Transactional(rollbackFor = Exception.class) |
||||
|
public void save(GuideCollectionDTO dto) { |
||||
|
GuideCollectionEntity entity = ConvertUtils.sourceToTarget(dto, GuideCollectionEntity.class); |
||||
|
insert(entity); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@Transactional(rollbackFor = Exception.class) |
||||
|
public void update(GuideCollectionDTO dto) { |
||||
|
GuideCollectionEntity entity = ConvertUtils.sourceToTarget(dto, GuideCollectionEntity.class); |
||||
|
updateById(entity); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@Transactional(rollbackFor = Exception.class) |
||||
|
public void delete(String[] ids) { |
||||
|
// 逻辑删除(@TableLogic 注解)
|
||||
|
baseDao.deleteBatchIds(Arrays.asList(ids)); |
||||
|
} |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,145 @@ |
|||||
|
/** |
||||
|
* 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.service.impl; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
||||
|
import com.epmet.commons.tools.constant.FieldConstant; |
||||
|
import com.epmet.commons.tools.page.PageData; |
||||
|
import com.epmet.commons.tools.utils.ConvertUtils; |
||||
|
import com.epmet.dao.GuideExternalLinkDao; |
||||
|
import com.epmet.dto.ExternalLinkDTO; |
||||
|
import com.epmet.dto.GuideExternalLinkDTO; |
||||
|
import com.epmet.entity.GuideExternalLinkEntity; |
||||
|
import com.epmet.service.GuideExternalLinkService; |
||||
|
import org.apache.commons.collections4.CollectionUtils; |
||||
|
import org.apache.commons.lang3.StringUtils; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
import org.springframework.transaction.annotation.Transactional; |
||||
|
|
||||
|
import java.util.Arrays; |
||||
|
import java.util.Collections; |
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
import java.util.stream.Collectors; |
||||
|
|
||||
|
/** |
||||
|
* 指南外链表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-09-06 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class GuideExternalLinkServiceImpl extends BaseServiceImpl<GuideExternalLinkDao, GuideExternalLinkEntity> implements GuideExternalLinkService { |
||||
|
|
||||
|
|
||||
|
@Override |
||||
|
public PageData<GuideExternalLinkDTO> page(Map<String, Object> params) { |
||||
|
IPage<GuideExternalLinkEntity> page = baseDao.selectPage( |
||||
|
getPage(params, FieldConstant.CREATED_TIME, false), |
||||
|
getWrapper(params) |
||||
|
); |
||||
|
return getPageData(page, GuideExternalLinkDTO.class); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public List<GuideExternalLinkDTO> list(Map<String, Object> params) { |
||||
|
List<GuideExternalLinkEntity> entityList = baseDao.selectList(getWrapper(params)); |
||||
|
|
||||
|
return ConvertUtils.sourceToTarget(entityList, GuideExternalLinkDTO.class); |
||||
|
} |
||||
|
|
||||
|
private QueryWrapper<GuideExternalLinkEntity> getWrapper(Map<String, Object> params){ |
||||
|
String id = (String)params.get(FieldConstant.ID_HUMP); |
||||
|
|
||||
|
QueryWrapper<GuideExternalLinkEntity> wrapper = new QueryWrapper<>(); |
||||
|
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
||||
|
|
||||
|
return wrapper; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public GuideExternalLinkDTO get(String id) { |
||||
|
GuideExternalLinkEntity entity = baseDao.selectById(id); |
||||
|
return ConvertUtils.sourceToTarget(entity, GuideExternalLinkDTO.class); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@Transactional(rollbackFor = Exception.class) |
||||
|
public void save(GuideExternalLinkDTO dto) { |
||||
|
GuideExternalLinkEntity entity = ConvertUtils.sourceToTarget(dto, GuideExternalLinkEntity.class); |
||||
|
insert(entity); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@Transactional(rollbackFor = Exception.class) |
||||
|
public void update(GuideExternalLinkDTO dto) { |
||||
|
GuideExternalLinkEntity entity = ConvertUtils.sourceToTarget(dto, GuideExternalLinkEntity.class); |
||||
|
updateById(entity); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@Transactional(rollbackFor = Exception.class) |
||||
|
public void delete(String[] ids) { |
||||
|
// 逻辑删除(@TableLogic 注解)
|
||||
|
baseDao.deleteBatchIds(Arrays.asList(ids)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @param guideId |
||||
|
* @Description 删除指南外链 |
||||
|
* @Param guideId |
||||
|
* @Return |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2021/9/7 17:20 |
||||
|
*/ |
||||
|
@Override |
||||
|
public void deleteByGuideId(String guideId) { |
||||
|
LambdaQueryWrapper<GuideExternalLinkEntity> wrapper = new LambdaQueryWrapper<>(); |
||||
|
wrapper.eq(GuideExternalLinkEntity::getGuideId, guideId); |
||||
|
baseDao.delete(wrapper); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @param guideId |
||||
|
* @Description 获取指南外链 |
||||
|
* @Param guideId |
||||
|
* @Return {@link List< ExternalLinkDTO >} |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2021/9/8 11:05 |
||||
|
*/ |
||||
|
@Override |
||||
|
public List<ExternalLinkDTO> getByGuideId(String guideId) { |
||||
|
LambdaQueryWrapper<GuideExternalLinkEntity> wrapper = new LambdaQueryWrapper<>(); |
||||
|
wrapper.eq(GuideExternalLinkEntity::getGuideId, guideId); |
||||
|
wrapper.orderByAsc(GuideExternalLinkEntity::getSort); |
||||
|
List<GuideExternalLinkEntity> list = baseDao.selectList(wrapper); |
||||
|
if (CollectionUtils.isEmpty(list)) { |
||||
|
return Collections.emptyList(); |
||||
|
} |
||||
|
return list.stream().map(item -> { |
||||
|
ExternalLinkDTO dto = new ExternalLinkDTO(); |
||||
|
dto.setExternalLink(item.getExternalLink()); |
||||
|
dto.setDescription(item.getDescription()); |
||||
|
return dto; |
||||
|
}).collect(Collectors.toList()); |
||||
|
} |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,100 @@ |
|||||
|
/** |
||||
|
* 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.service.impl; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
||||
|
import com.epmet.commons.tools.constant.FieldConstant; |
||||
|
import com.epmet.commons.tools.page.PageData; |
||||
|
import com.epmet.commons.tools.utils.ConvertUtils; |
||||
|
import com.epmet.dao.GuideModuleDictDefaultDao; |
||||
|
import com.epmet.dto.GuideModuleDictDefaultDTO; |
||||
|
import com.epmet.entity.GuideModuleDictDefaultEntity; |
||||
|
import com.epmet.service.GuideModuleDictDefaultService; |
||||
|
import org.apache.commons.lang3.StringUtils; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
import org.springframework.transaction.annotation.Transactional; |
||||
|
|
||||
|
import java.util.Arrays; |
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* 指南模块默认字典表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-09-06 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class GuideModuleDictDefaultServiceImpl extends BaseServiceImpl<GuideModuleDictDefaultDao, GuideModuleDictDefaultEntity> implements GuideModuleDictDefaultService { |
||||
|
|
||||
|
|
||||
|
@Override |
||||
|
public PageData<GuideModuleDictDefaultDTO> page(Map<String, Object> params) { |
||||
|
IPage<GuideModuleDictDefaultEntity> page = baseDao.selectPage( |
||||
|
getPage(params, FieldConstant.CREATED_TIME, false), |
||||
|
getWrapper(params) |
||||
|
); |
||||
|
return getPageData(page, GuideModuleDictDefaultDTO.class); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public List<GuideModuleDictDefaultDTO> list(Map<String, Object> params) { |
||||
|
List<GuideModuleDictDefaultEntity> entityList = baseDao.selectList(getWrapper(params)); |
||||
|
|
||||
|
return ConvertUtils.sourceToTarget(entityList, GuideModuleDictDefaultDTO.class); |
||||
|
} |
||||
|
|
||||
|
private QueryWrapper<GuideModuleDictDefaultEntity> getWrapper(Map<String, Object> params){ |
||||
|
String id = (String)params.get(FieldConstant.ID_HUMP); |
||||
|
|
||||
|
QueryWrapper<GuideModuleDictDefaultEntity> wrapper = new QueryWrapper<>(); |
||||
|
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
||||
|
|
||||
|
return wrapper; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public GuideModuleDictDefaultDTO get(String id) { |
||||
|
GuideModuleDictDefaultEntity entity = baseDao.selectById(id); |
||||
|
return ConvertUtils.sourceToTarget(entity, GuideModuleDictDefaultDTO.class); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@Transactional(rollbackFor = Exception.class) |
||||
|
public void save(GuideModuleDictDefaultDTO dto) { |
||||
|
GuideModuleDictDefaultEntity entity = ConvertUtils.sourceToTarget(dto, GuideModuleDictDefaultEntity.class); |
||||
|
insert(entity); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@Transactional(rollbackFor = Exception.class) |
||||
|
public void update(GuideModuleDictDefaultDTO dto) { |
||||
|
GuideModuleDictDefaultEntity entity = ConvertUtils.sourceToTarget(dto, GuideModuleDictDefaultEntity.class); |
||||
|
updateById(entity); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@Transactional(rollbackFor = Exception.class) |
||||
|
public void delete(String[] ids) { |
||||
|
// 逻辑删除(@TableLogic 注解)
|
||||
|
baseDao.deleteBatchIds(Arrays.asList(ids)); |
||||
|
} |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,100 @@ |
|||||
|
/** |
||||
|
* 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.service.impl; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
||||
|
import com.epmet.commons.tools.constant.FieldConstant; |
||||
|
import com.epmet.commons.tools.page.PageData; |
||||
|
import com.epmet.commons.tools.utils.ConvertUtils; |
||||
|
import com.epmet.dao.GuideModuleDictDao; |
||||
|
import com.epmet.dto.GuideModuleDictDTO; |
||||
|
import com.epmet.entity.GuideModuleDictEntity; |
||||
|
import com.epmet.service.GuideModuleDictService; |
||||
|
import org.apache.commons.lang3.StringUtils; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
import org.springframework.transaction.annotation.Transactional; |
||||
|
|
||||
|
import java.util.Arrays; |
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* 指南模块字典表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-09-06 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class GuideModuleDictServiceImpl extends BaseServiceImpl<GuideModuleDictDao, GuideModuleDictEntity> implements GuideModuleDictService { |
||||
|
|
||||
|
|
||||
|
@Override |
||||
|
public PageData<GuideModuleDictDTO> page(Map<String, Object> params) { |
||||
|
IPage<GuideModuleDictEntity> page = baseDao.selectPage( |
||||
|
getPage(params, FieldConstant.CREATED_TIME, false), |
||||
|
getWrapper(params) |
||||
|
); |
||||
|
return getPageData(page, GuideModuleDictDTO.class); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public List<GuideModuleDictDTO> list(Map<String, Object> params) { |
||||
|
List<GuideModuleDictEntity> entityList = baseDao.selectList(getWrapper(params)); |
||||
|
|
||||
|
return ConvertUtils.sourceToTarget(entityList, GuideModuleDictDTO.class); |
||||
|
} |
||||
|
|
||||
|
private QueryWrapper<GuideModuleDictEntity> getWrapper(Map<String, Object> params){ |
||||
|
String id = (String)params.get(FieldConstant.ID_HUMP); |
||||
|
|
||||
|
QueryWrapper<GuideModuleDictEntity> wrapper = new QueryWrapper<>(); |
||||
|
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
||||
|
|
||||
|
return wrapper; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public GuideModuleDictDTO get(String id) { |
||||
|
GuideModuleDictEntity entity = baseDao.selectById(id); |
||||
|
return ConvertUtils.sourceToTarget(entity, GuideModuleDictDTO.class); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@Transactional(rollbackFor = Exception.class) |
||||
|
public void save(GuideModuleDictDTO dto) { |
||||
|
GuideModuleDictEntity entity = ConvertUtils.sourceToTarget(dto, GuideModuleDictEntity.class); |
||||
|
insert(entity); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@Transactional(rollbackFor = Exception.class) |
||||
|
public void update(GuideModuleDictDTO dto) { |
||||
|
GuideModuleDictEntity entity = ConvertUtils.sourceToTarget(dto, GuideModuleDictEntity.class); |
||||
|
updateById(entity); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@Transactional(rollbackFor = Exception.class) |
||||
|
public void delete(String[] ids) { |
||||
|
// 逻辑删除(@TableLogic 注解)
|
||||
|
baseDao.deleteBatchIds(Arrays.asList(ids)); |
||||
|
} |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,132 @@ |
|||||
|
/** |
||||
|
* 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.service.impl; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
||||
|
import com.epmet.commons.tools.constant.FieldConstant; |
||||
|
import com.epmet.commons.tools.page.PageData; |
||||
|
import com.epmet.commons.tools.utils.ConvertUtils; |
||||
|
import com.epmet.dao.GuideModuleDao; |
||||
|
import com.epmet.dto.GuideModuleDTO; |
||||
|
import com.epmet.dto.ModuleDTO; |
||||
|
import com.epmet.entity.GuideModuleEntity; |
||||
|
import com.epmet.service.GuideModuleService; |
||||
|
import org.apache.commons.collections4.CollectionUtils; |
||||
|
import org.apache.commons.lang3.StringUtils; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
import org.springframework.transaction.annotation.Transactional; |
||||
|
|
||||
|
import java.util.Arrays; |
||||
|
import java.util.Collections; |
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* 指南模块关联表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-09-06 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class GuideModuleServiceImpl extends BaseServiceImpl<GuideModuleDao, GuideModuleEntity> implements GuideModuleService { |
||||
|
|
||||
|
|
||||
|
@Override |
||||
|
public PageData<GuideModuleDTO> page(Map<String, Object> params) { |
||||
|
IPage<GuideModuleEntity> page = baseDao.selectPage( |
||||
|
getPage(params, FieldConstant.CREATED_TIME, false), |
||||
|
getWrapper(params) |
||||
|
); |
||||
|
return getPageData(page, GuideModuleDTO.class); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public List<GuideModuleDTO> list(Map<String, Object> params) { |
||||
|
List<GuideModuleEntity> entityList = baseDao.selectList(getWrapper(params)); |
||||
|
|
||||
|
return ConvertUtils.sourceToTarget(entityList, GuideModuleDTO.class); |
||||
|
} |
||||
|
|
||||
|
private QueryWrapper<GuideModuleEntity> getWrapper(Map<String, Object> params){ |
||||
|
String id = (String)params.get(FieldConstant.ID_HUMP); |
||||
|
|
||||
|
QueryWrapper<GuideModuleEntity> wrapper = new QueryWrapper<>(); |
||||
|
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
||||
|
|
||||
|
return wrapper; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public GuideModuleDTO get(String id) { |
||||
|
GuideModuleEntity entity = baseDao.selectById(id); |
||||
|
return ConvertUtils.sourceToTarget(entity, GuideModuleDTO.class); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@Transactional(rollbackFor = Exception.class) |
||||
|
public void save(GuideModuleDTO dto) { |
||||
|
GuideModuleEntity entity = ConvertUtils.sourceToTarget(dto, GuideModuleEntity.class); |
||||
|
insert(entity); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@Transactional(rollbackFor = Exception.class) |
||||
|
public void update(GuideModuleDTO dto) { |
||||
|
GuideModuleEntity entity = ConvertUtils.sourceToTarget(dto, GuideModuleEntity.class); |
||||
|
updateById(entity); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@Transactional(rollbackFor = Exception.class) |
||||
|
public void delete(String[] ids) { |
||||
|
// 逻辑删除(@TableLogic 注解)
|
||||
|
baseDao.deleteBatchIds(Arrays.asList(ids)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @param guideId |
||||
|
* @Description 删除指南的内容模块 |
||||
|
* @Param guideId |
||||
|
* @Return |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2021/9/7 17:01 |
||||
|
*/ |
||||
|
@Override |
||||
|
public void deleteByGuideId(String guideId) { |
||||
|
LambdaQueryWrapper<GuideModuleEntity> wrapper = new LambdaQueryWrapper<>(); |
||||
|
wrapper.eq(GuideModuleEntity::getGuideId, guideId); |
||||
|
baseDao.delete(wrapper); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @param guideId |
||||
|
* @Description 获取指南的内容模块 |
||||
|
* @Param guideId |
||||
|
* @Return {@link ModuleDTO} |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2021/9/8 10:13 |
||||
|
*/ |
||||
|
@Override |
||||
|
public List<ModuleDTO> getByGuideId(String customerId, String guideId) { |
||||
|
return baseDao.selectByGuideId(customerId, guideId); |
||||
|
} |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,382 @@ |
|||||
|
/** |
||||
|
* 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.service.impl; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
||||
|
import com.epmet.commons.tools.constant.FieldConstant; |
||||
|
import com.epmet.commons.tools.dto.result.CustomerStaffInfoCacheResult; |
||||
|
import com.epmet.commons.tools.exception.EpmetErrorCode; |
||||
|
import com.epmet.commons.tools.exception.RenException; |
||||
|
import com.epmet.commons.tools.page.PageData; |
||||
|
import com.epmet.commons.tools.redis.common.CustomerStaffRedis; |
||||
|
import com.epmet.commons.tools.security.dto.TokenDto; |
||||
|
import com.epmet.commons.tools.utils.ConvertUtils; |
||||
|
import com.epmet.commons.tools.utils.Result; |
||||
|
import com.epmet.constant.OrgInfoConstant; |
||||
|
import com.epmet.dao.GuideDao; |
||||
|
import com.epmet.dto.GuideDTO; |
||||
|
import com.epmet.dto.form.*; |
||||
|
import com.epmet.dto.result.GuideDetailResultDTO; |
||||
|
import com.epmet.dto.result.GuideListResultDTO; |
||||
|
import com.epmet.dto.result.OrgResultDTO; |
||||
|
import com.epmet.entity.GuideAttachmentEntity; |
||||
|
import com.epmet.entity.GuideEntity; |
||||
|
import com.epmet.entity.GuideExternalLinkEntity; |
||||
|
import com.epmet.entity.GuideModuleEntity; |
||||
|
import com.epmet.feign.GovOrgOpenFeignClient; |
||||
|
import com.epmet.service.GuideAttachmentService; |
||||
|
import com.epmet.service.GuideExternalLinkService; |
||||
|
import com.epmet.service.GuideModuleService; |
||||
|
import com.epmet.service.GuideService; |
||||
|
import com.github.pagehelper.PageHelper; |
||||
|
import com.github.pagehelper.PageInfo; |
||||
|
import org.apache.commons.collections4.CollectionUtils; |
||||
|
import org.apache.commons.lang3.StringUtils; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
import org.springframework.transaction.annotation.Transactional; |
||||
|
|
||||
|
import javax.annotation.Resource; |
||||
|
import java.util.Arrays; |
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
import java.util.concurrent.atomic.AtomicInteger; |
||||
|
import java.util.stream.Collectors; |
||||
|
|
||||
|
/** |
||||
|
* 办事指南表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-09-06 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class GuideServiceImpl extends BaseServiceImpl<GuideDao, GuideEntity> implements GuideService { |
||||
|
|
||||
|
@Resource |
||||
|
private GovOrgOpenFeignClient govOrgOpenFeignClient; |
||||
|
@Resource |
||||
|
private GuideModuleService guideModuleService; |
||||
|
@Resource |
||||
|
private GuideAttachmentService guideAttachmentService; |
||||
|
@Resource |
||||
|
private GuideExternalLinkService guideExternalLinkService; |
||||
|
|
||||
|
@Override |
||||
|
public PageData<GuideDTO> page(Map<String, Object> params) { |
||||
|
IPage<GuideEntity> page = baseDao.selectPage( |
||||
|
getPage(params, FieldConstant.CREATED_TIME, false), |
||||
|
getWrapper(params) |
||||
|
); |
||||
|
return getPageData(page, GuideDTO.class); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public List<GuideDTO> list(Map<String, Object> params) { |
||||
|
List<GuideEntity> entityList = baseDao.selectList(getWrapper(params)); |
||||
|
|
||||
|
return ConvertUtils.sourceToTarget(entityList, GuideDTO.class); |
||||
|
} |
||||
|
|
||||
|
private QueryWrapper<GuideEntity> getWrapper(Map<String, Object> params){ |
||||
|
String id = (String)params.get(FieldConstant.ID_HUMP); |
||||
|
|
||||
|
QueryWrapper<GuideEntity> wrapper = new QueryWrapper<>(); |
||||
|
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
||||
|
|
||||
|
return wrapper; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public GuideDTO get(String id) { |
||||
|
GuideEntity entity = baseDao.selectById(id); |
||||
|
return ConvertUtils.sourceToTarget(entity, GuideDTO.class); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@Transactional(rollbackFor = Exception.class) |
||||
|
public void save(GuideDTO dto) { |
||||
|
GuideEntity entity = ConvertUtils.sourceToTarget(dto, GuideEntity.class); |
||||
|
insert(entity); |
||||
|
ConvertUtils.sourceToTarget(entity, GuideDTO.class); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@Transactional(rollbackFor = Exception.class) |
||||
|
public void update(GuideDTO dto) { |
||||
|
GuideEntity entity = ConvertUtils.sourceToTarget(dto, GuideEntity.class); |
||||
|
updateById(entity); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@Transactional(rollbackFor = Exception.class) |
||||
|
public void delete(String[] ids) { |
||||
|
// 逻辑删除(@TableLogic 注解)
|
||||
|
baseDao.deleteBatchIds(Arrays.asList(ids)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 办事指南列表 |
||||
|
* |
||||
|
* @param formDTO |
||||
|
* @Param formDTO |
||||
|
* @Return {@link PageData< GuideListResultDTO >} |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2021/9/7 14:00 |
||||
|
*/ |
||||
|
@Override |
||||
|
public PageData<GuideListResultDTO> guideList(TokenDto tokenDto, GuideListFormDTO formDTO) { |
||||
|
PageHelper.startPage(formDTO.getPageNo(), formDTO.getPageSize()); |
||||
|
List<GuideListResultDTO> list = baseDao.getGuideList(formDTO); |
||||
|
list.forEach(item -> { |
||||
|
CustomerStaffInfoCacheResult staffInfoCache = CustomerStaffRedis.getStaffInfo(tokenDto.getCustomerId(), item.getCreatedId()); |
||||
|
if (null == staffInfoCache) { |
||||
|
item.setCategoryName(""); |
||||
|
} else { |
||||
|
item.setCreatedName(staffInfoCache.getRealName()); |
||||
|
} |
||||
|
}); |
||||
|
PageInfo<GuideListResultDTO> pageInfo = new PageInfo<>(list); |
||||
|
return new PageData<>(list, pageInfo.getTotal()); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 添加指南 |
||||
|
* |
||||
|
* @param tokenDto |
||||
|
* @Param formDTO |
||||
|
* @Return |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2021/9/7 14:12 |
||||
|
*/ |
||||
|
@Override |
||||
|
public void guideAdd(TokenDto tokenDto, GuideAddFormDTO formDTO) { |
||||
|
if (CollectionUtils.isEmpty(formDTO.getModuleList()) && CollectionUtils.isEmpty(formDTO.getAttachmentList()) && |
||||
|
CollectionUtils.isEmpty(formDTO.getExternalLinks())) { |
||||
|
throw new RenException(EpmetErrorCode.GUIDE_IS_NULL.getCode()); |
||||
|
} |
||||
|
//保存办事指南表
|
||||
|
GuideDTO guideDTO = new GuideDTO(); |
||||
|
guideDTO.setCustomerId(tokenDto.getCustomerId()); |
||||
|
guideDTO.setOrgId(formDTO.getOrgId()); |
||||
|
guideDTO.setOrgType(formDTO.getOrgType()); |
||||
|
guideDTO.setOrgName(formDTO.getOrgName()); |
||||
|
guideDTO.setCategoryCode(formDTO.getCategoryCode()); |
||||
|
guideDTO.setTitle(formDTO.getTitle()); |
||||
|
OrgFormDTO orgFormDTO = new OrgFormDTO(); |
||||
|
orgFormDTO.setOrgId(formDTO.getOrgId()); |
||||
|
orgFormDTO.setOrgType(formDTO.getOrgType()); |
||||
|
//获取组织的pId和pIds
|
||||
|
Result<OrgResultDTO> result = govOrgOpenFeignClient.getAgencyInfo(orgFormDTO); |
||||
|
if (!result.success() || null == result.getData()) { |
||||
|
throw new RenException(result.getCode(), result.getMsg()); |
||||
|
} |
||||
|
if (OrgInfoConstant.AGENCY.equals(formDTO.getOrgType())) { |
||||
|
guideDTO.setPid(result.getData().getPid()); |
||||
|
} else { |
||||
|
guideDTO.setPid(result.getData().getAgencyId()); |
||||
|
} |
||||
|
guideDTO.setPids(result.getData().getPids().concat(":").concat(result.getData().getAgencyId())); |
||||
|
save(guideDTO); |
||||
|
//保存办事指南内容模块
|
||||
|
if (CollectionUtils.isNotEmpty(formDTO.getModuleList())) { |
||||
|
List<GuideModuleEntity> guideModuleList = formDTO.getModuleList().stream().map(item -> { |
||||
|
GuideModuleEntity entity = new GuideModuleEntity(); |
||||
|
entity.setCustomerId(tokenDto.getCustomerId()); |
||||
|
entity.setGuideId(guideDTO.getId()); |
||||
|
entity.setModuleId(item.getModuleId()); |
||||
|
entity.setModuleContent(item.getModuleContent()); |
||||
|
return entity; |
||||
|
}).collect(Collectors.toList()); |
||||
|
guideModuleService.insertBatch(guideModuleList); |
||||
|
} |
||||
|
//保存附件
|
||||
|
if (CollectionUtils.isNotEmpty(formDTO.getAttachmentList())) { |
||||
|
AtomicInteger i = new AtomicInteger(1); |
||||
|
List<GuideAttachmentEntity> attachmentList = formDTO.getAttachmentList().stream().map(item -> { |
||||
|
GuideAttachmentEntity entity = new GuideAttachmentEntity(); |
||||
|
entity.setCustomerId(tokenDto.getCustomerId()); |
||||
|
entity.setGuideId(guideDTO.getId()); |
||||
|
entity.setAttachmentName(item.getName()); |
||||
|
entity.setAttachmentFormat(item.getFormat()); |
||||
|
entity.setAttachmentSize(item.getSize()); |
||||
|
entity.setAttachmentType(item.getType()); |
||||
|
entity.setAttachmentUrl(item.getUrl()); |
||||
|
entity.setDuration(item.getDuration()); |
||||
|
entity.setSort(i.getAndIncrement()); |
||||
|
return entity; |
||||
|
}).collect(Collectors.toList()); |
||||
|
guideAttachmentService.insertBatch(attachmentList); |
||||
|
} |
||||
|
//保存外链地址
|
||||
|
if (CollectionUtils.isNotEmpty(formDTO.getExternalLinks())) { |
||||
|
AtomicInteger i = new AtomicInteger(1); |
||||
|
List<GuideExternalLinkEntity> linkList = formDTO.getExternalLinks().stream().map(item -> { |
||||
|
GuideExternalLinkEntity entity = new GuideExternalLinkEntity(); |
||||
|
entity.setCustomerId(tokenDto.getCustomerId()); |
||||
|
entity.setGuideId(guideDTO.getId()); |
||||
|
entity.setExternalLink(item.getExternalLink()); |
||||
|
entity.setDescription(item.getDescription()); |
||||
|
entity.setSort(i.getAndIncrement()); |
||||
|
return entity; |
||||
|
|
||||
|
}).collect(Collectors.toList()); |
||||
|
guideExternalLinkService.insertBatch(linkList); |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 修改指南 |
||||
|
* |
||||
|
* @param formDTO |
||||
|
* @Param formDTO |
||||
|
* @Return |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2021/9/7 14:12 |
||||
|
*/ |
||||
|
@Override |
||||
|
public void guideEdit(GuideEditFormDTO formDTO) { |
||||
|
if (CollectionUtils.isEmpty(formDTO.getModuleList()) && CollectionUtils.isEmpty(formDTO.getAttachmentList()) && |
||||
|
CollectionUtils.isEmpty(formDTO.getExternalLinks())) { |
||||
|
throw new RenException(EpmetErrorCode.GUIDE_IS_NULL.getCode()); |
||||
|
} |
||||
|
//保存办事指南表
|
||||
|
GuideDTO guideDTO = get(formDTO.getGuideId()); |
||||
|
if (!formDTO.getStaffId().equals(guideDTO.getCreatedBy())) { |
||||
|
throw new RenException(EpmetErrorCode.GUIDE_IS_NOT_YOURS.getCode()); |
||||
|
} |
||||
|
guideDTO.setOrgId(formDTO.getOrgId()); |
||||
|
guideDTO.setOrgType(formDTO.getOrgType()); |
||||
|
guideDTO.setCategoryCode(formDTO.getCategoryCode()); |
||||
|
guideDTO.setTitle(formDTO.getTitle()); |
||||
|
OrgFormDTO orgFormDTO = new OrgFormDTO(); |
||||
|
orgFormDTO.setOrgId(formDTO.getOrgId()); |
||||
|
orgFormDTO.setOrgType(formDTO.getOrgType()); |
||||
|
guideDTO.setOrgName(formDTO.getOrgName()); |
||||
|
//获取组织的pId和pIds
|
||||
|
Result<OrgResultDTO> result = govOrgOpenFeignClient.getAgencyInfo(orgFormDTO); |
||||
|
if (!result.success() || null == result.getData()) { |
||||
|
throw new RenException(result.getCode(), result.getMsg()); |
||||
|
} |
||||
|
if (OrgInfoConstant.AGENCY.equals(formDTO.getOrgType())) { |
||||
|
guideDTO.setPid(result.getData().getPid()); |
||||
|
} else { |
||||
|
guideDTO.setPid(result.getData().getAgencyId()); |
||||
|
} |
||||
|
guideDTO.setPids(result.getData().getPids().concat(":").concat(result.getData().getAgencyId())); |
||||
|
update(guideDTO); |
||||
|
//保存办事指南内容模块
|
||||
|
if (CollectionUtils.isNotEmpty(formDTO.getModuleList())) { |
||||
|
List<GuideModuleEntity> guideModuleList = formDTO.getModuleList().stream().map(item -> { |
||||
|
GuideModuleEntity entity = new GuideModuleEntity(); |
||||
|
entity.setCustomerId(guideDTO.getCustomerId()); |
||||
|
entity.setId(item.getGuideModuleId()); |
||||
|
entity.setGuideId(guideDTO.getId()); |
||||
|
entity.setModuleId(item.getModuleId()); |
||||
|
entity.setModuleContent(item.getModuleContent()); |
||||
|
return entity; |
||||
|
}).collect(Collectors.toList()); |
||||
|
guideModuleService.insertBatch(guideModuleList.stream().filter(item -> null == item.getId()).collect(Collectors.toList())); |
||||
|
guideModuleService.updateBatchById(guideModuleList.stream().filter(item -> null != item.getId()).collect(Collectors.toList())); |
||||
|
} |
||||
|
//保存附件
|
||||
|
guideAttachmentService.deleteByGuideId(formDTO.getGuideId()); |
||||
|
if (CollectionUtils.isNotEmpty(formDTO.getAttachmentList())) { |
||||
|
AtomicInteger i = new AtomicInteger(1); |
||||
|
List<GuideAttachmentEntity> attachmentList = formDTO.getAttachmentList().stream().map(item -> { |
||||
|
GuideAttachmentEntity entity = new GuideAttachmentEntity(); |
||||
|
entity.setCustomerId(guideDTO.getCustomerId()); |
||||
|
entity.setGuideId(guideDTO.getId()); |
||||
|
entity.setAttachmentName(item.getName()); |
||||
|
entity.setAttachmentFormat(item.getFormat()); |
||||
|
entity.setAttachmentSize(item.getSize()); |
||||
|
entity.setAttachmentType(item.getType()); |
||||
|
entity.setAttachmentUrl(item.getUrl()); |
||||
|
entity.setDuration(item.getDuration()); |
||||
|
entity.setSort(i.getAndIncrement()); |
||||
|
return entity; |
||||
|
}).collect(Collectors.toList()); |
||||
|
guideAttachmentService.insertBatch(attachmentList); |
||||
|
} |
||||
|
//保存外链地址
|
||||
|
guideExternalLinkService.deleteByGuideId(formDTO.getGuideId()); |
||||
|
if (CollectionUtils.isNotEmpty(formDTO.getExternalLinks())) { |
||||
|
AtomicInteger i = new AtomicInteger(1); |
||||
|
List<GuideExternalLinkEntity> linkList = formDTO.getExternalLinks().stream().map(item -> { |
||||
|
GuideExternalLinkEntity entity = new GuideExternalLinkEntity(); |
||||
|
entity.setCustomerId(guideDTO.getCustomerId()); |
||||
|
entity.setGuideId(guideDTO.getId()); |
||||
|
entity.setExternalLink(item.getExternalLink()); |
||||
|
entity.setDescription(item.getDescription()); |
||||
|
entity.setSort(i.getAndIncrement()); |
||||
|
return entity; |
||||
|
|
||||
|
}).collect(Collectors.toList()); |
||||
|
guideExternalLinkService.insertBatch(linkList); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除指南 |
||||
|
* |
||||
|
* @param formDTO |
||||
|
* @Param formDTO |
||||
|
* @Return |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2021/9/7 14:12 |
||||
|
*/ |
||||
|
@Override |
||||
|
public void guideDel(GuideFormDTO formDTO) { |
||||
|
GuideDTO guide = get(formDTO.getGuideId()); |
||||
|
if (!formDTO.getStaffId().equals(guide.getCreatedBy())) { |
||||
|
throw new RenException(EpmetErrorCode.GUIDE_IS_NOT_YOURS.getCode()); |
||||
|
} |
||||
|
//删除主表
|
||||
|
baseDao.deleteById(formDTO.getGuideId()); |
||||
|
//删除内容模块
|
||||
|
guideModuleService.deleteByGuideId(formDTO.getGuideId()); |
||||
|
//删除附件
|
||||
|
guideAttachmentService.deleteByGuideId(formDTO.getGuideId()); |
||||
|
//删除外链
|
||||
|
guideExternalLinkService.deleteByGuideId(formDTO.getGuideId()); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 指南详情 |
||||
|
* |
||||
|
* @param formDTO |
||||
|
* @Param formDTO |
||||
|
* @Return {@link GuideDetailResultDTO} |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2021/9/7 14:12 |
||||
|
*/ |
||||
|
@Override |
||||
|
public GuideDetailResultDTO guideDetail(GuideFormDTO formDTO) { |
||||
|
//获取指南详情
|
||||
|
GuideDetailResultDTO result = baseDao.getGuideDetail(formDTO.getGuideId()); |
||||
|
//获取指南内容模块
|
||||
|
result.setModuleList(guideModuleService.getByGuideId(formDTO.getCustomerId(), formDTO.getGuideId())); |
||||
|
//获取指南附件
|
||||
|
result.setAttachmentList(guideAttachmentService.getByGuideId(formDTO.getGuideId())); |
||||
|
//获取指南外链地址
|
||||
|
result.setExternalLinks(guideExternalLinkService.getByGuideId(formDTO.getGuideId())); |
||||
|
return result; |
||||
|
} |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
|
||||
|
<mapper namespace="com.epmet.dao.GuideAttachmentDao"> |
||||
|
|
||||
|
<resultMap type="com.epmet.entity.GuideAttachmentEntity" id="guideAttachmentMap"> |
||||
|
<result property="id" column="ID"/> |
||||
|
<result property="customerId" column="CUSTOMER_ID"/> |
||||
|
<result property="guideId" column="GUIDE_ID"/> |
||||
|
<result property="attachmentName" column="ATTACHMENT_NAME"/> |
||||
|
<result property="attachmentSize" column="ATTACHMENT_SIZE"/> |
||||
|
<result property="attachmentFormat" column="ATTACHMENT_FORMAT"/> |
||||
|
<result property="attachmentType" column="ATTACHMENT_TYPE"/> |
||||
|
<result property="attachmentUrl" column="ATTACHMENT_URL"/> |
||||
|
<result property="duration" column="DURATION"/> |
||||
|
<result property="sort" column="SORT"/> |
||||
|
<result property="delFlag" column="DEL_FLAG"/> |
||||
|
<result property="revision" column="REVISION"/> |
||||
|
<result property="createdBy" column="CREATED_BY"/> |
||||
|
<result property="createdTime" column="CREATED_TIME"/> |
||||
|
<result property="updatedBy" column="UPDATED_BY"/> |
||||
|
<result property="updatedTime" column="UPDATED_TIME"/> |
||||
|
</resultMap> |
||||
|
|
||||
|
|
||||
|
</mapper> |
||||
@ -0,0 +1,21 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
|
||||
|
<mapper namespace="com.epmet.dao.GuideCategoryDao"> |
||||
|
|
||||
|
<resultMap type="com.epmet.entity.GuideCategoryEntity" id="guideCategoryMap"> |
||||
|
<result property="id" column="ID"/> |
||||
|
<result property="customerId" column="CUSTOMER_ID"/> |
||||
|
<result property="categoryName" column="CATEGORY_NAME"/> |
||||
|
<result property="sort" column="SORT"/> |
||||
|
<result property="status" column="STATUS"/> |
||||
|
<result property="delFlag" column="DEL_FLAG"/> |
||||
|
<result property="revision" column="REVISION"/> |
||||
|
<result property="createdBy" column="CREATED_BY"/> |
||||
|
<result property="createdTime" column="CREATED_TIME"/> |
||||
|
<result property="updatedBy" column="UPDATED_BY"/> |
||||
|
<result property="updatedTime" column="UPDATED_TIME"/> |
||||
|
</resultMap> |
||||
|
|
||||
|
|
||||
|
</mapper> |
||||
@ -0,0 +1,21 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
|
||||
|
<mapper namespace="com.epmet.dao.GuideCollectionDao"> |
||||
|
|
||||
|
<resultMap type="com.epmet.entity.GuideCollectionEntity" id="guideCollectionMap"> |
||||
|
<result property="id" column="ID"/> |
||||
|
<result property="customerId" column="CUSTOMER_ID"/> |
||||
|
<result property="guideId" column="GUIDE_ID"/> |
||||
|
<result property="userId" column="USER_ID"/> |
||||
|
<result property="app" column="APP"/> |
||||
|
<result property="delFlag" column="DEL_FLAG"/> |
||||
|
<result property="revision" column="REVISION"/> |
||||
|
<result property="createdBy" column="CREATED_BY"/> |
||||
|
<result property="createdTime" column="CREATED_TIME"/> |
||||
|
<result property="updatedBy" column="UPDATED_BY"/> |
||||
|
<result property="updatedTime" column="UPDATED_TIME"/> |
||||
|
</resultMap> |
||||
|
|
||||
|
|
||||
|
</mapper> |
||||
@ -0,0 +1,61 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
|
||||
|
<mapper namespace="com.epmet.dao.GuideDao"> |
||||
|
|
||||
|
<resultMap type="com.epmet.entity.GuideEntity" id="guideMap"> |
||||
|
<result property="id" column="ID"/> |
||||
|
<result property="customerId" column="CUSTOMER_ID"/> |
||||
|
<result property="orgType" column="ORG_TYPE"/> |
||||
|
<result property="orgId" column="ORG_ID"/> |
||||
|
<result property="pid" column="PID"/> |
||||
|
<result property="pids" column="PIDS"/> |
||||
|
<result property="title" column="TITLE"/> |
||||
|
<result property="categoryCode" column="CATEGORY_CODE"/> |
||||
|
<result property="delFlag" column="DEL_FLAG"/> |
||||
|
<result property="revision" column="REVISION"/> |
||||
|
<result property="createdBy" column="CREATED_BY"/> |
||||
|
<result property="createdTime" column="CREATED_TIME"/> |
||||
|
<result property="updatedBy" column="UPDATED_BY"/> |
||||
|
<result property="updatedTime" column="UPDATED_TIME"/> |
||||
|
</resultMap> |
||||
|
|
||||
|
<select id="getGuideList" resultType="com.epmet.dto.result.GuideListResultDTO"> |
||||
|
SELECT |
||||
|
g.ID AS "guideId", |
||||
|
g.TITLE AS "title", |
||||
|
gc.CATEGORY_NAME AS categoryName, |
||||
|
g.CREATED_BY AS createdId, |
||||
|
g.UPDATED_TIME AS updatedTime, |
||||
|
FROM |
||||
|
guide g |
||||
|
INNER JOIN guide_category gc ON g.CATEGORY_ID = gc.ID |
||||
|
WHERE g.DEL_FLAG = 0 |
||||
|
<if test='null != agencyId and "" != agencyId'> |
||||
|
AND g.PIDS LIKE CONCAT( '%', #{agencyId}, '%' ) |
||||
|
</if> |
||||
|
<if test='null != guideTitle and "" != guideTitle'> |
||||
|
AND g.TITLE LIKE CONCAT( '%', #{guideTitle}, '%' ) |
||||
|
</if> |
||||
|
<if test='null != categoryId and "" != categoryId'> |
||||
|
AND g.CATEGORY_ID = #{categoryId} |
||||
|
</if> |
||||
|
</select> |
||||
|
<select id="getGuideDetail" resultType="com.epmet.dto.result.GuideDetailResultDTO"> |
||||
|
SELECT |
||||
|
g.ID AS "guideId", |
||||
|
ORG_TYPE, |
||||
|
ORG_ID, |
||||
|
ORG_NAME, |
||||
|
TITLE, |
||||
|
CATEGORY_CODE |
||||
|
CATEGORY_NAME |
||||
|
FROM |
||||
|
guide g |
||||
|
INNER JOIN guide_category gc ON g.CATEGORY_CODE = gc.CATEGORY_CODE |
||||
|
WHERE |
||||
|
g.ID = #{guideId} |
||||
|
</select> |
||||
|
|
||||
|
|
||||
|
</mapper> |
||||
@ -0,0 +1,21 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
|
||||
|
<mapper namespace="com.epmet.dao.GuideExternalLinkDao"> |
||||
|
|
||||
|
<resultMap type="com.epmet.entity.GuideExternalLinkEntity" id="guideExternalLinkMap"> |
||||
|
<result property="id" column="ID"/> |
||||
|
<result property="customerId" column="CUSTOMER_ID"/> |
||||
|
<result property="guideId" column="GUIDE_ID"/> |
||||
|
<result property="description" column="DESCRIPTION"/> |
||||
|
<result property="externalLink" column="EXTERNAL_LINK"/> |
||||
|
<result property="delFlag" column="DEL_FLAG"/> |
||||
|
<result property="revision" column="REVISION"/> |
||||
|
<result property="createdBy" column="CREATED_BY"/> |
||||
|
<result property="createdTime" column="CREATED_TIME"/> |
||||
|
<result property="updatedBy" column="UPDATED_BY"/> |
||||
|
<result property="updatedTime" column="UPDATED_TIME"/> |
||||
|
</resultMap> |
||||
|
|
||||
|
|
||||
|
</mapper> |
||||
@ -0,0 +1,34 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
|
||||
|
<mapper namespace="com.epmet.dao.GuideModuleDao"> |
||||
|
|
||||
|
<resultMap type="com.epmet.entity.GuideModuleEntity" id="guideModuleMap"> |
||||
|
<result property="id" column="ID"/> |
||||
|
<result property="customerId" column="CUSTOMER_ID"/> |
||||
|
<result property="guideId" column="GUIDE_ID"/> |
||||
|
<result property="moduleId" column="MODULE_ID"/> |
||||
|
<result property="moduleContent" column="MODULE_CONTENT"/> |
||||
|
<result property="delFlag" column="DEL_FLAG"/> |
||||
|
<result property="revision" column="REVISION"/> |
||||
|
<result property="createdBy" column="CREATED_BY"/> |
||||
|
<result property="createdTime" column="CREATED_TIME"/> |
||||
|
<result property="updatedBy" column="UPDATED_BY"/> |
||||
|
<result property="updatedTime" column="UPDATED_TIME"/> |
||||
|
</resultMap> |
||||
|
<select id="selectByGuideId" resultType="com.epmet.dto.ModuleDTO"> |
||||
|
SELECT |
||||
|
gm.ID AS "guideModuleId", |
||||
|
gmd.ID AS "moduleId", |
||||
|
gmd.MODULE_VALUE, |
||||
|
gmd.MODULE_NAME, |
||||
|
gm.MODULE_CONTENT |
||||
|
FROM guide_module_dict gmd |
||||
|
LEFT JOIN guide_module gm ON gmd.ID = gm.MODULE_ID AND gm.DEL_FLAG = 0 AND gm.GUIDE_ID = #{guideId} |
||||
|
WHERE gmd.DEL_FLAG = 0 |
||||
|
AND gmd.CUSTOMER_ID = #{customerId} |
||||
|
ORDER BY gmd.SORT ASC |
||||
|
</select> |
||||
|
|
||||
|
|
||||
|
</mapper> |
||||
@ -0,0 +1,22 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
|
||||
|
<mapper namespace="com.epmet.dao.GuideModuleDictDao"> |
||||
|
|
||||
|
<resultMap type="com.epmet.entity.GuideModuleDictEntity" id="guideModuleDictMap"> |
||||
|
<result property="id" column="ID"/> |
||||
|
<result property="customerId" column="CUSTOMER_ID"/> |
||||
|
<result property="moduleValue" column="MODULE_VALUE"/> |
||||
|
<result property="moduleName" column="MODULE_NAME"/> |
||||
|
<result property="sort" column="SORT"/> |
||||
|
<result property="status" column="STATUS"/> |
||||
|
<result property="delFlag" column="DEL_FLAG"/> |
||||
|
<result property="revision" column="REVISION"/> |
||||
|
<result property="createdBy" column="CREATED_BY"/> |
||||
|
<result property="createdTime" column="CREATED_TIME"/> |
||||
|
<result property="updatedBy" column="UPDATED_BY"/> |
||||
|
<result property="updatedTime" column="UPDATED_TIME"/> |
||||
|
</resultMap> |
||||
|
|
||||
|
|
||||
|
</mapper> |
||||
@ -0,0 +1,21 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
|
||||
|
<mapper namespace="com.epmet.dao.GuideModuleDictDefaultDao"> |
||||
|
|
||||
|
<resultMap type="com.epmet.entity.GuideModuleDictDefaultEntity" id="guideModuleDictDefaultMap"> |
||||
|
<result property="id" column="ID"/> |
||||
|
<result property="moduleValue" column="MODULE_VALUE"/> |
||||
|
<result property="moduleName" column="MODULE_NAME"/> |
||||
|
<result property="sort" column="SORT"/> |
||||
|
<result property="status" column="STATUS"/> |
||||
|
<result property="delFlag" column="DEL_FLAG"/> |
||||
|
<result property="revision" column="REVISION"/> |
||||
|
<result property="createdBy" column="CREATED_BY"/> |
||||
|
<result property="createdTime" column="CREATED_TIME"/> |
||||
|
<result property="updatedBy" column="UPDATED_BY"/> |
||||
|
<result property="updatedTime" column="UPDATED_TIME"/> |
||||
|
</resultMap> |
||||
|
|
||||
|
|
||||
|
</mapper> |
||||
@ -0,0 +1,17 @@ |
|||||
|
package com.epmet.resi.group.constant; |
||||
|
|
||||
|
/** |
||||
|
* @Author zxc |
||||
|
* @DateTime 2021/9/3 4:39 下午 |
||||
|
* @DESC |
||||
|
*/ |
||||
|
public interface ActConstant { |
||||
|
|
||||
|
/** |
||||
|
* 类型【组织活动次数:orgAct,应参加活动次数:joinAct,活动签到次数:signAct】 |
||||
|
*/ |
||||
|
String ORG_ACT = "orgAct"; |
||||
|
String JOIN_ACT = "joinAct"; |
||||
|
String SIGN_ACT = "signAct"; |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,126 @@ |
|||||
|
/** |
||||
|
* 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.resi.group.dto.act; |
||||
|
|
||||
|
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 ActCommentAttachmentDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
private String id; |
||||
|
|
||||
|
/** |
||||
|
* 客户ID |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 活动Id[group_act_info.id] |
||||
|
*/ |
||||
|
private String groupActId; |
||||
|
|
||||
|
/** |
||||
|
* 评论Id |
||||
|
*/ |
||||
|
private String actCommentId; |
||||
|
|
||||
|
/** |
||||
|
* 文件名 |
||||
|
*/ |
||||
|
private String fileName; |
||||
|
|
||||
|
/** |
||||
|
* 附件名(uuid随机生成) |
||||
|
*/ |
||||
|
private String attachmentName; |
||||
|
|
||||
|
/** |
||||
|
* 文件大小,单位b |
||||
|
*/ |
||||
|
private Integer attachmentSize; |
||||
|
|
||||
|
/** |
||||
|
* 文件格式(JPG、PNG、PDF、JPEG、BMP、MP4、WMA、M4A、MP3、DOC、DOCX、XLS) |
||||
|
*/ |
||||
|
private String attachmentFormat; |
||||
|
|
||||
|
/** |
||||
|
* 附件类型((图片 - image、 视频 - video、 语音 - voice、 文档 - doc)) |
||||
|
*/ |
||||
|
private String attachmentType; |
||||
|
|
||||
|
/** |
||||
|
* 附件地址 |
||||
|
*/ |
||||
|
private String attachmentUrl; |
||||
|
|
||||
|
/** |
||||
|
* 排序字段 |
||||
|
*/ |
||||
|
private Integer sort; |
||||
|
|
||||
|
/** |
||||
|
* 语音或视频时长,秒 |
||||
|
*/ |
||||
|
private Integer duration; |
||||
|
|
||||
|
/** |
||||
|
* 删除标记 0:未删除,1:已删除 |
||||
|
*/ |
||||
|
private String delFlag; |
||||
|
|
||||
|
/** |
||||
|
* 乐观锁 |
||||
|
*/ |
||||
|
private Integer revision; |
||||
|
|
||||
|
/** |
||||
|
* 创建人 |
||||
|
*/ |
||||
|
private String createdBy; |
||||
|
|
||||
|
/** |
||||
|
* 创建时间 |
||||
|
*/ |
||||
|
private Date createdTime; |
||||
|
|
||||
|
/** |
||||
|
* 更新人 |
||||
|
*/ |
||||
|
private String updatedBy; |
||||
|
|
||||
|
/** |
||||
|
* 更新时间 |
||||
|
*/ |
||||
|
private Date updatedTime; |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,44 @@ |
|||||
|
package com.epmet.resi.group.dto.act; |
||||
|
|
||||
|
import com.epmet.commons.tools.constant.NumConstant; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Author zxc |
||||
|
* @DateTime 2021/9/3 3:35 下午 |
||||
|
* @DESC |
||||
|
*/ |
||||
|
@Data |
||||
|
public class OrganizationalLifeLineChartDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = -4224453421929580053L; |
||||
|
|
||||
|
/** |
||||
|
* 月份 |
||||
|
*/ |
||||
|
private String month; |
||||
|
|
||||
|
/** |
||||
|
* 组织活动次数 |
||||
|
*/ |
||||
|
private Integer organizationalActCount; |
||||
|
|
||||
|
/** |
||||
|
* 应参加活动次数 |
||||
|
*/ |
||||
|
private Integer shouldJoinActCount; |
||||
|
|
||||
|
/** |
||||
|
* 活动签到次数 |
||||
|
*/ |
||||
|
private Integer actSignCount; |
||||
|
|
||||
|
public OrganizationalLifeLineChartDTO() { |
||||
|
this.month = ""; |
||||
|
this.organizationalActCount = NumConstant.ZERO; |
||||
|
this.shouldJoinActCount = NumConstant.ZERO; |
||||
|
this.actSignCount = NumConstant.ZERO; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,22 @@ |
|||||
|
package com.epmet.resi.group.dto.act.form; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Author zxc |
||||
|
* @DateTime 2021/9/3 2:52 下午 |
||||
|
* @DESC |
||||
|
*/ |
||||
|
@Data |
||||
|
public class OrganizationalLifeFormDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = -8611679719504666547L; |
||||
|
|
||||
|
private String yearId; |
||||
|
|
||||
|
private String userId; |
||||
|
|
||||
|
private String customerId; |
||||
|
} |
||||
@ -0,0 +1,47 @@ |
|||||
|
package com.epmet.resi.group.dto.act.result; |
||||
|
|
||||
|
import com.epmet.commons.tools.constant.NumConstant; |
||||
|
import com.epmet.resi.group.dto.act.OrganizationalLifeLineChartDTO; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @Author zxc |
||||
|
* @DateTime 2021/9/3 2:35 下午 |
||||
|
* @DESC |
||||
|
*/ |
||||
|
@Data |
||||
|
public class OrganizationalLifeResultDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 6991638491754890967L; |
||||
|
|
||||
|
/** |
||||
|
* 组织活动次数 |
||||
|
*/ |
||||
|
private Integer organizationalActCount; |
||||
|
|
||||
|
/** |
||||
|
* 应参加活动次数 |
||||
|
*/ |
||||
|
private Integer shouldJoinActCount; |
||||
|
|
||||
|
/** |
||||
|
* 活动签到次数 |
||||
|
*/ |
||||
|
private Integer actSignCount; |
||||
|
|
||||
|
/** |
||||
|
* 折线图 |
||||
|
*/ |
||||
|
private List<OrganizationalLifeLineChartDTO> lineChart; |
||||
|
|
||||
|
public OrganizationalLifeResultDTO() { |
||||
|
this.organizationalActCount = NumConstant.ZERO; |
||||
|
this.shouldJoinActCount = NumConstant.ZERO; |
||||
|
this.actSignCount = NumConstant.ZERO; |
||||
|
this.lineChart = new ArrayList<>(); |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,28 @@ |
|||||
|
package com.epmet.resi.group.dto.group.result; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonIgnore; |
||||
|
import lombok.Data; |
||||
|
import lombok.NoArgsConstructor; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Author sun |
||||
|
* @Description 话题、通知、活动评论附件 |
||||
|
*/ |
||||
|
@NoArgsConstructor |
||||
|
@Data |
||||
|
public class CommentFileDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = -3930520724652521552L; |
||||
|
private String name; |
||||
|
private String url; |
||||
|
private String type; |
||||
|
private String format; |
||||
|
private Integer size; |
||||
|
private Integer duration; |
||||
|
@JsonIgnore |
||||
|
private String commentId; |
||||
|
@JsonIgnore |
||||
|
private String userId; |
||||
|
} |
||||
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue