|
|
@ -31,6 +31,7 @@ import com.epmet.plugin.power.dto.rent.RentTenantInfoDTO; |
|
|
|
import com.epmet.plugin.power.modules.hik.service.HikCommunityInfoService; |
|
|
|
import com.epmet.plugin.power.modules.hik.service.HikDeviceInfoService; |
|
|
|
import com.epmet.plugin.power.modules.hik.service.HikErrorInfoService; |
|
|
|
import com.epmet.plugin.power.modules.hik.utils.HkDeviceUtil; |
|
|
|
import com.epmet.plugin.power.modules.rent.dao.RentContractInfoDao; |
|
|
|
import com.epmet.plugin.power.modules.rent.entity.RentContractFileEntity; |
|
|
|
import com.epmet.plugin.power.modules.rent.entity.RentContractInfoEntity; |
|
|
@ -39,11 +40,11 @@ import com.epmet.plugin.power.modules.rent.redis.RentContractInfoRedis; |
|
|
|
import com.epmet.plugin.power.modules.rent.service.RentContractFileService; |
|
|
|
import com.epmet.plugin.power.modules.rent.service.RentContractInfoService; |
|
|
|
import com.epmet.plugin.power.modules.rent.service.RentTenantInfoService; |
|
|
|
import com.epmet.plugin.power.modules.hik.utils.HkDeviceUtil; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
import org.springframework.util.CollectionUtils; |
|
|
|
|
|
|
|
import java.util.*; |
|
|
|
import java.util.stream.Collectors; |
|
|
@ -301,17 +302,21 @@ public class RentContractInfoServiceImpl extends BaseServiceImpl<RentContractInf |
|
|
|
|
|
|
|
// 初始化居民信息
|
|
|
|
IcResiUserDTO user = new IcResiUserDTO(); |
|
|
|
user.setName(tenant.getName()); // 姓名
|
|
|
|
user.setMobile(tenant.getMobile()); // 手机
|
|
|
|
user.setIdCard(tenant.getIdCard()); // 证件号
|
|
|
|
user.setUnitId(contractDto.getUnitId()); // 工作单位
|
|
|
|
// 补充字段
|
|
|
|
user.setYhzgx(tenant.getYfzgx()); // 与房主关系
|
|
|
|
user.setIsParty(tenant.getPoliticalStatus()); // 政治面貌
|
|
|
|
user.setIsVeterans(tenant.getIsMilitary()); // 是否服过兵役
|
|
|
|
|
|
|
|
user.setCustomerId(loginUserUtil.getLoginUserCustomerId()); |
|
|
|
user.setGridId(contractDto.getGridId()); |
|
|
|
user.setVillageId(contractDto.getVillageId()); |
|
|
|
user.setBuildId(contractDto.getBuildId()); |
|
|
|
user.setUnitId(contractDto.getUnitId()); |
|
|
|
user.setHomeId(contractDto.getHomeId()); |
|
|
|
user.setName(tenant.getName()); |
|
|
|
user.setIdCard(tenant.getIdCard()); |
|
|
|
user.setMobile(tenant.getMobile()); |
|
|
|
user.setGender(IdCardNoValidatorUtils.getGender(tenant.getIdCard())); |
|
|
|
|
|
|
|
user.setAgencyId(contractDto.getCommunityId()); |
|
|
|
Result<CustomerAgencyDTO> agencyInfo = govOrgOpenFeignClient.getAgencyById(contractDto.getCommunityId()); |
|
|
|
user.setPids(agencyInfo.getData().getPids()); |
|
|
@ -340,6 +345,9 @@ public class RentContractInfoServiceImpl extends BaseServiceImpl<RentContractInf |
|
|
|
Map<String, Object> delParams = new HashMap<>(); |
|
|
|
delParams.put("idCard", item.getIdCard()); |
|
|
|
hikErrorInfoService.deletePhysical(delParams); |
|
|
|
if (CollectionUtils.isEmpty(item.getImgList())) { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
HikPersonFormDTO person = new HikPersonFormDTO(); |
|
|
|
person.setFaceUrl(item.getImgList().get(0).getFileUrl()); |
|
|
|