|
|
@ -170,6 +170,15 @@ public class RentTenantInfoServiceImpl extends BaseServiceImpl<RentTenantInfoDao |
|
|
|
|
|
|
|
// 如果是房东信息通过了审核,立马去更新照片
|
|
|
|
if (NumConstant.ZERO_STR.equals(dto.getType()) && NumConstant.ONE_STR.equals(dto.getState())) { |
|
|
|
List<RentContractFileEntity> imgList = ConvertUtils.sourceToTarget(dto.getImgList(), RentContractFileEntity.class); |
|
|
|
imgList.forEach(img -> { |
|
|
|
// 更新基础库的人员头像
|
|
|
|
IcResiUserAttachmentDTO image = new IcResiUserAttachmentDTO(); |
|
|
|
image.setAttachmentUrl(img.getFileUrl()); |
|
|
|
image.setCustomerId(loginUserUtil.getLoginUserCustomerId()); |
|
|
|
images.add(image); |
|
|
|
}); |
|
|
|
|
|
|
|
RentTenantFormDTO formDTO = new RentTenantFormDTO(); |
|
|
|
formDTO.setCustomerId(loginUserUtil.getLoginUserCustomerId()); |
|
|
|
formDTO.setIdCard(dto.getIdCard()); |
|
|
|