|
|
@ -460,7 +460,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
public ResultBean<LoanHomeVisitInvestigateInitCustomerVo> getHomeVisitCustomerInfo(String sid) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
LoanHomeVisitInvestigateInitCustomerVo loanHomeVisitInvestigateInitCustomerVo = baseMapper.getHomeVisitCustomerInfo(sid); |
|
|
|
if (loanHomeVisitInvestigateInitCustomerVo == null){ |
|
|
|
if (loanHomeVisitInvestigateInitCustomerVo == null) { |
|
|
|
loanHomeVisitInvestigateInitCustomerVo = new LoanHomeVisitInvestigateInitCustomerVo(); |
|
|
|
LoanHomevisitInvestigate loanHomevisitInvestigate = fetchBySid(sid); |
|
|
|
BusSalesOrderBorrowerDetailsVo busSalesOrderBorrowerDetailsVo = busSalesOrderBorrowerFeign.fetchDetailsBySid(loanHomevisitInvestigate.getSaleOrderBorrowerSid()).getData(); |
|
|
@ -489,7 +489,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
LoanHomevisitInvestigateCustomerDto loanHomevisitInvestigateCustomerDto = new LoanHomevisitInvestigateCustomerDto(); |
|
|
|
List<LoanHomeVisitInvestigateSaveOtherPeoDto> otherPersonnel = dto.getOtherPersonnel(); |
|
|
|
BeanUtil.copyProperties(dto,loanHomevisitInvestigateCustomerDto); |
|
|
|
BeanUtil.copyProperties(dto, loanHomevisitInvestigateCustomerDto); |
|
|
|
loanHomevisitInvestigateCustomerDto.setIsConfirmRealBuyer(dto.getActualBuyer()); |
|
|
|
loanHomevisitInvestigateCustomerDto.setBorrowerSid(dto.getLenderSid()); |
|
|
|
loanHomevisitInvestigateCustomerDto.setBorrowerName(dto.getLenderNam()); |
|
|
@ -505,7 +505,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
loanHomevisitInvestigateCustomerDto.setBorrowerPreAddress(dto.getAddress()); |
|
|
|
loanHomevisitInvestigateCustomerDto.setBankCardNo(dto.getBankNumber()); |
|
|
|
loanHomevisitInvestigateCustomerDto.setDepositBank(dto.getInvoBank()); |
|
|
|
if (!"0004".equals(dto.getMarriageTypeKey())){ |
|
|
|
if (!"0004".equals(dto.getMarriageTypeKey())) { |
|
|
|
loanHomevisitInvestigateCustomerDto.setSpouseName(""); |
|
|
|
loanHomevisitInvestigateCustomerDto.setSpouseMobile(""); |
|
|
|
loanHomevisitInvestigateCustomerDto.setSpouseIdNumber(""); |
|
|
@ -513,7 +513,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
loanHomevisitInvestigateCustomerDto.setSpouseCareerValue(""); |
|
|
|
loanHomevisitInvestigateCustomerDto.setSpouseDomAddress(""); |
|
|
|
loanHomevisitInvestigateCustomerDto.setSpousePreAddress(""); |
|
|
|
}else { |
|
|
|
} else { |
|
|
|
loanHomevisitInvestigateCustomerDto.setSpouseIdNumber(dto.getSpouseIdCard()); |
|
|
|
loanHomevisitInvestigateCustomerDto.setSpouseCareerKey(dto.getSpouseJobKey()); |
|
|
|
loanHomevisitInvestigateCustomerDto.setSpouseCareerValue(dto.getSpouseJob()); |
|
|
@ -528,7 +528,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
loanHomevisitInvestigateOtherpeoService.delByMainSid(dto.getMainSid()); |
|
|
|
for (LoanHomeVisitInvestigateSaveOtherPeoDto loanHomeVisitInvestigateSaveOtherPeoDto : otherPersonnel) { |
|
|
|
LoanHomevisitInvestigateOtherpeoDto loanHomevisitInvestigateOtherpeoDto = new LoanHomevisitInvestigateOtherpeoDto(); |
|
|
|
BeanUtil.copyProperties(loanHomeVisitInvestigateSaveOtherPeoDto,loanHomevisitInvestigateOtherpeoDto); |
|
|
|
BeanUtil.copyProperties(loanHomeVisitInvestigateSaveOtherPeoDto, loanHomevisitInvestigateOtherpeoDto); |
|
|
|
loanHomevisitInvestigateOtherpeoDto.setPeoTypeKey(loanHomeVisitInvestigateSaveOtherPeoDto.getPersonnelKey()); |
|
|
|
loanHomevisitInvestigateOtherpeoDto.setPeoType(loanHomeVisitInvestigateSaveOtherPeoDto.getPersonnelType()); |
|
|
|
loanHomevisitInvestigateOtherpeoDto.setPeoName(loanHomeVisitInvestigateSaveOtherPeoDto.getName()); |
|
|
@ -546,7 +546,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
public ResultBean<LoanHomeVisitInvestigateInitOrderVo> getHomeVisitOrderInfo(String sid) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
LoanHomeVisitInvestigateInitOrderVo loanHomeVisitInvestigateInitOrderVos = loanHomevisitInvestigateOrderService.getHomeVisitOrderInfo(sid); |
|
|
|
if (loanHomeVisitInvestigateInitOrderVos == null){ |
|
|
|
if (loanHomeVisitInvestigateInitOrderVos == null) { |
|
|
|
loanHomeVisitInvestigateInitOrderVos = new LoanHomeVisitInvestigateInitOrderVo(); |
|
|
|
loanHomeVisitInvestigateInitOrderVos.setMainSid(sid); |
|
|
|
} |
|
|
@ -556,7 +556,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
public ResultBean saveHomeVisitOrderInfo(LoanHomeVisitInvestigateSaveOrderDto dto) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
LoanHomevisitInvestigateOrderDto loanHomevisitInvestigateOrderDto = new LoanHomevisitInvestigateOrderDto(); |
|
|
|
BeanUtil.copyProperties(dto,loanHomevisitInvestigateOrderDto); |
|
|
|
BeanUtil.copyProperties(dto, loanHomevisitInvestigateOrderDto); |
|
|
|
loanHomevisitInvestigateOrderDto.setCarConfirm(dto.getCarInfoKey()); |
|
|
|
loanHomevisitInvestigateOrderDto.setCarRemarks(dto.getCarInfoRemarks()); |
|
|
|
loanHomevisitInvestigateOrderDto.setFinConfirm(dto.getFinanceKey()); |
|
|
@ -568,7 +568,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
public ResultBean<LoanHomeVisitInvestigateInitOperVo> getHomeVisitOperationInfo(String sid) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
LoanHomeVisitInvestigateInitOperVo loanHomeVisitInvestigateInitOperVo = loanHomevisitInvestigateOperationsService.getHomeVisitOperationInfo(sid); |
|
|
|
if (loanHomeVisitInvestigateInitOperVo == null){ |
|
|
|
if (loanHomeVisitInvestigateInitOperVo == null) { |
|
|
|
loanHomeVisitInvestigateInitOperVo = new LoanHomeVisitInvestigateInitOperVo(); |
|
|
|
loanHomeVisitInvestigateInitOperVo.setMainSid(sid); |
|
|
|
} |
|
|
@ -578,7 +578,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
public ResultBean saveHomeVisitOperationInfo(LoanHomeVisitInvestigateSaveOperDto dto) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
LoanHomevisitInvestigateOperationsDto loanHomevisitInvestigateOperationsDto = new LoanHomevisitInvestigateOperationsDto(); |
|
|
|
BeanUtil.copyProperties(dto,loanHomevisitInvestigateOperationsDto); |
|
|
|
BeanUtil.copyProperties(dto, loanHomevisitInvestigateOperationsDto); |
|
|
|
loanHomevisitInvestigateOperationsDto.setIndustryYears(dto.getNumYears()); |
|
|
|
loanHomevisitInvestigateOperationsDto.setDriveProTypeKey(dto.getDriveKey()); |
|
|
|
loanHomevisitInvestigateOperationsDto.setDriveProTypeValue(dto.getDriveType()); |
|
|
@ -591,7 +591,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
public ResultBean<LoanHomeVisitInvestigateInitTranVo> getHomeVisitTransportInfo(String sid) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
LoanHomeVisitInvestigateInitTranVo loanHomeVisitInvestigateInitTranVo = loanHomevisitInvestigateTransportService.getHomeVisitTransportInfo(sid); |
|
|
|
if (loanHomeVisitInvestigateInitTranVo == null){ |
|
|
|
if (loanHomeVisitInvestigateInitTranVo == null) { |
|
|
|
loanHomeVisitInvestigateInitTranVo = new LoanHomeVisitInvestigateInitTranVo(); |
|
|
|
loanHomeVisitInvestigateInitTranVo.setMainSid(sid); |
|
|
|
} |
|
|
@ -601,7 +601,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
public ResultBean saveHomeVisitTransportInfo(LoanHomeVisitInvestigateSaveTranDto dto) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
LoanHomevisitInvestigateTransportDto loanHomevisitInvestigateTransportDto = new LoanHomevisitInvestigateTransportDto(); |
|
|
|
BeanUtil.copyProperties(dto,loanHomevisitInvestigateTransportDto); |
|
|
|
BeanUtil.copyProperties(dto, loanHomevisitInvestigateTransportDto); |
|
|
|
loanHomevisitInvestigateTransportDto.setTransportTypeKey(dto.getTransportKey()); |
|
|
|
loanHomevisitInvestigateTransportDto.setTransportTypeValue(dto.getTransportType()); |
|
|
|
loanHomevisitInvestigateTransportDto.setTransportGoodsTrip(dto.getTransportGoodsGoTo()); |
|
|
@ -621,7 +621,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
public ResultBean<LoanHomeVisitInvestigateInitPropVo> getHomeVisitAssetsInfo(String sid) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
LoanHomeVisitInvestigateInitPropVo loanHomeVisitInvestigateInitPropVo = loanHomevisitInvestigatePropertyService.getHomeVisitAssetsInfo(sid); |
|
|
|
if (loanHomeVisitInvestigateInitPropVo == null){ |
|
|
|
if (loanHomeVisitInvestigateInitPropVo == null) { |
|
|
|
loanHomeVisitInvestigateInitPropVo = new LoanHomeVisitInvestigateInitPropVo(); |
|
|
|
loanHomeVisitInvestigateInitPropVo.setMainSid(sid); |
|
|
|
} |
|
|
@ -631,25 +631,25 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
public ResultBean saveHomeVisitAssetsInfo(LoanHomeVisitInvestigateSavePropDto dto) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
LoanHomevisitInvestigatePropertyDto loanHomevisitInvestigatePropertyDto = new LoanHomevisitInvestigatePropertyDto(); |
|
|
|
BeanUtil.copyProperties(dto,loanHomevisitInvestigatePropertyDto); |
|
|
|
BeanUtil.copyProperties(dto, loanHomevisitInvestigatePropertyDto); |
|
|
|
loanHomevisitInvestigatePropertyDto.setIsRealEstate(dto.getHouseCheck()); |
|
|
|
if (dto.getHouseCheck()){ |
|
|
|
if (dto.getHouseCheck()) { |
|
|
|
loanHomevisitInvestigatePropertyDto.setPropertyType(dto.getHouseState()); |
|
|
|
loanHomevisitInvestigatePropertyDto.setRealLoanSituationKey(dto.getHouseLoanKey()); |
|
|
|
loanHomevisitInvestigatePropertyDto.setRealLoanSituation(dto.getHouseLoan()); |
|
|
|
loanHomevisitInvestigatePropertyDto.setRealRemarks(dto.getHouseRemarks()); |
|
|
|
}else { |
|
|
|
} else { |
|
|
|
loanHomevisitInvestigatePropertyDto.setPropertyType(0); |
|
|
|
loanHomevisitInvestigatePropertyDto.setRealLoanSituationKey(""); |
|
|
|
loanHomevisitInvestigatePropertyDto.setRealLoanSituation(""); |
|
|
|
loanHomevisitInvestigatePropertyDto.setRealRemarks(""); |
|
|
|
} |
|
|
|
loanHomevisitInvestigatePropertyDto.setIsCar(dto.getCarCheck()); |
|
|
|
if (dto.getCarCheck()){ |
|
|
|
if (dto.getCarCheck()) { |
|
|
|
loanHomevisitInvestigatePropertyDto.setCarType(dto.getCarState()); |
|
|
|
loanHomevisitInvestigatePropertyDto.setCarLoanSituationKey(dto.getCarLoanKey()); |
|
|
|
loanHomevisitInvestigatePropertyDto.setCarLoanSituation(dto.getCarLoan()); |
|
|
|
}else { |
|
|
|
} else { |
|
|
|
loanHomevisitInvestigatePropertyDto.setCarType(0); |
|
|
|
loanHomevisitInvestigatePropertyDto.setCarLoanSituationKey(""); |
|
|
|
loanHomevisitInvestigatePropertyDto.setCarLoanSituation(""); |
|
|
@ -669,7 +669,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
//定位信息
|
|
|
|
List<LoanHomevisitInvestigateFileDetailsVo> dwxxImages = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.DWXX.getAttachType()); |
|
|
|
List<String> location = new ArrayList<>(); |
|
|
|
if (dwxxImages != null && dwxxImages.size() > 0){ |
|
|
|
if (dwxxImages != null && dwxxImages.size() > 0) { |
|
|
|
for (LoanHomevisitInvestigateFileDetailsVo dwxxImage : dwxxImages) { |
|
|
|
location.add(dwxxImage.getFileUrl()); |
|
|
|
} |
|
|
@ -678,7 +678,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
//房屋照片
|
|
|
|
List<LoanHomevisitInvestigateFileDetailsVo> fwzpImages = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.FWZP.getAttachType()); |
|
|
|
List<String> house = new ArrayList<>(); |
|
|
|
if (fwzpImages != null && fwzpImages.size() > 0){ |
|
|
|
if (fwzpImages != null && fwzpImages.size() > 0) { |
|
|
|
for (LoanHomevisitInvestigateFileDetailsVo fwzpImage : fwzpImages) { |
|
|
|
house.add(fwzpImage.getFileUrl()); |
|
|
|
} |
|
|
@ -687,7 +687,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
//门口照片
|
|
|
|
List<LoanHomevisitInvestigateFileDetailsVo> mkzpImages = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.MKZP.getAttachType()); |
|
|
|
List<String> doorway = new ArrayList<>(); |
|
|
|
if (mkzpImages != null && mkzpImages.size() > 0){ |
|
|
|
if (mkzpImages != null && mkzpImages.size() > 0) { |
|
|
|
for (LoanHomevisitInvestigateFileDetailsVo mkzpImage : mkzpImages) { |
|
|
|
doorway.add(mkzpImage.getFileUrl()); |
|
|
|
} |
|
|
@ -696,7 +696,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
//客厅卧室照片
|
|
|
|
List<LoanHomevisitInvestigateFileDetailsVo> ktwszpImages = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.KTWSZP.getAttachType()); |
|
|
|
List<String> indoor = new ArrayList<>(); |
|
|
|
if (ktwszpImages != null && ktwszpImages.size() > 0){ |
|
|
|
if (ktwszpImages != null && ktwszpImages.size() > 0) { |
|
|
|
for (LoanHomevisitInvestigateFileDetailsVo ktwszpImage : ktwszpImages) { |
|
|
|
indoor.add(ktwszpImage.getFileUrl()); |
|
|
|
} |
|
|
@ -705,7 +705,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
//合影照等
|
|
|
|
List<LoanHomevisitInvestigateFileDetailsVo> hyzdImages = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.HYZD.getAttachType()); |
|
|
|
List<String> groupPhoto = new ArrayList<>(); |
|
|
|
if (hyzdImages != null && hyzdImages.size() > 0){ |
|
|
|
if (hyzdImages != null && hyzdImages.size() > 0) { |
|
|
|
for (LoanHomevisitInvestigateFileDetailsVo hyzdImage : hyzdImages) { |
|
|
|
groupPhoto.add(hyzdImage.getFileUrl()); |
|
|
|
} |
|
|
@ -720,7 +720,6 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
//定位信息
|
|
|
|
for (String dwxx : dto.getLocation()) { |
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
loanHomevisitInvestigateFileDto.setSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getMainSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.DWXX.getAttachType()); |
|
|
|
if (dwxx.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
@ -732,7 +731,6 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
//房屋照片
|
|
|
|
for (String fwzp : dto.getHouse()) { |
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
loanHomevisitInvestigateFileDto.setSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getMainSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.FWZP.getAttachType()); |
|
|
|
if (fwzp.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
@ -744,7 +742,6 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
//门口照片
|
|
|
|
for (String mkzp : dto.getDoorway()) { |
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
loanHomevisitInvestigateFileDto.setSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getMainSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.MKZP.getAttachType()); |
|
|
|
if (mkzp.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
@ -756,7 +753,6 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
//客厅卧室
|
|
|
|
for (String ktwszp : dto.getIndoor()) { |
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
loanHomevisitInvestigateFileDto.setSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getMainSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.KTWSZP.getAttachType()); |
|
|
|
if (ktwszp.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
@ -768,7 +764,6 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
//合影照等
|
|
|
|
for (String hyzd : dto.getGroupPhoto()) { |
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
loanHomevisitInvestigateFileDto.setSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getMainSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.HYZD.getAttachType()); |
|
|
|
if (hyzd.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
@ -786,7 +781,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
//贷款人身份证
|
|
|
|
List<LoanHomevisitInvestigateFileDetailsVo> dkrsfzImages = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.DKRSFZ.getAttachType()); |
|
|
|
List<String> lenderIdCard = new ArrayList<>(); |
|
|
|
if (dkrsfzImages != null && dkrsfzImages.size() > 0){ |
|
|
|
if (dkrsfzImages != null && dkrsfzImages.size() > 0) { |
|
|
|
for (LoanHomevisitInvestigateFileDetailsVo dkrsfzImage : dkrsfzImages) { |
|
|
|
lenderIdCard.add(dkrsfzImage.getFileUrl()); |
|
|
|
} |
|
|
@ -795,7 +790,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
//贷款人户口本
|
|
|
|
List<LoanHomevisitInvestigateFileDetailsVo> dkrhkbImages = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.DKRHKB.getAttachType()); |
|
|
|
List<String> lenderAccount = new ArrayList<>(); |
|
|
|
if (dkrhkbImages != null && dkrhkbImages.size() > 0){ |
|
|
|
if (dkrhkbImages != null && dkrhkbImages.size() > 0) { |
|
|
|
for (LoanHomevisitInvestigateFileDetailsVo dkrhkbImage : dkrhkbImages) { |
|
|
|
lenderAccount.add(dkrhkbImage.getFileUrl()); |
|
|
|
} |
|
|
@ -804,7 +799,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
//贷款人婚姻证明
|
|
|
|
List<LoanHomevisitInvestigateFileDetailsVo> dkrhyzmImages = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.DKRHYZM.getAttachType()); |
|
|
|
List<String> lenderMarriageCertificate = new ArrayList<>(); |
|
|
|
if (dkrhyzmImages != null && dkrhyzmImages.size() > 0){ |
|
|
|
if (dkrhyzmImages != null && dkrhyzmImages.size() > 0) { |
|
|
|
for (LoanHomevisitInvestigateFileDetailsVo dkrhyzmImage : dkrhyzmImages) { |
|
|
|
lenderMarriageCertificate.add(dkrhyzmImage.getFileUrl()); |
|
|
|
} |
|
|
@ -813,7 +808,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
//贷款人驾驶本
|
|
|
|
List<LoanHomevisitInvestigateFileDetailsVo> dkrjsbImages = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.DKRJSB.getAttachType()); |
|
|
|
List<String> lenderDriverBook = new ArrayList<>(); |
|
|
|
if (dkrjsbImages != null && dkrjsbImages.size() > 0){ |
|
|
|
if (dkrjsbImages != null && dkrjsbImages.size() > 0) { |
|
|
|
for (LoanHomevisitInvestigateFileDetailsVo dkrjsbImage : dkrjsbImages) { |
|
|
|
lenderDriverBook.add(dkrjsbImage.getFileUrl()); |
|
|
|
} |
|
|
@ -822,7 +817,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
//贷款人银行流水
|
|
|
|
List<LoanHomevisitInvestigateFileDetailsVo> dkryhlsImages = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.DKRYHLS.getAttachType()); |
|
|
|
List<String> lenderBankStatement = new ArrayList<>(); |
|
|
|
if (dkryhlsImages != null && dkryhlsImages.size() > 0){ |
|
|
|
if (dkryhlsImages != null && dkryhlsImages.size() > 0) { |
|
|
|
for (LoanHomevisitInvestigateFileDetailsVo dkryhlsImage : dkryhlsImages) { |
|
|
|
lenderBankStatement.add(dkryhlsImage.getFileUrl()); |
|
|
|
} |
|
|
@ -831,7 +826,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
//配偶身份证
|
|
|
|
List<LoanHomevisitInvestigateFileDetailsVo> posfzImages = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.POSFZ.getAttachType()); |
|
|
|
List<String> spouseIdCard = new ArrayList<>(); |
|
|
|
if (posfzImages != null && posfzImages.size() > 0){ |
|
|
|
if (posfzImages != null && posfzImages.size() > 0) { |
|
|
|
for (LoanHomevisitInvestigateFileDetailsVo posfzImage : posfzImages) { |
|
|
|
spouseIdCard.add(posfzImage.getFileUrl()); |
|
|
|
} |
|
|
@ -840,7 +835,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
//配偶户口本
|
|
|
|
List<LoanHomevisitInvestigateFileDetailsVo> pohkbImages = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.POHKB.getAttachType()); |
|
|
|
List<String> spouseAccount = new ArrayList<>(); |
|
|
|
if (pohkbImages != null && pohkbImages.size() > 0){ |
|
|
|
if (pohkbImages != null && pohkbImages.size() > 0) { |
|
|
|
for (LoanHomevisitInvestigateFileDetailsVo pohkbImage : pohkbImages) { |
|
|
|
spouseAccount.add(pohkbImage.getFileUrl()); |
|
|
|
} |
|
|
@ -849,7 +844,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
//担保人身份证
|
|
|
|
List<LoanHomevisitInvestigateFileDetailsVo> dbrsfzImages = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.DBRSFZ.getAttachType()); |
|
|
|
List<String> pohkbImage = new ArrayList<>(); |
|
|
|
if (dbrsfzImages != null && dbrsfzImages.size() > 0){ |
|
|
|
if (dbrsfzImages != null && dbrsfzImages.size() > 0) { |
|
|
|
for (LoanHomevisitInvestigateFileDetailsVo dbrsfzImage : dbrsfzImages) { |
|
|
|
pohkbImage.add(dbrsfzImage.getFileUrl()); |
|
|
|
} |
|
|
@ -858,7 +853,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
//担保人户口本
|
|
|
|
List<LoanHomevisitInvestigateFileDetailsVo> dbrhkbImages = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.DBRHKB.getAttachType()); |
|
|
|
List<String> guarantorAccount = new ArrayList<>(); |
|
|
|
if (dbrhkbImages != null && dbrhkbImages.size() > 0){ |
|
|
|
if (dbrhkbImages != null && dbrhkbImages.size() > 0) { |
|
|
|
for (LoanHomevisitInvestigateFileDetailsVo dbrhkbImage : dbrhkbImages) { |
|
|
|
guarantorAccount.add(dbrhkbImage.getFileUrl()); |
|
|
|
} |
|
|
@ -873,7 +868,6 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
//贷款人身份证
|
|
|
|
for (String dkrsfz : dto.getLenderIdCard()) { |
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
loanHomevisitInvestigateFileDto.setSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getMainSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.DKRSFZ.getAttachType()); |
|
|
|
if (dkrsfz.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
@ -885,7 +879,6 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
//贷款人户口本
|
|
|
|
for (String dkrhkb : dto.getLenderAccount()) { |
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
loanHomevisitInvestigateFileDto.setSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getMainSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.DKRHKB.getAttachType()); |
|
|
|
if (dkrhkb.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
@ -897,7 +890,6 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
//贷款人婚姻证明
|
|
|
|
for (String dkrhyzm : dto.getLenderMarriageCertificate()) { |
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
loanHomevisitInvestigateFileDto.setSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getMainSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.DKRHYZM.getAttachType()); |
|
|
|
if (dkrhyzm.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
@ -909,7 +901,6 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
//贷款人驾驶本
|
|
|
|
for (String dkrjsb : dto.getLenderDriverBook()) { |
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
loanHomevisitInvestigateFileDto.setSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getMainSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.DKRJSB.getAttachType()); |
|
|
|
if (dkrjsb.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
@ -921,7 +912,6 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
//贷款人银行流水
|
|
|
|
for (String dkryhls : dto.getLenderBankStatement()) { |
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
loanHomevisitInvestigateFileDto.setSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getMainSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.DKRYHLS.getAttachType()); |
|
|
|
if (dkryhls.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
@ -933,7 +923,6 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
//配偶身份证
|
|
|
|
for (String posfz : dto.getSpouseIdCard()) { |
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
loanHomevisitInvestigateFileDto.setSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getMainSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.POSFZ.getAttachType()); |
|
|
|
if (posfz.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
@ -945,7 +934,6 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
//配偶户口本
|
|
|
|
for (String pohkb : dto.getSpouseAccount()) { |
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
loanHomevisitInvestigateFileDto.setSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getMainSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.POHKB.getAttachType()); |
|
|
|
if (pohkb.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
@ -957,7 +945,6 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
//担保人身份证
|
|
|
|
for (String dbrsfz : dto.getGuarantorIdCard()) { |
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
loanHomevisitInvestigateFileDto.setSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getMainSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.DBRSFZ.getAttachType()); |
|
|
|
if (dbrsfz.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
@ -969,7 +956,6 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
//担保人户口本
|
|
|
|
for (String dbrhkb : dto.getGuarantorAccount()) { |
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
loanHomevisitInvestigateFileDto.setSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getMainSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.DBRHKB.getAttachType()); |
|
|
|
if (dbrhkb.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
@ -987,7 +973,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
//银行卡
|
|
|
|
List<LoanHomevisitInvestigateFileDetailsVo> yhkImages = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.YHK.getAttachType()); |
|
|
|
List<String> yhkImagess = new ArrayList<>(); |
|
|
|
if (yhkImages != null && yhkImages.size() > 0){ |
|
|
|
if (yhkImages != null && yhkImages.size() > 0) { |
|
|
|
for (LoanHomevisitInvestigateFileDetailsVo yhkImage : yhkImages) { |
|
|
|
yhkImagess.add(yhkImage.getFileUrl()); |
|
|
|
} |
|
|
@ -996,7 +982,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
//房产
|
|
|
|
List<LoanHomevisitInvestigateFileDetailsVo> fcImages = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.FC.getAttachType()); |
|
|
|
List<String> houseProperty = new ArrayList<>(); |
|
|
|
if (fcImages != null && fcImages.size() > 0){ |
|
|
|
if (fcImages != null && fcImages.size() > 0) { |
|
|
|
for (LoanHomevisitInvestigateFileDetailsVo fcImage : fcImages) { |
|
|
|
houseProperty.add(fcImage.getFileUrl()); |
|
|
|
} |
|
|
@ -1005,7 +991,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
//车辆
|
|
|
|
List<LoanHomevisitInvestigateFileDetailsVo> clImages = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.CL.getAttachType()); |
|
|
|
List<String> carProperty = new ArrayList<>(); |
|
|
|
if (clImages != null && clImages.size() > 0){ |
|
|
|
if (clImages != null && clImages.size() > 0) { |
|
|
|
for (LoanHomevisitInvestigateFileDetailsVo clImage : clImages) { |
|
|
|
carProperty.add(clImage.getFileUrl()); |
|
|
|
} |
|
|
@ -1020,7 +1006,6 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
//银行卡
|
|
|
|
for (String yhk : dto.getYhkImages()) { |
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
loanHomevisitInvestigateFileDto.setSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getMainSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.YHK.getAttachType()); |
|
|
|
if (yhk.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
@ -1032,7 +1017,6 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
//房产
|
|
|
|
for (String fc : dto.getHouseProperty()) { |
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
loanHomevisitInvestigateFileDto.setSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getMainSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.FC.getAttachType()); |
|
|
|
if (fc.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
@ -1044,7 +1028,6 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
//车辆
|
|
|
|
for (String cl : dto.getCarProperty()) { |
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
loanHomevisitInvestigateFileDto.setSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getMainSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.CL.getAttachType()); |
|
|
|
if (cl.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
@ -1055,4 +1038,14 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
} |
|
|
|
return rb.success(); |
|
|
|
} |
|
|
|
|
|
|
|
public ResultBean saveReportInfo(String comment, Boolean agree, String sid) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
String jg = "不通过"; |
|
|
|
if (agree){ |
|
|
|
jg = "通过"; |
|
|
|
} |
|
|
|
baseMapper.saveReportInfo(comment, jg, sid); |
|
|
|
return rb.success(); |
|
|
|
} |
|
|
|
} |