216 changed files with 10573 additions and 1269 deletions
@ -0,0 +1,55 @@ |
|||
package com.epmet.commons.tools.enums; |
|||
|
|||
/** |
|||
* @author Administrator |
|||
*/ |
|||
public enum DictTypeEnum { |
|||
/** |
|||
* 环境变量枚举 |
|||
*/ |
|||
UN_KNOWN("un_know", "暂不清楚", 0), |
|||
NINE_SMALL_PLACES("nine_small_places", "九小场所", 1), |
|||
EDUCATION("education", "文化程度", 2), |
|||
NATION("nation", "民族", 3), |
|||
RELATIONSHIP("relationship", "与户主关系", 4), |
|||
HOUSE("house", "住房性质", 5), |
|||
SCALE("scale", "人员规模", 6), |
|||
PARTY_UNIT_TYPE("party_unit_type", "联建单位分类", 7), |
|||
GENDER("gender", "性别", 8), |
|||
; |
|||
|
|||
private final String code; |
|||
private final String name; |
|||
private final Integer sort; |
|||
|
|||
|
|||
|
|||
DictTypeEnum(String code, String name, Integer sort) { |
|||
this.code = code; |
|||
this.name = name; |
|||
this.sort = sort; |
|||
} |
|||
|
|||
public static DictTypeEnum getEnum(String code) { |
|||
DictTypeEnum[] values = DictTypeEnum.values(); |
|||
for (DictTypeEnum value : values) { |
|||
if (value.getCode().equals(code)) { |
|||
return value; |
|||
} |
|||
} |
|||
return DictTypeEnum.UN_KNOWN; |
|||
} |
|||
|
|||
|
|||
public String getCode() { |
|||
return code; |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public Integer getSort(){ |
|||
return sort; |
|||
} |
|||
} |
@ -0,0 +1,154 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.dto; |
|||
|
|||
import com.epmet.commons.tools.validator.group.AddGroup; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
|
|||
/** |
|||
* 联建活动 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-11-19 |
|||
*/ |
|||
@Data |
|||
public class IcPartyActivityDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 组织ID |
|||
*/ |
|||
@NotBlank(message = "agencyId不能为空",groups = AddGroup.class) |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 组织的所有上级 |
|||
*/ |
|||
private String pids; |
|||
|
|||
/** |
|||
* 单位ID |
|||
*/ |
|||
@NotBlank(message = "单位不能为空",groups = AddGroup.class) |
|||
private String unitId; |
|||
private String unitName; |
|||
/** |
|||
* 服务事项 |
|||
*/ |
|||
@NotBlank(message = "服务事项不能为空",groups = AddGroup.class) |
|||
private String serviceMatter; |
|||
|
|||
/** |
|||
* 活动标题 |
|||
*/ |
|||
@NotBlank(message = "活动标题不能为空",groups = AddGroup.class) |
|||
private String title; |
|||
|
|||
/** |
|||
* 活动目标 |
|||
*/ |
|||
@NotBlank(message = "活动目标不能为空",groups = AddGroup.class) |
|||
private String target; |
|||
|
|||
/** |
|||
* 活动内容 |
|||
*/ |
|||
@NotBlank(message = "活动内容不能为空",groups = AddGroup.class) |
|||
private String content; |
|||
|
|||
/** |
|||
* 服务人数 |
|||
*/ |
|||
private Integer peopleCount; |
|||
|
|||
/** |
|||
* 活动时间 |
|||
*/ |
|||
@NotBlank(message = "活动时间不能为空",groups = AddGroup.class) |
|||
private Date activityTime; |
|||
|
|||
/** |
|||
* 活动地址 |
|||
*/ |
|||
@NotBlank(message = "活动地址不能为空",groups = AddGroup.class) |
|||
private String address; |
|||
|
|||
/** |
|||
* 活动地址经度 |
|||
*/ |
|||
@NotBlank(message = "活动地址不能为空",groups = AddGroup.class) |
|||
private String longitude; |
|||
|
|||
/** |
|||
* 活动地址纬度 |
|||
*/ |
|||
@NotBlank(message = "活动地址不能为空",groups = AddGroup.class) |
|||
private String latitude; |
|||
|
|||
/** |
|||
* 活动结果 |
|||
*/ |
|||
private String result; |
|||
|
|||
/** |
|||
* 删除标识 0未删除、1已删除 |
|||
*/ |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -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.dto; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
|
|||
/** |
|||
* 联建单位 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-11-19 |
|||
*/ |
|||
@Data |
|||
public class IcPartyUnitDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 组织ID |
|||
*/ |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* |
|||
*/ |
|||
private String pids; |
|||
|
|||
/** |
|||
* 单位名称 |
|||
*/ |
|||
private String unitName; |
|||
|
|||
/** |
|||
* 分类 楼宇党建 两新组织 区域单位党建 机关直属部门 其他 |
|||
*/ |
|||
private String type; |
|||
|
|||
/** |
|||
* 服务事项 多选逗号隔开 |
|||
*/ |
|||
private String serviceMatter; |
|||
|
|||
private List<String> serviceMatterList; |
|||
|
|||
/** |
|||
* 联系人 |
|||
*/ |
|||
private String contact; |
|||
|
|||
/** |
|||
* 联系电话 |
|||
*/ |
|||
private String contactMobile; |
|||
|
|||
/** |
|||
* 在职党员数 |
|||
*/ |
|||
private Integer memberCount; |
|||
|
|||
/** |
|||
* 地址 |
|||
*/ |
|||
private String address; |
|||
|
|||
/** |
|||
* 中心位置经度 |
|||
*/ |
|||
private String longitude; |
|||
|
|||
/** |
|||
* 中心位置纬度 |
|||
*/ |
|||
private String latitude; |
|||
|
|||
/** |
|||
* 群众满意度 |
|||
*/ |
|||
private String satisfaction; |
|||
|
|||
/** |
|||
* 备注 |
|||
*/ |
|||
private String remark; |
|||
|
|||
/** |
|||
* 删除标识 0未删除、1已删除 |
|||
*/ |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -0,0 +1,103 @@ |
|||
/** |
|||
* 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-11-19 |
|||
*/ |
|||
@Data |
|||
public class IcUserDemandOperateLogDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 需求id |
|||
*/ |
|||
private String demandRecId; |
|||
|
|||
/** |
|||
* 当前操作用户属于哪个端?工作端:staff;居民端:resi |
|||
*/ |
|||
private String userType; |
|||
|
|||
/** |
|||
* 当前操作用户id |
|||
*/ |
|||
private String userId; |
|||
|
|||
/** |
|||
* 创建需求:create;撤销需求:cancel;指派:assign;接单:take_order;完成:finish; |
|||
*/ |
|||
private String actionCode; |
|||
|
|||
/** |
|||
* 操作时间 |
|||
*/ |
|||
private Date operateTime; |
|||
|
|||
/** |
|||
* 删除标识:0.未删除 1.已删除 |
|||
*/ |
|||
private Integer delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
|
|||
} |
@ -0,0 +1,178 @@ |
|||
/** |
|||
* 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-11-19 |
|||
*/ |
|||
@Data |
|||
public class IcUserDemandRecDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 网格id |
|||
*/ |
|||
private String gridId; |
|||
|
|||
/** |
|||
* 组织id |
|||
*/ |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 网格的所有上级id |
|||
*/ |
|||
private String gridPids; |
|||
|
|||
/** |
|||
* 二级需求分类编码 |
|||
*/ |
|||
private String categoryCode; |
|||
|
|||
/** |
|||
* 父级需求分类编码 |
|||
*/ |
|||
private String parentCode; |
|||
|
|||
/** |
|||
* 需求内容1000字 |
|||
*/ |
|||
private String content; |
|||
|
|||
/** |
|||
* 社区帮办:community;楼长帮办:building_caption;党员帮办:party;自身上报:self_help |
|||
*/ |
|||
private String reportType; |
|||
|
|||
/** |
|||
* 上报人姓名 |
|||
*/ |
|||
private String reportUserName; |
|||
|
|||
/** |
|||
* 上报人联系方式。自身上报时存储注册居民的手机号 |
|||
*/ |
|||
private String reportUserMobile; |
|||
|
|||
/** |
|||
* 自身上报时存储居民端用户id |
|||
*/ |
|||
private String reportUserId; |
|||
|
|||
/** |
|||
* 上报时间 |
|||
*/ |
|||
private Date reportTime; |
|||
|
|||
/** |
|||
* 希望服务时间 |
|||
*/ |
|||
private Date wantServiceTime; |
|||
|
|||
/** |
|||
* 小程序用户自己上报:mini_resi;居民信息录入的居民:ic_resi_user |
|||
*/ |
|||
private String demandUserType; |
|||
|
|||
/** |
|||
* 需求人:user.id或者ic_resi_user.id |
|||
*/ |
|||
private String demandUserId; |
|||
|
|||
/** |
|||
* 需求人姓名 |
|||
*/ |
|||
private String demandUserName; |
|||
|
|||
/** |
|||
* 需求人联系电话 |
|||
*/ |
|||
private String demandUserMobile; |
|||
|
|||
/** |
|||
* 待处理:pending;已取消canceled;已派单:assigned;已接单:have_order;已完成:finished |
|||
*/ |
|||
private String status; |
|||
|
|||
/** |
|||
* 完成结果:已解决 resolved,未解决 unresolved |
|||
|
|||
*/ |
|||
private String finishResult; |
|||
|
|||
/** |
|||
* 取消时间 |
|||
*/ |
|||
private Date cancelTime; |
|||
|
|||
/** |
|||
* 1:已评价;0:未评价;评价后ic_user_satisfaction表有记录 |
|||
*/ |
|||
private Boolean evaluateFlag; |
|||
|
|||
/** |
|||
* 删除标识:0.未删除 1.已删除 |
|||
*/ |
|||
private Integer delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -0,0 +1,102 @@ |
|||
/** |
|||
* 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; |
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* 居民需求评价记录表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-11-19 |
|||
*/ |
|||
@Data |
|||
public class IcUserDemandSatisfactionDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键,居民需求评价表 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 需求id |
|||
*/ |
|||
private String demandRecId; |
|||
|
|||
/** |
|||
* 当前操作用户属于哪个端?工作端:staff;居民端:resi |
|||
*/ |
|||
private String userType; |
|||
|
|||
/** |
|||
* 当前评价用户id,可以是小程序里用户id,也可以是工作端帮忙录入需求的人 |
|||
*/ |
|||
private String userId; |
|||
|
|||
/** |
|||
* 评价时间 |
|||
*/ |
|||
private Date evaluateTime; |
|||
|
|||
/** |
|||
* 得分可为半星 |
|||
*/ |
|||
private BigDecimal score; |
|||
|
|||
/** |
|||
* 删除标识:0.未删除 1.已删除 |
|||
*/ |
|||
private Integer delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -0,0 +1,106 @@ |
|||
/** |
|||
* 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-11-19 |
|||
*/ |
|||
@Data |
|||
public class IcUserDemandServiceDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 需求id |
|||
*/ |
|||
private String demandRecId; |
|||
|
|||
/** |
|||
* 服务方类型:志愿者:volunteer;社会组织:social_org;社区自组织:community_org;区域党建单位:party_unit; |
|||
*/ |
|||
private String serviceType; |
|||
|
|||
/** |
|||
* 志愿者:居民端爱心互助的志愿者userId; |
|||
*/ |
|||
private String serverId; |
|||
|
|||
/** |
|||
* 实际服务开始时间 |
|||
*/ |
|||
private Date serviceStartTime; |
|||
|
|||
/** |
|||
* 实际服务结束时间 |
|||
*/ |
|||
private Date serviceEndTime; |
|||
|
|||
/** |
|||
* 完成情况 |
|||
*/ |
|||
private String finishDesc; |
|||
|
|||
/** |
|||
* 删除标识:0.未删除 1.已删除 |
|||
*/ |
|||
private Integer delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -0,0 +1,49 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotNull; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/11/19 1:47 下午 |
|||
* @DESC |
|||
*/ |
|||
@Data |
|||
public class CommunitySelfOrganizationListFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 4202083250504143469L; |
|||
|
|||
public interface CommunitySelfOrganizationListForm{} |
|||
|
|||
/** |
|||
* 社区自组织名 |
|||
*/ |
|||
private String organizationName; |
|||
|
|||
/** |
|||
* 开始时间 |
|||
*/ |
|||
private String startTime; |
|||
|
|||
/** |
|||
* 结束时间 |
|||
*/ |
|||
private String endTime; |
|||
|
|||
@NotNull(message = "pageNo不能为空",groups = CommunitySelfOrganizationListForm.class) |
|||
private Integer pageNo; |
|||
|
|||
@NotNull(message = "pageSize不能为空",groups = CommunitySelfOrganizationListForm.class) |
|||
private Integer pageSize; |
|||
|
|||
/** |
|||
* 是否分页,默认true分页 |
|||
*/ |
|||
private Boolean isPage = true; |
|||
|
|||
private String customerId; |
|||
private String agencyId; |
|||
private Integer ranking; |
|||
} |
@ -0,0 +1,22 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/11/19 4:19 下午 |
|||
* @DESC |
|||
*/ |
|||
@Data |
|||
public class DelCommunitySelfOrganizationFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 789228513283561471L; |
|||
|
|||
public interface DelCommunitySelfOrganizationForm{} |
|||
|
|||
@NotBlank(message = "orgId不能为空",groups = DelCommunitySelfOrganizationForm.class) |
|||
private String orgId; |
|||
} |
@ -0,0 +1,83 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import com.epmet.dto.IcCommunitySelfOrganizationPersonnelDTO; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.NotNull; |
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/11/18 5:32 下午 |
|||
* @DESC |
|||
*/ |
|||
@Data |
|||
public class EditCommunitySelfOrganizationFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -4990925380900678065L; |
|||
|
|||
public interface EditCommunitySelfOrganizationForm{} |
|||
|
|||
/** |
|||
* 组织名称 |
|||
*/ |
|||
@NotBlank(message = "organizationName不能为空",groups = EditCommunitySelfOrganizationForm.class) |
|||
private String organizationName; |
|||
|
|||
/** |
|||
* 组织人数 |
|||
*/ |
|||
@NotNull(message = "organizationPersonCount不能为空",groups = EditCommunitySelfOrganizationForm.class) |
|||
private Integer organizationPersonCount; |
|||
|
|||
/** |
|||
* 负责人姓名 |
|||
*/ |
|||
@NotBlank(message = "principalName不能为空",groups = EditCommunitySelfOrganizationForm.class) |
|||
private String principalName; |
|||
|
|||
/** |
|||
* 负责人电话 |
|||
*/ |
|||
@NotBlank(message = "principalPhone不能为空",groups = EditCommunitySelfOrganizationForm.class) |
|||
private String principalPhone; |
|||
|
|||
/** |
|||
* 服务事项 |
|||
*/ |
|||
@NotBlank(message = "serviceItem不能为空",groups = EditCommunitySelfOrganizationForm.class) |
|||
private String serviceItem; |
|||
|
|||
/** |
|||
* 社区自组织创建时间 |
|||
*/ |
|||
@NotNull(message = "organizationCreatedTime不能为空",groups = EditCommunitySelfOrganizationForm.class) |
|||
private String organizationCreatedTime; |
|||
|
|||
/** |
|||
* 经度 |
|||
*/ |
|||
@NotBlank(message = "longitude不能为空",groups = EditCommunitySelfOrganizationForm.class) |
|||
private String longitude; |
|||
|
|||
/** |
|||
* 纬度 |
|||
*/ |
|||
@NotBlank(message = "latitude不能为空",groups = EditCommunitySelfOrganizationForm.class) |
|||
private String latitude; |
|||
|
|||
/** |
|||
* 社区自组织ID |
|||
*/ |
|||
@NotBlank(message = "orgId不能为空",groups = EditCommunitySelfOrganizationForm.class) |
|||
private String orgId; |
|||
|
|||
/** |
|||
* 社区自组织人员 |
|||
*/ |
|||
private List<IcCommunitySelfOrganizationPersonnelDTO> organizationPersonnel; |
|||
} |
@ -0,0 +1,26 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
import lombok.NoArgsConstructor; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* @Description |
|||
* @Author zhaoqifeng |
|||
* @Date 2021/11/22 14:42 |
|||
*/ |
|||
@NoArgsConstructor |
|||
@Data |
|||
public class PartyActivityFormDTO implements Serializable { |
|||
private static final long serialVersionUID = -2510068555703677L; |
|||
private String agencyId; |
|||
private String unitId; |
|||
private String title; |
|||
private Date startTime; |
|||
private Date endTime; |
|||
private String serviceMatter; |
|||
private Integer pageNo; |
|||
private Integer pageSize; |
|||
} |
@ -0,0 +1,26 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
import lombok.NoArgsConstructor; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description |
|||
* @Author zhaoqifeng |
|||
* @Date 2021/11/19 16:19 |
|||
*/ |
|||
@NoArgsConstructor |
|||
@Data |
|||
public class PartyUnitFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1256798619648265622L; |
|||
private String agencyId; |
|||
private String unitName; |
|||
private String serviceMatter; |
|||
private String type; |
|||
private String contact; |
|||
private String contactMobile; |
|||
private Integer pageNo; |
|||
private Integer pageSize; |
|||
} |
@ -0,0 +1,31 @@ |
|||
package com.epmet.dto.form.demand; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
@Data |
|||
public class AssignFormDTO implements Serializable { |
|||
private static final long serialVersionUID = -8844710824469349121L; |
|||
|
|||
public interface AddUserInternalGroup { |
|||
} |
|||
public interface AddUserShowGroup extends CustomerClientShowGroup { |
|||
} |
|||
@NotBlank(message = "需求id不能为空", groups = AddUserInternalGroup.class) |
|||
private String demandRecId; |
|||
@NotBlank(message = "服务方类型不能为空", groups = AddUserShowGroup.class) |
|||
private String serviceType; |
|||
@NotBlank(message = "服务方不能为空", groups = AddUserShowGroup.class) |
|||
private String serverId; |
|||
|
|||
|
|||
|
|||
@NotBlank(message = "userId不能为空", groups = AddUserInternalGroup.class) |
|||
private String userId; |
|||
@NotBlank(message = "customerId不能为空", groups = AddUserInternalGroup.class) |
|||
private String customerId; |
|||
|
|||
} |
@ -0,0 +1,120 @@ |
|||
package com.epmet.dto.form.demand; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import lombok.Data; |
|||
import org.hibernate.validator.constraints.Length; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.NotNull; |
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
@Data |
|||
public class DemandAddFromDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1589287946950749226L; |
|||
|
|||
public interface AddUserInternalGroup { |
|||
} |
|||
|
|||
public interface AddUserShowGroup extends CustomerClientShowGroup { |
|||
} |
|||
public interface UpdateInternalGroup { |
|||
} |
|||
|
|||
@NotBlank(message = "需求id不能为空",groups = UpdateInternalGroup.class) |
|||
private String demandRecId; |
|||
|
|||
private String customerId; |
|||
private String currentUserId; |
|||
|
|||
|
|||
/** |
|||
* 网格id |
|||
*/ |
|||
@NotBlank(message = "所属网格不能为空",groups = AddUserShowGroup.class) |
|||
private String gridId; |
|||
|
|||
/** |
|||
* 组织id |
|||
*/ |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 网格的所有上级id |
|||
*/ |
|||
private String gridPids; |
|||
|
|||
|
|||
|
|||
|
|||
/** |
|||
* 二级需求分类编码 |
|||
*/ |
|||
@NotBlank(message = "需求类别不能为空",groups = AddUserShowGroup.class) |
|||
private String categoryCode; |
|||
|
|||
/** |
|||
* 父级需求分类编码 |
|||
*/ |
|||
@NotBlank(message = "需求类别不能为空",groups = AddUserShowGroup.class) |
|||
private String parentCode; |
|||
|
|||
/** |
|||
* 需求内容1000字 |
|||
*/ |
|||
@NotBlank(message = "需求内容不能为空",groups = AddUserShowGroup.class) |
|||
@Length(max = 1000,message = "需求内容至多输入1000字",groups = AddUserShowGroup.class) |
|||
private String content; |
|||
|
|||
/** |
|||
* 社区帮办:community;楼长帮办:building_caption;党员帮办:party;自身上报:self_help |
|||
*/ |
|||
@NotBlank(message = "上报类型不能为空",groups = AddUserShowGroup.class) |
|||
private String reportType; |
|||
|
|||
/** |
|||
* 上报人姓名 |
|||
*/ |
|||
@NotBlank(message = "上报人不能为空",groups = AddUserShowGroup.class) |
|||
private String reportUserName; |
|||
|
|||
/** |
|||
* 上报人联系方式。自身上报时存储注册居民的手机号 |
|||
*/ |
|||
@NotBlank(message = "上报人联系方式不能为空",groups = AddUserShowGroup.class) |
|||
private String reportUserMobile; |
|||
|
|||
/** |
|||
* 上报时间 |
|||
*/ |
|||
@NotNull(message = "上报时间不能为空",groups = AddUserShowGroup.class) |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
private Date reportTime; |
|||
|
|||
/** |
|||
* 需求人:user.id或者ic_resi_user.id |
|||
*/ |
|||
@NotNull(message = "需求人不能为空",groups = AddUserShowGroup.class) |
|||
private String demandUserId; |
|||
|
|||
/** |
|||
* 需求人姓名 |
|||
*/ |
|||
@NotNull(message = "需求人不能为空",groups = AddUserShowGroup.class) |
|||
private String demandUserName; |
|||
|
|||
/** |
|||
* 需求人联系电话 |
|||
*/ |
|||
@NotNull(message = "需求人不能为空",groups = AddUserShowGroup.class) |
|||
private String demandUserMobile; |
|||
|
|||
/** |
|||
* 希望服务时间 |
|||
*/ |
|||
@NotNull(message = "服务时间不能为空",groups = AddUserShowGroup.class) |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
private Date wantServiceTime; |
|||
} |
@ -0,0 +1,10 @@ |
|||
package com.epmet.dto.form.demand; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
@Data |
|||
public class DemandRecId implements Serializable { |
|||
private String demandRecId; |
|||
} |
@ -0,0 +1,48 @@ |
|||
package com.epmet.dto.form.demand; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import lombok.Data; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.NotNull; |
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
|
|||
@Data |
|||
public class FinishStaffFromDTO implements Serializable { |
|||
private static final long serialVersionUID = 591380873862126679L; |
|||
|
|||
public interface AddUserInternalGroup { |
|||
} |
|||
public interface AddUserShowGroup extends CustomerClientShowGroup { |
|||
} |
|||
@NotBlank(message = "需求id不能为空", groups = AddUserInternalGroup.class) |
|||
private String demandRecId; |
|||
|
|||
@NotBlank(message = "服务方不能为空", groups = AddUserShowGroup.class) |
|||
private String serverId; |
|||
|
|||
@NotNull(message = "实际服务开始不能为空", groups = AddUserShowGroup.class) |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
private Date serviceStartTime; |
|||
|
|||
@NotNull(message = "实际服务结束不能为空", groups = AddUserShowGroup.class) |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
private Date serviceEndTime; |
|||
|
|||
@NotBlank(message = "完成结果不能为空", groups = AddUserShowGroup.class) |
|||
private String finishResult; |
|||
private String finishDesc; |
|||
|
|||
@NotNull(message = "得分不能为空", groups = AddUserShowGroup.class) |
|||
private BigDecimal score; |
|||
|
|||
|
|||
|
|||
@NotBlank(message = "userId不能为空", groups = AddUserInternalGroup.class) |
|||
private String userId; |
|||
@NotBlank(message = "customerId不能为空", groups = AddUserInternalGroup.class) |
|||
private String customerId; |
|||
} |
@ -0,0 +1,44 @@ |
|||
package com.epmet.dto.form.demand; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
@Data |
|||
public class ServiceQueryFormDTO implements Serializable { |
|||
private static final long serialVersionUID = -2738313255838176318L; |
|||
|
|||
public interface AddUserInternalGroup { |
|||
} |
|||
|
|||
public interface SocietyOrgInternalGroup { |
|||
} |
|||
|
|||
/** |
|||
* 服务方类型:志愿者:volunteer;社会组织:social_org;社区自组织:community_org;区域党建单位:party_unit; |
|||
*/ |
|||
@NotBlank(message = "服务方类型不能为空", groups = AddUserInternalGroup.class) |
|||
private String serviceType; |
|||
|
|||
/** |
|||
* 名称检索 |
|||
*/ |
|||
private String serviceName; |
|||
|
|||
/** |
|||
* 列表查询条件:query_demand 需求指派:add_demand |
|||
*/ |
|||
@NotBlank(message = "新增需求:add_demand;列表查询:query_demand", groups = SocietyOrgInternalGroup.class) |
|||
private String queryPurpose; |
|||
|
|||
// --------------------------------------------------------
|
|||
// 以下参数从token中获取
|
|||
@NotBlank(message = "userId不能为空", groups = AddUserInternalGroup.class) |
|||
private String staffId; |
|||
@NotBlank(message = "customerId不能为空", groups = AddUserInternalGroup.class) |
|||
private String customerId; |
|||
|
|||
private String demandRecId; |
|||
|
|||
} |
@ -0,0 +1,17 @@ |
|||
package com.epmet.dto.form.demand; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
@Data |
|||
public class StaffCancelFormDTO { |
|||
public interface AddUserInternalGroup {} |
|||
@NotBlank(message = "需求id不能为空",groups = AddUserInternalGroup.class) |
|||
private String demandRecId; |
|||
|
|||
@NotBlank(message = "userId不能为空", groups =AddUserInternalGroup.class) |
|||
private String userId; |
|||
@NotBlank(message = "customerId不能为空", groups = AddUserInternalGroup.class) |
|||
private String customerId; |
|||
} |
@ -0,0 +1,83 @@ |
|||
package com.epmet.dto.form.demand; |
|||
|
|||
import com.epmet.commons.tools.dto.form.PageFormDTO; |
|||
import lombok.Data; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
@Data |
|||
public class UserDemandPageFormDTO extends PageFormDTO implements Serializable { |
|||
|
|||
private String customerId; |
|||
private String currentStaffId; |
|||
private String gridPids; |
|||
|
|||
|
|||
/** |
|||
* 网格id |
|||
*/ |
|||
private String gridId; |
|||
|
|||
|
|||
|
|||
/** |
|||
* 分类的编码 |
|||
*/ |
|||
private String categoryCode; |
|||
|
|||
/** |
|||
* 分类的级别 |
|||
*/ |
|||
private Integer level; |
|||
|
|||
|
|||
|
|||
/** |
|||
* 需求人姓名 |
|||
*/ |
|||
private String demandUserName; |
|||
|
|||
/** |
|||
* 上报时间开始 |
|||
*/ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd") |
|||
private Date reportStartDate; |
|||
|
|||
/** |
|||
* 上报时间截止 |
|||
*/ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd") |
|||
private Date reportEndDate; |
|||
|
|||
/** |
|||
* 待处理:pending;已取消canceled;已派单:assigned;已接单:have_order;已完成:finished |
|||
*/ |
|||
private String status; |
|||
|
|||
|
|||
|
|||
|
|||
/** |
|||
* 服务方类型:志愿者:volunteer;社会组织:social_org;社区自组织:community_org;区域党建单位:party_unit; |
|||
*/ |
|||
private String serviceType; |
|||
|
|||
/** |
|||
* 服务方id |
|||
*/ |
|||
private String serverId; |
|||
|
|||
/** |
|||
* 希望服务时间开始 |
|||
*/ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd") |
|||
private Date wantServiceStartDate; |
|||
|
|||
/** |
|||
* 希望截止 |
|||
*/ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd") |
|||
private Date wantServiceEndDate; |
|||
} |
@ -0,0 +1,89 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import com.epmet.commons.tools.constant.NumConstant; |
|||
import com.epmet.dto.IcCommunitySelfOrganizationPersonnelDTO; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/11/19 1:47 下午 |
|||
* @DESC |
|||
*/ |
|||
@Data |
|||
public class CommunitySelfOrganizationListDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 3208034033470533749L; |
|||
|
|||
/** |
|||
* 排序 |
|||
*/ |
|||
private Integer sort; |
|||
|
|||
/** |
|||
* 社区自组织人数 |
|||
*/ |
|||
private Integer organizationPersonCount; |
|||
|
|||
/** |
|||
* 社区自组织名字 |
|||
*/ |
|||
private String organizationName; |
|||
|
|||
/** |
|||
* 服务事项 |
|||
*/ |
|||
private String serviceItem; |
|||
|
|||
/** |
|||
* 负责人 |
|||
*/ |
|||
private String principalName; |
|||
|
|||
/** |
|||
* 负责人电话 |
|||
*/ |
|||
private String principalPhone; |
|||
|
|||
/** |
|||
* 自组织创办时间 |
|||
*/ |
|||
private String organizationCreatedTime; |
|||
|
|||
/** |
|||
* 经度 |
|||
*/ |
|||
private String longitude; |
|||
|
|||
/** |
|||
* 纬度 |
|||
*/ |
|||
private String latitude; |
|||
|
|||
/** |
|||
* 社区自组织ID |
|||
*/ |
|||
private String orgId; |
|||
|
|||
/** |
|||
* 社区自组织人员 |
|||
*/ |
|||
private List<IcCommunitySelfOrganizationPersonnelDTO> organizationPersonnel; |
|||
|
|||
public CommunitySelfOrganizationListDTO() { |
|||
this.sort = NumConstant.ZERO; |
|||
this.organizationPersonCount = NumConstant.ZERO; |
|||
this.organizationName = ""; |
|||
this.serviceItem = ""; |
|||
this.principalName = ""; |
|||
this.principalPhone = ""; |
|||
this.organizationCreatedTime = ""; |
|||
this.longitude = ""; |
|||
this.latitude = ""; |
|||
this.orgId = ""; |
|||
this.organizationPersonnel = new ArrayList<>(); |
|||
} |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import com.epmet.commons.tools.constant.NumConstant; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/11/19 1:47 下午 |
|||
* @DESC |
|||
*/ |
|||
@Data |
|||
public class CommunitySelfOrganizationListResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 3208034033470533749L; |
|||
|
|||
private Integer total; |
|||
|
|||
private List<CommunitySelfOrganizationListDTO> list; |
|||
|
|||
public CommunitySelfOrganizationListResultDTO() { |
|||
this.total = NumConstant.ZERO; |
|||
this.list = new ArrayList<>(); |
|||
} |
|||
} |
@ -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.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author sun |
|||
* @Description 社会组织列表查询 |
|||
**/ |
|||
@Data |
|||
public class SocietyOrgListResultDTO implements Serializable { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
//所属组织Id
|
|||
private String agencyId; |
|||
//社会组织Id
|
|||
private String societyId; |
|||
//社会组织名称
|
|||
private String societyName; |
|||
//服务事项
|
|||
private String serviceMatters; |
|||
//负责人姓名
|
|||
private String personInCharge; |
|||
//负责人电话
|
|||
private String mobile; |
|||
//起始服务时间
|
|||
//@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|||
//private Date serviceStartTime;
|
|||
private String serviceStartTime; |
|||
//终止服务时间
|
|||
private String serviceEndTime; |
|||
//绑定管理员[组织下Id录入的工作人员]
|
|||
private String adminStaffId; |
|||
//绑定管理员[组织下录入的工作人员]姓名
|
|||
private String adminStaffName = ""; |
|||
//地址
|
|||
private String address; |
|||
//经度
|
|||
private String longitude; |
|||
//维度
|
|||
private String dimension; |
|||
|
|||
} |
@ -0,0 +1,113 @@ |
|||
package com.epmet.dto.result.demand; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
|
|||
|
|||
@Data |
|||
public class DemandRecResultDTO implements Serializable { |
|||
private static final long serialVersionUID = 1140730681599839420L; |
|||
|
|||
private String demandRecId; |
|||
@JsonIgnore |
|||
private String gridId; |
|||
private String gridName; |
|||
|
|||
@JsonIgnore |
|||
private String categoryCode; |
|||
private String categoryName; |
|||
|
|||
|
|||
|
|||
//社区帮办:community;楼长帮办:building_caption;党员帮办:party;自身上报:self_help
|
|||
private String reportType; |
|||
private String reportTypeName; |
|||
|
|||
private String content; |
|||
private String reportUserName; |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") |
|||
private Date reportTime; |
|||
private String demandUserId; |
|||
private String demandUser; |
|||
private String demandUserName; |
|||
private String demandUserMobile; |
|||
|
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") |
|||
private String wantServiceTime; |
|||
|
|||
/** |
|||
* 待处理:pending;已取消canceled;已派单:assigned;已接单:have_order;已完成:finished |
|||
*/ |
|||
private String status; |
|||
private String statusName; |
|||
|
|||
/** |
|||
* 完成结果:已解决 resolved,未解决 unresolved |
|||
|
|||
*/ |
|||
private String finishResult; |
|||
|
|||
/** |
|||
* 取消时间 |
|||
*/ |
|||
private Date cancelTime; |
|||
|
|||
/** |
|||
* 1:已评价;0:未评价;评价后ic_user_satisfaction表有记录 |
|||
*/ |
|||
private Boolean evaluateFlag; |
|||
/** |
|||
* 得分可为半星 |
|||
*/ |
|||
private BigDecimal score; |
|||
|
|||
/** 服务情况********************************************************************/ |
|||
/** 服务情况********************************************************************/ |
|||
/** 服务情况********************************************************************/ |
|||
private String serviceId; |
|||
/** |
|||
* 志愿者的姓名 |
|||
* 社会组织名 |
|||
* 社区自组织的名字 |
|||
* 区域党建单位名称 |
|||
*/ |
|||
private String serviceName; |
|||
/** |
|||
* 尹作梅(志愿者) |
|||
* XXX(社会组织) |
|||
* XXX(社区自组织) |
|||
* XXX(区域化党建单位) |
|||
*/ |
|||
private String serviceShowName; |
|||
/** |
|||
* 服务方类型:志愿者:volunteer;社会组织:social_org;社区自组织:community_org;区域党建单位:party_unit; |
|||
*/ |
|||
private String serviceType; |
|||
|
|||
/** |
|||
* 志愿者:居民端爱心互助的志愿者userId; |
|||
*/ |
|||
private String serverId; |
|||
|
|||
/** |
|||
* 实际服务开始时间 |
|||
*/ |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") |
|||
private Date serviceStartTime; |
|||
|
|||
/** |
|||
* 实际服务结束时间 |
|||
*/ |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") |
|||
private Date serviceEndTime; |
|||
|
|||
/** |
|||
* 完成情况 |
|||
*/ |
|||
private String finishDesc; |
|||
} |
@ -0,0 +1,53 @@ |
|||
package com.epmet.constant; |
|||
|
|||
public interface UserDemandConstant { |
|||
|
|||
|
|||
/** |
|||
* 小程序用户自己上报:mini_resi;居民信息录入的居民:ic_resi_user |
|||
*/ |
|||
String MINI_RESI = "mini_resi"; |
|||
String IC_RESI_USER = "ic_resi_user"; |
|||
|
|||
/** |
|||
* 上报类型:社区帮办:community;楼长帮办:building_caption;党员帮办:party;自身上报:self_help |
|||
*/ |
|||
String COMMUNITY_REPORT="community"; |
|||
String BUILDING_CAPTION_REPORT="building_caption"; |
|||
String PARTY_REPORT="party"; |
|||
String SELF_HELP_REPORT="self_help"; |
|||
/** |
|||
* 待处理:pending;已取消canceled;已派单:assigned;已接单:have_order;已完成:finished |
|||
*/ |
|||
String PENDING = "pending"; |
|||
String CANCELED = "canceled"; |
|||
String ASSIGNED = "assigned"; |
|||
String HAVE_ORDER = "have_order"; |
|||
String FINISHED = "finished"; |
|||
|
|||
|
|||
|
|||
/** |
|||
* 当前操作用户属于哪个端?工作端:staff;居民端:resi |
|||
*/ |
|||
String STAFF="staff"; |
|||
String RESI="resi"; |
|||
|
|||
|
|||
/** |
|||
* 创建需求:create;撤销需求:cancel;指派:assign;接单:take_order;完成:finish;; |
|||
* 更新需求:update |
|||
*/ |
|||
String CREATE="create"; |
|||
String UPDATE="update"; |
|||
String CANCEL="cancel"; |
|||
String ASSIGN="assign"; |
|||
String TAKE_ORDER="take_order"; |
|||
String FINISH="finish"; |
|||
|
|||
// 服务方类型:志愿者:volunteer;社会组织:social_org;社区自组织:community_org;区域党建单位:party_unit;
|
|||
String VOLUNTEER="volunteer"; |
|||
String SOCIAL_ORG="social_org"; |
|||
String COMMUNITY_ORG="community_org"; |
|||
String PARTY_UNIT="party_unit"; |
|||
} |
@ -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.controller; |
|||
|
|||
import com.epmet.commons.tools.annotation.LoginUser; |
|||
import com.epmet.commons.tools.page.PageData; |
|||
import com.epmet.commons.tools.security.dto.TokenDto; |
|||
import com.epmet.commons.tools.utils.ExcelUtils; |
|||
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.dto.IcPartyUnitDTO; |
|||
import com.epmet.dto.form.PartyUnitFormDTO; |
|||
import com.epmet.dto.form.demand.ServiceQueryFormDTO; |
|||
import com.epmet.dto.result.demand.OptionDTO; |
|||
import com.epmet.excel.IcPartyUnitExcel; |
|||
import com.epmet.service.IcPartyUnitService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import javax.servlet.http.HttpServletResponse; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
|
|||
/** |
|||
* 联建单位 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-11-19 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("icpartyunit") |
|||
public class IcPartyUnitController { |
|||
|
|||
@Autowired |
|||
private IcPartyUnitService icPartyUnitService; |
|||
|
|||
@PostMapping("list") |
|||
public Result<PageData<IcPartyUnitDTO>> search(@RequestBody PartyUnitFormDTO formDTO){ |
|||
PageData<IcPartyUnitDTO> page = icPartyUnitService.search(formDTO); |
|||
return new Result<PageData<IcPartyUnitDTO>>().ok(page); |
|||
} |
|||
|
|||
@PostMapping("detail") |
|||
public Result<IcPartyUnitDTO> get(@RequestBody IcPartyUnitDTO formDTO){ |
|||
AssertUtils.isBlank(formDTO.getId(), "id"); |
|||
IcPartyUnitDTO data = icPartyUnitService.get(formDTO.getId()); |
|||
return new Result<IcPartyUnitDTO>().ok(data); |
|||
} |
|||
|
|||
@PostMapping("save") |
|||
public Result save(@RequestBody IcPartyUnitDTO dto){ |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |
|||
icPartyUnitService.save(dto); |
|||
return new Result(); |
|||
} |
|||
|
|||
@PostMapping("delete") |
|||
public Result delete(@RequestBody IcPartyUnitDTO dto){ |
|||
//效验数据
|
|||
AssertUtils.isBlank(dto.getId(), "id"); |
|||
icPartyUnitService.delete(dto.getId()); |
|||
return new Result(); |
|||
} |
|||
|
|||
@GetMapping("export") |
|||
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception { |
|||
List<IcPartyUnitDTO> list = icPartyUnitService.list(params); |
|||
ExcelUtils.exportExcelToTarget(response, null, list, IcPartyUnitExcel.class); |
|||
} |
|||
|
|||
/** |
|||
* 需求指派,选择区域化党建单位,调用此接口 |
|||
* 返回需求所属组织线上的数据 |
|||
* |
|||
* @param tokenDto |
|||
* @param formDTO |
|||
* @return |
|||
*/ |
|||
@PostMapping("servicelist") |
|||
public Result<List<OptionDTO>> queryServiceList(@LoginUser TokenDto tokenDto, @RequestBody ServiceQueryFormDTO formDTO){ |
|||
formDTO.setCustomerId(tokenDto.getCustomerId()); |
|||
formDTO.setStaffId(tokenDto.getUserId()); |
|||
ValidatorUtils.validateEntity(formDTO,ServiceQueryFormDTO.AddUserInternalGroup.class); |
|||
return new Result<List<OptionDTO>>().ok(icPartyUnitService.queryServiceList(formDTO)); |
|||
} |
|||
|
|||
@PostMapping("option") |
|||
public Result<List<OptionDTO>> option(@RequestBody IcPartyUnitDTO dto){ |
|||
AssertUtils.isBlank(dto.getAgencyId(), "agencyId"); |
|||
return new Result<List<OptionDTO>>().ok(icPartyUnitService.option(dto)); |
|||
} |
|||
} |
@ -0,0 +1,183 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.controller; |
|||
|
|||
import com.epmet.commons.tools.annotation.LoginUser; |
|||
import com.epmet.commons.tools.page.PageData; |
|||
import com.epmet.commons.tools.security.dto.TokenDto; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.commons.tools.validator.ValidatorUtils; |
|||
import com.epmet.constant.UserDemandConstant; |
|||
import com.epmet.dto.form.demand.*; |
|||
import com.epmet.dto.result.demand.DemandRecResultDTO; |
|||
import com.epmet.dto.result.demand.OptionDTO; |
|||
import com.epmet.service.*; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import java.util.List; |
|||
|
|||
|
|||
/** |
|||
* 居民需求记录表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-11-19 |
|||
*/ |
|||
@Slf4j |
|||
@RestController |
|||
@RequestMapping("userdemand") |
|||
public class IcUserDemandRecController { |
|||
|
|||
@Autowired |
|||
private IcUserDemandRecService icUserDemandRecService; |
|||
@Autowired |
|||
private VolunteerInfoService volunteerInfoService; |
|||
@Autowired |
|||
private IcSocietyOrgService societyOrgService; |
|||
@Autowired |
|||
private IcCommunitySelfOrganizationService icCommunitySelfOrganizationService; |
|||
@Autowired |
|||
private IcPartyUnitService icPartyUnitService; |
|||
|
|||
|
|||
/** |
|||
* 根据服务方类型查询 下拉框 |
|||
* 服务方类型:志愿者:volunteer;社会组织:social_org;社区自组织:community_org;区域党建单位:party_unit; |
|||
* |
|||
* @param tokenDto |
|||
* @param formDTO |
|||
* @return |
|||
*/ |
|||
@PostMapping("servicelist") |
|||
public Result<List<OptionDTO>> queryServiceList(@LoginUser TokenDto tokenDto, @RequestBody ServiceQueryFormDTO formDTO) { |
|||
formDTO.setCustomerId(tokenDto.getCustomerId()); |
|||
formDTO.setStaffId(tokenDto.getUserId()); |
|||
ValidatorUtils.validateEntity(formDTO, ServiceQueryFormDTO.AddUserInternalGroup.class); |
|||
if (UserDemandConstant.VOLUNTEER.equals(formDTO.getServiceType())) { |
|||
return new Result<List<OptionDTO>>().ok(volunteerInfoService.queryListVolunteer(tokenDto.getCustomerId(), formDTO.getServiceName())); |
|||
} else if (UserDemandConstant.SOCIAL_ORG.equals(formDTO.getServiceType())) { |
|||
ValidatorUtils.validateEntity(formDTO, ServiceQueryFormDTO.AddUserInternalGroup.class, ServiceQueryFormDTO.SocietyOrgInternalGroup.class); |
|||
return new Result<List<OptionDTO>>().ok(societyOrgService.queryServiceList(formDTO)); |
|||
} else if (UserDemandConstant.COMMUNITY_ORG.equals(formDTO.getServiceType())) { |
|||
return new Result<List<OptionDTO>>().ok(icCommunitySelfOrganizationService.queryServiceList(formDTO)); |
|||
} else if (UserDemandConstant.PARTY_UNIT.equals(formDTO.getServiceType())) { |
|||
return new Result<List<OptionDTO>>().ok(icPartyUnitService.queryServiceList(formDTO)); |
|||
} |
|||
return new Result<>(); |
|||
} |
|||
|
|||
/** |
|||
* 新增需求 |
|||
* |
|||
* @param tokenDto |
|||
* @param fromDTO |
|||
* @return |
|||
*/ |
|||
@PostMapping("add") |
|||
public Result<DemandRecId> add(@LoginUser TokenDto tokenDto, @RequestBody DemandAddFromDTO fromDTO){ |
|||
fromDTO.setCustomerId(tokenDto.getCustomerId()); |
|||
fromDTO.setCurrentUserId(tokenDto.getUserId()); |
|||
ValidatorUtils.validateEntity(fromDTO,DemandAddFromDTO.AddUserShowGroup.class); |
|||
return new Result<DemandRecId>().ok(icUserDemandRecService.add(fromDTO)); |
|||
} |
|||
|
|||
/** |
|||
* 更新需求 |
|||
* 只有待处理的才可以编辑 |
|||
* |
|||
* @param tokenDto |
|||
* @param fromDTO |
|||
* @return |
|||
*/ |
|||
@PostMapping("update") |
|||
public Result<DemandRecId> update(@LoginUser TokenDto tokenDto, @RequestBody DemandAddFromDTO fromDTO){ |
|||
fromDTO.setCustomerId(tokenDto.getCustomerId()); |
|||
fromDTO.setCurrentUserId(tokenDto.getUserId()); |
|||
ValidatorUtils.validateEntity(fromDTO,DemandAddFromDTO.UpdateInternalGroup.class,DemandAddFromDTO.AddUserShowGroup.class); |
|||
return new Result<DemandRecId>().ok(icUserDemandRecService.update(fromDTO)); |
|||
} |
|||
|
|||
/** |
|||
* 列表查询 分页 |
|||
* @param tokenDto |
|||
* @param formDTO |
|||
* @return |
|||
*/ |
|||
@PostMapping("pagelist") |
|||
public Result<PageData<DemandRecResultDTO>> pageList(@LoginUser TokenDto tokenDto, @RequestBody UserDemandPageFormDTO formDTO){ |
|||
formDTO.setCustomerId(tokenDto.getCustomerId()); |
|||
formDTO.setCurrentStaffId(tokenDto.getUserId()); |
|||
return new Result<PageData<DemandRecResultDTO>>().ok(icUserDemandRecService.pageList(formDTO)); |
|||
} |
|||
|
|||
|
|||
/** |
|||
* 取消,未完成之前都可以取消 |
|||
* |
|||
* @param tokenDto |
|||
* @param formDTO |
|||
* @return |
|||
*/ |
|||
@PostMapping("cancel") |
|||
public Result cancel(@LoginUser TokenDto tokenDto,@RequestBody StaffCancelFormDTO formDTO){ |
|||
formDTO.setCustomerId(tokenDto.getCustomerId()); |
|||
formDTO.setUserId(tokenDto.getUserId()); |
|||
ValidatorUtils.validateEntity(formDTO,StaffCancelFormDTO.AddUserInternalGroup.class); |
|||
icUserDemandRecService.cancel(formDTO); |
|||
return new Result(); |
|||
} |
|||
|
|||
|
|||
/** |
|||
* 指派 |
|||
* 待处理:pending;已取消canceled;已派单:assigned;已接单:have_order;已完成:finished |
|||
* 待处理+已派单才可以指派 |
|||
* |
|||
* @param tokenDto |
|||
* @param formDTO |
|||
* @return |
|||
*/ |
|||
@PostMapping("assign") |
|||
public Result assign(@LoginUser TokenDto tokenDto,@RequestBody AssignFormDTO formDTO){ |
|||
formDTO.setCustomerId(tokenDto.getCustomerId()); |
|||
formDTO.setUserId(tokenDto.getUserId()); |
|||
ValidatorUtils.validateEntity(formDTO,AssignFormDTO.AddUserShowGroup.class,AssignFormDTO.AddUserInternalGroup.class); |
|||
icUserDemandRecService.assign(formDTO); |
|||
return new Result(); |
|||
} |
|||
|
|||
/** |
|||
* 完成并评价 |
|||
* @param tokenDto |
|||
* @param formDTO |
|||
* @return |
|||
*/ |
|||
@PostMapping("finish") |
|||
public Result finish(@LoginUser TokenDto tokenDto,@RequestBody FinishStaffFromDTO formDTO){ |
|||
formDTO.setCustomerId(tokenDto.getCustomerId()); |
|||
formDTO.setUserId(tokenDto.getUserId()); |
|||
ValidatorUtils.validateEntity(formDTO,FinishStaffFromDTO.AddUserShowGroup.class,FinishStaffFromDTO.AddUserInternalGroup.class); |
|||
icUserDemandRecService.finish(formDTO); |
|||
return new Result(); |
|||
} |
|||
} |
@ -0,0 +1,46 @@ |
|||
/** |
|||
* 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.result.demand.OptionDTO; |
|||
import com.epmet.entity.IcPartyUnitEntity; |
|||
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-11-19 |
|||
*/ |
|||
@Mapper |
|||
public interface IcPartyUnitDao extends BaseDao<IcPartyUnitEntity> { |
|||
|
|||
/** |
|||
* 需求指派,选择区域化党建单位,调用此接口 |
|||
* @param agencyIds |
|||
* @param unitName |
|||
* @return |
|||
*/ |
|||
List<OptionDTO> selectListByAgencyId(@Param("agencyIds") List<String> agencyIds, |
|||
@Param("unitName") String unitName, |
|||
@Param("customerId")String customerId); |
|||
} |
@ -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.dao; |
|||
|
|||
import com.epmet.commons.mybatis.dao.BaseDao; |
|||
import com.epmet.dto.form.GetListSocietyOrgFormDTO; |
|||
import com.epmet.dto.result.GetListSocietyOrgResultDTO; |
|||
import com.epmet.dto.result.SocietyOrgListResultDTO; |
|||
import com.epmet.dto.result.demand.OptionDTO; |
|||
import com.epmet.entity.IcSocietyOrgEntity; |
|||
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-11-18 |
|||
*/ |
|||
@Mapper |
|||
public interface IcSocietyOrgDao extends BaseDao<IcSocietyOrgEntity> { |
|||
|
|||
/** |
|||
* @Author sun |
|||
* @Description 社会组织列表查询 |
|||
**/ |
|||
List<SocietyOrgListResultDTO> getList(GetListSocietyOrgFormDTO formDTO); |
|||
|
|||
/** |
|||
* 需求指派,选择社会组织,调用此接口 |
|||
* |
|||
* @param agencyIds |
|||
* @return |
|||
*/ |
|||
List<OptionDTO> selectListByAgencyId(@Param("agencyIds")List<String> agencyIds, |
|||
@Param("societyName")String societyName, |
|||
@Param("customerId")String customerId, |
|||
@Param("queryPurpose")String queryPurpose); |
|||
} |
@ -0,0 +1,39 @@ |
|||
/** |
|||
* 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.demand.UserDemandPageFormDTO; |
|||
import com.epmet.dto.result.demand.DemandRecResultDTO; |
|||
import com.epmet.entity.IcUserDemandRecEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 居民需求记录表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-11-19 |
|||
*/ |
|||
@Mapper |
|||
public interface IcUserDemandRecDao extends BaseDao<IcUserDemandRecEntity> { |
|||
|
|||
|
|||
List<DemandRecResultDTO> pageSelect(UserDemandPageFormDTO formDTO); |
|||
} |
@ -0,0 +1,34 @@ |
|||
/** |
|||
* 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.IcUserDemandServiceEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
/** |
|||
* 居民需求服务记录表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-11-19 |
|||
*/ |
|||
@Mapper |
|||
public interface IcUserDemandServiceDao extends BaseDao<IcUserDemandServiceEntity> { |
|||
|
|||
IcUserDemandServiceEntity selectByRecId(String demandRecId); |
|||
} |
@ -0,0 +1,111 @@ |
|||
/** |
|||
* 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-11-19 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("ic_party_activity") |
|||
public class IcPartyActivityEntity extends BaseEpmetEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 组织ID |
|||
*/ |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 组织的所有上级 |
|||
*/ |
|||
private String pids; |
|||
|
|||
/** |
|||
* 单位ID |
|||
*/ |
|||
private String unitId; |
|||
|
|||
/** |
|||
* 服务事项 |
|||
*/ |
|||
private String serviceMatter; |
|||
|
|||
/** |
|||
* 活动标题 |
|||
*/ |
|||
private String title; |
|||
|
|||
/** |
|||
* 活动目标 |
|||
*/ |
|||
private String target; |
|||
|
|||
/** |
|||
* 活动内容 |
|||
*/ |
|||
private String content; |
|||
|
|||
/** |
|||
* 服务人数 |
|||
*/ |
|||
private Integer peopleCount; |
|||
|
|||
/** |
|||
* 活动时间 |
|||
*/ |
|||
private Date activityTime; |
|||
|
|||
/** |
|||
* 活动地址 |
|||
*/ |
|||
private String address; |
|||
|
|||
/** |
|||
* 活动地址经度 |
|||
*/ |
|||
private String longitude; |
|||
|
|||
/** |
|||
* 活动地址纬度 |
|||
*/ |
|||
private String latitude; |
|||
|
|||
/** |
|||
* 活动结果 |
|||
*/ |
|||
private String result; |
|||
|
|||
} |
@ -0,0 +1,111 @@ |
|||
/** |
|||
* 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-11-19 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("ic_party_unit") |
|||
public class IcPartyUnitEntity extends BaseEpmetEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 组织ID |
|||
*/ |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* |
|||
*/ |
|||
private String pids; |
|||
|
|||
/** |
|||
* 单位名称 |
|||
*/ |
|||
private String unitName; |
|||
|
|||
/** |
|||
* 分类 楼宇党建 两新组织 区域单位党建 机关直属部门 其他 |
|||
*/ |
|||
private String type; |
|||
|
|||
/** |
|||
* 服务事项 多选逗号隔开 |
|||
*/ |
|||
private String serviceMatter; |
|||
|
|||
/** |
|||
* 联系人 |
|||
*/ |
|||
private String contact; |
|||
|
|||
/** |
|||
* 联系电话 |
|||
*/ |
|||
private String contactMobile; |
|||
|
|||
/** |
|||
* 在职党员数 |
|||
*/ |
|||
private Integer memberCount; |
|||
|
|||
/** |
|||
* 地址 |
|||
*/ |
|||
private String address; |
|||
|
|||
/** |
|||
* 中心位置经度 |
|||
*/ |
|||
private String longitude; |
|||
|
|||
/** |
|||
* 中心位置纬度 |
|||
*/ |
|||
private String latitude; |
|||
|
|||
/** |
|||
* 群众满意度 |
|||
*/ |
|||
private String satisfaction; |
|||
|
|||
/** |
|||
* 备注 |
|||
*/ |
|||
private String remark; |
|||
|
|||
} |
@ -0,0 +1,71 @@ |
|||
/** |
|||
* 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-11-19 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("ic_user_demand_operate_log") |
|||
public class IcUserDemandOperateLogEntity extends BaseEpmetEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 需求id |
|||
*/ |
|||
private String demandRecId; |
|||
|
|||
/** |
|||
* 当前操作用户属于哪个端?工作端:staff;居民端:resi |
|||
*/ |
|||
private String userType; |
|||
|
|||
/** |
|||
* 当前操作用户id |
|||
*/ |
|||
private String userId; |
|||
|
|||
/** |
|||
* 创建需求:create;撤销需求:cancel;指派:assign;接单:take_order;完成:finish; |
|||
*/ |
|||
private String actionCode; |
|||
|
|||
/** |
|||
* 操作时间 |
|||
*/ |
|||
private Date operateTime; |
|||
|
|||
} |
@ -0,0 +1,146 @@ |
|||
/** |
|||
* 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-11-19 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("ic_user_demand_rec") |
|||
public class IcUserDemandRecEntity extends BaseEpmetEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 网格id |
|||
*/ |
|||
private String gridId; |
|||
|
|||
/** |
|||
* 组织id |
|||
*/ |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 网格的所有上级id |
|||
*/ |
|||
private String gridPids; |
|||
|
|||
/** |
|||
* 二级需求分类编码 |
|||
*/ |
|||
private String categoryCode; |
|||
|
|||
/** |
|||
* 父级需求分类编码 |
|||
*/ |
|||
private String parentCode; |
|||
|
|||
/** |
|||
* 需求内容1000字 |
|||
*/ |
|||
private String content; |
|||
|
|||
/** |
|||
* 社区帮办:community;楼长帮办:building_caption;党员帮办:party;自身上报:self_help |
|||
*/ |
|||
private String reportType; |
|||
|
|||
/** |
|||
* 上报人姓名 |
|||
*/ |
|||
private String reportUserName; |
|||
|
|||
/** |
|||
* 上报人联系方式。自身上报时存储注册居民的手机号 |
|||
*/ |
|||
private String reportUserMobile; |
|||
|
|||
/** |
|||
* 自身上报时存储居民端用户id |
|||
*/ |
|||
private String reportUserId; |
|||
|
|||
/** |
|||
* 上报时间 |
|||
*/ |
|||
private Date reportTime; |
|||
|
|||
/** |
|||
* 希望服务时间 |
|||
*/ |
|||
private Date wantServiceTime; |
|||
|
|||
/** |
|||
* 小程序用户自己上报:mini_resi;居民信息录入的居民:ic_resi_user |
|||
*/ |
|||
private String demandUserType; |
|||
|
|||
/** |
|||
* 需求人:user.id或者ic_resi_user.id |
|||
*/ |
|||
private String demandUserId; |
|||
|
|||
/** |
|||
* 需求人姓名 |
|||
*/ |
|||
private String demandUserName; |
|||
|
|||
/** |
|||
* 需求人联系电话 |
|||
*/ |
|||
private String demandUserMobile; |
|||
|
|||
/** |
|||
* 待处理:pending;已取消canceled;已派单:assigned;已接单:have_order;已完成:finished |
|||
*/ |
|||
private String status; |
|||
|
|||
/** |
|||
* 完成结果:已解决 resolved,未解决 unresolved |
|||
|
|||
*/ |
|||
private String finishResult; |
|||
|
|||
/** |
|||
* 取消时间 |
|||
*/ |
|||
private Date cancelTime; |
|||
|
|||
/** |
|||
* 1:已评价;0:未评价;评价后ic_user_satisfaction表有记录 |
|||
*/ |
|||
private Boolean evaluateFlag; |
|||
|
|||
} |
@ -0,0 +1,72 @@ |
|||
/** |
|||
* 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.math.BigDecimal; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 居民需求评价记录表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-11-19 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("ic_user_demand_satisfaction") |
|||
public class IcUserDemandSatisfactionEntity extends BaseEpmetEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 需求id |
|||
*/ |
|||
private String demandRecId; |
|||
|
|||
/** |
|||
* 当前操作用户属于哪个端?工作端:staff;居民端:resi |
|||
*/ |
|||
private String userType; |
|||
|
|||
/** |
|||
* 当前评价用户id,可以是小程序里用户id,也可以是工作端帮忙录入需求的人 |
|||
*/ |
|||
private String userId; |
|||
|
|||
/** |
|||
* 评价时间 |
|||
*/ |
|||
private Date evaluateTime; |
|||
|
|||
/** |
|||
* 得分可为半星 |
|||
*/ |
|||
private BigDecimal score; |
|||
|
|||
} |
@ -0,0 +1,76 @@ |
|||
/** |
|||
* 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-11-19 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("ic_user_demand_service") |
|||
public class IcUserDemandServiceEntity extends BaseEpmetEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 需求id |
|||
*/ |
|||
private String demandRecId; |
|||
|
|||
/** |
|||
* 服务方类型:志愿者:volunteer;社会组织:social_org;社区自组织:community_org;区域党建单位:party_unit; |
|||
*/ |
|||
private String serviceType; |
|||
|
|||
/** |
|||
* 志愿者:居民端爱心互助的志愿者userId; |
|||
*/ |
|||
private String serverId; |
|||
|
|||
/** |
|||
* 实际服务开始时间 |
|||
*/ |
|||
private Date serviceStartTime; |
|||
|
|||
/** |
|||
* 实际服务结束时间 |
|||
*/ |
|||
private Date serviceEndTime; |
|||
|
|||
/** |
|||
* 完成情况 |
|||
*/ |
|||
private String finishDesc; |
|||
|
|||
} |
@ -0,0 +1,98 @@ |
|||
/** |
|||
* 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.excel; |
|||
|
|||
import cn.afterturn.easypoi.excel.annotation.Excel; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 联建活动 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-11-19 |
|||
*/ |
|||
@Data |
|||
public class IcPartyActivityExcel { |
|||
|
|||
@Excel(name = "主键") |
|||
private String id; |
|||
|
|||
@Excel(name = "客户id") |
|||
private String customerId; |
|||
|
|||
@Excel(name = "组织ID") |
|||
private String agencyId; |
|||
|
|||
@Excel(name = "组织的所有上级") |
|||
private String pids; |
|||
|
|||
@Excel(name = "单位ID") |
|||
private String unitId; |
|||
|
|||
@Excel(name = "服务事项") |
|||
private String serviceMatter; |
|||
|
|||
@Excel(name = "活动标题") |
|||
private String title; |
|||
|
|||
@Excel(name = "活动目标") |
|||
private String target; |
|||
|
|||
@Excel(name = "活动内容") |
|||
private String content; |
|||
|
|||
@Excel(name = "服务人数") |
|||
private Integer peopleCount; |
|||
|
|||
@Excel(name = "活动时间") |
|||
private Date activityTime; |
|||
|
|||
@Excel(name = "活动地址") |
|||
private String address; |
|||
|
|||
@Excel(name = "活动地址经度") |
|||
private String longitude; |
|||
|
|||
@Excel(name = "活动地址纬度") |
|||
private String latitude; |
|||
|
|||
@Excel(name = "活动结果") |
|||
private String result; |
|||
|
|||
@Excel(name = "删除标识 0未删除、1已删除") |
|||
private String delFlag; |
|||
|
|||
@Excel(name = "乐观锁") |
|||
private Integer revision; |
|||
|
|||
@Excel(name = "创建人") |
|||
private String createdBy; |
|||
|
|||
@Excel(name = "创建时间") |
|||
private Date createdTime; |
|||
|
|||
@Excel(name = "更新人") |
|||
private String updatedBy; |
|||
|
|||
@Excel(name = "更新时间") |
|||
private Date updatedTime; |
|||
|
|||
|
|||
} |
@ -0,0 +1,101 @@ |
|||
/** |
|||
* 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.excel; |
|||
|
|||
import cn.afterturn.easypoi.excel.annotation.Excel; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 联建单位 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-11-19 |
|||
*/ |
|||
@Data |
|||
public class IcPartyUnitExcel { |
|||
|
|||
@Excel(name = "主键") |
|||
private String id; |
|||
|
|||
@Excel(name = "客户id") |
|||
private String customerId; |
|||
|
|||
@Excel(name = "组织ID") |
|||
private String agencyId; |
|||
|
|||
@Excel(name = "网格ID") |
|||
private String gridId; |
|||
|
|||
@Excel(name = "") |
|||
private String pids; |
|||
|
|||
@Excel(name = "单位名称") |
|||
private String unitName; |
|||
|
|||
@Excel(name = "分类 楼宇党建 两新组织 区域单位党建 机关直属部门 其他") |
|||
private String type; |
|||
|
|||
@Excel(name = "服务事项 多选逗号隔开") |
|||
private String serviceMatter; |
|||
|
|||
@Excel(name = "联系人") |
|||
private String contact; |
|||
|
|||
@Excel(name = "联系电话") |
|||
private String contactMobile; |
|||
|
|||
@Excel(name = "在职党员数") |
|||
private Integer memberCount; |
|||
|
|||
@Excel(name = "地址") |
|||
private String address; |
|||
|
|||
@Excel(name = "中心位置经度") |
|||
private String longitude; |
|||
|
|||
@Excel(name = "中心位置纬度") |
|||
private String latitude; |
|||
|
|||
@Excel(name = "群众满意度") |
|||
private String satisfaction; |
|||
|
|||
@Excel(name = "备注") |
|||
private String remark; |
|||
|
|||
@Excel(name = "删除标识 0未删除、1已删除") |
|||
private String delFlag; |
|||
|
|||
@Excel(name = "乐观锁") |
|||
private Integer revision; |
|||
|
|||
@Excel(name = "创建人") |
|||
private String createdBy; |
|||
|
|||
@Excel(name = "创建时间") |
|||
private Date createdTime; |
|||
|
|||
@Excel(name = "更新人") |
|||
private String updatedBy; |
|||
|
|||
@Excel(name = "更新时间") |
|||
private Date updatedTime; |
|||
|
|||
|
|||
} |
@ -0,0 +1,47 @@ |
|||
/** |
|||
* 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.redis; |
|||
|
|||
import com.epmet.commons.tools.redis.RedisUtils; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* 联建活动 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-11-19 |
|||
*/ |
|||
@Component |
|||
public class IcPartyActivityRedis { |
|||
@Autowired |
|||
private RedisUtils redisUtils; |
|||
|
|||
public void delete(Object[] ids) { |
|||
|
|||
} |
|||
|
|||
public void set(){ |
|||
|
|||
} |
|||
|
|||
public String get(String id){ |
|||
return null; |
|||
} |
|||
|
|||
} |
@ -0,0 +1,47 @@ |
|||
/** |
|||
* 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.redis; |
|||
|
|||
import com.epmet.commons.tools.redis.RedisUtils; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* 联建单位 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-11-19 |
|||
*/ |
|||
@Component |
|||
public class IcPartyUnitRedis { |
|||
@Autowired |
|||
private RedisUtils redisUtils; |
|||
|
|||
public void delete(Object[] ids) { |
|||
|
|||
} |
|||
|
|||
public void set(){ |
|||
|
|||
} |
|||
|
|||
public String get(String id){ |
|||
return null; |
|||
} |
|||
|
|||
} |
@ -0,0 +1,130 @@ |
|||
/** |
|||
* 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.IcUserDemandRecDTO; |
|||
import com.epmet.dto.form.demand.*; |
|||
import com.epmet.dto.result.demand.DemandRecResultDTO; |
|||
import com.epmet.entity.IcUserDemandRecEntity; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 居民需求记录表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-11-19 |
|||
*/ |
|||
public interface IcUserDemandRecService extends BaseService<IcUserDemandRecEntity> { |
|||
|
|||
/** |
|||
* 默认分页 |
|||
* |
|||
* @param params |
|||
* @return PageData<IcUserDemandRecDTO> |
|||
* @author generator |
|||
* @date 2021-11-19 |
|||
*/ |
|||
PageData<IcUserDemandRecDTO> page(Map<String, Object> params); |
|||
|
|||
/** |
|||
* 默认查询 |
|||
* |
|||
* @param params |
|||
* @return java.util.List<IcUserDemandRecDTO> |
|||
* @author generator |
|||
* @date 2021-11-19 |
|||
*/ |
|||
List<IcUserDemandRecDTO> list(Map<String, Object> params); |
|||
|
|||
/** |
|||
* 单条查询 |
|||
* |
|||
* @param id |
|||
* @return IcUserDemandRecDTO |
|||
* @author generator |
|||
* @date 2021-11-19 |
|||
*/ |
|||
IcUserDemandRecDTO get(String id); |
|||
|
|||
/** |
|||
* 默认保存 |
|||
* |
|||
* @param dto |
|||
* @return void |
|||
* @author generator |
|||
* @date 2021-11-19 |
|||
*/ |
|||
void save(IcUserDemandRecDTO dto); |
|||
|
|||
/** |
|||
* 更新需求 |
|||
* |
|||
* @param dto |
|||
* @return void |
|||
* @author generator |
|||
* @date 2021-11-19 |
|||
*/ |
|||
DemandRecId update(DemandAddFromDTO dto); |
|||
|
|||
/** |
|||
* 批量删除 |
|||
* |
|||
* @param ids |
|||
* @return void |
|||
* @author generator |
|||
* @date 2021-11-19 |
|||
*/ |
|||
void delete(String[] ids); |
|||
|
|||
/** |
|||
* 新增需求 |
|||
* |
|||
* @param fromDTO |
|||
* @return |
|||
*/ |
|||
DemandRecId add(DemandAddFromDTO fromDTO); |
|||
|
|||
PageData<DemandRecResultDTO> pageList(UserDemandPageFormDTO formDTO); |
|||
|
|||
/** |
|||
* 未完成之前都可以取消 |
|||
* |
|||
* @param formDTO |
|||
*/ |
|||
void cancel(StaffCancelFormDTO formDTO); |
|||
|
|||
/** |
|||
* 指派 |
|||
* 待处理:pending;已取消canceled;已派单:assigned;已接单:have_order;已完成:finished |
|||
* 待处理+已派单才可以指派 |
|||
* |
|||
* @param formDTO |
|||
* @return |
|||
*/ |
|||
void assign(AssignFormDTO formDTO); |
|||
|
|||
/** |
|||
* 完成并评价 |
|||
* @param formDTO |
|||
*/ |
|||
void finish(FinishStaffFromDTO formDTO); |
|||
} |
@ -0,0 +1,127 @@ |
|||
/** |
|||
* 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.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.redis.common.CustomerOrgRedis; |
|||
import com.epmet.commons.tools.redis.common.bean.AgencyInfoCache; |
|||
import com.epmet.commons.tools.utils.ConvertUtils; |
|||
import com.epmet.dao.IcPartyActivityDao; |
|||
import com.epmet.dto.IcPartyActivityDTO; |
|||
import com.epmet.dto.IcPartyUnitDTO; |
|||
import com.epmet.dto.form.PartyActivityFormDTO; |
|||
import com.epmet.dto.result.demand.OptionDTO; |
|||
import com.epmet.entity.IcPartyActivityEntity; |
|||
import com.epmet.service.IcPartyActivityService; |
|||
import com.epmet.service.IcPartyUnitService; |
|||
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.List; |
|||
import java.util.Map; |
|||
import java.util.stream.Collectors; |
|||
|
|||
/** |
|||
* 联建活动 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-11-19 |
|||
*/ |
|||
@Service |
|||
public class IcPartyActivityServiceImpl extends BaseServiceImpl<IcPartyActivityDao, IcPartyActivityEntity> implements IcPartyActivityService { |
|||
|
|||
@Resource |
|||
private IcPartyUnitService icPartyUnitService; |
|||
|
|||
@Override |
|||
public PageData<IcPartyActivityDTO> search(PartyActivityFormDTO formDTO) { |
|||
PageHelper.startPage(formDTO.getPageNo(), formDTO.getPageSize()); |
|||
LambdaQueryWrapper<IcPartyActivityEntity> wrapper = new LambdaQueryWrapper<>(); |
|||
wrapper.eq(IcPartyActivityEntity::getAgencyId, formDTO.getAgencyId()); |
|||
wrapper.eq(StringUtils.isNotBlank(formDTO.getUnitId()), IcPartyActivityEntity::getUnitId, formDTO.getUnitId()); |
|||
wrapper.eq(StringUtils.isNotBlank(formDTO.getServiceMatter()), IcPartyActivityEntity::getServiceMatter, formDTO.getServiceMatter()); |
|||
wrapper.like(StringUtils.isNotBlank(formDTO.getTitle()), IcPartyActivityEntity::getTitle, formDTO.getTitle()); |
|||
wrapper.between(IcPartyActivityEntity::getActivityTime, formDTO.getStartTime(), formDTO.getEndTime()); |
|||
wrapper.orderByDesc(IcPartyActivityEntity::getUpdatedTime); |
|||
List<IcPartyActivityEntity> list = baseDao.selectList(wrapper); |
|||
List<IcPartyActivityDTO> dtoList = ConvertUtils.sourceToTarget(list, IcPartyActivityDTO.class); |
|||
|
|||
IcPartyUnitDTO unitDTO = new IcPartyUnitDTO(); |
|||
unitDTO.setAgencyId(formDTO.getAgencyId()); |
|||
if (CollectionUtils.isNotEmpty(dtoList)) { |
|||
Map<String, String> option = icPartyUnitService.option(unitDTO).stream().collect(Collectors.toMap(OptionDTO::getValue, OptionDTO::getLabel)); |
|||
dtoList.forEach(dto -> { |
|||
dto.setUnitName(option.get(dto.getUnitId())); |
|||
}); |
|||
} |
|||
PageInfo<IcPartyActivityDTO> pageInfo = new PageInfo<>(dtoList); |
|||
return new PageData<>(dtoList, pageInfo.getTotal()); |
|||
} |
|||
|
|||
@Override |
|||
public List<IcPartyActivityDTO> list(Map<String, Object> params) { |
|||
List<IcPartyActivityEntity> entityList = baseDao.selectList(getWrapper(params)); |
|||
|
|||
return ConvertUtils.sourceToTarget(entityList, IcPartyActivityDTO.class); |
|||
} |
|||
|
|||
private QueryWrapper<IcPartyActivityEntity> getWrapper(Map<String, Object> params){ |
|||
String id = (String)params.get(FieldConstant.ID_HUMP); |
|||
|
|||
QueryWrapper<IcPartyActivityEntity> wrapper = new QueryWrapper<>(); |
|||
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
|||
|
|||
return wrapper; |
|||
} |
|||
|
|||
@Override |
|||
public IcPartyActivityDTO get(String id) { |
|||
IcPartyActivityEntity entity = baseDao.selectById(id); |
|||
return ConvertUtils.sourceToTarget(entity, IcPartyActivityDTO.class); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void save(IcPartyActivityDTO dto) { |
|||
IcPartyActivityEntity entity = ConvertUtils.sourceToTarget(dto, IcPartyActivityEntity.class); |
|||
AgencyInfoCache agency = CustomerOrgRedis.getAgencyInfo(entity.getAgencyId()); |
|||
entity.setPids(agency.getPids()); |
|||
if(StringUtils.isBlank(entity.getId())) { |
|||
insert(entity); |
|||
} else { |
|||
updateById(entity); |
|||
} |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void delete(String id) { |
|||
// 逻辑删除(@TableLogic 注解)
|
|||
baseDao.deleteById(id); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,189 @@ |
|||
/** |
|||
* 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.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|||
import com.epmet.commons.tools.constant.FieldConstant; |
|||
import com.epmet.commons.tools.constant.StrConstant; |
|||
import com.epmet.commons.tools.enums.DictTypeEnum; |
|||
import com.epmet.commons.tools.page.PageData; |
|||
import com.epmet.commons.tools.redis.common.CustomerOrgRedis; |
|||
import com.epmet.commons.tools.redis.common.bean.AgencyInfoCache; |
|||
import com.epmet.commons.tools.utils.ConvertUtils; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.dao.IcPartyUnitDao; |
|||
import com.epmet.dto.IcPartyUnitDTO; |
|||
import com.epmet.dto.IcUserDemandRecDTO; |
|||
import com.epmet.dto.form.PartyUnitFormDTO; |
|||
import com.epmet.dto.form.demand.ServiceQueryFormDTO; |
|||
import com.epmet.dto.result.demand.OptionDTO; |
|||
import com.epmet.entity.IcPartyUnitEntity; |
|||
import com.epmet.feign.EpmetAdminOpenFeignClient; |
|||
import com.epmet.service.IcPartyUnitService; |
|||
import com.epmet.service.IcUserDemandRecService; |
|||
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.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
import org.springframework.transaction.annotation.Transactional; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.util.*; |
|||
import java.util.stream.Collectors; |
|||
|
|||
/** |
|||
* 联建单位 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-11-19 |
|||
*/ |
|||
@Service |
|||
public class IcPartyUnitServiceImpl extends BaseServiceImpl<IcPartyUnitDao, IcPartyUnitEntity> implements IcPartyUnitService { |
|||
|
|||
@Resource |
|||
private EpmetAdminOpenFeignClient epmetAdminOpenFeignClient; |
|||
@Autowired |
|||
private IcUserDemandRecService icUserDemandRecService; |
|||
|
|||
|
|||
@Override |
|||
public PageData<IcPartyUnitDTO> search(PartyUnitFormDTO formDTO) { |
|||
PageHelper.startPage(formDTO.getPageNo(), formDTO.getPageSize()); |
|||
LambdaQueryWrapper<IcPartyUnitEntity> wrapper = new LambdaQueryWrapper<>(); |
|||
wrapper.eq(IcPartyUnitEntity::getAgencyId, formDTO.getAgencyId()); |
|||
wrapper.like(StringUtils.isNotBlank(formDTO.getUnitName()), IcPartyUnitEntity::getUnitName, formDTO.getUnitName()); |
|||
wrapper.eq(StringUtils.isNotBlank(formDTO.getServiceMatter()), IcPartyUnitEntity::getServiceMatter, formDTO.getServiceMatter()); |
|||
wrapper.eq(StringUtils.isNotBlank(formDTO.getType()), IcPartyUnitEntity::getType, formDTO.getType()); |
|||
wrapper.like(StringUtils.isNotBlank(formDTO.getContact()), IcPartyUnitEntity::getContact, formDTO.getContact()); |
|||
wrapper.like(StringUtils.isNotBlank(formDTO.getContactMobile()), IcPartyUnitEntity::getContactMobile, formDTO.getContactMobile()); |
|||
wrapper.orderByDesc(IcPartyUnitEntity::getUpdatedTime); |
|||
List<IcPartyUnitEntity> list = baseDao.selectList(wrapper); |
|||
List<IcPartyUnitDTO> dtoList = ConvertUtils.sourceToTarget(list, IcPartyUnitDTO.class); |
|||
Result<Map<String, String>> unitTypeMap = epmetAdminOpenFeignClient.dictMap(DictTypeEnum.PARTY_UNIT_TYPE.getCode()); |
|||
dtoList.forEach(item -> { |
|||
item.setType(unitTypeMap.getData().get(item.getType())); |
|||
//TODO 服务事项
|
|||
if (StringUtils.isNotBlank(item.getServiceMatter())) { |
|||
List<String> matters = Arrays.asList(item.getServiceMatter().split(StrConstant.COMMA)); |
|||
} |
|||
}); |
|||
PageInfo<IcPartyUnitDTO> pageInfo = new PageInfo<>(dtoList); |
|||
return new PageData<>(dtoList, pageInfo.getTotal()); |
|||
} |
|||
|
|||
@Override |
|||
public List<IcPartyUnitDTO> list(Map<String, Object> params) { |
|||
List<IcPartyUnitEntity> entityList = baseDao.selectList(getWrapper(params)); |
|||
|
|||
return ConvertUtils.sourceToTarget(entityList, IcPartyUnitDTO.class); |
|||
} |
|||
|
|||
private QueryWrapper<IcPartyUnitEntity> getWrapper(Map<String, Object> params){ |
|||
String id = (String)params.get(FieldConstant.ID_HUMP); |
|||
|
|||
QueryWrapper<IcPartyUnitEntity> wrapper = new QueryWrapper<>(); |
|||
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
|||
|
|||
return wrapper; |
|||
} |
|||
|
|||
@Override |
|||
public IcPartyUnitDTO get(String id) { |
|||
IcPartyUnitEntity entity = baseDao.selectById(id); |
|||
IcPartyUnitDTO dto = ConvertUtils.sourceToTarget(entity, IcPartyUnitDTO.class); |
|||
if (StringUtils.isNotBlank(dto.getServiceMatter())) { |
|||
dto.setServiceMatterList(Arrays.asList(dto.getServiceMatter().split(StrConstant.COMMA))); |
|||
} |
|||
return ConvertUtils.sourceToTarget(entity, IcPartyUnitDTO.class); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void save(IcPartyUnitDTO dto) { |
|||
IcPartyUnitEntity entity = ConvertUtils.sourceToTarget(dto, IcPartyUnitEntity.class); |
|||
AgencyInfoCache agency = CustomerOrgRedis.getAgencyInfo(entity.getAgencyId()); |
|||
entity.setPids(agency.getPids()); |
|||
if(StringUtils.isBlank(entity.getId())) { |
|||
insert(entity); |
|||
} else { |
|||
updateById(entity); |
|||
} |
|||
} |
|||
|
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void delete(String id) { |
|||
// 逻辑删除(@TableLogic 注解)
|
|||
baseDao.deleteById(id); |
|||
} |
|||
|
|||
/** |
|||
* 需求指派,选择区域化党建单位,调用此接口 |
|||
* 返回需求所属组织线上的数据 |
|||
* |
|||
* @param formDTO |
|||
* @return |
|||
*/ |
|||
@Override |
|||
public List<OptionDTO> queryServiceList(ServiceQueryFormDTO formDTO) { |
|||
List<OptionDTO> resultList=new ArrayList<>(); |
|||
IcUserDemandRecDTO icUserDemandRecDTO=icUserDemandRecService.get(formDTO.getDemandRecId()); |
|||
if(null==icUserDemandRecDTO|| org.springframework.util.StringUtils.isEmpty(icUserDemandRecDTO.getGridPids())){ |
|||
return resultList; |
|||
} |
|||
List<String> agencyIds=new ArrayList<>(); |
|||
if(icUserDemandRecDTO.getGridPids().contains(StrConstant.COLON)){ |
|||
agencyIds.addAll(Arrays.asList(icUserDemandRecDTO.getGridPids().split(StrConstant.COLON))); |
|||
}else{ |
|||
agencyIds.add(icUserDemandRecDTO.getGridPids()); |
|||
} |
|||
resultList=baseDao.selectListByAgencyId(agencyIds,formDTO.getServiceName(),formDTO.getCustomerId()); |
|||
return resultList; |
|||
} |
|||
|
|||
/** |
|||
* @Description 获取组织下单位列表 |
|||
* @param dto |
|||
* @Return {@link List< OptionDTO>} |
|||
* @Author zhaoqifeng |
|||
* @Date 2021/11/22 14:35 |
|||
*/ |
|||
@Override |
|||
public List<OptionDTO> option(IcPartyUnitDTO dto) { |
|||
LambdaQueryWrapper<IcPartyUnitEntity> wrapper = new LambdaQueryWrapper<>(); |
|||
wrapper.eq(IcPartyUnitEntity::getAgencyId, dto.getAgencyId()); |
|||
wrapper.orderByDesc(IcPartyUnitEntity::getUpdatedTime); |
|||
wrapper.eq(StringUtils.isNotBlank(dto.getServiceMatter()), IcPartyUnitEntity::getServiceMatter, dto.getServiceMatter()); |
|||
List<IcPartyUnitEntity> list = baseDao.selectList(wrapper); |
|||
if (CollectionUtils.isEmpty(list)) { |
|||
return Collections.emptyList(); |
|||
} |
|||
return list.stream().map(item -> { |
|||
OptionDTO option = new OptionDTO(); |
|||
option.setValue(item.getId()); |
|||
option.setLabel(item.getUnitName()); |
|||
return option; |
|||
}).collect(Collectors.toList()); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,440 @@ |
|||
/** |
|||
* 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.constant.StrConstant; |
|||
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.utils.ConvertUtils; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.constant.UserDemandConstant; |
|||
import com.epmet.dao.IcUserDemandOperateLogDao; |
|||
import com.epmet.dao.IcUserDemandRecDao; |
|||
import com.epmet.dao.IcUserDemandSatisfactionDao; |
|||
import com.epmet.dao.IcUserDemandServiceDao; |
|||
import com.epmet.dto.CustomerGridDTO; |
|||
import com.epmet.dto.IcUserDemandRecDTO; |
|||
import com.epmet.dto.form.CustomerGridFormDTO; |
|||
import com.epmet.dto.form.demand.*; |
|||
import com.epmet.dto.result.AllGridsByUserIdResultDTO; |
|||
import com.epmet.dto.result.UserBaseInfoResultDTO; |
|||
import com.epmet.dto.result.demand.DemandRecResultDTO; |
|||
import com.epmet.entity.*; |
|||
import com.epmet.feign.EpmetUserOpenFeignClient; |
|||
import com.epmet.feign.GovOrgOpenFeignClient; |
|||
import com.epmet.service.IcResiDemandDictService; |
|||
import com.epmet.service.IcUserDemandRecService; |
|||
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.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
import org.springframework.transaction.annotation.Transactional; |
|||
|
|||
import java.util.*; |
|||
import java.util.function.Function; |
|||
import java.util.stream.Collectors; |
|||
|
|||
/** |
|||
* 居民需求记录表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-11-19 |
|||
*/ |
|||
@Service |
|||
public class IcUserDemandRecServiceImpl extends BaseServiceImpl<IcUserDemandRecDao, IcUserDemandRecEntity> implements IcUserDemandRecService { |
|||
@Autowired |
|||
private IcUserDemandOperateLogDao operateLogDao; |
|||
@Autowired |
|||
private IcUserDemandServiceDao demandServiceDao; |
|||
@Autowired |
|||
private IcUserDemandSatisfactionDao demandSatisfactionDao; |
|||
@Autowired |
|||
private GovOrgOpenFeignClient govOrgOpenFeignClient; |
|||
@Autowired |
|||
private IcResiDemandDictService demandDictService; |
|||
@Autowired |
|||
private EpmetUserOpenFeignClient epmetUserOpenFeignClient; |
|||
|
|||
|
|||
@Override |
|||
public PageData<IcUserDemandRecDTO> page(Map<String, Object> params) { |
|||
IPage<IcUserDemandRecEntity> page = baseDao.selectPage( |
|||
getPage(params, FieldConstant.CREATED_TIME, false), |
|||
getWrapper(params) |
|||
); |
|||
return getPageData(page, IcUserDemandRecDTO.class); |
|||
} |
|||
|
|||
@Override |
|||
public List<IcUserDemandRecDTO> list(Map<String, Object> params) { |
|||
List<IcUserDemandRecEntity> entityList = baseDao.selectList(getWrapper(params)); |
|||
|
|||
return ConvertUtils.sourceToTarget(entityList, IcUserDemandRecDTO.class); |
|||
} |
|||
|
|||
private QueryWrapper<IcUserDemandRecEntity> getWrapper(Map<String, Object> params){ |
|||
String id = (String)params.get(FieldConstant.ID_HUMP); |
|||
|
|||
QueryWrapper<IcUserDemandRecEntity> wrapper = new QueryWrapper<>(); |
|||
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
|||
|
|||
return wrapper; |
|||
} |
|||
|
|||
@Override |
|||
public IcUserDemandRecDTO get(String id) { |
|||
IcUserDemandRecEntity entity = baseDao.selectById(id); |
|||
return ConvertUtils.sourceToTarget(entity, IcUserDemandRecDTO.class); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void save(IcUserDemandRecDTO dto) { |
|||
IcUserDemandRecEntity entity = ConvertUtils.sourceToTarget(dto, IcUserDemandRecEntity.class); |
|||
insert(entity); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public DemandRecId update(DemandAddFromDTO dto) { |
|||
IcUserDemandRecEntity origin = baseDao.selectById(dto.getDemandRecId()); |
|||
if (null == origin) { |
|||
throw new RenException(EpmetErrorCode.DEMAND_NOT_EXITS.getCode(), EpmetErrorCode.DEMAND_NOT_EXITS.getMsg()); |
|||
} |
|||
if(!UserDemandConstant.PENDING.equals(origin.getStatus())){ |
|||
//待处理的才可以修改需求
|
|||
throw new RenException(EpmetErrorCode.DEMAND_CAN_NOT_UPDATE.getCode(),EpmetErrorCode.DEMAND_CAN_NOT_UPDATE.getMsg()); |
|||
} |
|||
CustomerGridFormDTO customerGridFormDTO=new CustomerGridFormDTO(); |
|||
customerGridFormDTO.setGridId(dto.getGridId()); |
|||
Result<CustomerGridDTO> gridInfoRes=govOrgOpenFeignClient.getGridBaseInfoByGridId(customerGridFormDTO); |
|||
if(!gridInfoRes.success()||null==gridInfoRes.getData()){ |
|||
throw new RenException("查询网格信息失败"); |
|||
} |
|||
IcUserDemandRecEntity updateEntity=ConvertUtils.sourceToTarget(dto,IcUserDemandRecEntity.class); |
|||
updateEntity.setAgencyId(gridInfoRes.getData().getPid()); |
|||
updateEntity.setGridPids(gridInfoRes.getData().getPids()); |
|||
updateEntity.setDemandUserType(UserDemandConstant.IC_RESI_USER); |
|||
updateEntity.setStatus(UserDemandConstant.PENDING); |
|||
updateEntity.setEvaluateFlag(false); |
|||
updateEntity.setId(dto.getDemandRecId()); |
|||
baseDao.updateById(updateEntity); |
|||
|
|||
IcUserDemandOperateLogEntity logEntity=new IcUserDemandOperateLogEntity(); |
|||
logEntity.setCustomerId(dto.getCustomerId()); |
|||
logEntity.setDemandRecId(dto.getDemandRecId()); |
|||
logEntity.setUserType(UserDemandConstant.STAFF); |
|||
logEntity.setUserId(dto.getCurrentUserId()); |
|||
logEntity.setActionCode(UserDemandConstant.UPDATE); |
|||
logEntity.setOperateTime(new Date()); |
|||
operateLogDao.insert(logEntity); |
|||
DemandRecId resultDto=new DemandRecId(); |
|||
resultDto.setDemandRecId(updateEntity.getId()); |
|||
return resultDto; |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void delete(String[] ids) { |
|||
// 逻辑删除(@TableLogic 注解)
|
|||
baseDao.deleteBatchIds(Arrays.asList(ids)); |
|||
} |
|||
|
|||
/** |
|||
* 新增需求 |
|||
* |
|||
* @param fromDTO |
|||
* @return |
|||
*/ |
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public DemandRecId add(DemandAddFromDTO fromDTO) { |
|||
CustomerGridFormDTO customerGridFormDTO=new CustomerGridFormDTO(); |
|||
customerGridFormDTO.setGridId(fromDTO.getGridId()); |
|||
Result<CustomerGridDTO> gridInfoRes=govOrgOpenFeignClient.getGridBaseInfoByGridId(customerGridFormDTO); |
|||
if(!gridInfoRes.success()||null==gridInfoRes.getData()){ |
|||
throw new RenException("查询网格信息失败"); |
|||
} |
|||
IcUserDemandRecEntity insertEntity=ConvertUtils.sourceToTarget(fromDTO,IcUserDemandRecEntity.class); |
|||
insertEntity.setAgencyId(gridInfoRes.getData().getPid()); |
|||
insertEntity.setGridPids(gridInfoRes.getData().getPids()); |
|||
insertEntity.setDemandUserType(UserDemandConstant.IC_RESI_USER); |
|||
insertEntity.setStatus(UserDemandConstant.PENDING); |
|||
insertEntity.setEvaluateFlag(false); |
|||
baseDao.insert(insertEntity); |
|||
IcUserDemandOperateLogEntity logEntity=new IcUserDemandOperateLogEntity(); |
|||
logEntity.setCustomerId(fromDTO.getCustomerId()); |
|||
logEntity.setDemandRecId(insertEntity.getId()); |
|||
logEntity.setUserType(UserDemandConstant.STAFF); |
|||
logEntity.setUserId(fromDTO.getCurrentUserId()); |
|||
logEntity.setActionCode(UserDemandConstant.CREATE); |
|||
logEntity.setOperateTime(new Date()); |
|||
operateLogDao.insert(logEntity); |
|||
DemandRecId resultDto=new DemandRecId(); |
|||
resultDto.setDemandRecId(insertEntity.getId()); |
|||
return resultDto; |
|||
} |
|||
|
|||
@Override |
|||
public PageData<DemandRecResultDTO> pageList(UserDemandPageFormDTO formDTO) { |
|||
CustomerStaffInfoCacheResult staffInfo = CustomerStaffRedis.getStaffInfo(formDTO.getCustomerId(), formDTO.getCurrentStaffId()); |
|||
if (null == staffInfo) { |
|||
throw new RenException("工作人员所属组织信息查询异常"); |
|||
} |
|||
if (StringUtils.isBlank(staffInfo.getAgencyPIds())) { |
|||
formDTO.setGridPids(staffInfo.getAgencyId()); |
|||
} else { |
|||
if (staffInfo.getAgencyPIds().contains(StrConstant.COLON)) { |
|||
formDTO.setGridPids(staffInfo.getAgencyPIds().concat(StrConstant.COLON).concat(staffInfo.getAgencyId())); |
|||
} |
|||
} |
|||
PageInfo<DemandRecResultDTO> pageInfo= PageHelper.startPage(formDTO.getPageNo(), |
|||
formDTO.getPageSize()).doSelectPageInfo(() -> baseDao.pageSelect(formDTO)); |
|||
List<DemandRecResultDTO> list=pageInfo.getList(); |
|||
if(CollectionUtils.isNotEmpty(list)){ |
|||
//1、查询网格信息
|
|||
List<String> gridIds=list.stream().map(DemandRecResultDTO::getGridId).collect(Collectors.toList()); |
|||
Result<List<AllGridsByUserIdResultDTO>> gridInfoRes=govOrgOpenFeignClient.getGridListByGridIds(gridIds); |
|||
List<AllGridsByUserIdResultDTO> gridInfoList = gridInfoRes.success() && !CollectionUtils.isEmpty(gridInfoRes.getData()) ? gridInfoRes.getData() : new ArrayList<>(); |
|||
Map<String, AllGridsByUserIdResultDTO> gridInfoMap = gridInfoList.stream().collect(Collectors.toMap(AllGridsByUserIdResultDTO::getGridId, Function.identity())); |
|||
|
|||
//2、查询分类名称
|
|||
List<String> categoryCodes=list.stream().map(DemandRecResultDTO::getCategoryCode).collect(Collectors.toList()); |
|||
List<IcResiDemandDictEntity> dictList=demandDictService.listByCodes(formDTO.getCustomerId(),categoryCodes); |
|||
Map<String, String> dictMap = dictList.stream().collect(Collectors.toMap(IcResiDemandDictEntity::getCategoryCode, IcResiDemandDictEntity::getCategoryName)); |
|||
|
|||
//3、查询志愿者
|
|||
// 服务方类型:志愿者:volunteer;社会组织:social_org;社区自组织:community_org;区域党建单位:party_unit;
|
|||
Map<String,String> userInfoMap=new HashMap<>(); |
|||
List<String> userIdList=list.stream().filter(item->item.getServiceType().equals(UserDemandConstant.VOLUNTEER)).map(DemandRecResultDTO::getServerId).collect(Collectors.toList()); |
|||
if(CollectionUtils.isNotEmpty(userIdList)){ |
|||
Result<List<UserBaseInfoResultDTO>> userInfoRes = epmetUserOpenFeignClient.queryUserBaseInfo(userIdList); |
|||
if(!userInfoRes.success()||CollectionUtils.isEmpty(userInfoRes.getData())){ |
|||
throw new RenException("查询志愿者信息异常"); |
|||
} |
|||
userInfoMap=userInfoRes.getData().stream().collect(Collectors.toMap(UserBaseInfoResultDTO::getUserId, UserBaseInfoResultDTO::getRealName)); |
|||
} |
|||
for(DemandRecResultDTO res:list){ |
|||
if (null != gridInfoMap && gridInfoMap.containsKey(res.getGridId())) { |
|||
res.setGridName(gridInfoMap.get(res.getGridId()).getGridName()); |
|||
} |
|||
|
|||
if (null != dictMap && dictMap.containsKey(res.getCategoryCode())) { |
|||
res.setCategoryName(dictMap.get(res.getCategoryCode())); |
|||
} |
|||
|
|||
if (null != userInfoMap && userInfoMap.containsKey(res.getServerId())) { |
|||
res.setServiceName(userInfoMap.get(res.getServerId())); |
|||
} |
|||
//社区帮办:community;楼长帮办:building_caption;党员帮办:party;自身上报:self_help
|
|||
switch(res.getReportType()){ |
|||
case UserDemandConstant.COMMUNITY_REPORT : |
|||
res.setReportTypeName("社区帮办"); |
|||
break; |
|||
case UserDemandConstant.BUILDING_CAPTION_REPORT : |
|||
res.setReportTypeName("楼长帮办"); |
|||
break; |
|||
case UserDemandConstant.PARTY_REPORT : |
|||
res.setReportTypeName("党员帮办"); |
|||
break; |
|||
case UserDemandConstant.SELF_HELP_REPORT : |
|||
res.setReportTypeName("自身上报"); |
|||
break; |
|||
} |
|||
//待处理:pending;已取消canceled;已派单:assigned;已接单:have_order;已完成:finished
|
|||
switch(res.getStatus()){ |
|||
case UserDemandConstant.PENDING : |
|||
res.setStatusName("待处理"); |
|||
break; |
|||
case UserDemandConstant.CANCELED : |
|||
res.setStatusName("已取消"); |
|||
break; |
|||
case UserDemandConstant.ASSIGNED : |
|||
res.setStatusName("已指派"); |
|||
break; |
|||
case UserDemandConstant.HAVE_ORDER : |
|||
res.setStatusName("已接单"); |
|||
break; |
|||
case UserDemandConstant.FINISHED : |
|||
res.setStatusName("已完成"); |
|||
break; |
|||
} |
|||
//服务方类型:志愿者:volunteer;社会组织:social_org;社区自组织:community_org;区域党建单位:party_unit;
|
|||
switch(res.getServiceType()){ |
|||
case UserDemandConstant.VOLUNTEER : |
|||
res.setServiceShowName(res.getServiceName().concat("(志愿者)")); |
|||
break; |
|||
case UserDemandConstant.SOCIAL_ORG : |
|||
res.setServiceShowName(res.getServiceName().concat("(社会组织)")); |
|||
break; |
|||
case UserDemandConstant.COMMUNITY_ORG : |
|||
res.setServiceShowName(res.getServiceName().concat("(社区自组织")); |
|||
break; |
|||
case UserDemandConstant.PARTY_UNIT : |
|||
res.setServiceShowName(res.getServiceName().concat("(区域化党建单位)")); |
|||
break; |
|||
} |
|||
} |
|||
} |
|||
return new PageData<>(list, pageInfo.getTotal()); |
|||
} |
|||
|
|||
/** |
|||
* 未完成之前都可以取消 |
|||
* |
|||
* @param formDTO |
|||
*/ |
|||
@Transactional(rollbackFor = Exception.class) |
|||
@Override |
|||
public void cancel(StaffCancelFormDTO formDTO) { |
|||
IcUserDemandRecEntity entity = baseDao.selectById(formDTO.getDemandRecId()); |
|||
if (null == entity) { |
|||
throw new RenException(EpmetErrorCode.DEMAND_NOT_EXITS.getCode(), EpmetErrorCode.DEMAND_NOT_EXITS.getMsg()); |
|||
} |
|||
if (UserDemandConstant.FINISH.equals(entity.getStatus())) { |
|||
//需求已完成,不可取消
|
|||
throw new RenException(EpmetErrorCode.DEMAND_CAN_NOT_CANCEL.getCode(),EpmetErrorCode.DEMAND_CAN_NOT_CANCEL.getMsg()); |
|||
} |
|||
//1、修改主表
|
|||
//置为取消状态、设置取消时间
|
|||
entity.setStatus(UserDemandConstant.CANCELED); |
|||
entity.setCancelTime(new Date()); |
|||
baseDao.updateById(entity); |
|||
//2、插入操作日志
|
|||
IcUserDemandOperateLogEntity logEntity = new IcUserDemandOperateLogEntity(); |
|||
logEntity.setCustomerId(formDTO.getCustomerId()); |
|||
logEntity.setDemandRecId(formDTO.getDemandRecId()); |
|||
logEntity.setUserType(UserDemandConstant.STAFF); |
|||
logEntity.setUserId(formDTO.getUserId()); |
|||
logEntity.setActionCode(UserDemandConstant.CANCEL); |
|||
logEntity.setOperateTime(entity.getCancelTime()); |
|||
operateLogDao.insert(logEntity); |
|||
} |
|||
|
|||
/** |
|||
* 指派 |
|||
* 待处理:pending;已取消canceled;已派单:assigned;已接单:have_order;已完成:finished |
|||
* 待处理+已派单才可以指派 |
|||
* |
|||
* @param formDTO |
|||
* @return |
|||
*/ |
|||
@Transactional(rollbackFor = Exception.class) |
|||
@Override |
|||
public void assign(AssignFormDTO formDTO) { |
|||
IcUserDemandRecEntity entity = baseDao.selectById(formDTO.getDemandRecId()); |
|||
if (null == entity) { |
|||
throw new RenException(EpmetErrorCode.DEMAND_NOT_EXITS.getCode(), EpmetErrorCode.DEMAND_NOT_EXITS.getMsg()); |
|||
} |
|||
if (!UserDemandConstant.PENDING.equals(entity.getStatus()) && !UserDemandConstant.ASSIGNED.equals(entity.getStatus())) { |
|||
//待处理+已派单才可以指派
|
|||
throw new RenException(EpmetErrorCode.DEMAND_CAN_NOT_ASSIGN.getCode(), EpmetErrorCode.DEMAND_CAN_NOT_ASSIGN.getMsg()); |
|||
} |
|||
//1、修改主表
|
|||
//置为已派单
|
|||
entity.setStatus(UserDemandConstant.ASSIGNED); |
|||
baseDao.updateById(entity); |
|||
//2、插入操作日志
|
|||
IcUserDemandOperateLogEntity logEntity = new IcUserDemandOperateLogEntity(); |
|||
logEntity.setCustomerId(formDTO.getCustomerId()); |
|||
logEntity.setDemandRecId(formDTO.getDemandRecId()); |
|||
logEntity.setUserType(UserDemandConstant.STAFF); |
|||
logEntity.setUserId(formDTO.getUserId()); |
|||
logEntity.setActionCode(UserDemandConstant.ASSIGN); |
|||
logEntity.setOperateTime(new Date()); |
|||
operateLogDao.insert(logEntity); |
|||
//3、插入或更新服务记录
|
|||
IcUserDemandServiceEntity serviceEntity=ConvertUtils.sourceToTarget(formDTO,IcUserDemandServiceEntity.class); |
|||
IcUserDemandServiceEntity origin=demandServiceDao.selectByRecId(formDTO.getDemandRecId()); |
|||
if (null == origin) { |
|||
demandServiceDao.insert(serviceEntity); |
|||
}else{ |
|||
serviceEntity.setId(origin.getId()); |
|||
serviceEntity.setUpdatedBy(formDTO.getUserId()); |
|||
demandServiceDao.updateById(serviceEntity); |
|||
} |
|||
|
|||
} |
|||
|
|||
/** |
|||
* 完成并评价 |
|||
* |
|||
* @param formDTO |
|||
*/ |
|||
@Transactional(rollbackFor = Exception.class) |
|||
@Override |
|||
public void finish(FinishStaffFromDTO formDTO) { |
|||
IcUserDemandRecEntity entity = baseDao.selectById(formDTO.getDemandRecId()); |
|||
if (null == entity) { |
|||
throw new RenException(EpmetErrorCode.DEMAND_NOT_EXITS.getCode(), EpmetErrorCode.DEMAND_NOT_EXITS.getMsg()); |
|||
} |
|||
if (UserDemandConstant.PENDING.equals(entity.getStatus()) ||UserDemandConstant.CANCELED.equals(entity.getStatus())) { |
|||
//待处理或者已取消的不能评价
|
|||
throw new RenException(EpmetErrorCode.DEMAND_CAN_NOT_FINISH.getCode(), EpmetErrorCode.DEMAND_CAN_NOT_FINISH.getMsg()); |
|||
} |
|||
if(UserDemandConstant.FINISHED.equals(entity.getStatus()) ){ |
|||
//已经完成
|
|||
throw new RenException(EpmetErrorCode.DEMAND_FINISHED.getCode(), EpmetErrorCode.DEMAND_FINISHED.getMsg()); |
|||
} |
|||
//1、修改主表
|
|||
entity.setStatus(UserDemandConstant.FINISHED); |
|||
entity.setFinishResult(formDTO.getFinishResult()); |
|||
entity.setEvaluateFlag(true); |
|||
baseDao.updateById(entity); |
|||
|
|||
//2、插入操作日志
|
|||
IcUserDemandOperateLogEntity logEntity = new IcUserDemandOperateLogEntity(); |
|||
logEntity.setCustomerId(formDTO.getCustomerId()); |
|||
logEntity.setDemandRecId(formDTO.getDemandRecId()); |
|||
logEntity.setUserType(UserDemandConstant.STAFF); |
|||
logEntity.setUserId(formDTO.getUserId()); |
|||
logEntity.setActionCode(UserDemandConstant.FINISH); |
|||
logEntity.setOperateTime(new Date()); |
|||
operateLogDao.insert(logEntity); |
|||
|
|||
//3、更新服务记录
|
|||
IcUserDemandServiceEntity serviceEntity=demandServiceDao.selectById(formDTO.getServerId()); |
|||
if(null==serviceEntity){ |
|||
throw new RenException(EpmetErrorCode.DEMAND_SERVICE_NOT_EXITS.getCode(), EpmetErrorCode.DEMAND_SERVICE_NOT_EXITS.getMsg()); |
|||
} |
|||
serviceEntity.setServiceStartTime(formDTO.getServiceStartTime()); |
|||
serviceEntity.setServiceEndTime(formDTO.getServiceEndTime()); |
|||
serviceEntity.setFinishDesc(formDTO.getFinishDesc()); |
|||
demandServiceDao.updateById(serviceEntity); |
|||
|
|||
//4、插入评价
|
|||
IcUserDemandSatisfactionEntity satisfactionEntity=new IcUserDemandSatisfactionEntity(); |
|||
satisfactionEntity.setCustomerId(formDTO.getCustomerId()); |
|||
satisfactionEntity.setDemandRecId(formDTO.getDemandRecId()); |
|||
satisfactionEntity.setUserType(UserDemandConstant.STAFF); |
|||
satisfactionEntity.setUserId(formDTO.getUserId()); |
|||
satisfactionEntity.setEvaluateTime(logEntity.getOperateTime()); |
|||
satisfactionEntity.setScore(formDTO.getScore()); |
|||
demandSatisfactionDao.insert(satisfactionEntity); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,31 @@ |
|||
<?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.IcPartyActivityDao"> |
|||
|
|||
<resultMap type="com.epmet.entity.IcPartyActivityEntity" id="icPartyActivityMap"> |
|||
<result property="id" column="ID"/> |
|||
<result property="customerId" column="CUSTOMER_ID"/> |
|||
<result property="agencyId" column="AGENCY_ID"/> |
|||
<result property="pids" column="PIDS"/> |
|||
<result property="unitId" column="UNIT_ID"/> |
|||
<result property="serviceMatter" column="SERVICE_MATTER"/> |
|||
<result property="title" column="TITLE"/> |
|||
<result property="target" column="TARGET"/> |
|||
<result property="content" column="CONTENT"/> |
|||
<result property="peopleCount" column="PEOPLE_COUNT"/> |
|||
<result property="activityTime" column="ACTIVITY_TIME"/> |
|||
<result property="address" column="ADDRESS"/> |
|||
<result property="longitude" column="LONGITUDE"/> |
|||
<result property="latitude" column="LATITUDE"/> |
|||
<result property="result" column="RESULT"/> |
|||
<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,49 @@ |
|||
<?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.IcPartyUnitDao"> |
|||
|
|||
<resultMap type="com.epmet.entity.IcPartyUnitEntity" id="icPartyUnitMap"> |
|||
<result property="id" column="ID"/> |
|||
<result property="customerId" column="CUSTOMER_ID"/> |
|||
<result property="agencyId" column="AGENCY_ID"/> |
|||
<result property="gridId" column="GRID_ID"/> |
|||
<result property="pids" column="PIDS"/> |
|||
<result property="unitName" column="UNIT_NAME"/> |
|||
<result property="type" column="TYPE"/> |
|||
<result property="serviceMatter" column="SERVICE_MATTER"/> |
|||
<result property="contact" column="CONTACT"/> |
|||
<result property="contactMobile" column="CONTACT_MOBILE"/> |
|||
<result property="memberCount" column="MEMBER_COUNT"/> |
|||
<result property="address" column="ADDRESS"/> |
|||
<result property="longitude" column="LONGITUDE"/> |
|||
<result property="latitude" column="LATITUDE"/> |
|||
<result property="satisfaction" column="SATISFACTION"/> |
|||
<result property="remark" column="REMARK"/> |
|||
<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="selectListByAgencyId" parameterType="map" resultType="com.epmet.dto.result.demand.OptionDTO"> |
|||
<foreach collection="agencyIds" item="agencyId" separator=" UNION "> |
|||
SELECT |
|||
i.ID AS `value`, |
|||
i.UNIT_NAME AS label |
|||
FROM |
|||
ic_party_unit i |
|||
WHERE |
|||
i.DEL_FLAG = '0' |
|||
AND i.CUSTOMER_ID = #{customerId} |
|||
AND i.AGENCY_ID = #{agencyId} |
|||
<if test="null != unitName and unitName != '' "> |
|||
and i.UNIT_NAME concat('%',#{unitName},'%') |
|||
</if> |
|||
</foreach> |
|||
</select> |
|||
|
|||
</mapper> |
@ -0,0 +1,65 @@ |
|||
<?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.IcSocietyOrgDao"> |
|||
|
|||
<select id="getList" resultType="com.epmet.dto.result.SocietyOrgListResultDTO"> |
|||
SELECT |
|||
agency_id agencyId, |
|||
id societyId, |
|||
society_name societyName, |
|||
service_matters serviceMatters, |
|||
person_in_charge personInCharge, |
|||
mobile mobile, |
|||
service_start_time serviceStartTime, |
|||
service_end_time serviceEndTime, |
|||
admin_staff_id adminStaffId, |
|||
address address, |
|||
longitude longitude, |
|||
dimension dimension |
|||
FROM |
|||
ic_society_org |
|||
WHERE |
|||
del_flag = '0' |
|||
<if test="customerId != null and customerId.trim() != ''"> |
|||
AND customer_id = #{customerId} |
|||
</if> |
|||
<if test="societyName != null and societyName.trim() != ''"> |
|||
AND society_name LIKE CONCAT('%', #{societyName}, '%') |
|||
</if> |
|||
<if test="personInCharge != null and personInCharge.trim() != ''"> |
|||
AND person_in_charge LIKE CONCAT('%', #{personInCharge}, '%') |
|||
</if> |
|||
<if test="mobile != null and mobile.trim() != ''"> |
|||
AND mobile = #{mobile} |
|||
</if> |
|||
<if test="serviceStartTime != null and serviceStartTime != ''"> |
|||
AND service_start_time <![CDATA[>=]]> #{serviceStartTime} |
|||
</if> |
|||
<if test="serviceEndTime != null and serviceEndTime != ''"> |
|||
AND service_end_time <![CDATA[<=]]> #{serviceEndTime} |
|||
</if> |
|||
ORDER BY created_time DESC |
|||
</select> |
|||
|
|||
<select id="selectListByAgencyId" parameterType="map" resultType="com.epmet.dto.result.demand.OptionDTO"> |
|||
<foreach collection="agencyIds" item="agencyId" separator=" UNION "> |
|||
SELECT |
|||
id as label, |
|||
society_name as `value` |
|||
FROM |
|||
ic_society_org |
|||
WHERE |
|||
del_flag = '0' |
|||
and CUSTOMER_ID=#{customerId} |
|||
and AGENCY_ID=#{agencyId} |
|||
<if test="null != queryPurpose and 'add_demand'==queryPurpose "> |
|||
and SERVICE_START_TIME <= NOW() |
|||
and SERVICE_END_TIME >= NOW() |
|||
</if> |
|||
<if test="null != societyName and societyName != '' "> |
|||
and society_name like concat('%',#{societyName},'%') |
|||
</if> |
|||
</foreach> |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,24 @@ |
|||
<?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.IcUserDemandOperateLogDao"> |
|||
|
|||
<resultMap type="com.epmet.entity.IcUserDemandOperateLogEntity" id="icUserDemandOperateLogMap"> |
|||
<result property="id" column="ID"/> |
|||
<result property="customerId" column="CUSTOMER_ID"/> |
|||
<result property="demandRecId" column="DEMAND_REC_ID"/> |
|||
<result property="userType" column="USER_TYPE"/> |
|||
<result property="userId" column="USER_ID"/> |
|||
<result property="actionCode" column="ACTION_CODE"/> |
|||
<result property="operateTime" column="OPERATE_TIME"/> |
|||
<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"/> |
|||
<result property="userName" column="USER_NAME"/> |
|||
</resultMap> |
|||
|
|||
|
|||
</mapper> |
@ -0,0 +1,116 @@ |
|||
<?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.IcUserDemandRecDao"> |
|||
|
|||
<resultMap type="com.epmet.entity.IcUserDemandRecEntity" id="icUserDemandRecMap"> |
|||
<result property="id" column="ID"/> |
|||
<result property="customerId" column="CUSTOMER_ID"/> |
|||
<result property="gridId" column="GRID_ID"/> |
|||
<result property="agencyId" column="AGENCY_ID"/> |
|||
<result property="gridPids" column="GRID_PIDS"/> |
|||
<result property="categoryCode" column="CATEGORY_CODE"/> |
|||
<result property="parentCode" column="PARENT_CODE"/> |
|||
<result property="content" column="CONTENT"/> |
|||
<result property="reportType" column="REPORT_TYPE"/> |
|||
<result property="reportUserName" column="REPORT_USER_NAME"/> |
|||
<result property="reportUserMobile" column="REPORT_USER_MOBILE"/> |
|||
<result property="reportUserId" column="REPORT_USER_ID"/> |
|||
<result property="reportTime" column="REPORT_TIME"/> |
|||
<result property="wantServiceTime" column="WANT_SERVICE_TIME"/> |
|||
<result property="demandUserType" column="DEMAND_USER_TYPE"/> |
|||
<result property="demandUserId" column="DEMAND_USER_ID"/> |
|||
<result property="demandUserName" column="DEMAND_USER_NAME"/> |
|||
<result property="demandUserMobile" column="DEMAND_USER_MOBILE"/> |
|||
<result property="status" column="STATUS"/> |
|||
<result property="finishResult" column="FINISH_RESULT"/> |
|||
<result property="cancelTime" column="CANCEL_TIME"/> |
|||
<result property="evaluateFlag" column="EVALUATE_FLAG"/> |
|||
<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="pageSelect" parameterType="com.epmet.dto.form.demand.UserDemandPageFormDTO" resultType="com.epmet.dto.result.demand.DemandRecResultDTO"> |
|||
SELECT |
|||
r.ID as demandRecId, |
|||
r.GRID_ID as gridId, |
|||
r.CATEGORY_CODE as categoryCode, |
|||
r.CONTENT, |
|||
r.REPORT_TYPE as reportType, |
|||
r.REPORT_TIME as reportTime, |
|||
r.REPORT_USER_NAME as reportUserName, |
|||
r.`STATUS` as status, |
|||
r.DEMAND_USER_ID as demandUserId, |
|||
r.DEMAND_USER_NAME as demandUserName, |
|||
r.DEMAND_USER_MOBILE as demandUserMobile, |
|||
concat(r.DEMAND_USER_NAME,'(',r.DEMAND_USER_MOBILE,')') as demandUser, |
|||
r.WANT_SERVICE_TIME as wantServiceTime, |
|||
IFNULL(r.FINISH_RESULT,'') as finishResult, |
|||
r.CANCEL_TIME as cancelTime, |
|||
r.EVALUATE_FLAG as evaluateFlag, |
|||
IFNULL(sa.SCORE,0) as score, |
|||
IFNULL( s.SERVICE_TYPE, '' ) AS serviceType, |
|||
IFNULL( s.SERVER_ID, '' ) AS serverId, |
|||
( |
|||
CASE WHEN s.SERVICE_TYPE='social_org' then (select m1.SOCIETY_NAME as socialOrgName from ic_society_org m1 where m1.id=s.SERVER_ID) |
|||
WHEN s.SERVICE_TYPE='community_org' then (select m2.ORGANIZATION_NAME as communityName from ic_community_self_organization m2 where m2.id=s.SERVER_ID) |
|||
WHEN s.SERVICE_TYPE='party_unit' then (select m3.UNIT_NAME as partyUnitName from ic_party_unit m3 where m3.id=s.SERVER_ID) |
|||
else '' |
|||
end |
|||
) as serviceName, |
|||
s.SERVICE_START_TIME as serviceStartTime, |
|||
s.SERVICE_END_TIME as serviceEndTime, |
|||
IFNULL(s.FINISH_DESC,'') as finishDesc, |
|||
'' AS serviceShowName, |
|||
s.id as serviceId |
|||
FROM |
|||
ic_user_demand_rec r |
|||
left JOIN ic_user_demand_service s ON ( r.id = s.DEMAND_REC_ID AND s.DEL_FLAG = '0' ) |
|||
left join ic_user_demand_satisfaction sa on(r.id=sa.DEMAND_REC_ID AND sa.DEL_FLAG = '0') |
|||
WHERE |
|||
r.DEL_FLAG = '0' |
|||
AND r.CUSTOMER_ID = #{customerId} |
|||
<if test="null != gridId and gridId != '' "> |
|||
and r.GRID_ID=#{gridId} |
|||
</if> |
|||
<if test="null == gridId or gridId == '' "> |
|||
AND r.GRID_PIDS LIKE concat('%',#{gridPids},'%') |
|||
</if> |
|||
<if test="null != level and level ==1"> |
|||
and r.PARENT_CODE=#{categoryCode} |
|||
</if> |
|||
<if test="null != level and level ==2"> |
|||
and r.CATEGORY_CODE=#{categoryCode} |
|||
</if> |
|||
<if test="null != demandUserName and demandUserName !='' "> |
|||
and r.DEMAND_USER_NAME like concat('%',#{demandUserName},'%') |
|||
</if> |
|||
<if test=" null != reportStartDate and reportStartDate != '' "> |
|||
AND DATE_FORMAT(r.REPORT_TIME,'%Y-%m-%d') <![CDATA[ >= ]]> #{reportStartDate} |
|||
</if> |
|||
<if test="null != reportEndDate and reportEndDate != '' "> |
|||
AND DATE_FORMAT(r.REPORT_TIME,'%Y-%m-%d') <![CDATA[ <= ]]> #{reportEndDate} |
|||
</if> |
|||
<if test="null != status and status != '' "> |
|||
and r.STATUS=#{status} |
|||
</if> |
|||
<if test="null != serviceType and serviceType != '' "> |
|||
and s.SERVICE_TYPE=#{serviceType} |
|||
</if> |
|||
<if test="null != serverId and serverId != '' "> |
|||
and s.SERVER_ID=#{serverId} |
|||
</if> |
|||
<if test=" null != wantServiceStartDate and wantServiceStartDate != '' "> |
|||
AND DATE_FORMAT(r.WANT_SERVICE_TIME,'%Y-%m-%d') <![CDATA[ >= ]]> #{wantServiceStartDate} |
|||
</if> |
|||
<if test="null != wantServiceEndDate and wantServiceEndDate != '' "> |
|||
AND DATE_FORMAT(r.WANT_SERVICE_TIME,'%Y-%m-%d') <![CDATA[ <= ]]> #{wantServiceEndDate} |
|||
</if> |
|||
order by r.WANT_SERVICE_TIME desc,r.CREATED_TIME asc |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,23 @@ |
|||
<?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.IcUserDemandSatisfactionDao"> |
|||
|
|||
<resultMap type="com.epmet.entity.IcUserDemandSatisfactionEntity" id="icUserDemandSatisfactionMap"> |
|||
<result property="id" column="ID"/> |
|||
<result property="customerId" column="CUSTOMER_ID"/> |
|||
<result property="demandRecId" column="DEMAND_REC_ID"/> |
|||
<result property="userType" column="USER_TYPE"/> |
|||
<result property="userId" column="USER_ID"/> |
|||
<result property="evaluateTime" column="EVALUATE_TIME"/> |
|||
<result property="score" column="SCORE"/> |
|||
<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,29 @@ |
|||
<?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.IcUserDemandServiceDao"> |
|||
|
|||
<resultMap type="com.epmet.entity.IcUserDemandServiceEntity" id="icUserDemandServiceMap"> |
|||
<result property="id" column="ID"/> |
|||
<result property="customerId" column="CUSTOMER_ID"/> |
|||
<result property="demandRecId" column="DEMAND_REC_ID"/> |
|||
<result property="serviceType" column="SERVICE_TYPE"/> |
|||
<result property="serverId" column="SERVER_ID"/> |
|||
<result property="serviceStartTime" column="SERVICE_START_TIME"/> |
|||
<result property="serviceEndTime" column="SERVICE_END_TIME"/> |
|||
<result property="finishDesc" column="FINISH_DESC"/> |
|||
<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="selectByRecId" resultType="com.epmet.entity.IcUserDemandServiceEntity" parameterType="java.lang.String"> |
|||
select m.* |
|||
from ic_user_demand_service m |
|||
where m.DEL_FLAG='0' |
|||
and m.DEMAND_REC_ID=#{demandRecId} |
|||
</select> |
|||
</mapper> |
@ -1,41 +0,0 @@ |
|||
<?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.SocietyOrgDao"> |
|||
|
|||
<select id="getList" resultType="com.epmet.dto.result.GetListSocietyOrgResultDTO$SocietyOrgList"> |
|||
SELECT |
|||
agency_id agencyId, |
|||
id societyId, |
|||
society_name societyName, |
|||
service_matters serviceMatters, |
|||
person_in_charge personInCharge, |
|||
mobile mobile, |
|||
service_start_time serviceStartTime, |
|||
service_end_time serviceEndTime, |
|||
admin_staff_id adminStaffId, |
|||
address address, |
|||
longitude longitude, |
|||
dimension dimension |
|||
FROM |
|||
society_org |
|||
WHERE |
|||
del_flag = '0' |
|||
<if test="societyName != null and societyName.trim() != ''"> |
|||
AND society_name LIKE #{societyName} |
|||
</if> |
|||
<if test="personInCharge != null and personInCharge.trim() != ''"> |
|||
AND person_in_charge LIKE #{personInCharge} |
|||
</if> |
|||
<if test="mobile != null and mobile.trim() != ''"> |
|||
AND mobile = #{mobile} |
|||
</if> |
|||
<if test="serviceStartTime != null and serviceStartTime != ''"> |
|||
AND date_id <![CDATA[>=]]> #{serviceStartTime} |
|||
</if> |
|||
<if test="serviceEndTime != null and serviceEndTime != ''"> |
|||
AND date_id <![CDATA[<=]]> #{serviceEndTime} |
|||
</if> |
|||
</select> |
|||
|
|||
</mapper> |
@ -0,0 +1,41 @@ |
|||
package com.epmet.dto; |
|||
|
|||
import com.epmet.commons.tools.constant.NumConstant; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/11/22 2:41 下午 |
|||
* @DESC |
|||
*/ |
|||
@Data |
|||
public class MatterListDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 493404409015559029L; |
|||
|
|||
private Integer sort; |
|||
|
|||
/** |
|||
* 事项名 |
|||
*/ |
|||
private String matterName; |
|||
|
|||
/** |
|||
* 事项ID |
|||
*/ |
|||
private String matterId; |
|||
|
|||
/** |
|||
* 可预约时间 |
|||
*/ |
|||
private String allowTime; |
|||
|
|||
public MatterListDTO() { |
|||
this.sort = NumConstant.ZERO; |
|||
this.matterName = ""; |
|||
this.matterId = ""; |
|||
this.allowTime = ""; |
|||
} |
|||
} |
@ -0,0 +1,22 @@ |
|||
package com.epmet.dto; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/11/22 3:56 下午 |
|||
* @DESC |
|||
*/ |
|||
@Data |
|||
public class TimeDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -3290964095027429971L; |
|||
|
|||
private String timeId; |
|||
|
|||
private Boolean isAppointment = true; |
|||
|
|||
private String time; |
|||
} |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue