|
|
@ -176,12 +176,11 @@ public class RentContractInfoServiceImpl extends BaseServiceImpl<RentContractInf |
|
|
|
List<IcResiUserAttachmentDTO> images = new ArrayList<>(); |
|
|
|
formDTO.setCustomerId(loginUserUtil.getLoginUserCustomerId()); |
|
|
|
formDTO.setIdCard(tenant.getIdCard()); |
|
|
|
formDTO.setImages(images); |
|
|
|
formDTO.setType(NumConstant.ONE_STR); |
|
|
|
|
|
|
|
Map<String, Object> imgParams = new HashMap<>(4); |
|
|
|
tenantParams.put("referenceId", tenant.getId()); |
|
|
|
tenantParams.put("fileType", NumConstant.ZERO_STR); |
|
|
|
imgParams.put("referenceId", tenant.getId()); |
|
|
|
imgParams.put("fileType", NumConstant.ZERO_STR); |
|
|
|
List<RentContractFileDTO> imgList = rentContractFileService.list(imgParams); |
|
|
|
|
|
|
|
imgList.forEach(img -> { |
|
|
@ -262,7 +261,7 @@ public class RentContractInfoServiceImpl extends BaseServiceImpl<RentContractInf |
|
|
|
}); |
|
|
|
rentTenantInfoService.insertBatch(tenantList); |
|
|
|
// 处理租客头像
|
|
|
|
dto.getTenantList().forEach(tenant -> { |
|
|
|
tenantList.forEach(tenant -> { |
|
|
|
if (null == tenant.getImgList() || tenant.getImgList().isEmpty()) { |
|
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "租客照片不能为空"); |
|
|
|
} else { |
|
|
|