|
@ -175,6 +175,7 @@ public class RentContractInfoServiceImpl extends BaseServiceImpl<RentContractInf |
|
|
// 取出合同文件信息
|
|
|
// 取出合同文件信息
|
|
|
dto.setFileList(rentContractFileService.listByRefAndType(dto.getId(), NumConstant.ONE_STR)); |
|
|
dto.setFileList(rentContractFileService.listByRefAndType(dto.getId(), NumConstant.ONE_STR)); |
|
|
dto.setAgencyImgList(rentContractFileService.listByRefAndType(dto.getId(), NumConstant.THREE_STR)); |
|
|
dto.setAgencyImgList(rentContractFileService.listByRefAndType(dto.getId(), NumConstant.THREE_STR)); |
|
|
|
|
|
dto.setDocList(rentContractFileService.listByRefAndType(dto.getId(), NumConstant.FOUR_STR)); |
|
|
|
|
|
|
|
|
return dto; |
|
|
return dto; |
|
|
} |
|
|
} |
|
@ -390,7 +391,7 @@ public class RentContractInfoServiceImpl extends BaseServiceImpl<RentContractInf |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
// 附件处理
|
|
|
// 图片附件处理
|
|
|
if (null == dto.getFileList() || dto.getFileList().isEmpty()) { |
|
|
if (null == dto.getFileList() || dto.getFileList().isEmpty()) { |
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "合同附件不能为空"); |
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "合同附件不能为空"); |
|
|
} else { |
|
|
} else { |
|
@ -403,6 +404,17 @@ public class RentContractInfoServiceImpl extends BaseServiceImpl<RentContractInf |
|
|
rentContractFileService.insertBatch(fileList); |
|
|
rentContractFileService.insertBatch(fileList); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 文件附件处理
|
|
|
|
|
|
if (null != dto.getDocList() && dto.getDocList().size() > 0) { |
|
|
|
|
|
List<RentContractFileEntity> fileList = ConvertUtils.sourceToTarget(dto.getDocList(), RentContractFileEntity.class); |
|
|
|
|
|
fileList.forEach(item -> { |
|
|
|
|
|
item.setReferenceId(contractId); |
|
|
|
|
|
item.setFileType(NumConstant.FOUR_STR); |
|
|
|
|
|
item.setCustomerId(loginUserUtil.getLoginUserCustomerId()); |
|
|
|
|
|
}); |
|
|
|
|
|
rentContractFileService.insertBatch(fileList); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// 中介资料处理
|
|
|
// 中介资料处理
|
|
|
if (null != dto.getAgencyImgList() && dto.getAgencyImgList().size() > 0) { |
|
|
if (null != dto.getAgencyImgList() && dto.getAgencyImgList().size() > 0) { |
|
|
List<RentContractFileEntity> fileList = ConvertUtils.sourceToTarget(dto.getAgencyImgList(), RentContractFileEntity.class); |
|
|
List<RentContractFileEntity> fileList = ConvertUtils.sourceToTarget(dto.getAgencyImgList(), RentContractFileEntity.class); |
|
@ -413,6 +425,7 @@ public class RentContractInfoServiceImpl extends BaseServiceImpl<RentContractInf |
|
|
}); |
|
|
}); |
|
|
rentContractFileService.insertBatch(fileList); |
|
|
rentContractFileService.insertBatch(fileList); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|