|
|
@ -124,7 +124,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
LoanHomevisitInvestigateQuery query = pq.getParams(); |
|
|
|
QueryWrapper<LoanHomevisitInvestigate> qw = new QueryWrapper<>(); |
|
|
|
qw.eq("li.state", query.getType()); |
|
|
|
if ("1".equals(query.getType())){ |
|
|
|
if ("1".equals(query.getType())) { |
|
|
|
qw.eq("bb.busNo", 302); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(query.getMenuSid())) { |
|
|
@ -474,7 +474,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
loanHomeVisitInvestigateInitCustomerVo.setLenderNam(busSalesOrderBorrowerDetailsVo.getBorrowerName()); |
|
|
|
loanHomeVisitInvestigateInitCustomerVo.setIdNumber(crmCustomerTempVo.getIDNumber()); |
|
|
|
loanHomeVisitInvestigateInitCustomerVo.setMobile(busSalesOrderBorrowerDetailsVo.getMobile()); |
|
|
|
loanHomeVisitInvestigateInitCustomerVo.setMainSid(sid); |
|
|
|
loanHomeVisitInvestigateInitCustomerVo.setSid(sid); |
|
|
|
return rb.success().setData(loanHomeVisitInvestigateInitCustomerVo); |
|
|
|
} |
|
|
|
//银行卡附件
|
|
|
@ -489,15 +489,20 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
//其他人员
|
|
|
|
List<LoanHomeVisitInvestigateInitOtherPeoVo> loanHomeVisitInvestigateInitOtherPeoVos = loanHomevisitInvestigateOtherpeoService.selByMainSid(sid); |
|
|
|
loanHomeVisitInvestigateInitCustomerVo.setOtherPersonnel(loanHomeVisitInvestigateInitOtherPeoVos); |
|
|
|
loanHomeVisitInvestigateInitCustomerVo.setMainSid(sid); |
|
|
|
loanHomeVisitInvestigateInitCustomerVo.setSid(sid); |
|
|
|
return rb.success().setData(loanHomeVisitInvestigateInitCustomerVo); |
|
|
|
} |
|
|
|
|
|
|
|
public ResultBean saveHomeVisitCustomerInfo(LoanHomeVisitInvestigateSaveCustomerDto dto) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
LoanHomevisitInvestigateCustomerDto loanHomevisitInvestigateCustomerDto = new LoanHomevisitInvestigateCustomerDto(); |
|
|
|
List<LoanHomeVisitInvestigateSaveOtherPeoDto> otherPersonnel = dto.getOtherPersonnel(); |
|
|
|
BeanUtil.copyProperties(dto, loanHomevisitInvestigateCustomerDto); |
|
|
|
LoanHomevisitInvestigateCustomerDto loanHomevisitInvestigateCustomerDto = new LoanHomevisitInvestigateCustomerDto(); |
|
|
|
LoanHomevisitInvestigateCustomerDetailsVo loanHomevisitInvestigateCustomerDetailsVo = loanHomevisitInvestigateCustomerService.selByMainSid(dto.getSid()); |
|
|
|
if (loanHomevisitInvestigateCustomerDetailsVo == null) { |
|
|
|
BeanUtil.copyProperties(dto, loanHomevisitInvestigateCustomerDto, "sid"); |
|
|
|
} else { |
|
|
|
BeanUtil.copyProperties(loanHomevisitInvestigateCustomerDetailsVo, loanHomevisitInvestigateCustomerDto); |
|
|
|
} |
|
|
|
loanHomevisitInvestigateCustomerDto.setIsConfirmRealBuyer(dto.getActualBuyer()); |
|
|
|
loanHomevisitInvestigateCustomerDto.setBorrowerSid(dto.getLenderSid()); |
|
|
|
loanHomevisitInvestigateCustomerDto.setBorrowerName(dto.getLenderNam()); |
|
|
@ -532,9 +537,9 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
loanHomevisitInvestigateCustomerDto.setEmergencyMobile(dto.getEmergencyContactMobile()); |
|
|
|
loanHomevisitInvestigateCustomerDto.setRelationshipKey(dto.getEmergencyContactTypeKey()); |
|
|
|
loanHomevisitInvestigateCustomerDto.setRelationshipValue(dto.getEmergencyContactType()); |
|
|
|
loanHomevisitInvestigateCustomerDto.setMainSid(dto.getMainSid()); |
|
|
|
loanHomevisitInvestigateCustomerDto.setMainSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateCustomerService.saveOrUpdateDto(loanHomevisitInvestigateCustomerDto); |
|
|
|
loanHomevisitInvestigateOtherpeoService.delByMainSid(dto.getMainSid()); |
|
|
|
loanHomevisitInvestigateOtherpeoService.delByMainSid(dto.getSid()); |
|
|
|
for (LoanHomeVisitInvestigateSaveOtherPeoDto loanHomeVisitInvestigateSaveOtherPeoDto : otherPersonnel) { |
|
|
|
LoanHomevisitInvestigateOtherpeoDto loanHomevisitInvestigateOtherpeoDto = new LoanHomevisitInvestigateOtherpeoDto(); |
|
|
|
BeanUtil.copyProperties(loanHomeVisitInvestigateSaveOtherPeoDto, loanHomevisitInvestigateOtherpeoDto); |
|
|
@ -546,7 +551,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
loanHomevisitInvestigateOtherpeoDto.setPeoPreAddress(loanHomeVisitInvestigateSaveOtherPeoDto.getAddress()); |
|
|
|
loanHomevisitInvestigateOtherpeoDto.setWorkUnit(loanHomeVisitInvestigateSaveOtherPeoDto.getCompany()); |
|
|
|
loanHomevisitInvestigateOtherpeoDto.setPeoCareerValue(loanHomeVisitInvestigateSaveOtherPeoDto.getJob()); |
|
|
|
loanHomevisitInvestigateOtherpeoDto.setMainSid(dto.getMainSid()); |
|
|
|
loanHomevisitInvestigateOtherpeoDto.setMainSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateOtherpeoService.saveOrUpdateDto(loanHomevisitInvestigateOtherpeoDto); |
|
|
|
} |
|
|
|
return rb.success(); |
|
|
@ -557,7 +562,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
LoanHomeVisitInvestigateInitOrderVo loanHomeVisitInvestigateInitOrderVos = loanHomevisitInvestigateOrderService.getHomeVisitOrderInfo(sid); |
|
|
|
if (loanHomeVisitInvestigateInitOrderVos == null) { |
|
|
|
loanHomeVisitInvestigateInitOrderVos = new LoanHomeVisitInvestigateInitOrderVo(); |
|
|
|
loanHomeVisitInvestigateInitOrderVos.setMainSid(sid); |
|
|
|
loanHomeVisitInvestigateInitOrderVos.setSid(sid); |
|
|
|
} |
|
|
|
return rb.success().setData(loanHomeVisitInvestigateInitOrderVos); |
|
|
|
} |
|
|
@ -565,11 +570,17 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
public ResultBean saveHomeVisitOrderInfo(LoanHomeVisitInvestigateSaveOrderDto dto) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
LoanHomevisitInvestigateOrderDto loanHomevisitInvestigateOrderDto = new LoanHomevisitInvestigateOrderDto(); |
|
|
|
BeanUtil.copyProperties(dto, loanHomevisitInvestigateOrderDto); |
|
|
|
LoanHomevisitInvestigateOrderDetailsVo loanHomevisitInvestigateOrderDetailsVo = loanHomevisitInvestigateOrderService.selByMainSid(dto.getSid()); |
|
|
|
if (loanHomevisitInvestigateOrderDetailsVo == null) { |
|
|
|
BeanUtil.copyProperties(dto, loanHomevisitInvestigateOrderDto, "sid"); |
|
|
|
} else { |
|
|
|
BeanUtil.copyProperties(loanHomevisitInvestigateOrderDetailsVo, loanHomevisitInvestigateOrderDto); |
|
|
|
} |
|
|
|
loanHomevisitInvestigateOrderDto.setCarConfirm(dto.getCarInfoKey()); |
|
|
|
loanHomevisitInvestigateOrderDto.setCarRemarks(dto.getCarInfoRemarks()); |
|
|
|
loanHomevisitInvestigateOrderDto.setFinConfirm(dto.getFinanceKey()); |
|
|
|
loanHomevisitInvestigateOrderDto.setFinRemarks(dto.getFinanceRemarks()); |
|
|
|
loanHomevisitInvestigateOrderDto.setMainSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateOrderService.saveOrUpdateDto(loanHomevisitInvestigateOrderDto); |
|
|
|
return rb.success(); |
|
|
|
} |
|
|
@ -579,7 +590,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
LoanHomeVisitInvestigateInitOperVo loanHomeVisitInvestigateInitOperVo = loanHomevisitInvestigateOperationsService.getHomeVisitOperationInfo(sid); |
|
|
|
if (loanHomeVisitInvestigateInitOperVo == null) { |
|
|
|
loanHomeVisitInvestigateInitOperVo = new LoanHomeVisitInvestigateInitOperVo(); |
|
|
|
loanHomeVisitInvestigateInitOperVo.setMainSid(sid); |
|
|
|
loanHomeVisitInvestigateInitOperVo.setSid(sid); |
|
|
|
} |
|
|
|
return rb.success().setData(loanHomeVisitInvestigateInitOperVo); |
|
|
|
} |
|
|
@ -587,12 +598,18 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
public ResultBean saveHomeVisitOperationInfo(LoanHomeVisitInvestigateSaveOperDto dto) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
LoanHomevisitInvestigateOperationsDto loanHomevisitInvestigateOperationsDto = new LoanHomevisitInvestigateOperationsDto(); |
|
|
|
BeanUtil.copyProperties(dto, loanHomevisitInvestigateOperationsDto); |
|
|
|
LoanHomevisitInvestigateOperationsDetailsVo loanHomevisitInvestigateOperationsDetailsVo = loanHomevisitInvestigateOperationsService.selByMainSid(dto.getSid()); |
|
|
|
if (loanHomevisitInvestigateOperationsDetailsVo == null) { |
|
|
|
BeanUtil.copyProperties(dto, loanHomevisitInvestigateOperationsDto, "sid"); |
|
|
|
} else { |
|
|
|
BeanUtil.copyProperties(loanHomevisitInvestigateOperationsDetailsVo, loanHomevisitInvestigateOperationsDto); |
|
|
|
} |
|
|
|
loanHomevisitInvestigateOperationsDto.setIndustryYears(dto.getNumYears()); |
|
|
|
loanHomevisitInvestigateOperationsDto.setDriveProTypeKey(dto.getDriveKey()); |
|
|
|
loanHomevisitInvestigateOperationsDto.setDriveProTypeValue(dto.getDriveType()); |
|
|
|
loanHomevisitInvestigateOperationsDto.setBeforeOpeTypeKey(dto.getOperationKey()); |
|
|
|
loanHomevisitInvestigateOperationsDto.setBeforeOpeTypeValue(dto.getOperationType()); |
|
|
|
loanHomevisitInvestigateOperationsDto.setMainSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateOperationsService.saveOrUpdateDto(loanHomevisitInvestigateOperationsDto); |
|
|
|
return rb.success(); |
|
|
|
} |
|
|
@ -602,7 +619,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
LoanHomeVisitInvestigateInitTranVo loanHomeVisitInvestigateInitTranVo = loanHomevisitInvestigateTransportService.getHomeVisitTransportInfo(sid); |
|
|
|
if (loanHomeVisitInvestigateInitTranVo == null) { |
|
|
|
loanHomeVisitInvestigateInitTranVo = new LoanHomeVisitInvestigateInitTranVo(); |
|
|
|
loanHomeVisitInvestigateInitTranVo.setMainSid(sid); |
|
|
|
loanHomeVisitInvestigateInitTranVo.setSid(sid); |
|
|
|
} |
|
|
|
return rb.success().setData(loanHomeVisitInvestigateInitTranVo); |
|
|
|
} |
|
|
@ -610,7 +627,12 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
public ResultBean saveHomeVisitTransportInfo(LoanHomeVisitInvestigateSaveTranDto dto) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
LoanHomevisitInvestigateTransportDto loanHomevisitInvestigateTransportDto = new LoanHomevisitInvestigateTransportDto(); |
|
|
|
BeanUtil.copyProperties(dto, loanHomevisitInvestigateTransportDto); |
|
|
|
LoanHomevisitInvestigateTransportDetailsVo loanHomevisitInvestigateTransportDetailsVo = loanHomevisitInvestigateTransportService.selByMainSid(dto.getSid()); |
|
|
|
if (loanHomevisitInvestigateTransportDetailsVo == null) { |
|
|
|
BeanUtil.copyProperties(dto, loanHomevisitInvestigateTransportDto, "sid"); |
|
|
|
} else { |
|
|
|
BeanUtil.copyProperties(loanHomevisitInvestigateTransportDetailsVo, loanHomevisitInvestigateTransportDto); |
|
|
|
} |
|
|
|
loanHomevisitInvestigateTransportDto.setTransportTypeKey(dto.getTransportKey()); |
|
|
|
loanHomevisitInvestigateTransportDto.setTransportTypeValue(dto.getTransportType()); |
|
|
|
loanHomevisitInvestigateTransportDto.setTransportGoodsTrip(dto.getTransportGoodsGoTo()); |
|
|
@ -623,6 +645,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
loanHomevisitInvestigateTransportDto.setDriverSalary(dto.getDriverWage()); |
|
|
|
loanHomevisitInvestigateTransportDto.setToll(dto.getRoadToll()); |
|
|
|
loanHomevisitInvestigateTransportDto.setExpectedRevenue(dto.getIncome()); |
|
|
|
loanHomevisitInvestigateTransportDto.setMainSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateTransportService.saveOrUpdateDto(loanHomevisitInvestigateTransportDto); |
|
|
|
return rb.success(); |
|
|
|
} |
|
|
@ -632,7 +655,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
LoanHomeVisitInvestigateInitPropVo loanHomeVisitInvestigateInitPropVo = loanHomevisitInvestigatePropertyService.getHomeVisitAssetsInfo(sid); |
|
|
|
if (loanHomeVisitInvestigateInitPropVo == null) { |
|
|
|
loanHomeVisitInvestigateInitPropVo = new LoanHomeVisitInvestigateInitPropVo(); |
|
|
|
loanHomeVisitInvestigateInitPropVo.setMainSid(sid); |
|
|
|
loanHomeVisitInvestigateInitPropVo.setSid(sid); |
|
|
|
} |
|
|
|
return rb.success().setData(loanHomeVisitInvestigateInitPropVo); |
|
|
|
} |
|
|
@ -640,7 +663,12 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
public ResultBean saveHomeVisitAssetsInfo(LoanHomeVisitInvestigateSavePropDto dto) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
LoanHomevisitInvestigatePropertyDto loanHomevisitInvestigatePropertyDto = new LoanHomevisitInvestigatePropertyDto(); |
|
|
|
BeanUtil.copyProperties(dto, loanHomevisitInvestigatePropertyDto); |
|
|
|
LoanHomevisitInvestigatePropertyDetailsVo loanHomevisitInvestigatePropertyDetailsVo = loanHomevisitInvestigatePropertyService.selByMainSid(dto.getSid()); |
|
|
|
if (loanHomevisitInvestigatePropertyDetailsVo == null) { |
|
|
|
BeanUtil.copyProperties(dto, loanHomevisitInvestigatePropertyDto, "sid"); |
|
|
|
} else { |
|
|
|
BeanUtil.copyProperties(loanHomevisitInvestigatePropertyDetailsVo, loanHomevisitInvestigatePropertyDto); |
|
|
|
} |
|
|
|
loanHomevisitInvestigatePropertyDto.setIsRealEstate(dto.getHouseCheck()); |
|
|
|
if (dto.getHouseCheck()) { |
|
|
|
loanHomevisitInvestigatePropertyDto.setPropertyType(dto.getHouseState()); |
|
|
@ -668,6 +696,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
loanHomevisitInvestigatePropertyDto.setDownPaySourceValue(dto.getDownPayment()); |
|
|
|
loanHomevisitInvestigatePropertyDto.setOtherSourceKey(dto.getOtherIncomeKey()); |
|
|
|
loanHomevisitInvestigatePropertyDto.setOtherSourceValue(dto.getOtherIncome()); |
|
|
|
loanHomevisitInvestigatePropertyDto.setMainSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigatePropertyService.saveOrUpdateDto(loanHomevisitInvestigatePropertyDto); |
|
|
|
return rb.success(); |
|
|
|
} |
|
|
@ -720,16 +749,17 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
} |
|
|
|
} |
|
|
|
loanHomeVisitInvestigateInitJFJZVo.setGroupPhoto(groupPhoto); |
|
|
|
loanHomeVisitInvestigateInitJFJZVo.setMainSid(sid); |
|
|
|
loanHomeVisitInvestigateInitJFJZVo.setSid(sid); |
|
|
|
return rb.success().setData(loanHomeVisitInvestigateInitJFJZVo); |
|
|
|
} |
|
|
|
|
|
|
|
public ResultBean saveHomeVisitWitnessInfo(LoanHomeVisitInvestigateSaveJFJZDto dto) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
//定位信息
|
|
|
|
loanHomevisitInvestigateFileService.delByMainSidAndType(dto.getSid(), LoanAttachTypeEnum.DWXX.getAttachType()); |
|
|
|
for (String dwxx : dto.getLocation()) { |
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getMainSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.DWXX.getAttachType()); |
|
|
|
if (dwxx.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
dwxx = dwxx.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
@ -738,9 +768,10 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
loanHomevisitInvestigateFileService.saveOrUpdateDto(loanHomevisitInvestigateFileDto); |
|
|
|
} |
|
|
|
//房屋照片
|
|
|
|
loanHomevisitInvestigateFileService.delByMainSidAndType(dto.getSid(), LoanAttachTypeEnum.FWZP.getAttachType()); |
|
|
|
for (String fwzp : dto.getHouse()) { |
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getMainSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.FWZP.getAttachType()); |
|
|
|
if (fwzp.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
fwzp = fwzp.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
@ -749,9 +780,10 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
loanHomevisitInvestigateFileService.saveOrUpdateDto(loanHomevisitInvestigateFileDto); |
|
|
|
} |
|
|
|
//门口照片
|
|
|
|
loanHomevisitInvestigateFileService.delByMainSidAndType(dto.getSid(), LoanAttachTypeEnum.MKZP.getAttachType()); |
|
|
|
for (String mkzp : dto.getDoorway()) { |
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getMainSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.MKZP.getAttachType()); |
|
|
|
if (mkzp.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
mkzp = mkzp.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
@ -760,9 +792,10 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
loanHomevisitInvestigateFileService.saveOrUpdateDto(loanHomevisitInvestigateFileDto); |
|
|
|
} |
|
|
|
//客厅卧室
|
|
|
|
loanHomevisitInvestigateFileService.delByMainSidAndType(dto.getSid(), LoanAttachTypeEnum.KTWSZP.getAttachType()); |
|
|
|
for (String ktwszp : dto.getIndoor()) { |
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getMainSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.KTWSZP.getAttachType()); |
|
|
|
if (ktwszp.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
ktwszp = ktwszp.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
@ -771,9 +804,10 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
loanHomevisitInvestigateFileService.saveOrUpdateDto(loanHomevisitInvestigateFileDto); |
|
|
|
} |
|
|
|
//合影照等
|
|
|
|
loanHomevisitInvestigateFileService.delByMainSidAndType(dto.getSid(), LoanAttachTypeEnum.HYZD.getAttachType()); |
|
|
|
for (String hyzd : dto.getGroupPhoto()) { |
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getMainSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.HYZD.getAttachType()); |
|
|
|
if (hyzd.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
hyzd = hyzd.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
@ -868,16 +902,17 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
} |
|
|
|
} |
|
|
|
loanHomeVisitInvestigateInitZMWJVo.setGuarantorAccount(guarantorAccount); |
|
|
|
loanHomeVisitInvestigateInitZMWJVo.setMainSid(sid); |
|
|
|
loanHomeVisitInvestigateInitZMWJVo.setSid(sid); |
|
|
|
return rb.success().setData(loanHomeVisitInvestigateInitZMWJVo); |
|
|
|
} |
|
|
|
|
|
|
|
public ResultBean saveHomeVisitProveFileInfo(LoanHomeVisitInvestigateSaveZMWJDto dto) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
//贷款人身份证
|
|
|
|
loanHomevisitInvestigateFileService.delByMainSidAndType(dto.getSid(), LoanAttachTypeEnum.DKRSFZ.getAttachType()); |
|
|
|
for (String dkrsfz : dto.getLenderIdCard()) { |
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getMainSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.DKRSFZ.getAttachType()); |
|
|
|
if (dkrsfz.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
dkrsfz = dkrsfz.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
@ -886,9 +921,10 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
loanHomevisitInvestigateFileService.saveOrUpdateDto(loanHomevisitInvestigateFileDto); |
|
|
|
} |
|
|
|
//贷款人户口本
|
|
|
|
loanHomevisitInvestigateFileService.delByMainSidAndType(dto.getSid(), LoanAttachTypeEnum.DKRHKB.getAttachType()); |
|
|
|
for (String dkrhkb : dto.getLenderAccount()) { |
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getMainSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.DKRHKB.getAttachType()); |
|
|
|
if (dkrhkb.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
dkrhkb = dkrhkb.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
@ -897,9 +933,10 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
loanHomevisitInvestigateFileService.saveOrUpdateDto(loanHomevisitInvestigateFileDto); |
|
|
|
} |
|
|
|
//贷款人婚姻证明
|
|
|
|
loanHomevisitInvestigateFileService.delByMainSidAndType(dto.getSid(), LoanAttachTypeEnum.DKRHYZM.getAttachType()); |
|
|
|
for (String dkrhyzm : dto.getLenderMarriageCertificate()) { |
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getMainSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.DKRHYZM.getAttachType()); |
|
|
|
if (dkrhyzm.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
dkrhyzm = dkrhyzm.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
@ -908,9 +945,10 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
loanHomevisitInvestigateFileService.saveOrUpdateDto(loanHomevisitInvestigateFileDto); |
|
|
|
} |
|
|
|
//贷款人驾驶本
|
|
|
|
loanHomevisitInvestigateFileService.delByMainSidAndType(dto.getSid(), LoanAttachTypeEnum.DKRJSB.getAttachType()); |
|
|
|
for (String dkrjsb : dto.getLenderDriverBook()) { |
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getMainSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.DKRJSB.getAttachType()); |
|
|
|
if (dkrjsb.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
dkrjsb = dkrjsb.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
@ -919,9 +957,10 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
loanHomevisitInvestigateFileService.saveOrUpdateDto(loanHomevisitInvestigateFileDto); |
|
|
|
} |
|
|
|
//贷款人银行流水
|
|
|
|
loanHomevisitInvestigateFileService.delByMainSidAndType(dto.getSid(), LoanAttachTypeEnum.DKRYHLS.getAttachType()); |
|
|
|
for (String dkryhls : dto.getLenderBankStatement()) { |
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getMainSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.DKRYHLS.getAttachType()); |
|
|
|
if (dkryhls.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
dkryhls = dkryhls.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
@ -930,9 +969,10 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
loanHomevisitInvestigateFileService.saveOrUpdateDto(loanHomevisitInvestigateFileDto); |
|
|
|
} |
|
|
|
//配偶身份证
|
|
|
|
loanHomevisitInvestigateFileService.delByMainSidAndType(dto.getSid(), LoanAttachTypeEnum.POSFZ.getAttachType()); |
|
|
|
for (String posfz : dto.getSpouseIdCard()) { |
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getMainSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.POSFZ.getAttachType()); |
|
|
|
if (posfz.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
posfz = posfz.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
@ -941,9 +981,10 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
loanHomevisitInvestigateFileService.saveOrUpdateDto(loanHomevisitInvestigateFileDto); |
|
|
|
} |
|
|
|
//配偶户口本
|
|
|
|
loanHomevisitInvestigateFileService.delByMainSidAndType(dto.getSid(), LoanAttachTypeEnum.POHKB.getAttachType()); |
|
|
|
for (String pohkb : dto.getSpouseAccount()) { |
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getMainSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.POHKB.getAttachType()); |
|
|
|
if (pohkb.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
pohkb = pohkb.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
@ -952,9 +993,10 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
loanHomevisitInvestigateFileService.saveOrUpdateDto(loanHomevisitInvestigateFileDto); |
|
|
|
} |
|
|
|
//担保人身份证
|
|
|
|
loanHomevisitInvestigateFileService.delByMainSidAndType(dto.getSid(), LoanAttachTypeEnum.DBRSFZ.getAttachType()); |
|
|
|
for (String dbrsfz : dto.getGuarantorIdCard()) { |
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getMainSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.DBRSFZ.getAttachType()); |
|
|
|
if (dbrsfz.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
dbrsfz = dbrsfz.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
@ -963,9 +1005,10 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
loanHomevisitInvestigateFileService.saveOrUpdateDto(loanHomevisitInvestigateFileDto); |
|
|
|
} |
|
|
|
//担保人户口本
|
|
|
|
loanHomevisitInvestigateFileService.delByMainSidAndType(dto.getSid(), LoanAttachTypeEnum.DBRHKB.getAttachType()); |
|
|
|
for (String dbrhkb : dto.getGuarantorAccount()) { |
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getMainSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.DBRHKB.getAttachType()); |
|
|
|
if (dbrhkb.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
dbrhkb = dbrhkb.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
@ -1006,16 +1049,17 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
} |
|
|
|
} |
|
|
|
loanHomeVisitInvestigateInitZCLVo.setCarProperty(carProperty); |
|
|
|
loanHomeVisitInvestigateInitZCLVo.setMainSid(sid); |
|
|
|
loanHomeVisitInvestigateInitZCLVo.setSid(sid); |
|
|
|
return rb.success().setData(loanHomeVisitInvestigateInitZCLVo); |
|
|
|
} |
|
|
|
|
|
|
|
public ResultBean saveAssetCertificateInfo(LoanHomeVisitInvestigateSaveZCLDto dto) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
//银行卡
|
|
|
|
loanHomevisitInvestigateFileService.delByMainSidAndType(dto.getSid(), LoanAttachTypeEnum.YHK.getAttachType()); |
|
|
|
for (String yhk : dto.getYhkImages()) { |
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getMainSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.YHK.getAttachType()); |
|
|
|
if (yhk.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
yhk = yhk.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
@ -1024,9 +1068,10 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
loanHomevisitInvestigateFileService.saveOrUpdateDto(loanHomevisitInvestigateFileDto); |
|
|
|
} |
|
|
|
//房产
|
|
|
|
loanHomevisitInvestigateFileService.delByMainSidAndType(dto.getSid(), LoanAttachTypeEnum.FC.getAttachType()); |
|
|
|
for (String fc : dto.getHouseProperty()) { |
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getMainSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.FC.getAttachType()); |
|
|
|
if (fc.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
fc = fc.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
@ -1035,9 +1080,10 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
loanHomevisitInvestigateFileService.saveOrUpdateDto(loanHomevisitInvestigateFileDto); |
|
|
|
} |
|
|
|
//车辆
|
|
|
|
loanHomevisitInvestigateFileService.delByMainSidAndType(dto.getSid(), LoanAttachTypeEnum.CL.getAttachType()); |
|
|
|
for (String cl : dto.getCarProperty()) { |
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getMainSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getSid()); |
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.CL.getAttachType()); |
|
|
|
if (cl.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
cl = cl.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
@ -1051,7 +1097,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
public ResultBean saveReportInfo(String comment, Boolean agree, String sid) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
String jg = "不通过"; |
|
|
|
if (agree){ |
|
|
|
if (agree) { |
|
|
|
jg = "通过"; |
|
|
|
} |
|
|
|
baseMapper.saveReportInfo(comment, jg, sid); |
|
|
@ -1070,9 +1116,9 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
userInfo.add(financeForm1); |
|
|
|
LoanHomevisitInvestigateCustomerDetailsVo loanHomevisitInvestigateCustomerDetailsVo = loanHomevisitInvestigateCustomerService.selByMainSid(sid); |
|
|
|
FinanceForm financeForm2 = new FinanceForm(); |
|
|
|
if (loanHomevisitInvestigateCustomerDetailsVo.getIsConfirmRealBuyer()){ |
|
|
|
if (loanHomevisitInvestigateCustomerDetailsVo.getIsConfirmRealBuyer()) { |
|
|
|
financeForm2.setValue("借款人姓名:" + loanHomevisitInvestigateCustomerDetailsVo.getBorrowerName() + "(实际购车人)"); |
|
|
|
}else { |
|
|
|
} else { |
|
|
|
financeForm2.setValue("借款人姓名:" + loanHomevisitInvestigateCustomerDetailsVo.getBorrowerName() + "(不是实际购车人)"); |
|
|
|
} |
|
|
|
financeForm2.setSpanSize(2); |
|
|
@ -1115,14 +1161,14 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
financeForm12.setType(3); |
|
|
|
List<String> yhkImages = new ArrayList<>(); |
|
|
|
List<LoanHomevisitInvestigateFileDetailsVo> loanHomevisitInvestigateFileDetailsVos = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.YHK.getAttachType()); |
|
|
|
if (loanHomevisitInvestigateFileDetailsVos != null && loanHomevisitInvestigateFileDetailsVos.size() > 0){ |
|
|
|
if (loanHomevisitInvestigateFileDetailsVos != null && loanHomevisitInvestigateFileDetailsVos.size() > 0) { |
|
|
|
for (LoanHomevisitInvestigateFileDetailsVo loanHomevisitInvestigateFileDetailsVo : loanHomevisitInvestigateFileDetailsVos) { |
|
|
|
yhkImages.add(loanHomevisitInvestigateFileDetailsVo.getFileUrl()); |
|
|
|
} |
|
|
|
} |
|
|
|
financeForm12.setFiles(yhkImages); |
|
|
|
userInfo.add(financeForm12); |
|
|
|
if ("0004".equals(loanHomevisitInvestigateCustomerDetailsVo.getMaritalStatusKey())){ |
|
|
|
if ("0004".equals(loanHomevisitInvestigateCustomerDetailsVo.getMaritalStatusKey())) { |
|
|
|
FinanceForm financeForm13 = new FinanceForm(); |
|
|
|
financeForm13.setValue("配偶"); |
|
|
|
financeForm13.setSpanSize(2); |
|
|
@ -1153,7 +1199,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
userInfo.add(financeForm19); |
|
|
|
} |
|
|
|
List<LoanHomeVisitInvestigateInitOtherPeoVo> loanHomeVisitInvestigateInitOtherPeoVos = loanHomevisitInvestigateOtherpeoService.selByMainSid(sid); |
|
|
|
if (loanHomeVisitInvestigateInitOtherPeoVos != null && loanHomeVisitInvestigateInitOtherPeoVos.size() > 0){ |
|
|
|
if (loanHomeVisitInvestigateInitOtherPeoVos != null && loanHomeVisitInvestigateInitOtherPeoVos.size() > 0) { |
|
|
|
FinanceForm financeForm20 = new FinanceForm(); |
|
|
|
financeForm20.setValue("其他人员"); |
|
|
|
financeForm20.setSpanSize(2); |
|
|
@ -1272,7 +1318,7 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
transInfo.add(financeForm42); |
|
|
|
LoanHomevisitInvestigatePropertyDetailsVo loanHomevisitInvestigatePropertyDetailsVo = loanHomevisitInvestigatePropertyService.selByMainSid(sid); |
|
|
|
List<FinanceForm> zCInfo = new ArrayList<>(); |
|
|
|
if (loanHomevisitInvestigatePropertyDetailsVo.getIsRealEstate()){ |
|
|
|
if (loanHomevisitInvestigatePropertyDetailsVo.getIsRealEstate()) { |
|
|
|
FinanceForm financeForm43 = new FinanceForm(); |
|
|
|
financeForm43.setValue("房产"); |
|
|
|
financeForm43.setSpanSize(2); |
|
|
@ -1281,11 +1327,11 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
zCInfo.add(financeForm43); |
|
|
|
FinanceForm financeForm44 = new FinanceForm(); |
|
|
|
String propertyType = ""; |
|
|
|
if (loanHomevisitInvestigatePropertyDetailsVo.getPropertyType() == 1){ |
|
|
|
if (loanHomevisitInvestigatePropertyDetailsVo.getPropertyType() == 1) { |
|
|
|
propertyType = "商品房"; |
|
|
|
}else if (loanHomevisitInvestigatePropertyDetailsVo.getPropertyType() == 2){ |
|
|
|
} else if (loanHomevisitInvestigatePropertyDetailsVo.getPropertyType() == 2) { |
|
|
|
propertyType = "商铺"; |
|
|
|
}else if (loanHomevisitInvestigatePropertyDetailsVo.getPropertyType() == 3){ |
|
|
|
} else if (loanHomevisitInvestigatePropertyDetailsVo.getPropertyType() == 3) { |
|
|
|
propertyType = "集体"; |
|
|
|
} |
|
|
|
financeForm44.setValue("产权类型:" + propertyType); |
|
|
@ -1298,12 +1344,12 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
financeForm46.setSpanSize(2); |
|
|
|
zCInfo.add(financeForm46); |
|
|
|
} |
|
|
|
if (loanHomevisitInvestigatePropertyDetailsVo.getIsCar()){ |
|
|
|
if (loanHomevisitInvestigatePropertyDetailsVo.getIsCar()) { |
|
|
|
FinanceForm financeForm47 = new FinanceForm(); |
|
|
|
String carType = ""; |
|
|
|
if (loanHomevisitInvestigatePropertyDetailsVo.getCarType() == 1){ |
|
|
|
if (loanHomevisitInvestigatePropertyDetailsVo.getCarType() == 1) { |
|
|
|
carType = "商用车"; |
|
|
|
}else if (loanHomevisitInvestigatePropertyDetailsVo.getCarType() == 2){ |
|
|
|
} else if (loanHomevisitInvestigatePropertyDetailsVo.getCarType() == 2) { |
|
|
|
carType = "轿车"; |
|
|
|
} |
|
|
|
financeForm47.setValue("车辆类型:" + carType); |
|
|
|