Browse Source
# Conflicts: # epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/IssueService.java # epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/impl/IssueServiceImpl.javamaster
114 changed files with 2667 additions and 121 deletions
@ -0,0 +1,32 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* 满意度评价列表——已关闭 |
|||
*/ |
|||
@Data |
|||
public class EvaluationListFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 议题Id |
|||
*/ |
|||
private String IssueId; |
|||
|
|||
/** |
|||
* 页码 |
|||
*/ |
|||
private Integer pageNo; |
|||
|
|||
/** |
|||
* 每页数量 |
|||
*/ |
|||
private Integer pageSize; |
|||
|
|||
|
|||
} |
@ -0,0 +1,22 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.AllArgsConstructor; |
|||
import lombok.Data; |
|||
import lombok.NoArgsConstructor; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description userId集合 |
|||
* @Author yinzuomei |
|||
* @Date 2020/4/7 18:20 |
|||
*/ |
|||
@Data |
|||
@AllArgsConstructor |
|||
@NoArgsConstructor |
|||
public class UserResiInfoListFormDTO implements Serializable { |
|||
private static final long serialVersionUID = -4454561042197166135L; |
|||
|
|||
private List<String> userIdList; |
|||
} |
@ -0,0 +1,47 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* 满意度评价列表——已关闭 |
|||
*/ |
|||
@Data |
|||
public class EvaluationListResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -1L; |
|||
|
|||
/** |
|||
* 评价用户Id |
|||
*/ |
|||
private String userId; |
|||
|
|||
/** |
|||
* 评价用户(山东路168-尹女士) |
|||
*/ |
|||
private String userNickName; |
|||
|
|||
/** |
|||
* 满意度 - 不满意:bad、基本满意:good、非常满意:perfect |
|||
*/ |
|||
private String satisfaction; |
|||
|
|||
/** |
|||
* 评价时间 |
|||
*/ |
|||
private Long evaluateTime; |
|||
|
|||
/** |
|||
* 评价内容 |
|||
*/ |
|||
private String evaluateContent; |
|||
|
|||
/** |
|||
* 用户头像 |
|||
*/ |
|||
private String userHeadPhoto; |
|||
|
|||
|
|||
} |
@ -0,0 +1,64 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description 用户注册信息返参DTO |
|||
* @Author yinzuomei |
|||
* @Date 2020/4/7 18:45 |
|||
*/ |
|||
@Data |
|||
public class UserResiInfoResultDTO implements Serializable { |
|||
|
|||
/** |
|||
* 唯一标识 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 用户Id(主键) user.id |
|||
*/ |
|||
private String userId; |
|||
|
|||
/** |
|||
* 手机号(注册手机号) |
|||
*/ |
|||
private String regMobile; |
|||
|
|||
/** |
|||
* 姓氏 |
|||
*/ |
|||
private String surname; |
|||
|
|||
/** |
|||
* 名称 |
|||
*/ |
|||
private String name; |
|||
|
|||
/** |
|||
* 街道 |
|||
*/ |
|||
private String street; |
|||
|
|||
/** |
|||
* 小区名称 |
|||
*/ |
|||
private String district; |
|||
|
|||
/** |
|||
* 楼栋单元 |
|||
*/ |
|||
private String buildingAddress; |
|||
|
|||
/** |
|||
* 用户显示名称 |
|||
*/ |
|||
private String showName; |
|||
|
|||
/** |
|||
* 用户头像 |
|||
*/ |
|||
private String headPhoto; |
|||
} |
@ -0,0 +1,32 @@ |
|||
package com.epmet.feign; |
|||
|
|||
import com.epmet.commons.tools.constant.ServiceConstant; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.dto.form.UserResiInfoListFormDTO; |
|||
import com.epmet.dto.result.UserResiInfoResultDTO; |
|||
import com.epmet.feign.fallback.EpmetUserFeignClientFallBack; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author zxc |
|||
* @dscription |
|||
* @date 2020/5/11 10:32 |
|||
*/ |
|||
//url = "localhost:8087"
|
|||
@FeignClient(name = ServiceConstant.EPMET_USER_SERVER, fallback = EpmetUserFeignClientFallBack.class) |
|||
public interface EpmetUserFeignClient { |
|||
|
|||
/** |
|||
* @Description 查询评价人和评价人头像 |
|||
* @param formDTO |
|||
* @author zxc |
|||
*/ |
|||
@PostMapping("/epmetuser/userresiinfo/getuserresiinfolist") |
|||
Result<List<UserResiInfoResultDTO>> getUserResiInfoList(@RequestBody UserResiInfoListFormDTO formDTO); |
|||
|
|||
|
|||
} |
@ -0,0 +1,24 @@ |
|||
package com.epmet.feign.fallback; |
|||
|
|||
import com.epmet.commons.tools.constant.ServiceConstant; |
|||
import com.epmet.commons.tools.utils.ModuleUtils; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.dto.form.UserResiInfoListFormDTO; |
|||
import com.epmet.dto.result.UserResiInfoResultDTO; |
|||
import com.epmet.feign.EpmetUserFeignClient; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Auther zxc |
|||
* @Create 2020-05-11 10:33 |
|||
*/ |
|||
@Component |
|||
public class EpmetUserFeignClientFallBack implements EpmetUserFeignClient { |
|||
|
|||
@Override |
|||
public Result<List<UserResiInfoResultDTO>> getUserResiInfoList(UserResiInfoListFormDTO formDTO) { |
|||
return ModuleUtils.feignConError(ServiceConstant.EPMET_USER_SERVER, "getUserResiInfoList", formDTO); |
|||
} |
|||
} |
@ -0,0 +1,20 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description 项目跟踪-部门人员选择-接口入参 |
|||
* @Author sun |
|||
*/ |
|||
@Data |
|||
public class DepartmentStaffListFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 4859779755214502427L; |
|||
|
|||
@NotBlank(message = "机关组织Id不能为空") |
|||
private String agencyId; |
|||
|
|||
} |
|||
|
@ -0,0 +1,45 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
|
|||
/** |
|||
* 工作人员信息及角色 |
|||
* |
|||
* @author sun |
|||
*/ |
|||
@Data |
|||
public class CustomerStaffListResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 工作人员信息集合 |
|||
*/ |
|||
private List<StaffListResultDTO> staffList; |
|||
/** |
|||
* 工作人员角色集合 |
|||
*/ |
|||
private List<CustomerStaffRoleResultDTO> roleList; |
|||
|
|||
} |
@ -0,0 +1,48 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
|
|||
/** |
|||
* 工作人员角色 |
|||
* |
|||
* @author sun |
|||
*/ |
|||
@Data |
|||
public class CustomerStaffRoleResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 工作人员Id |
|||
*/ |
|||
private String staffId = ""; |
|||
/** |
|||
* 人员角色Key |
|||
*/ |
|||
private String roleKey = ""; |
|||
/** |
|||
* 人员角色名称 |
|||
*/ |
|||
private String roleName = ""; |
|||
|
|||
} |
@ -0,0 +1,51 @@ |
|||
/** |
|||
* 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; |
|||
import java.util.List; |
|||
|
|||
|
|||
/** |
|||
* 项目跟踪-部门人员选择-接口返参 |
|||
* |
|||
* @author sun |
|||
*/ |
|||
@Data |
|||
public class DepartmentStaffListResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 组织下工作人员信息 |
|||
*/ |
|||
private List<StaffListResultDTO> agencyStaffList; |
|||
|
|||
/** |
|||
* 部门人员选择-组织下部门及人员列表 |
|||
*/ |
|||
private List<DeptListResultDTO> departmentList; |
|||
|
|||
/** |
|||
* 部门人员选择-组织下网格及人员列表 |
|||
*/ |
|||
private List<GridListResultDTO> gridList; |
|||
|
|||
} |
@ -0,0 +1,49 @@ |
|||
/** |
|||
* 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; |
|||
import java.util.List; |
|||
|
|||
|
|||
/** |
|||
* 部门人员选择-组织下部门及人员列表 |
|||
* |
|||
* @author sun |
|||
*/ |
|||
@Data |
|||
public class DeptListResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 部门Id |
|||
*/ |
|||
private String departmentId; |
|||
/** |
|||
* 部门名称 |
|||
*/ |
|||
private String departmentName; |
|||
/** |
|||
* 部门下人员集合 |
|||
*/ |
|||
private List<StaffListResultDTO> departmentStaffList; |
|||
|
|||
} |
@ -0,0 +1,49 @@ |
|||
/** |
|||
* 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; |
|||
import java.util.List; |
|||
|
|||
|
|||
/** |
|||
* 部门人员选择-组织下网格及人员列表 |
|||
* |
|||
* @author sun |
|||
*/ |
|||
@Data |
|||
public class GridListResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 网格Id |
|||
*/ |
|||
private String gridId; |
|||
/** |
|||
* 网格名称 |
|||
*/ |
|||
private String gridName; |
|||
/** |
|||
* 网格下工作人员集合 |
|||
*/ |
|||
private List<StaffListResultDTO> gridStaffList; |
|||
|
|||
} |
@ -0,0 +1,36 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @dscription 工作人员信息 |
|||
* @author sun |
|||
*/ |
|||
@Data |
|||
public class StaffListResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 5957826616179876849L; |
|||
/** |
|||
* 人员Id |
|||
*/ |
|||
private String staffId; |
|||
/** |
|||
* 人员名称 |
|||
*/ |
|||
private String staffName; |
|||
/** |
|||
* 人员头像 |
|||
*/ |
|||
private String staffHeadPhoto; |
|||
/** |
|||
* 性别 |
|||
*/ |
|||
private String gender; |
|||
/** |
|||
* 角色名称(机关领导、部门领导、网格长) |
|||
*/ |
|||
private String roleName; |
|||
|
|||
} |
@ -0,0 +1,37 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* 提交满意度评价——已转项目 |
|||
*/ |
|||
@Data |
|||
public class ProjectEvaluateFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 议题Id |
|||
*/ |
|||
private String projectId; |
|||
|
|||
/** |
|||
* 满意度 - 不满意:bad、基本满意:good、非常满意:perfect |
|||
*/ |
|||
private String satisfaction; |
|||
|
|||
/** |
|||
* 评价内容 |
|||
*/ |
|||
private String comment; |
|||
|
|||
/** |
|||
* 用户ID |
|||
*/ |
|||
private String userId; |
|||
|
|||
|
|||
} |
@ -0,0 +1,32 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* 满意度评价列表——已转项目 |
|||
*/ |
|||
@Data |
|||
public class ProjectEvaluationListFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 议题Id |
|||
*/ |
|||
private String projectId; |
|||
|
|||
/** |
|||
* 页码 |
|||
*/ |
|||
private Integer pageNo; |
|||
|
|||
/** |
|||
* 每页数量 |
|||
*/ |
|||
private Integer pageSize; |
|||
|
|||
|
|||
} |
@ -0,0 +1,27 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* 满意度评价初始化 |
|||
*/ |
|||
@Data |
|||
public class ProjectInitEvaluationFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 项目Id |
|||
*/ |
|||
private String projectId; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String userId; |
|||
|
|||
|
|||
} |
@ -0,0 +1,25 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* 项目满意度评价信息 |
|||
*/ |
|||
@Data |
|||
public class ProjectEvaluateInfoResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -3699103790181586654L; |
|||
|
|||
/** |
|||
* 评价内容 |
|||
*/ |
|||
private String evaluateContent; |
|||
|
|||
/** |
|||
* 满意度 - 不满意:bad、基本满意:good、非常满意:perfect |
|||
*/ |
|||
private String satisfaction; |
|||
} |
@ -0,0 +1,47 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* 满意度评价列表——已关闭 |
|||
*/ |
|||
@Data |
|||
public class ProjectEvaluationListResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -1L; |
|||
|
|||
/** |
|||
* 评价用户Id |
|||
*/ |
|||
private String userId; |
|||
|
|||
/** |
|||
* 评价用户(山东路168-尹女士) |
|||
*/ |
|||
private String userNickName; |
|||
|
|||
/** |
|||
* 满意度 - 不满意:bad、基本满意:good、非常满意:perfect |
|||
*/ |
|||
private String satisfaction; |
|||
|
|||
/** |
|||
* 评价时间 |
|||
*/ |
|||
private Long evaluateTime; |
|||
|
|||
/** |
|||
* 评价内容 |
|||
*/ |
|||
private String evaluateContent; |
|||
|
|||
/** |
|||
* 用户头像 |
|||
*/ |
|||
private String userHeadPhoto; |
|||
|
|||
|
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import com.epmet.dto.form.ProjectEvaluateFormDTO; |
|||
import com.epmet.dto.form.ProjectInitEvaluationFormDTO; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* 满意度评价初始化 |
|||
*/ |
|||
@Data |
|||
public class ProjectInitEvaluationResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -1L; |
|||
|
|||
/** |
|||
* 评价状态:true已评价,false未评价 |
|||
*/ |
|||
private Boolean status; |
|||
|
|||
/** |
|||
* 评价信息 |
|||
*/ |
|||
private ProjectEvaluateInfoResultDTO evaluateInfo; |
|||
|
|||
} |
@ -0,0 +1,32 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* 满意度评价列表——已关闭 |
|||
*/ |
|||
@Data |
|||
public class EvaluationListFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 议题Id |
|||
*/ |
|||
private String IssueId; |
|||
|
|||
/** |
|||
* 页码 |
|||
*/ |
|||
private Integer pageNo; |
|||
|
|||
/** |
|||
* 每页数量 |
|||
*/ |
|||
private Integer pageSize; |
|||
|
|||
|
|||
} |
@ -0,0 +1,37 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* 提交满意度评价——已转项目 |
|||
*/ |
|||
@Data |
|||
public class ProjectEvaluateFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 议题Id |
|||
*/ |
|||
private String projectId; |
|||
|
|||
/** |
|||
* 满意度 - 不满意:bad、基本满意:good、非常满意:perfect |
|||
*/ |
|||
private String satisfaction; |
|||
|
|||
/** |
|||
* 评价内容 |
|||
*/ |
|||
private String comment; |
|||
|
|||
/** |
|||
* 用户ID |
|||
*/ |
|||
private String userId; |
|||
|
|||
|
|||
} |
@ -0,0 +1,32 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* 满意度评价列表——已转项目 |
|||
*/ |
|||
@Data |
|||
public class ProjectEvaluationListFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 议题Id |
|||
*/ |
|||
private String projectId; |
|||
|
|||
/** |
|||
* 页码 |
|||
*/ |
|||
private Integer pageNo; |
|||
|
|||
/** |
|||
* 每页数量 |
|||
*/ |
|||
private Integer pageSize; |
|||
|
|||
|
|||
} |
@ -0,0 +1,20 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description 项目Id |
|||
* @Author zxc |
|||
*/ |
|||
@Data |
|||
public class ProjectIdFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 2887479755214503489L; |
|||
|
|||
@NotBlank(message = "项目id不能为空") |
|||
private String projectId; |
|||
|
|||
} |
|||
|
@ -0,0 +1,27 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* 满意度评价初始化 |
|||
*/ |
|||
@Data |
|||
public class ProjectInitEvaluationFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 项目Id |
|||
*/ |
|||
private String projectId; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String userId; |
|||
|
|||
|
|||
} |
@ -0,0 +1,22 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.AllArgsConstructor; |
|||
import lombok.Data; |
|||
import lombok.NoArgsConstructor; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description userId集合 |
|||
* @Author yinzuomei |
|||
* @Date 2020/4/7 18:20 |
|||
*/ |
|||
@Data |
|||
@AllArgsConstructor |
|||
@NoArgsConstructor |
|||
public class UserResiInfoListFormDTO implements Serializable { |
|||
private static final long serialVersionUID = -4454561042197166135L; |
|||
|
|||
private List<String> userIdList; |
|||
} |
@ -0,0 +1,47 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* 满意度评价列表——已关闭 |
|||
*/ |
|||
@Data |
|||
public class EvaluationListResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -1L; |
|||
|
|||
/** |
|||
* 评价用户Id |
|||
*/ |
|||
private String userId; |
|||
|
|||
/** |
|||
* 评价用户(山东路168-尹女士) |
|||
*/ |
|||
private String userNickName; |
|||
|
|||
/** |
|||
* 满意度 - 不满意:bad、基本满意:good、非常满意:perfect |
|||
*/ |
|||
private String satisfaction; |
|||
|
|||
/** |
|||
* 评价时间 |
|||
*/ |
|||
private Long evaluateTime; |
|||
|
|||
/** |
|||
* 评价内容 |
|||
*/ |
|||
private String evaluateContent; |
|||
|
|||
/** |
|||
* 用户头像 |
|||
*/ |
|||
private String userHeadPhoto; |
|||
|
|||
|
|||
} |
@ -0,0 +1,25 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* 项目满意度评价信息 |
|||
*/ |
|||
@Data |
|||
public class ProjectEvaluateInfoResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -3699103790181586654L; |
|||
|
|||
/** |
|||
* 评价内容 |
|||
*/ |
|||
private String evaluateContent; |
|||
|
|||
/** |
|||
* 满意度 - 不满意:bad、基本满意:good、非常满意:perfect |
|||
*/ |
|||
private String satisfaction; |
|||
} |
@ -0,0 +1,47 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* 满意度评价列表——已关闭 |
|||
*/ |
|||
@Data |
|||
public class ProjectEvaluationListResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -1L; |
|||
|
|||
/** |
|||
* 评价用户Id |
|||
*/ |
|||
private String userId; |
|||
|
|||
/** |
|||
* 评价用户(山东路168-尹女士) |
|||
*/ |
|||
private String userNickName; |
|||
|
|||
/** |
|||
* 满意度 - 不满意:bad、基本满意:good、非常满意:perfect |
|||
*/ |
|||
private String satisfaction; |
|||
|
|||
/** |
|||
* 评价时间 |
|||
*/ |
|||
private Long evaluateTime; |
|||
|
|||
/** |
|||
* 评价内容 |
|||
*/ |
|||
private String evaluateContent; |
|||
|
|||
/** |
|||
* 用户头像 |
|||
*/ |
|||
private String userHeadPhoto; |
|||
|
|||
|
|||
} |
@ -0,0 +1,26 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* 满意度评价初始化 |
|||
*/ |
|||
@Data |
|||
public class ProjectInitEvaluationResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -1L; |
|||
|
|||
/** |
|||
* 评价状态:true已评价,false未评价 |
|||
*/ |
|||
private Boolean status; |
|||
|
|||
/** |
|||
* 评价信息 |
|||
*/ |
|||
private ProjectEvaluateInfoResultDTO evaluateInfo; |
|||
|
|||
} |
@ -0,0 +1,64 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description 用户注册信息返参DTO |
|||
* @Author yinzuomei |
|||
* @Date 2020/4/7 18:45 |
|||
*/ |
|||
@Data |
|||
public class UserResiInfoResultDTO implements Serializable { |
|||
|
|||
/** |
|||
* 唯一标识 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 用户Id(主键) user.id |
|||
*/ |
|||
private String userId; |
|||
|
|||
/** |
|||
* 手机号(注册手机号) |
|||
*/ |
|||
private String regMobile; |
|||
|
|||
/** |
|||
* 姓氏 |
|||
*/ |
|||
private String surname; |
|||
|
|||
/** |
|||
* 名称 |
|||
*/ |
|||
private String name; |
|||
|
|||
/** |
|||
* 街道 |
|||
*/ |
|||
private String street; |
|||
|
|||
/** |
|||
* 小区名称 |
|||
*/ |
|||
private String district; |
|||
|
|||
/** |
|||
* 楼栋单元 |
|||
*/ |
|||
private String buildingAddress; |
|||
|
|||
/** |
|||
* 用户显示名称 |
|||
*/ |
|||
private String showName; |
|||
|
|||
/** |
|||
* 用户头像 |
|||
*/ |
|||
private String headPhoto; |
|||
} |
@ -0,0 +1,14 @@ |
|||
package com.epmet.constat; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @CreateTime 2020/5/13 18:02 |
|||
*/ |
|||
public interface HallConstat { |
|||
|
|||
/** |
|||
* 调用epmet-user服务查询数据失败 |
|||
*/ |
|||
String SELECT_USERINFO_EXCEPTION = "获取用户昵称、头像失败"; |
|||
|
|||
} |
@ -0,0 +1,49 @@ |
|||
package com.epmet.feign; |
|||
|
|||
import com.epmet.commons.tools.constant.ServiceConstant; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.dto.form.ProjectEvaluateFormDTO; |
|||
import com.epmet.dto.form.ProjectEvaluationListFormDTO; |
|||
import com.epmet.dto.form.ProjectInitEvaluationFormDTO; |
|||
import com.epmet.dto.result.ProjectEvaluationListResultDTO; |
|||
import com.epmet.dto.result.ProjectInitEvaluationResultDTO; |
|||
import com.epmet.feign.fallback.GovProjectFeignClientFallBack; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
|
|||
import java.util.List; |
|||
|
|||
|
|||
/** |
|||
* @Description Feign调用gov-project-server模块 |
|||
* @ClassName GovProjectFeignClient |
|||
* url = "localhost:8102" |
|||
*/ |
|||
@FeignClient(name = ServiceConstant.GOV_PROJECT_SERVER, fallback = GovProjectFeignClientFallBack.class) |
|||
public interface GovProjectFeignClient { |
|||
|
|||
/** |
|||
* @Description 提交满意度评价初始化——已转项目 |
|||
* @param formDTO |
|||
* @author zxc |
|||
*/ |
|||
@PostMapping("/gov/project/projectsatisfactiondetail/projectinitevaluation") |
|||
Result<ProjectInitEvaluationResultDTO> projectInitEvaluation(@RequestBody ProjectInitEvaluationFormDTO formDTO); |
|||
|
|||
/** |
|||
* @Description 提交满意度评价——已转项目 |
|||
* @param projectEvaluate |
|||
* @author zxc |
|||
*/ |
|||
@PostMapping("/gov/project/projectsatisfactiondetail/projectevaluate") |
|||
Result projectEvaluate(@RequestBody ProjectEvaluateFormDTO projectEvaluate); |
|||
|
|||
/** |
|||
* @Description 满意度评价列表——已转项目 |
|||
* @param formDTO |
|||
* @author zxc |
|||
*/ |
|||
@PostMapping("/gov/project/projectsatisfactiondetail/projectevaluationlist") |
|||
Result<List<ProjectEvaluationListResultDTO>> projectEvaluationList(ProjectEvaluationListFormDTO formDTO); |
|||
} |
@ -0,0 +1,37 @@ |
|||
package com.epmet.feign.fallback; |
|||
|
|||
import com.epmet.commons.tools.constant.ServiceConstant; |
|||
import com.epmet.commons.tools.utils.ModuleUtils; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.dto.form.ProjectEvaluateFormDTO; |
|||
import com.epmet.dto.form.ProjectEvaluationListFormDTO; |
|||
import com.epmet.dto.form.ProjectInitEvaluationFormDTO; |
|||
import com.epmet.dto.result.ProjectEvaluationListResultDTO; |
|||
import com.epmet.dto.result.ProjectInitEvaluationResultDTO; |
|||
import com.epmet.feign.GovProjectFeignClient; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description Feign |
|||
* @ClassName GovProjectFeignClientFallBack |
|||
*/ |
|||
@Component |
|||
public class GovProjectFeignClientFallBack implements GovProjectFeignClient { |
|||
|
|||
@Override |
|||
public Result<ProjectInitEvaluationResultDTO> projectInitEvaluation(ProjectInitEvaluationFormDTO formDTO) { |
|||
return ModuleUtils.feignConError(ServiceConstant.GOV_PROJECT_SERVER, "projectInitEvaluation", formDTO); |
|||
} |
|||
|
|||
@Override |
|||
public Result projectEvaluate(ProjectEvaluateFormDTO projectEvaluate) { |
|||
return ModuleUtils.feignConError(ServiceConstant.GOV_PROJECT_SERVER, "projectEvaluate", projectEvaluate); |
|||
} |
|||
|
|||
@Override |
|||
public Result<List<ProjectEvaluationListResultDTO>> projectEvaluationList(ProjectEvaluationListFormDTO formDTO) { |
|||
return ModuleUtils.feignConError(ServiceConstant.GOV_PROJECT_SERVER, "projectEvaluationList", formDTO); |
|||
} |
|||
} |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue