Browse Source

Merge remote-tracking branch 'remotes/origin/dev' into 市北生产

# Conflicts:
#	epmet-admin/epmet-admin-server/pom.xml
#	epmet-gateway/pom.xml
#	epmet-module/data-aggregator/data-aggregator-server/deploy/docker-compose-prod.yml
#	epmet-module/data-aggregator/data-aggregator-server/pom.xml
#	epmet-module/data-report/data-report-server/deploy/docker-compose-prod.yml
#	epmet-module/data-statistical/data-statistical-server/pom.xml
#	epmet-module/epmet-common-service/common-service-server/pom.xml
#	epmet-module/epmet-heart/epmet-heart-server/deploy/docker-compose-prod.yml
#	epmet-module/epmet-heart/epmet-heart-server/pom.xml
#	epmet-module/epmet-job/epmet-job-server/pom.xml
#	epmet-module/epmet-oss/epmet-oss-server/pom.xml
#	epmet-module/epmet-third/epmet-third-server/pom.xml
#	epmet-module/gov-access/gov-access-server/pom.xml
#	epmet-module/gov-org/gov-org-server/deploy/docker-compose-prod.yml
#	epmet-module/gov-org/gov-org-server/pom.xml
#	epmet-module/gov-project/gov-project-server/pom.xml
#	epmet-module/oper-crm/oper-crm-server/deploy/docker-compose-prod.yml
#	epmet-module/oper-customize/oper-customize-server/pom.xml
#	epmet-module/resi-group/resi-group-server/pom.xml
#	epmet-module/resi-home/resi-home-server/pom.xml
#	epmet-module/resi-partymember/resi-partymember-server/pom.xml
#	epmet-openapi/epmet-openapi-scan/pom.xml
#	epmet-user/epmet-user-server/pom.xml
feature/teamB_zz_wgh
jianjun 3 years ago
parent
commit
d05eb5cc48
  1. 2
      epmet-module/data-report/data-report-server/pom.xml
  2. 2
      epmet-module/epmet-message/epmet-message-server/pom.xml
  3. 2
      epmet-module/epmet-point/epmet-point-server/pom.xml
  4. 2
      epmet-module/gov-grid/gov-grid-server/pom.xml
  5. 2
      epmet-module/gov-issue/gov-issue-server/pom.xml
  6. 2
      epmet-module/gov-mine/gov-mine-server/pom.xml
  7. 2
      epmet-module/gov-voice/gov-voice-server/pom.xml
  8. 2
      epmet-module/open-data-worker/open-data-worker-server/pom.xml
  9. 2
      epmet-module/oper-access/oper-access-server/pom.xml
  10. 2
      epmet-module/oper-crm/oper-crm-server/pom.xml
  11. 2
      epmet-module/resi-guide/resi-guide-server/pom.xml
  12. 2
      epmet-module/resi-hall/resi-hall-server/pom.xml
  13. 2
      epmet-module/resi-mine/resi-mine-server/pom.xml
  14. 2
      epmet-module/resi-voice/resi-voice-server/pom.xml
  15. 9
      epmet-user/epmet-user-client/src/main/java/com/epmet/feign/fallback/EpmetUserOpenFeignClientFallback.java
  16. 6
      epmet-user/epmet-user-server/src/main/java/com/epmet/controller/IcResiUserController.java
  17. 14
      epmet-user/epmet-user-server/src/main/java/com/epmet/service/IcResiUserService.java
  18. 70
      epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcResiUserServiceImpl.java

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

@ -3,7 +3,7 @@
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.211</version> <version>0.3.214</version>
<artifactId>data-report-server</artifactId> <artifactId>data-report-server</artifactId>
<parent> <parent>

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.57</version> <version>0.3.58</version>
<parent> <parent>
<groupId>com.epmet</groupId> <groupId>com.epmet</groupId>
<artifactId>epmet-message</artifactId> <artifactId>epmet-message</artifactId>

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

@ -3,7 +3,7 @@
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">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<version>0.0.63</version> <version>0.0.64</version>
<parent> <parent>
<artifactId>epmet-point</artifactId> <artifactId>epmet-point</artifactId>
<groupId>com.epmet</groupId> <groupId>com.epmet</groupId>

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

@ -3,7 +3,7 @@
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">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<version>0.3.49</version> <version>0.3.50</version>
<parent> <parent>
<groupId>com.epmet</groupId> <groupId>com.epmet</groupId>
<artifactId>gov-grid</artifactId> <artifactId>gov-grid</artifactId>

2
epmet-module/gov-issue/gov-issue-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.100</version> <version>0.3.104</version>
<parent> <parent>
<artifactId>gov-issue</artifactId> <artifactId>gov-issue</artifactId>
<groupId>com.epmet</groupId> <groupId>com.epmet</groupId>

2
epmet-module/gov-mine/gov-mine-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.47</version> <version>0.3.48</version>
<parent> <parent>
<groupId>com.epmet</groupId> <groupId>com.epmet</groupId>
<artifactId>gov-mine</artifactId> <artifactId>gov-mine</artifactId>

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

@ -3,7 +3,7 @@
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">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<version>0.3.78</version> <version>0.3.79</version>
<parent> <parent>
<artifactId>gov-voice</artifactId> <artifactId>gov-voice</artifactId>
<groupId>com.epmet</groupId> <groupId>com.epmet</groupId>

2
epmet-module/open-data-worker/open-data-worker-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.22</version> <version>0.3.31</version>
<parent> <parent>
<artifactId>open-data-worker</artifactId> <artifactId>open-data-worker</artifactId>
<groupId>com.epmet</groupId> <groupId>com.epmet</groupId>

2
epmet-module/oper-access/oper-access-server/pom.xml

@ -3,7 +3,7 @@
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.24</version> <version>0.3.25</version>
<parent> <parent>
<artifactId>oper-access</artifactId> <artifactId>oper-access</artifactId>
<groupId>com.epmet</groupId> <groupId>com.epmet</groupId>

2
epmet-module/oper-crm/oper-crm-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.88</version> <version>0.3.89</version>
<parent> <parent>
<groupId>com.epmet</groupId> <groupId>com.epmet</groupId>
<artifactId>oper-crm</artifactId> <artifactId>oper-crm</artifactId>

2
epmet-module/resi-guide/resi-guide-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.34</version> <version>0.3.35</version>
<parent> <parent>
<groupId>com.epmet</groupId> <groupId>com.epmet</groupId>
<artifactId>resi-guide</artifactId> <artifactId>resi-guide</artifactId>

2
epmet-module/resi-hall/resi-hall-server/pom.xml

@ -3,7 +3,7 @@
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">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<version>0.3.36</version> <version>0.3.39</version>
<parent> <parent>
<artifactId>resi-hall</artifactId> <artifactId>resi-hall</artifactId>
<groupId>com.epmet</groupId> <groupId>com.epmet</groupId>

2
epmet-module/resi-mine/resi-mine-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.54</version> <version>0.3.55</version>
<parent> <parent>
<groupId>com.epmet</groupId> <groupId>com.epmet</groupId>
<artifactId>resi-mine</artifactId> <artifactId>resi-mine</artifactId>

2
epmet-module/resi-voice/resi-voice-server/pom.xml

@ -3,7 +3,7 @@
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">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<version>0.3.12</version> <version>0.3.13</version>
<parent> <parent>
<artifactId>resi-voice</artifactId> <artifactId>resi-voice</artifactId>
<groupId>com.epmet</groupId> <groupId>com.epmet</groupId>

9
epmet-user/epmet-user-client/src/main/java/com/epmet/feign/fallback/EpmetUserOpenFeignClientFallback.java

@ -529,17 +529,18 @@ public class EpmetUserOpenFeignClientFallback implements EpmetUserOpenFeignClien
} }
@Override @Override
public Result rentUpdate(@RequestBody RentTenantFormDTO formDTO) { public Result updateImage(@RequestBody RentTenantFormDTO formDTO) {
return ModuleUtils.feignConError(ServiceConstant.EPMET_USER_SERVER, "rentUpdate", formDTO); return ModuleUtils.feignConError(ServiceConstant.EPMET_USER_SERVER, "updateImage", formDTO);
} }
@Override @Override
public Result<RentTenantDataResultDTO> tenantData(@RequestBody RentTenantDataFormDTO formDTO) { public Result<RentTenantDataResultDTO> getRentResiUserInfo(@RequestBody RentTenantDataFormDTO formDTO) {
return ModuleUtils.feignConError(ServiceConstant.EPMET_USER_SERVER, "tenantData", formDTO); return ModuleUtils.feignConError(ServiceConstant.EPMET_USER_SERVER, "getRentResiUserInfo", formDTO);
} }
@Override @Override
public Result<List<UserChartResultDTO>> userChartList(UserChartFormDTO userDTO) { public Result<List<UserChartResultDTO>> userChartList(UserChartFormDTO userDTO) {
return ModuleUtils.feignConError(ServiceConstant.EPMET_USER_SERVER, "userChartList", userDTO); return ModuleUtils.feignConError(ServiceConstant.EPMET_USER_SERVER, "userChartList", userDTO);
} }
} }

6
epmet-user/epmet-user-server/src/main/java/com/epmet/controller/IcResiUserController.java

@ -241,8 +241,8 @@ public class IcResiUserController implements ResultDataResolver {
* @date 2022/4/26 10:48 * @date 2022/4/26 10:48
*/ */
@PostMapping("rent/updateimage") @PostMapping("rent/updateimage")
public Result updateImage(@RequestBody RentTenantFormDTO formDTO) { public Result updateImage(@LoginUser TokenDto tokenDto, @RequestBody RentTenantFormDTO formDTO) {
String resiUserId = icResiUserService.updateImage(formDTO); String resiUserId = icResiUserService.updateImage(tokenDto, formDTO);
//推送MQ事件 //推送MQ事件
editResiMq(formDTO.getCustomerId(), resiUserId); editResiMq(formDTO.getCustomerId(), resiUserId);
return new Result(); return new Result();
@ -599,7 +599,7 @@ public class IcResiUserController implements ResultDataResolver {
/** /**
* @param formDTO * @param formDTO
* @Description 查询个人数据 1 * @Description 查询个人数据
* @author zxc * @author zxc
* @date 2021/11/3 9:21 上午 * @date 2021/11/3 9:21 上午
*/ */

14
epmet-user/epmet-user-server/src/main/java/com/epmet/service/IcResiUserService.java

@ -88,8 +88,8 @@ public interface IcResiUserService extends BaseService<IcResiUserEntity> {
String staffOrgPath); String staffOrgPath);
/** /**
* @Description 查询个人数据
* @param formDTO * @param formDTO
* @Description 查询个人数据
* @author zxc * @author zxc
* @date 2021/11/3 9:21 上午 * @date 2021/11/3 9:21 上午
*/ */
@ -111,7 +111,6 @@ public interface IcResiUserService extends BaseService<IcResiUserEntity> {
*/ */
PageData<SearchByNameResultDTO> searchByName(SearchByNameFormDTO formDTO); PageData<SearchByNameResultDTO> searchByName(SearchByNameFormDTO formDTO);
/** /**
* desc:条件导出 * desc:条件导出
* *
@ -327,4 +326,15 @@ public interface IcResiUserService extends BaseService<IcResiUserEntity> {
* @date 2022/4/26 10:48 * @date 2022/4/26 10:48
*/ */
String updateImage(RentTenantFormDTO formDTO); String updateImage(RentTenantFormDTO formDTO);
/**
* 租客房东根据身份证更新头像
*
* @param formDTO
* @return com.epmet.commons.tools.utils.Result
* @author zhy
* @date 2022/4/26 10:48
*/
String updateImage(TokenDto tokenDto, RentTenantFormDTO formDTO);
} }

70
epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcResiUserServiceImpl.java

@ -181,6 +181,7 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi
} }
}); });
}); });
if (str.length() > NumConstant.ZERO ) { if (str.length() > NumConstant.ZERO ) {
String errorMsg = String.format("新增居民信息,必要字段值为空,%s值为空", str); String errorMsg = String.format("新增居民信息,必要字段值为空,%s值为空", str);
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), errorMsg, errorMsg); throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), errorMsg, errorMsg);
@ -258,14 +259,33 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi
}); });
//3.变更记录表和变更记录明细表新增数据 //3.变更记录表和变更记录明细表新增数据
saveUserChangeRecord(tokenDto,map,resiUserId,name);
return resiUserId;
}
/**
* 3.变更记录表和变更记录明细表新增数据
*
* @param tokenDto
* @param map
* @param icUserId
* @param icUserName
* @return void
* @author zhy
* @date 2022/4/29 14:49
*/
private void saveUserChangeRecord(TokenDto tokenDto, LinkedHashMap<String, String> map, String icUserId, String icUserName) {
//变更记录表和变更记录明细表新增数据
CustomerStaffInfoCacheResult staffInfoCache = CustomerStaffRedis.getStaffInfo(tokenDto.getCustomerId(), tokenDto.getUserId()); CustomerStaffInfoCacheResult staffInfoCache = CustomerStaffRedis.getStaffInfo(tokenDto.getCustomerId(), tokenDto.getUserId());
//3-1.变更记录表 //3-1.变更记录表
IcUserChangeRecordEntity changeRecordEntity = new IcUserChangeRecordEntity(); IcUserChangeRecordEntity changeRecordEntity = new IcUserChangeRecordEntity();
changeRecordEntity.setCustomerId(tokenDto.getCustomerId()); changeRecordEntity.setCustomerId(tokenDto.getCustomerId());
changeRecordEntity.setOperatorId(tokenDto.getUserId()); changeRecordEntity.setOperatorId(tokenDto.getUserId());
changeRecordEntity.setIcUserId(resiUserId); changeRecordEntity.setIcUserId(icUserId);
changeRecordEntity.setOperatorName(staffInfoCache.getRealName()); changeRecordEntity.setOperatorName(staffInfoCache.getRealName());
changeRecordEntity.setIcUserName(name); changeRecordEntity.setIcUserName(icUserName);
changeRecordEntity.setType("add"); changeRecordEntity.setType("add");
changeRecordEntity.setTypeName("新增"); changeRecordEntity.setTypeName("新增");
changeRecordEntity.setBeforeChangeName("-"); changeRecordEntity.setBeforeChangeName("-");
@ -273,11 +293,8 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi
changeRecordEntity.setChangeTime(new java.util.Date()); changeRecordEntity.setChangeTime(new java.util.Date());
icUserChangeRecordService.insert(changeRecordEntity); icUserChangeRecordService.insert(changeRecordEntity);
//3-2.变更明细表 //3-2.变更明细表
List<IcUserChangeDetailedEntity> changeDetailedEntityList = saveChangeRecord(tokenDto, map, resiUserId, changeRecordEntity.getId()); List<IcUserChangeDetailedEntity> changeDetailedEntityList = saveChangeRecord(tokenDto, map, icUserId, changeRecordEntity.getId());
icUserChangeDetailedService.insertBatch(changeDetailedEntityList); icUserChangeDetailedService.insertBatch(changeDetailedEntityList);
return resiUserId;
} }
/** /**
@ -798,7 +815,6 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi
map.put("groupByTables", new ArrayList<>(groupByTables)); map.put("groupByTables", new ArrayList<>(groupByTables));
return map; return map;
} }
/** /**
* @param formDTO * @param formDTO
* @Description 查询个人数据 * @Description 查询个人数据
@ -886,9 +902,9 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi
} }
return personData; return personData;
} }
/** /**
* @param formDTO * @param formDTO
* @Description 根据名字搜索
* @author zxc * @author zxc
* @date 2021/11/3 1:42 下午 * @date 2021/11/3 1:42 下午
*/ */
@ -896,7 +912,7 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi
public PageData<SearchByNameResultDTO> searchByName(SearchByNameFormDTO formDTO) { public PageData<SearchByNameResultDTO> searchByName(SearchByNameFormDTO formDTO) {
// 查询工作人员所属组织 // 查询工作人员所属组织
CustomerStaffInfoCacheResult staffInfo = CustomerStaffRedis.getStaffInfo(formDTO.getCustomerId(), formDTO.getUserId()); CustomerStaffInfoCacheResult staffInfo = CustomerStaffRedis.getStaffInfo(formDTO.getCustomerId(), formDTO.getUserId());
if (null == staffInfo){ if (null == staffInfo) {
throw new RenException("未查询到当前工作人员所属组织"); throw new RenException("未查询到当前工作人员所属组织");
} }
Integer no = (formDTO.getPageNo() - NumConstant.ONE) * formDTO.getPageSize(); Integer no = (formDTO.getPageNo() - NumConstant.ONE) * formDTO.getPageSize();
@ -1726,7 +1742,7 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi
IcResiUserEntity::getIdCard, IcResiUserEntity::getIdCard,
IcResiUserEntity::getBirthday IcResiUserEntity::getBirthday
) )
.orderByAsc(IcResiUserEntity::getYhzgx); .orderByAsc(IcResiUserEntity::getYhzgx, IcResiUserEntity::getCreatedTime, IcResiUserEntity::getId);
List<IcResiUserEntity> homeUserList = baseDao.selectList(lqw); List<IcResiUserEntity> homeUserList = baseDao.selectList(lqw);
if (CollUtil.isEmpty(homeUserList)) { if (CollUtil.isEmpty(homeUserList)) {
@ -1747,6 +1763,33 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi
return baseDao.dynamicQuery(customerId, resultTableName, conditions, map.get("finalSubTables"), showSqlColumns, currentStaffAgencyId, staffOrgPath, map.get("groupByTables")); return baseDao.dynamicQuery(customerId, resultTableName, conditions, map.get("finalSubTables"), showSqlColumns, currentStaffAgencyId, staffOrgPath, map.get("groupByTables"));
} }
@Override
@Transactional(rollbackFor = Exception.class)
public String updateImage(RentTenantFormDTO formDTO) {
String resiUserId = "";
IcResiUserDTO userDTO = baseDao.getResiUserByIdCard(formDTO.getIdCard(), formDTO.getCustomerId());
if (null != userDTO) {
resiUserId = userDTO.getId();
// 插入附件头像(只有一张)
List<IcResiUserAttachmentDTO> images = formDTO.getImages();
images.forEach(item -> item.setUserId(userDTO.getId()));
images.forEach(item-> icResiUserAttachmentService.save(item));
} else if (NumConstant.ONE_STR.equals(formDTO.getType())) {
// 如果是新增的租客,需要新增一条信息,不存在的房东就不管了
IcResiUserEntity entity = ConvertUtils.sourceToTarget(formDTO.getUser(), IcResiUserEntity.class);
insert(entity);
resiUserId = entity.getId();
// 新增用户后保存头像信息
List<IcResiUserAttachmentDTO> images = formDTO.getImages();
images.forEach(item -> item.setUserId(entity.getId()));
images.forEach(item -> icResiUserAttachmentService.save(item));
}
return resiUserId;
}
@Override @Override
public RentTenantDataResultDTO getRentResiUserInfo(RentTenantDataFormDTO formDTO) { public RentTenantDataResultDTO getRentResiUserInfo(RentTenantDataFormDTO formDTO) {
IcResiUserEntity entity = baseDao.selectById(formDTO.getUserId()); IcResiUserEntity entity = baseDao.selectById(formDTO.getUserId());
@ -1763,7 +1806,7 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi
@Override @Override
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public String updateImage(RentTenantFormDTO formDTO) { public String updateImage(TokenDto tokenDto, RentTenantFormDTO formDTO) {
String resiUserId = ""; String resiUserId = "";
IcResiUserDTO userDTO = baseDao.getResiUserByIdCard(formDTO.getIdCard(), formDTO.getCustomerId()); IcResiUserDTO userDTO = baseDao.getResiUserByIdCard(formDTO.getIdCard(), formDTO.getCustomerId());
if (null != userDTO) { if (null != userDTO) {
@ -1777,7 +1820,10 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi
IcResiUserEntity entity = ConvertUtils.sourceToTarget(formDTO.getUser(), IcResiUserEntity.class); IcResiUserEntity entity = ConvertUtils.sourceToTarget(formDTO.getUser(), IcResiUserEntity.class);
insert(entity); insert(entity);
resiUserId = entity.getId(); resiUserId = entity.getId();
// 变更记录表和变更记录明细表新增数据
LinkedHashMap<String, String> map = new LinkedHashMap();
map.put("AGENCY_ID",entity.getAgencyId());
saveUserChangeRecord(tokenDto,map,resiUserId,entity.getName());
// 新增用户后保存头像信息 // 新增用户后保存头像信息
List<IcResiUserAttachmentDTO> images = formDTO.getImages(); List<IcResiUserAttachmentDTO> images = formDTO.getImages();
images.forEach(item -> item.setUserId(entity.getId())); images.forEach(item -> item.setUserId(entity.getId()));

Loading…
Cancel
Save