Browse Source

Merge remote-tracking branch 'origin/dev_temp' into dev_temp

# Conflicts:
#	epmet-module/data-report/data-report-server/pom.xml
#	epmet-module/data-statistical/data-statistical-server/pom.xml
#	epmet-module/epmet-message/epmet-message-server/pom.xml
#	epmet-module/epmet-oss/epmet-oss-server/deploy/docker-compose-dev.yml
#	epmet-module/epmet-oss/epmet-oss-server/src/main/java/com/epmet/controller/OssController.java
#	epmet-module/epmet-third/epmet-third-server/pom.xml
#	epmet-module/gov-org/gov-org-server/pom.xml
#	epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/controller/CustomerAgencyController.java
#	epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/dao/CustomerAgencyDao.java
#	epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/CustomerAgencyService.java
#	epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/CustomerAgencyServiceImpl.java
#	epmet-module/gov-org/gov-org-server/src/main/resources/mapper/CustomerAgencyDao.xml
#	epmet-module/gov-project/gov-project-server/pom.xml
#	epmet-user/epmet-user-client/src/main/java/com/epmet/feign/EpmetUserOpenFeignClient.java
dev_shibei_match
liushaowen 5 years ago
parent
commit
36d6286363
  1. 2
      epmet-module/data-report/data-report-server/deploy/docker-compose-prod.yml
  2. 3
      epmet-module/data-report/data-report-server/pom.xml
  3. 1
      epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/fact/FactIndexController.java
  4. 2
      epmet-module/data-statistical/data-statistical-server/deploy/docker-compose-prod.yml
  5. 2
      epmet-module/data-statistical/data-statistical-server/pom.xml
  6. 2
      epmet-module/epmet-message/epmet-message-server/deploy/docker-compose-prod.yml
  7. 2
      epmet-module/epmet-message/epmet-message-server/pom.xml
  8. 19
      epmet-module/epmet-message/epmet-message-server/src/main/java/com/epmet/service/impl/WxmpMessageServiceImpl.java
  9. 1
      epmet-module/epmet-oss/epmet-oss-server/deploy/docker-compose-dev.yml
  10. 6
      epmet-module/epmet-oss/epmet-oss-server/src/main/java/com/epmet/controller/OssController.java
  11. 2
      epmet-module/epmet-third/epmet-third-server/deploy/docker-compose-prod.yml
  12. 2
      epmet-module/epmet-third/epmet-third-server/pom.xml
  13. 2
      epmet-module/epmet-third/epmet-third-server/src/main/resources/mapper/PersonalTemplateDao.xml
  14. 2
      epmet-module/gov-org/gov-org-server/deploy/docker-compose-prod.yml
  15. 2
      epmet-module/gov-org/gov-org-server/pom.xml
  16. 36
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/controller/CustomerAgencyController.java
  17. 20
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/dao/CustomerAgencyDao.java
  18. 2
      epmet-module/gov-project/gov-project-server/deploy/docker-compose-prod.yml
  19. 2
      epmet-module/gov-project/gov-project-server/pom.xml
  20. 2
      epmet-module/resi-guide/resi-guide-server/deploy/docker-compose-prod.yml
  21. 3
      epmet-module/resi-partymember/resi-partymember-server/src/main/java/com/epmet/modules/partymember/service/impl/PartyMemberConfirmServiceImpl.java
  22. 4
      epmet-user/epmet-user-client/src/main/java/com/epmet/dto/form/BadgeFormDTO.java
  23. 2
      epmet-user/epmet-user-client/src/main/java/com/epmet/dto/form/CertificationAddFormDTO.java
  24. 50
      epmet-user/epmet-user-client/src/main/java/com/epmet/dto/result/AdviceListResultDTO.java
  25. 2
      epmet-user/epmet-user-client/src/main/java/com/epmet/dto/result/CertificationDetailResultDTO.java
  26. 14
      epmet-user/epmet-user-client/src/main/java/com/epmet/feign/EpmetUserOpenFeignClient.java
  27. 10
      epmet-user/epmet-user-server/src/main/java/com/epmet/controller/UserAdviceController.java
  28. 65
      epmet-user/epmet-user-server/src/main/java/com/epmet/dao/BadgeDao.java
  29. 5
      epmet-user/epmet-user-server/src/main/java/com/epmet/entity/UserAdviceEntity.java
  30. 3
      epmet-user/epmet-user-server/src/main/java/com/epmet/excel/UserAdviceExcel.java
  31. 3
      epmet-user/epmet-user-server/src/main/java/com/epmet/service/UserAdviceService.java
  32. 6
      epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/BadgeServiceImpl.java
  33. 50
      epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/UserAdviceServiceImpl.java
  34. 5
      epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/UserBadgeServiceImpl.java
  35. 2
      epmet-user/epmet-user-server/src/main/resources/mapper/BadgeDao.xml
  36. 4
      epmet-user/epmet-user-server/src/main/resources/mapper/UserBadgeDao.xml

2
epmet-module/data-report/data-report-server/deploy/docker-compose-prod.yml

@ -2,7 +2,7 @@ version: "3.7"
services: services:
data-report-server: data-report-server:
container_name: data-report-server-prod container_name: data-report-server-prod
image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-master/data-report-server:0.3.44 image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-master/data-report-server:0.3.45
ports: ports:
- "8108:8108" - "8108:8108"
network_mode: host # 使用现有网络 network_mode: host # 使用现有网络

3
epmet-module/data-report/data-report-server/pom.xml

@ -2,7 +2,8 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<version>0.3.132</version>
<version>0.3.45</version>
<artifactId>data-report-server</artifactId> <artifactId>data-report-server</artifactId>
<parent> <parent>

1
epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/fact/FactIndexController.java

@ -63,6 +63,7 @@ public class FactIndexController {
* @Description 按月查询各项指标数据 * @Description 按月查询各项指标数据
* @author sun * @author sun
*/ */
@PostMapping("index/ablitylist") @PostMapping("index/ablitylist")
public Result<List<AblityListResultDTO>> ablityList(@RequestBody AblityListFormDTO formDTO) { public Result<List<AblityListResultDTO>> ablityList(@RequestBody AblityListFormDTO formDTO) {
ValidatorUtils.validateEntity(formDTO, AblityListFormDTO.AddUserInternalGroup.class); ValidatorUtils.validateEntity(formDTO, AblityListFormDTO.AddUserInternalGroup.class);

2
epmet-module/data-statistical/data-statistical-server/deploy/docker-compose-prod.yml

@ -2,7 +2,7 @@ version: "3.7"
services: services:
data-statistical-server: data-statistical-server:
container_name: data-statistical-server-prod container_name: data-statistical-server-prod
image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-master/data-statistical-server:0.3.62 image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-master/data-statistical-server:0.3.69
ports: ports:
- "8108:8108" - "8108:8108"
network_mode: host # 使用现有网络 network_mode: host # 使用现有网络

2
epmet-module/data-statistical/data-statistical-server/pom.xml

@ -2,7 +2,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<version>0.3.193</version> <version>0.3.69</version>
<parent> <parent>
<artifactId>data-statistical</artifactId> <artifactId>data-statistical</artifactId>
<groupId>com.epmet</groupId> <groupId>com.epmet</groupId>

2
epmet-module/epmet-message/epmet-message-server/deploy/docker-compose-prod.yml

@ -2,7 +2,7 @@ version: "3.7"
services: services:
epmet-message-server: epmet-message-server:
container_name: epmet-message-server-prod container_name: epmet-message-server-prod
image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-master/epmet-message-server:0.3.28 image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-master/epmet-message-server:0.3.29
ports: ports:
- "8085:8085" - "8085:8085"
network_mode: host # 使用现有网络 network_mode: host # 使用现有网络

2
epmet-module/epmet-message/epmet-message-server/pom.xml

@ -2,7 +2,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<version>0.3.31</version> <version>0.3.29</version>
<parent> <parent>
<groupId>com.epmet</groupId> <groupId>com.epmet</groupId>
<artifactId>epmet-message</artifactId> <artifactId>epmet-message</artifactId>

19
epmet-module/epmet-message/epmet-message-server/src/main/java/com/epmet/service/impl/WxmpMessageServiceImpl.java

@ -155,20 +155,31 @@ public class WxmpMessageServiceImpl implements WxmpMessageService {
if (WxmpMessageConstant.RESI.equals(clientType)) { if (WxmpMessageConstant.RESI.equals(clientType)) {
UserBasicInfoFormDTO userBasicInfoFormDTO = new UserBasicInfoFormDTO(); UserBasicInfoFormDTO userBasicInfoFormDTO = new UserBasicInfoFormDTO();
userBasicInfoFormDTO.setUserId(userId); userBasicInfoFormDTO.setUserId(userId);
openId = epmetUserOpenFeignClient.getUserBasicInfo(userBasicInfoFormDTO).getData().getOpenId(); Result<UserBasicInfo> userBasicInfo = epmetUserOpenFeignClient.getUserBasicInfo(userBasicInfoFormDTO);
if (userBasicInfo.getCode() != 0){
throw new Exception(userBasicInfo.getInternalMsg());
}else {
openId = userBasicInfo.getData().getOpenId();
}
} else if (WxmpMessageConstant.GOV_DB.equals(clientType)) { } else if (WxmpMessageConstant.GOV_DB.equals(clientType)) {
StaffBasicInfoFormDTO staffBasicInfoFormDTO = new StaffBasicInfoFormDTO(); StaffBasicInfoFormDTO staffBasicInfoFormDTO = new StaffBasicInfoFormDTO();
staffBasicInfoFormDTO.setStaffId(userId); staffBasicInfoFormDTO.setStaffId(userId);
openId = epmetUserOpenFeignClient.getStaffBasicInfo(staffBasicInfoFormDTO).getData().getOpenId(); Result<StaffBasicInfo> staffBasicInfo = epmetUserOpenFeignClient.getStaffBasicInfo(staffBasicInfoFormDTO);;
if (staffBasicInfo.getCode() != 0){
throw new Exception(staffBasicInfo.getInternalMsg());
}else {
openId = staffBasicInfo.getData().getOpenId();
}
} else { } else {
throw new WxSubscribeException("clientType有误", "", openId); throw new WxSubscribeException("clientType有误", "", openId);
} }
} catch (Exception e) { } catch (Exception e) {
throw new WxSubscribeException("连接User服务失败" + e.getMessage(), "", ""); e.printStackTrace();
throw new WxSubscribeException("获取openId失败:" + e.getMessage(), "", "");
} }
if (StringUtils.isBlank(openId)) { if (StringUtils.isBlank(openId)) {
throw new WxSubscribeException("openId获取失败", "", ""); throw new WxSubscribeException("该userId未查询到关联的openId", "", "");
} }
//获取模板id //获取模板id
if (customerTemplateListResultDTOS.size() > NumConstant.ZERO) { if (customerTemplateListResultDTOS.size() > NumConstant.ZERO) {

1
epmet-module/epmet-oss/epmet-oss-server/deploy/docker-compose-dev.yml

@ -2,6 +2,7 @@ version: "3.7"
services: services:
epmet-oss-server: epmet-oss-server:
container_name: epmet-oss-server-dev container_name: epmet-oss-server-dev
# image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-dev/epmet-oss-server:0.3.2
image: 192.168.1.130:10080/epmet-cloud-dev/epmet-oss-server:version_placeholder image: 192.168.1.130:10080/epmet-cloud-dev/epmet-oss-server:version_placeholder
ports: ports:
- "8083:8083" - "8083:8083"

6
epmet-module/epmet-oss/epmet-oss-server/src/main/java/com/epmet/controller/OssController.java

@ -40,12 +40,12 @@ import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import springfox.documentation.annotations.ApiIgnore; import springfox.documentation.annotations.ApiIgnore;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.io.ByteArrayInputStream; import java.io.ByteArrayInputStream;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.util.Arrays; import java.util.Arrays;
import java.util.Map; import java.util.Map;

2
epmet-module/epmet-third/epmet-third-server/deploy/docker-compose-prod.yml

@ -2,7 +2,7 @@ version: "3.7"
services: services:
epmet-third-server: epmet-third-server:
container_name: epmet-third-server-prod container_name: epmet-third-server-prod
image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-master/epmet-third-server:0.0.147 image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-master/epmet-third-server:0.0.149
ports: ports:
- "8110:8110" - "8110:8110"
network_mode: host # 使用现有网络 network_mode: host # 使用现有网络

2
epmet-module/epmet-third/epmet-third-server/pom.xml

@ -2,7 +2,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<version>0.0.143</version> <version>0.0.149</version>
<parent> <parent>
<groupId>com.epmet</groupId> <groupId>com.epmet</groupId>

2
epmet-module/epmet-third/epmet-third-server/src/main/resources/mapper/PersonalTemplateDao.xml

@ -104,7 +104,7 @@
AND pt.customer_id = #{customerId} AND pt.customer_id = #{customerId}
AND pt.tid = #{publicId} AND pt.tid = #{publicId}
AND key_ids = #{keyIds}<!-- 消息更新,详情内容,时间 --> AND key_ids = #{keyIds}<!-- 消息更新,详情内容,时间 -->
ORDER BY created_time ASC ORDER BY pt.created_time ASC
</select> </select>
<select id="selectListByKey" resultType="com.epmet.dto.PersonalTemplateDTO"> <select id="selectListByKey" resultType="com.epmet.dto.PersonalTemplateDTO">
SELECT ID SELECT ID

2
epmet-module/gov-org/gov-org-server/deploy/docker-compose-prod.yml

@ -2,7 +2,7 @@ version: "3.7"
services: services:
gov-org-server: gov-org-server:
container_name: gov-org-server-prod container_name: gov-org-server-prod
image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-master/gov-org-server:0.3.91 image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-master/gov-org-server:0.3.92
ports: ports:
- "8092:8092" - "8092:8092"
network_mode: host # 使用现有网络 network_mode: host # 使用现有网络

2
epmet-module/gov-org/gov-org-server/pom.xml

@ -2,7 +2,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<version>0.3.98</version> <version>0.3.92</version>
<parent> <parent>
<groupId>com.epmet</groupId> <groupId>com.epmet</groupId>
<artifactId>gov-org</artifactId> <artifactId>gov-org</artifactId>

36
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/controller/CustomerAgencyController.java

@ -249,6 +249,24 @@ public class CustomerAgencyController {
return new Result<StaffInAgencyListResultDTO>().ok(customerAgencyService.staffInAgencyList(tokenDTO.getUserId())); return new Result<StaffInAgencyListResultDTO>().ok(customerAgencyService.staffInAgencyList(tokenDTO.getUserId()));
} }
/**
* @Description 对外接口-根据组织Id获取组织信息
* @author sun
**/
@PostMapping("agencyinfo")
Result<AgencyInfoResultDTO> agencyInfo(@RequestBody AgencyInfoFormDTO formDTO) {
return new Result<AgencyInfoResultDTO>().ok(customerAgencyService.agencyInfo(formDTO));
}
/**
* @Description 外挂-获取当前组织及部门网格数据递归查询所有下级数据
* @author sun
**/
@PostMapping("organizetree/{agencyId}")
Result<OrganizeTreeResultDTO> organizeTree(@PathVariable("agencyId") String agencyId) {
return new Result<OrganizeTreeResultDTO>().ok(customerAgencyService.organizeTree(agencyId));
}
/** /**
* @Description 对外接口根据customerId返回Element UI中Tree结构的agency列表 * @Description 对外接口根据customerId返回Element UI中Tree结构的agency列表
* @param customerId * @param customerId
@ -277,22 +295,4 @@ public class CustomerAgencyController {
} }
return new Result<Set<String>>().ok(customerAgencyService.getAgencyElementTree(customerId).getDefaultKeys()); return new Result<Set<String>>().ok(customerAgencyService.getAgencyElementTree(customerId).getDefaultKeys());
} }
/**
* @Description 对外接口-根据组织Id获取组织信息
* @author sun
**/
@PostMapping("agencyinfo")
Result<AgencyInfoResultDTO> agencyInfo(@RequestBody AgencyInfoFormDTO formDTO) {
return new Result<AgencyInfoResultDTO>().ok(customerAgencyService.agencyInfo(formDTO));
}
/**
* @Description 外挂-获取当前组织及部门网格数据递归查询所有下级数据
* @author sun
**/
@PostMapping("organizetree/{agencyId}")
Result<OrganizeTreeResultDTO> organizeTree(@PathVariable("agencyId") String agencyId) {
return new Result<OrganizeTreeResultDTO>().ok(customerAgencyService.organizeTree(agencyId));
}
} }

20
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/dao/CustomerAgencyDao.java

@ -176,16 +176,6 @@ public interface CustomerAgencyDao extends BaseDao<CustomerAgencyEntity> {
**/ **/
AgencyResultDTO selectAgencyByStaffId(@Param("staffId") String staffId); AgencyResultDTO selectAgencyByStaffId(@Param("staffId") String staffId);
/**
* @Description 返回elementTree结构的agency树
* @param customerId
* @param pid
* @return java.util.List<com.epmet.dto.result.AgencyElementTreeResultDTO.Agency>
* @Author liushaowen
* @Date 2020/11/6 14:57
*/
List<AgencyElementTreeResultDTO.Agency> getAgencyElementTree(@Param("customerId") String customerId,@Param("pid") String pid);
/** /**
* @Description 外挂-获取当前组织及部门网格数据递归查询所有下级数据 * @Description 外挂-获取当前组织及部门网格数据递归查询所有下级数据
* @author sun * @author sun
@ -206,4 +196,14 @@ public interface CustomerAgencyDao extends BaseDao<CustomerAgencyEntity> {
* @author sun * @author sun
**/ **/
List<OrganizeTreeResultDTO> selectAllSub(@Param("agencyId") String agencyId); List<OrganizeTreeResultDTO> selectAllSub(@Param("agencyId") String agencyId);
/**
* @Description 返回elementTree结构的agency树
* @param customerId
* @param pid
* @return java.util.List<com.epmet.dto.result.AgencyElementTreeResultDTO.Agency>
* @Author liushaowen
* @Date 2020/11/6 14:57
*/
List<AgencyElementTreeResultDTO.Agency> getAgencyElementTree(@Param("customerId") String customerId,@Param("pid") String pid);
} }

2
epmet-module/gov-project/gov-project-server/deploy/docker-compose-prod.yml

@ -2,7 +2,7 @@ version: "3.7"
services: services:
gov-project-server: gov-project-server:
container_name: gov-project-server-prod container_name: gov-project-server-prod
image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-master/gov-project-server:0.3.45 image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-master/gov-project-server:0.3.46
ports: ports:
- "8102:8102" - "8102:8102"
network_mode: host # 使用现有网络 network_mode: host # 使用现有网络

2
epmet-module/gov-project/gov-project-server/pom.xml

@ -2,7 +2,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<version>0.3.53</version> <version>0.3.46</version>
<parent> <parent>
<artifactId>gov-project</artifactId> <artifactId>gov-project</artifactId>
<groupId>com.epmet</groupId> <groupId>com.epmet</groupId>

2
epmet-module/resi-guide/resi-guide-server/deploy/docker-compose-prod.yml

@ -2,7 +2,7 @@ version: "3.7"
services: services:
resi-guide-server: resi-guide-server:
container_name: resi-guide-server-prod container_name: resi-guide-server-prod
image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-master/resi-guide-server:0.3.20 image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-master/resi-guide-server:0.3.21
ports: ports:
- "8091:8091" - "8091:8091"
network_mode: host # 使用现有网络 network_mode: host # 使用现有网络

3
epmet-module/resi-partymember/resi-partymember-server/src/main/java/com/epmet/modules/partymember/service/impl/PartyMemberConfirmServiceImpl.java

@ -645,6 +645,7 @@ public class PartyMemberConfirmServiceImpl implements PartyMemberConfirmService
String messageContent = String.format(userMsg, gridName); String messageContent = String.format(userMsg, gridName);
userMessageFormDTO.setMessageContent(messageContent); userMessageFormDTO.setMessageContent(messageContent);
userMessageFormDTO.setReadFlag(ReadFlagConstant.UN_READ); userMessageFormDTO.setReadFlag(ReadFlagConstant.UN_READ);
userMessageFormDTO.setUserId(formDTO.getUserId());
//发送微信订阅消息 //发送微信订阅消息
WxSubscribeMessageFormDTO wxSubscribeMessageFormDTO = new WxSubscribeMessageFormDTO(); WxSubscribeMessageFormDTO wxSubscribeMessageFormDTO = new WxSubscribeMessageFormDTO();
@ -652,7 +653,7 @@ public class PartyMemberConfirmServiceImpl implements PartyMemberConfirmService
wxSubscribeMessageFormDTO.setUserId(formDTO.getUserId()); wxSubscribeMessageFormDTO.setUserId(formDTO.getUserId());
wxSubscribeMessageFormDTO.setClientType(AppClientConstant.APP_RESI); wxSubscribeMessageFormDTO.setClientType(AppClientConstant.APP_RESI);
wxSubscribeMessageFormDTO.setGridId(formDTO.getGridId()); wxSubscribeMessageFormDTO.setGridId(formDTO.getGridId());
wxSubscribeMessageFormDTO.setBehaviorType(ResiWarmUserMessageConstant.WX_WARMHEARTED_BEHAVIOR); wxSubscribeMessageFormDTO.setBehaviorType(PartyMemberMessageConstant.WX_PARTY_AUTH_BEHAVIOR);
wxSubscribeMessageFormDTO.setMessageContent(messageContent); wxSubscribeMessageFormDTO.setMessageContent(messageContent);
wxSubscribeMessageFormDTO.setMessageTime(new Date()); wxSubscribeMessageFormDTO.setMessageTime(new Date());
List<WxSubscribeMessageFormDTO> msgList = new ArrayList<>(); List<WxSubscribeMessageFormDTO> msgList = new ArrayList<>();

4
epmet-user/epmet-user-client/src/main/java/com/epmet/dto/form/BadgeFormDTO.java

@ -21,4 +21,8 @@ public class BadgeFormDTO implements Serializable {
* 每页显示数量 * 每页显示数量
*/ */
private Integer pageSize = 20; private Integer pageSize = 20;
/**
* 网格Id
*/
private String gridId;
} }

2
epmet-user/epmet-user-client/src/main/java/com/epmet/dto/form/CertificationAddFormDTO.java

@ -47,7 +47,7 @@ public class CertificationAddFormDTO implements Serializable {
/** /**
* 身份证号 * 身份证号
*/ */
private String idCard; private String idcard;
/** /**
* 认证证件图片url * 认证证件图片url

50
epmet-user/epmet-user-client/src/main/java/com/epmet/dto/result/AdviceListResultDTO.java

@ -0,0 +1,50 @@
package com.epmet.dto.result;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
* @description:
* @author: liushaowen
* @date: 2020/11/9 14:46
*/
@Data
public class AdviceListResultDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 建议id
*/
private String id;
/**
* 客户名
*/
private String customerName;
/**
* 网格名
*/
private String gridName;
/**
* 建议类型
*/
private String adviceType;
/**
* 提交的电话
*/
private String phone;
/**
* 建议时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date adviceTime;
private String adviceContent;
}

2
epmet-user/epmet-user-client/src/main/java/com/epmet/dto/result/CertificationDetailResultDTO.java

@ -26,7 +26,7 @@ public class CertificationDetailResultDTO implements Serializable {
/** /**
* 身份证号 * 身份证号
*/ */
private String idCard; private String idcard;
/** /**
* 是否认证 yes 认证 no 已认证 * 是否认证 yes 认证 no 已认证

14
epmet-user/epmet-user-client/src/main/java/com/epmet/feign/EpmetUserOpenFeignClient.java

@ -328,13 +328,6 @@ public interface EpmetUserOpenFeignClient {
@PostMapping(value = "epmetuser/staffagencyvisited/getstaffbasicinfo") @PostMapping(value = "epmetuser/staffagencyvisited/getstaffbasicinfo")
Result<StaffBasicInfo> getStaffBasicInfo(@RequestBody StaffBasicInfoFormDTO formDTO); Result<StaffBasicInfo> getStaffBasicInfo(@RequestBody StaffBasicInfoFormDTO formDTO);
/**
* 根据staffId查询用户基本信息
* @author sun
*/
@PostMapping("/epmetuser/customerstaff/getstaffbasicinfo")
Result<BasicInfoResultDTO> getStaffBasicInfo(@RequestBody StaffBasicInfoFromDTO fromDTO);
/** /**
* 修改个人信息 * 修改个人信息
* @author zhaoqifeng * @author zhaoqifeng
@ -380,4 +373,11 @@ public interface EpmetUserOpenFeignClient {
*/ */
@PostMapping("/epmetuser/more/badge/openedorclosed") @PostMapping("/epmetuser/more/badge/openedorclosed")
Result openedOrClosed(@RequestBody OpenedOrClosedFormDTO openedOrClosedFormDTO); Result openedOrClosed(@RequestBody OpenedOrClosedFormDTO openedOrClosedFormDTO);
/**
* 根据staffId查询用户基本信息
* @author sun
*/
@PostMapping("/epmetuser/customerstaff/getstaffbasicinfo")
Result<BasicInfoResultDTO> getStaffBasicInfo(@RequestBody StaffBasicInfoFromDTO fromDTO);
} }

10
epmet-user/epmet-user-server/src/main/java/com/epmet/controller/UserAdviceController.java

@ -31,6 +31,7 @@ import com.epmet.dto.UserAdviceDTO;
import com.epmet.dto.form.AdviceListFormDTO; import com.epmet.dto.form.AdviceListFormDTO;
import com.epmet.dto.form.ReplyAdviceFormDTO; import com.epmet.dto.form.ReplyAdviceFormDTO;
import com.epmet.dto.result.AdviceDetailResultDTO; import com.epmet.dto.result.AdviceDetailResultDTO;
import com.epmet.dto.result.AdviceListResultDTO;
import com.epmet.excel.UserAdviceExcel; import com.epmet.excel.UserAdviceExcel;
import com.epmet.service.UserAdviceService; import com.epmet.service.UserAdviceService;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
@ -116,9 +117,12 @@ public class UserAdviceController {
} }
@PostMapping("advicelist") @PostMapping("advicelist")
public Result<PageData<UserAdviceDTO>> adviceList(AdviceListFormDTO dto){ public Result<PageData<AdviceListResultDTO>> adviceList(AdviceListFormDTO dto){
ValidatorUtils.validateEntity(dto); ValidatorUtils.validateEntity(dto);
PageData<UserAdviceDTO> page = userAdviceService.adviceList(dto); if (dto.getStartTime().after(dto.getEndTime())){
return new Result<PageData<UserAdviceDTO>>().ok(page); throw new RenException("开始时间不能大于结束时间");
}
PageData<AdviceListResultDTO> page = userAdviceService.adviceList(dto);
return new Result<PageData<AdviceListResultDTO>>().ok(page);
} }
} }

65
epmet-user/epmet-user-server/src/main/java/com/epmet/dao/BadgeDao.java

@ -19,15 +19,10 @@ package com.epmet.dao;
import com.epmet.commons.mybatis.dao.BaseDao; import com.epmet.commons.mybatis.dao.BaseDao;
import com.epmet.dto.BadgeDTO; import com.epmet.dto.BadgeDTO;
import com.epmet.dto.result.BadgeAuditRecordResultDTO; import com.epmet.dto.result.*;
import com.epmet.dto.result.BadgeAuditingResultDTO;
import com.epmet.dto.result.BadgeDetailResultDTO;
import com.epmet.dto.result.BadgeListResultDTO;
import com.epmet.dto.result.UserBadgeListResultDTO;
import com.epmet.entity.BadgeEntity; import com.epmet.entity.BadgeEntity;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.omg.PortableInterceptor.ORBInitInfoPackage.DuplicateName;
import java.util.List; import java.util.List;
@ -42,103 +37,114 @@ public interface BadgeDao extends BaseDao<BadgeEntity> {
/** /**
* 获取徽章列表 * 获取徽章列表
* @author zhaoqifeng *
* @date 2020/11/3 17:30
* @param customerId * @param customerId
* @return java.util.List<com.epmet.dto.result.BadgeListResultDTO> * @return java.util.List<com.epmet.dto.result.BadgeListResultDTO>
* @author zhaoqifeng
* @date 2020/11/3 17:30
*/ */
List<BadgeListResultDTO> selectList(@Param("customerId") String customerId); List<BadgeListResultDTO> selectList(@Param("customerId") String customerId);
/** /**
* 重名校验 * 重名校验
* @author zhaoqifeng *
* @date 2020/11/4 10:40
* @param customerId * @param customerId
* @param badgeName * @param badgeName
* @return java.util.List<com.epmet.dto.result.BadgeListResultDTO> * @return java.util.List<com.epmet.dto.result.BadgeListResultDTO>
* @author zhaoqifeng
* @date 2020/11/4 10:40
*/ */
List<BadgeListResultDTO> getDuplicateName(@Param("customerId") String customerId, @Param("badgeName") String badgeName); List<BadgeListResultDTO> getDuplicateName(@Param("customerId") String customerId, @Param("badgeName") String badgeName);
/** /**
* 编辑重名校验 * 编辑重名校验
* @author zhaoqifeng *
* @date 2020/11/4 15:09
* @param customerId * @param customerId
* @param badgeId * @param badgeId
* @param badgeName * @param badgeName
* @return java.util.List<com.epmet.dto.result.BadgeListResultDTO> * @return java.util.List<com.epmet.dto.result.BadgeListResultDTO>
* @author zhaoqifeng
* @date 2020/11/4 15:09
*/ */
List<BadgeListResultDTO> getDuplicateNameForEdit(@Param("customerId") String customerId, @Param("badgeId") String badgeId, List<BadgeListResultDTO> getDuplicateNameForEdit(@Param("customerId") String customerId, @Param("badgeId") String badgeId,
@Param("badgeName") String badgeName); @Param("badgeName") String badgeName);
/** /**
* 获取徽章详情 * 获取徽章详情
* @author zhaoqifeng *
* @date 2020/11/4 14:30
* @param customerId * @param customerId
* @param badgeId * @param badgeId
* @return com.epmet.dto.result.BadgeDetailResultDTO * @return com.epmet.dto.result.BadgeDetailResultDTO
* @author zhaoqifeng
* @date 2020/11/4 14:30
*/ */
BadgeDetailResultDTO selectDetail(@Param("customerId") String customerId, @Param("badgeId") String badgeId); BadgeDetailResultDTO selectDetail(@Param("customerId") String customerId, @Param("badgeId") String badgeId);
/** /**
* 获取徽章信息 * 获取徽章信息
* @author zhaoqifeng *
* @date 2020/11/4 15:16
* @param customerId * @param customerId
* @param badgeId * @param badgeId
* @return com.epmet.entity.BadgeEntity * @return com.epmet.entity.BadgeEntity
* @author zhaoqifeng
* @date 2020/11/4 15:16
*/ */
BadgeEntity selectBadgeInfo(@Param("customerId") String customerId, @Param("badgeId") String badgeId); BadgeEntity selectBadgeInfo(@Param("customerId") String customerId, @Param("badgeId") String badgeId);
/** /**
* 更新徽章信息 * 更新徽章信息
* @author zhaoqifeng *
* @date 2020/11/4 15:38
* @param entity * @param entity
* @return void * @return void
* @author zhaoqifeng
* @date 2020/11/4 15:38
*/ */
void updateBadge(BadgeEntity entity); void updateBadge(BadgeEntity entity);
/** /**
* 删除徽章信息 * 删除徽章信息
* @author zhaoqifeng *
* @date 2020/11/4 15:39
* @param customerId * @param customerId
* @param badgeId * @param badgeId
* @return void * @return void
* @author zhaoqifeng
* @date 2020/11/4 15:39
*/ */
void deleteBadge(@Param("customerId") String customerId, @Param("badgeId") String badgeId); void deleteBadge(@Param("customerId") String customerId, @Param("badgeId") String badgeId);
/** /**
* 待审核列表 * 待审核列表
* @author zhaoqifeng *
* @date 2020/11/5 10:01
* @param customerId * @param customerId
* @param pageNo * @param pageNo
* @param pageSize * @param pageSize
* @param gridId
* @return java.util.List<com.epmet.dto.result.BadgeAuditingResultDTO> * @return java.util.List<com.epmet.dto.result.BadgeAuditingResultDTO>
* @author zhaoqifeng
* @date 2020/11/5 10:01
*/ */
List<BadgeAuditingResultDTO> selectAuditingList(@Param("customerId") String customerId, @Param("pageNo") Integer pageNo, List<BadgeAuditingResultDTO> selectAuditingList(@Param("customerId") String customerId, @Param("pageNo") Integer pageNo,
@Param("pageSize") Integer pageSize); @Param("pageSize") Integer pageSize, @Param("gridId") String gridId);
/** /**
* 审核历史列表 * 审核历史列表
* @author zhaoqifeng *
* @date 2020/11/5 11:01
* @param customerId * @param customerId
* @param pageNo * @param pageNo
* @param pageSize * @param pageSize
* @param gridId
* @return java.util.List<com.epmet.dto.result.BadgeAuditRecordResultDTO> * @return java.util.List<com.epmet.dto.result.BadgeAuditRecordResultDTO>
* @author zhaoqifeng
* @date 2020/11/5 11:01
*/ */
List<BadgeAuditRecordResultDTO> selectAuditRecord(@Param("customerId") String customerId, @Param("pageNo") Integer pageNo, List<BadgeAuditRecordResultDTO> selectAuditRecord(@Param("customerId") String customerId, @Param("pageNo") Integer pageNo,
@Param("pageSize") Integer pageSize); @Param("pageSize") Integer pageSize, @Param("gridId") String gridId);
/** /**
* @Description 查询客户的徽章
* @param customerId * @param customerId
* @return java.util.List<com.epmet.dto.result.UserBadgeListResultDTO> * @return java.util.List<com.epmet.dto.result.UserBadgeListResultDTO>
* @Description 查询客户的徽章
* @author wangc * @author wangc
* @date 2020.11.05 15:50 * @date 2020.11.05 15:50
*/ */
@ -146,10 +152,11 @@ public interface BadgeDao extends BaseDao<BadgeEntity> {
/** /**
* 插入数据 * 插入数据
* @author zhaoqifeng *
* @date 2020/11/6 14:46
* @param entity * @param entity
* @return void * @return void
* @author zhaoqifeng
* @date 2020/11/6 14:46
*/ */
void insertBadge(BadgeDTO dto); void insertBadge(BadgeDTO dto);
} }

5
epmet-user/epmet-user-server/src/main/java/com/epmet/entity/UserAdviceEntity.java

@ -123,4 +123,9 @@ public class UserAdviceEntity extends BaseEpmetEntity {
*/ */
private String govContent; private String govContent;
/**
* 建议时间
*/
private Date adviceTime;
} }

3
epmet-user/epmet-user-server/src/main/java/com/epmet/excel/UserAdviceExcel.java

@ -61,6 +61,9 @@ public class UserAdviceExcel {
@Excel(name = "用户注册手机号") @Excel(name = "用户注册手机号")
private String regPhone; private String regPhone;
@Excel(name = "建议时间")
private Date adviceTime;
@Excel(name = "建议描述") @Excel(name = "建议描述")
private String adviceContent; private String adviceContent;

3
epmet-user/epmet-user-server/src/main/java/com/epmet/service/UserAdviceService.java

@ -23,6 +23,7 @@ import com.epmet.dto.UserAdviceDTO;
import com.epmet.dto.form.AdviceListFormDTO; import com.epmet.dto.form.AdviceListFormDTO;
import com.epmet.dto.form.ReplyAdviceFormDTO; import com.epmet.dto.form.ReplyAdviceFormDTO;
import com.epmet.dto.result.AdviceDetailResultDTO; import com.epmet.dto.result.AdviceDetailResultDTO;
import com.epmet.dto.result.AdviceListResultDTO;
import com.epmet.entity.UserAdviceEntity; import com.epmet.entity.UserAdviceEntity;
import java.util.List; import java.util.List;
@ -122,5 +123,5 @@ public interface UserAdviceService extends BaseService<UserAdviceEntity> {
* @Author liushaowen * @Author liushaowen
* @Date 2020/11/9 10:41 * @Date 2020/11/9 10:41
*/ */
PageData<UserAdviceDTO> adviceList(AdviceListFormDTO dto); PageData<AdviceListResultDTO> adviceList(AdviceListFormDTO dto);
} }

6
epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/BadgeServiceImpl.java

@ -21,13 +21,13 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; import com.epmet.commons.mybatis.service.impl.BaseServiceImpl;
import com.epmet.commons.tools.constant.Constant; import com.epmet.commons.tools.constant.Constant;
import com.epmet.commons.tools.constant.FieldConstant;
import com.epmet.commons.tools.constant.NumConstant; import com.epmet.commons.tools.constant.NumConstant;
import com.epmet.commons.tools.exception.EpmetErrorCode; import com.epmet.commons.tools.exception.EpmetErrorCode;
import com.epmet.commons.tools.exception.RenException; import com.epmet.commons.tools.exception.RenException;
import com.epmet.commons.tools.page.PageData; import com.epmet.commons.tools.page.PageData;
import com.epmet.commons.tools.security.dto.TokenDto; import com.epmet.commons.tools.security.dto.TokenDto;
import com.epmet.commons.tools.utils.ConvertUtils; import com.epmet.commons.tools.utils.ConvertUtils;
import com.epmet.commons.tools.constant.FieldConstant;
import com.epmet.constant.BadgeConstant; import com.epmet.constant.BadgeConstant;
import com.epmet.constant.BadgeMessageConstant; import com.epmet.constant.BadgeMessageConstant;
import com.epmet.constant.UserConstant; import com.epmet.constant.UserConstant;
@ -289,7 +289,7 @@ public class BadgeServiceImpl extends BaseServiceImpl<BadgeDao, BadgeEntity> imp
@Override @Override
public List<BadgeAuditingResultDTO> auditingList(TokenDto tokenDto, BadgeFormDTO formDTO) { public List<BadgeAuditingResultDTO> auditingList(TokenDto tokenDto, BadgeFormDTO formDTO) {
int pageIndex = (formDTO.getPageNo() - NumConstant.ONE) * formDTO.getPageSize(); int pageIndex = (formDTO.getPageNo() - NumConstant.ONE) * formDTO.getPageSize();
List<BadgeAuditingResultDTO> list = baseDao.selectAuditingList(tokenDto.getCustomerId(), pageIndex, formDTO.getPageSize()); List<BadgeAuditingResultDTO> list = baseDao.selectAuditingList(tokenDto.getCustomerId(), pageIndex, formDTO.getPageSize(), formDTO.getGridId());
list.forEach(item -> item.setCreateTime(item.getCreateTime()/NumConstant.SIXTY)); list.forEach(item -> item.setCreateTime(item.getCreateTime()/NumConstant.SIXTY));
return list; return list;
} }
@ -306,7 +306,7 @@ public class BadgeServiceImpl extends BaseServiceImpl<BadgeDao, BadgeEntity> imp
@Override @Override
public List<BadgeAuditRecordResultDTO> auditRecord(TokenDto tokenDto, BadgeFormDTO formDTO) { public List<BadgeAuditRecordResultDTO> auditRecord(TokenDto tokenDto, BadgeFormDTO formDTO) {
int pageIndex = (formDTO.getPageNo() - NumConstant.ONE) * formDTO.getPageSize(); int pageIndex = (formDTO.getPageNo() - NumConstant.ONE) * formDTO.getPageSize();
List<BadgeAuditRecordResultDTO> list = baseDao.selectAuditRecord(tokenDto.getCustomerId(), pageIndex, formDTO.getPageSize()); List<BadgeAuditRecordResultDTO> list = baseDao.selectAuditRecord(tokenDto.getCustomerId(), pageIndex, formDTO.getPageSize(), formDTO.getGridId());
list.forEach(item -> item.setCreateTime(item.getCreateTime()/NumConstant.SIXTY)); list.forEach(item -> item.setCreateTime(item.getCreateTime()/NumConstant.SIXTY));
return list; return list;
} }

50
epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/UserAdviceServiceImpl.java

@ -32,6 +32,7 @@ import com.epmet.dto.UserAdviceDTO;
import com.epmet.dto.form.AdviceListFormDTO; import com.epmet.dto.form.AdviceListFormDTO;
import com.epmet.dto.form.ReplyAdviceFormDTO; import com.epmet.dto.form.ReplyAdviceFormDTO;
import com.epmet.dto.result.AdviceDetailResultDTO; import com.epmet.dto.result.AdviceDetailResultDTO;
import com.epmet.dto.result.AdviceListResultDTO;
import com.epmet.entity.UserAdviceEntity; import com.epmet.entity.UserAdviceEntity;
import com.epmet.entity.UserAdviceImgEntity; import com.epmet.entity.UserAdviceImgEntity;
import com.epmet.redis.UserAdviceRedis; import com.epmet.redis.UserAdviceRedis;
@ -39,14 +40,11 @@ import com.epmet.service.UserAdviceImgService;
import com.epmet.service.UserAdviceService; import com.epmet.service.UserAdviceService;
import io.jsonwebtoken.lang.Collections; import io.jsonwebtoken.lang.Collections;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
@ -168,7 +166,6 @@ public class UserAdviceServiceImpl extends BaseServiceImpl<UserAdviceDao, UserAd
AdviceDetailResultDTO adviceDetailResultDTO = new AdviceDetailResultDTO(); AdviceDetailResultDTO adviceDetailResultDTO = new AdviceDetailResultDTO();
BeanUtils.copyProperties(userAdviceEntity, adviceDetailResultDTO); BeanUtils.copyProperties(userAdviceEntity, adviceDetailResultDTO);
adviceDetailResultDTO.setAdviceId(userAdviceEntity.getId()); adviceDetailResultDTO.setAdviceId(userAdviceEntity.getId());
adviceDetailResultDTO.setAdviceTime(userAdviceEntity.getCreatedTime());
//拼接建议类型 //拼接建议类型
if (!"*".equals(userAdviceEntity.getAdviceType())) { if (!"*".equals(userAdviceEntity.getAdviceType())) {
StringBuilder type = new StringBuilder(); StringBuilder type = new StringBuilder();
@ -207,7 +204,7 @@ public class UserAdviceServiceImpl extends BaseServiceImpl<UserAdviceDao, UserAd
* @Date 2020/11/9 10:41 * @Date 2020/11/9 10:41
*/ */
@Override @Override
public PageData<UserAdviceDTO> adviceList(AdviceListFormDTO dto) { public PageData<AdviceListResultDTO> adviceList(AdviceListFormDTO dto) {
//page分页 //page分页
Page<UserAdviceEntity> page = new Page<>(dto.getPageNo(), dto.getPageSize()); Page<UserAdviceEntity> page = new Page<>(dto.getPageNo(), dto.getPageSize());
//时间降序 //时间降序
@ -215,9 +212,48 @@ public class UserAdviceServiceImpl extends BaseServiceImpl<UserAdviceDao, UserAd
//wrapper //wrapper
QueryWrapper<UserAdviceEntity> wrapper = new QueryWrapper<>(); QueryWrapper<UserAdviceEntity> wrapper = new QueryWrapper<>();
//客户Id
wrapper.eq(StringUtils.isNotBlank(dto.getCustomerId()), "CUSTOMER_ID", dto.getCustomerId());
//是否回复
if ("1".equals(dto.getIsReply())) {
wrapper.ne("REPLY_USER_ID", "");
wrapper.ne("REPLY_CONTENT", "");
} else if ("0".equals(dto.getIsReply())) {
wrapper.eq("REPLY_USER_ID", "");
wrapper.eq("REPLY_CONTENT", "");
}
// 组织id
wrapper.eq(StringUtils.isNotBlank(dto.getAgencyId()), "AGENCY_ID", dto.getAgencyId());
//建议类型
wrapper.like(StringUtils.isNotBlank(dto.getAdviceType()), "ADVICE_TYPE", dto.getAdviceType());
//开始时间
wrapper.ge(dto.getStartTime() != null, "CREATED_TIME", dto.getStartTime());
//结束时间
wrapper.le(dto.getEndTime() != null, "CREATED_TIME", dto.getEndTime());
IPage<UserAdviceEntity> result = baseDao.selectPage(page, wrapper); IPage<UserAdviceEntity> result = baseDao.selectPage(page, wrapper);
return null;
List<UserAdviceEntity> records = result.getRecords();
//拼接type
for (int i = 0; i < records.size(); i++) {
if (!"*".equals(records.get(i).getAdviceType())) {
StringBuilder type = new StringBuilder();
if (records.get(i).getAdviceType().contains("gov")) {
type.append(UserAdviceConstant.GOV_TYPE_TEXT);
}
if (records.get(i).getAdviceType().contains("software")) {
if (type.length() != 0) {
type.append("\\n");
}
type.append(UserAdviceConstant.SOFTWARE_TYPE_TEXT);
}
records.get(i).setAdviceType(type.toString());
}
}
result.setRecords(records);
return getPageData(result, AdviceListResultDTO.class);
} }
} }

5
epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/UserBadgeServiceImpl.java

@ -146,7 +146,7 @@ public class UserBadgeServiceImpl implements UserBadgeService {
} }
userBadgeDao.updateCertificateRecordIsLast(form.getBadgeId(),form.getUserId()); userBadgeDao.updateCertificateRecordIsLast(form.getBadgeId(),form.getUserId());
form.setGridId(userBaseInfoResultDTOS.get(NumConstant.ZERO).getRegisteredGridId()); form.setGridId(userBaseInfoResultDTOS.get(NumConstant.ZERO).getRegisteredGridId());
form.setIdNum(certificationAddFormDTO.getIdCard()); form.setIdNum(certificationAddFormDTO.getIdcard());
form.setCertificationImg(certificationAddFormDTO.getCertificationImg()); form.setCertificationImg(certificationAddFormDTO.getCertificationImg());
form.setSurname(certificationAddFormDTO.getSurname()); form.setSurname(certificationAddFormDTO.getSurname());
userBadgeDao.insertUserBadgeCertificateRecord(form); userBadgeDao.insertUserBadgeCertificateRecord(form);
@ -205,6 +205,7 @@ public class UserBadgeServiceImpl implements UserBadgeService {
/** /**
* @Description 个人中心-获取徽章认证页面详情 * @Description 个人中心-获取徽章认证页面详情
* 先判断 userId存在不不存在从tokenDto获取工作端和居民端合用一个接口
* @Param tokenDto * @Param tokenDto
* @Param certificationDetailFormDTO * @Param certificationDetailFormDTO
* @author zxc * @author zxc
@ -212,7 +213,9 @@ public class UserBadgeServiceImpl implements UserBadgeService {
*/ */
@Override @Override
public CertificationDetailResultDTO certificationDetail(TokenDto tokenDto, CertificationDetailFormDTO certificationDetailFormDTO) { public CertificationDetailResultDTO certificationDetail(TokenDto tokenDto, CertificationDetailFormDTO certificationDetailFormDTO) {
if (StringUtils.isEmpty(certificationDetailFormDTO.getUserId())){
certificationDetailFormDTO.setUserId(tokenDto.getUserId()); certificationDetailFormDTO.setUserId(tokenDto.getUserId());
}
return userBadgeDao.selectBadgeAuthRecord(certificationDetailFormDTO.getUserId(), certificationDetailFormDTO.getBadgeId()); return userBadgeDao.selectBadgeAuthRecord(certificationDetailFormDTO.getUserId(), certificationDetailFormDTO.getBadgeId());
} }

2
epmet-user/epmet-user-server/src/main/resources/mapper/BadgeDao.xml

@ -169,6 +169,7 @@
AUDIT_STATUS = 'auditing' AUDIT_STATUS = 'auditing'
AND ubcr.DEL_FLAG = '0' AND ubcr.DEL_FLAG = '0'
AND ubcr.CUSTOMER_ID = #{customerId} AND ubcr.CUSTOMER_ID = #{customerId}
AND ubcr.GRID_ID = #{gridId}
ORDER BY ubcr.CREATED_TIME DESC ORDER BY ubcr.CREATED_TIME DESC
LIMIT #{pageNo}, #{pageSize} LIMIT #{pageNo}, #{pageSize}
</select> </select>
@ -202,6 +203,7 @@
AUDIT_STATUS != 'auditing' AUDIT_STATUS != 'auditing'
AND ubcr.DEL_FLAG = '0' AND ubcr.DEL_FLAG = '0'
AND ubcr.CUSTOMER_ID = #{customerId} AND ubcr.CUSTOMER_ID = #{customerId}
AND ubcr.GRID_ID = #{gridId}
ORDER BY ubcr.CREATED_TIME DESC ORDER BY ubcr.CREATED_TIME DESC
LIMIT #{pageNo}, #{pageSize} LIMIT #{pageNo}, #{pageSize}
</select> </select>

4
epmet-user/epmet-user-server/src/main/resources/mapper/UserBadgeDao.xml

@ -80,7 +80,7 @@
FROM resi_user_badge FROM resi_user_badge
WHERE WHERE
DEL_FLAG = '0' DEL_FLAG = '0'
AND CERTIFICATION_AUTID_STATUS = 'pass' AND CERTIFICATION_AUTID_STATUS = 'approved'
AND USER_ID = #{userId} AND USER_ID = #{userId}
</select> </select>
@ -89,7 +89,7 @@
SELECT SELECT
SURNAME, SURNAME,
NAME, NAME,
ID_NUM AS idCard, ID_NUM AS idcard,
( CASE WHEN AUDIT_STATUS = 'approved' THEN 'yes' ELSE 'no' END ) AS isCertificated, ( CASE WHEN AUDIT_STATUS = 'approved' THEN 'yes' ELSE 'no' END ) AS isCertificated,
MOBILE, MOBILE,
CERTIFICATION_IMG, CERTIFICATION_IMG,

Loading…
Cancel
Save