|
@ -32,26 +32,23 @@ import com.yxt.anrui.buscenter.api.bussalesorderloancontract.BusSalesOrderLoanco |
|
|
import com.yxt.anrui.buscenter.api.bussalesorderloancontract.BusSalesOrderLoancontractFeign; |
|
|
import com.yxt.anrui.buscenter.api.bussalesorderloancontract.BusSalesOrderLoancontractFeign; |
|
|
import com.yxt.anrui.portal.api.sysuser.PrivilegeQuery; |
|
|
import com.yxt.anrui.portal.api.sysuser.PrivilegeQuery; |
|
|
import com.yxt.anrui.portal.api.sysuser.SysUserFeign; |
|
|
import com.yxt.anrui.portal.api.sysuser.SysUserFeign; |
|
|
|
|
|
import com.yxt.anrui.riskcenter.api.loanhomevisitfileexamine.*; |
|
|
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigate.LoanHomevisitInvestigate; |
|
|
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigate.LoanHomevisitInvestigate; |
|
|
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigate.LoanHomevisitInvestigateDetailsVo; |
|
|
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigate.LoanHomevisitInvestigateDetailsVo; |
|
|
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigate.LoanHomevisitInvestigateQuery; |
|
|
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigate.LoanHomevisitInvestigateQuery; |
|
|
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigate.LoanHomevisitInvestigateVo; |
|
|
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigate.LoanHomevisitInvestigateVo; |
|
|
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatefile.LoanAttachTypeEnum; |
|
|
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatefile.LoanAttachTypeEnum; |
|
|
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatefile.LoanHomevisitInvestigateFileDetailsVo; |
|
|
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatefile.LoanHomevisitInvestigateFileDetailsVo; |
|
|
|
|
|
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatefile.LoanHomevisitInvestigateFileDto; |
|
|
import com.yxt.anrui.riskcenter.biz.loanhomevisitinvestigate.LoanHomevisitInvestigateService; |
|
|
import com.yxt.anrui.riskcenter.biz.loanhomevisitinvestigate.LoanHomevisitInvestigateService; |
|
|
import com.yxt.anrui.riskcenter.biz.loanhomevisitinvestigatefile.LoanHomevisitInvestigateFileService; |
|
|
import com.yxt.anrui.riskcenter.biz.loanhomevisitinvestigatefile.LoanHomevisitInvestigateFileService; |
|
|
|
|
|
import com.yxt.common.base.config.component.FileUploadComponent; |
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
import com.yxt.common.base.service.MybatisBaseService; |
|
|
import com.yxt.common.base.service.MybatisBaseService; |
|
|
import com.yxt.common.base.utils.PagerUtil; |
|
|
import com.yxt.common.base.utils.PagerUtil; |
|
|
import com.yxt.common.core.query.PagerQuery; |
|
|
import com.yxt.common.core.query.PagerQuery; |
|
|
import com.yxt.common.core.result.ResultBean; |
|
|
import com.yxt.common.core.result.ResultBean; |
|
|
import com.yxt.common.core.vo.PagerVo; |
|
|
import com.yxt.common.core.vo.PagerVo; |
|
|
import com.yxt.anrui.riskcenter.api.loanhomevisitfileexamine.LoanHomevisitFileexamine; |
|
|
|
|
|
import com.yxt.anrui.riskcenter.api.loanhomevisitfileexamine.LoanHomevisitFileexamineQuery; |
|
|
|
|
|
import com.yxt.anrui.riskcenter.api.loanhomevisitfileexamine.LoanHomevisitFileexamineVo; |
|
|
|
|
|
import com.yxt.anrui.riskcenter.api.loanhomevisitfileexamine.LoanHomevisitFileexamineDetailsVo; |
|
|
|
|
|
import com.yxt.anrui.riskcenter.api.loanhomevisitfileexamine.LoanHomevisitFileexamineDto; |
|
|
|
|
|
import com.yxt.anrui.riskcenter.api.loanhomevisitfileexamine.LoanHomevisitFileexamineFeign; |
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.stereotype.Service; |
|
@ -78,6 +75,8 @@ public class LoanHomevisitFileexamineService extends MybatisBaseService<LoanHome |
|
|
@Autowired |
|
|
@Autowired |
|
|
private SysUserFeign sysUserFeign; |
|
|
private SysUserFeign sysUserFeign; |
|
|
@Autowired |
|
|
@Autowired |
|
|
|
|
|
private FileUploadComponent fileUploadComponent; |
|
|
|
|
|
@Autowired |
|
|
private LoanHomevisitInvestigateFileService loanHomevisitInvestigateFileService; |
|
|
private LoanHomevisitInvestigateFileService loanHomevisitInvestigateFileService; |
|
|
@Autowired |
|
|
@Autowired |
|
|
private LoanHomevisitInvestigateService loanHomevisitInvestigateService; |
|
|
private LoanHomevisitInvestigateService loanHomevisitInvestigateService; |
|
@ -171,6 +170,224 @@ public class LoanHomevisitFileexamineService extends MybatisBaseService<LoanHome |
|
|
this.insertByDto(dto); |
|
|
this.insertByDto(dto); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
loanHomevisitInvestigateFileService.delByMainSid(dto.getHomeVisitSid()); |
|
|
|
|
|
//定位信息
|
|
|
|
|
|
for (String dwxx : dto.getLocation()) { |
|
|
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getHomeVisitSid()); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.DWXX.getAttachType()); |
|
|
|
|
|
if (dwxx.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
|
|
dwxx = dwxx.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
|
|
|
} |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setFileUrl(dwxx); |
|
|
|
|
|
loanHomevisitInvestigateFileService.saveOrUpdateDto(loanHomevisitInvestigateFileDto); |
|
|
|
|
|
} |
|
|
|
|
|
//房屋照片
|
|
|
|
|
|
for (String fwzp : dto.getHouse()) { |
|
|
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getHomeVisitSid()); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.FWZP.getAttachType()); |
|
|
|
|
|
if (fwzp.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
|
|
fwzp = fwzp.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
|
|
|
} |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setFileUrl(fwzp); |
|
|
|
|
|
loanHomevisitInvestigateFileService.saveOrUpdateDto(loanHomevisitInvestigateFileDto); |
|
|
|
|
|
} |
|
|
|
|
|
//门口照片
|
|
|
|
|
|
for (String mkzp : dto.getDoorway()) { |
|
|
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getHomeVisitSid()); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.MKZP.getAttachType()); |
|
|
|
|
|
if (mkzp.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
|
|
mkzp = mkzp.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
|
|
|
} |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setFileUrl(mkzp); |
|
|
|
|
|
loanHomevisitInvestigateFileService.saveOrUpdateDto(loanHomevisitInvestigateFileDto); |
|
|
|
|
|
} |
|
|
|
|
|
//客厅卧室
|
|
|
|
|
|
for (String ktwszp : dto.getIndoor()) { |
|
|
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getHomeVisitSid()); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.KTWSZP.getAttachType()); |
|
|
|
|
|
if (ktwszp.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
|
|
ktwszp = ktwszp.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
|
|
|
} |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setFileUrl(ktwszp); |
|
|
|
|
|
loanHomevisitInvestigateFileService.saveOrUpdateDto(loanHomevisitInvestigateFileDto); |
|
|
|
|
|
} |
|
|
|
|
|
//合影照等
|
|
|
|
|
|
for (String hyzd : dto.getGroupPhoto()) { |
|
|
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getHomeVisitSid()); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.HYZD.getAttachType()); |
|
|
|
|
|
if (hyzd.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
|
|
hyzd = hyzd.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
|
|
|
} |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setFileUrl(hyzd); |
|
|
|
|
|
loanHomevisitInvestigateFileService.saveOrUpdateDto(loanHomevisitInvestigateFileDto); |
|
|
|
|
|
} |
|
|
|
|
|
//贷款人身份证
|
|
|
|
|
|
for (String dkrsfz : dto.getLenderIdCard()) { |
|
|
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getHomeVisitSid()); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.DKRSFZ.getAttachType()); |
|
|
|
|
|
if (dkrsfz.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
|
|
dkrsfz = dkrsfz.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
|
|
|
} |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setFileUrl(dkrsfz); |
|
|
|
|
|
loanHomevisitInvestigateFileService.saveOrUpdateDto(loanHomevisitInvestigateFileDto); |
|
|
|
|
|
} |
|
|
|
|
|
//贷款人户口本
|
|
|
|
|
|
for (String dkrhkb : dto.getLenderAccount()) { |
|
|
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getHomeVisitSid()); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.DKRHKB.getAttachType()); |
|
|
|
|
|
if (dkrhkb.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
|
|
dkrhkb = dkrhkb.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
|
|
|
} |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setFileUrl(dkrhkb); |
|
|
|
|
|
loanHomevisitInvestigateFileService.saveOrUpdateDto(loanHomevisitInvestigateFileDto); |
|
|
|
|
|
} |
|
|
|
|
|
//贷款人婚姻证明
|
|
|
|
|
|
for (String dkrhyzm : dto.getLenderMarriageCertificate()) { |
|
|
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getHomeVisitSid()); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.DKRHYZM.getAttachType()); |
|
|
|
|
|
if (dkrhyzm.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
|
|
dkrhyzm = dkrhyzm.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
|
|
|
} |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setFileUrl(dkrhyzm); |
|
|
|
|
|
loanHomevisitInvestigateFileService.saveOrUpdateDto(loanHomevisitInvestigateFileDto); |
|
|
|
|
|
} |
|
|
|
|
|
//贷款人驾驶本
|
|
|
|
|
|
for (String dkrjsb : dto.getLenderDriverBook()) { |
|
|
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getHomeVisitSid()); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.DKRJSB.getAttachType()); |
|
|
|
|
|
if (dkrjsb.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
|
|
dkrjsb = dkrjsb.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
|
|
|
} |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setFileUrl(dkrjsb); |
|
|
|
|
|
loanHomevisitInvestigateFileService.saveOrUpdateDto(loanHomevisitInvestigateFileDto); |
|
|
|
|
|
} |
|
|
|
|
|
//贷款人银行流水
|
|
|
|
|
|
for (String dkryhls : dto.getLenderBankStatement()) { |
|
|
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getHomeVisitSid()); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.DKRYHLS.getAttachType()); |
|
|
|
|
|
if (dkryhls.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
|
|
dkryhls = dkryhls.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
|
|
|
} |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setFileUrl(dkryhls); |
|
|
|
|
|
loanHomevisitInvestigateFileService.saveOrUpdateDto(loanHomevisitInvestigateFileDto); |
|
|
|
|
|
} |
|
|
|
|
|
//配偶身份证
|
|
|
|
|
|
for (String posfz : dto.getSpouseIdCard()) { |
|
|
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getHomeVisitSid()); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.POSFZ.getAttachType()); |
|
|
|
|
|
if (posfz.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
|
|
posfz = posfz.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
|
|
|
} |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setFileUrl(posfz); |
|
|
|
|
|
loanHomevisitInvestigateFileService.saveOrUpdateDto(loanHomevisitInvestigateFileDto); |
|
|
|
|
|
} |
|
|
|
|
|
//配偶户口本
|
|
|
|
|
|
for (String pohkb : dto.getSpouseAccount()) { |
|
|
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getHomeVisitSid()); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.POHKB.getAttachType()); |
|
|
|
|
|
if (pohkb.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
|
|
pohkb = pohkb.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
|
|
|
} |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setFileUrl(pohkb); |
|
|
|
|
|
loanHomevisitInvestigateFileService.saveOrUpdateDto(loanHomevisitInvestigateFileDto); |
|
|
|
|
|
} |
|
|
|
|
|
//担保人身份证
|
|
|
|
|
|
for (String dbrsfz : dto.getGuarantorIdCard()) { |
|
|
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getHomeVisitSid()); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.DBRSFZ.getAttachType()); |
|
|
|
|
|
if (dbrsfz.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
|
|
dbrsfz = dbrsfz.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
|
|
|
} |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setFileUrl(dbrsfz); |
|
|
|
|
|
loanHomevisitInvestigateFileService.saveOrUpdateDto(loanHomevisitInvestigateFileDto); |
|
|
|
|
|
} |
|
|
|
|
|
//担保人户口本
|
|
|
|
|
|
for (String dbrhkb : dto.getGuarantorAccount()) { |
|
|
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getHomeVisitSid()); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.DBRHKB.getAttachType()); |
|
|
|
|
|
if (dbrhkb.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
|
|
dbrhkb = dbrhkb.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
|
|
|
} |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setFileUrl(dbrhkb); |
|
|
|
|
|
loanHomevisitInvestigateFileService.saveOrUpdateDto(loanHomevisitInvestigateFileDto); |
|
|
|
|
|
} |
|
|
|
|
|
//银行卡
|
|
|
|
|
|
for (String yhk : dto.getYhkImages()) { |
|
|
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getHomeVisitSid()); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.YHK.getAttachType()); |
|
|
|
|
|
if (yhk.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
|
|
yhk = yhk.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
|
|
|
} |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setFileUrl(yhk); |
|
|
|
|
|
loanHomevisitInvestigateFileService.saveOrUpdateDto(loanHomevisitInvestigateFileDto); |
|
|
|
|
|
} |
|
|
|
|
|
//房产
|
|
|
|
|
|
for (String fc : dto.getHouseProperty()) { |
|
|
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getHomeVisitSid()); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.FC.getAttachType()); |
|
|
|
|
|
if (fc.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
|
|
fc = fc.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
|
|
|
} |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setFileUrl(fc); |
|
|
|
|
|
loanHomevisitInvestigateFileService.saveOrUpdateDto(loanHomevisitInvestigateFileDto); |
|
|
|
|
|
} |
|
|
|
|
|
//车辆
|
|
|
|
|
|
for (String cl : dto.getCarProperty()) { |
|
|
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getHomeVisitSid()); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(LoanAttachTypeEnum.CL.getAttachType()); |
|
|
|
|
|
if (cl.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
|
|
cl = cl.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
|
|
|
} |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setFileUrl(cl); |
|
|
|
|
|
loanHomevisitInvestigateFileService.saveOrUpdateDto(loanHomevisitInvestigateFileDto); |
|
|
|
|
|
} |
|
|
|
|
|
List<LoanXdConDetailsDto> loanXdCons = dto.getLoanXdCons(); |
|
|
|
|
|
List<LoanZfConDetailsDto> loanZfCons = dto.getLoanZfCons(); |
|
|
|
|
|
//消贷合同附件
|
|
|
|
|
|
for (LoanXdConDetailsDto loanXdCon : loanXdCons) { |
|
|
|
|
|
List<String> loanCotractImages = loanXdCon.getLoanCotractImages(); |
|
|
|
|
|
for (String loanCotractImage : loanCotractImages) { |
|
|
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getHomeVisitSid()); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(loanXdCon.getLoanCotractNo()); |
|
|
|
|
|
if (loanCotractImage.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
|
|
loanCotractImage = loanCotractImage.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
|
|
|
} |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setFileUrl(loanCotractImage); |
|
|
|
|
|
loanHomevisitInvestigateFileService.saveOrUpdateDto(loanHomevisitInvestigateFileDto); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
//资方合同附件
|
|
|
|
|
|
for (LoanZfConDetailsDto loanZfCon : loanZfCons) { |
|
|
|
|
|
List<String> bankContractImages = loanZfCon.getBankContractImages(); |
|
|
|
|
|
for (String bankContractImage : bankContractImages) { |
|
|
|
|
|
LoanHomevisitInvestigateFileDto loanHomevisitInvestigateFileDto = new LoanHomevisitInvestigateFileDto(); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setMainSid(dto.getHomeVisitSid()); |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setAttachType(loanZfCon.getBankContractNo()); |
|
|
|
|
|
if (bankContractImage.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
|
|
bankContractImage = bankContractImage.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
|
|
|
} |
|
|
|
|
|
loanHomevisitInvestigateFileDto.setFileUrl(bankContractImage); |
|
|
|
|
|
loanHomevisitInvestigateFileService.saveOrUpdateDto(loanHomevisitInvestigateFileDto); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
this.updateByDto(dto); |
|
|
this.updateByDto(dto); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -195,19 +412,44 @@ public class LoanHomevisitFileexamineService extends MybatisBaseService<LoanHome |
|
|
LoanHomevisitFileexamine loanHomevisitFileexamine = fetchBySid(sid); |
|
|
LoanHomevisitFileexamine loanHomevisitFileexamine = fetchBySid(sid); |
|
|
BeanUtil.copyProperties(loanHomevisitFileexamine, vo); |
|
|
BeanUtil.copyProperties(loanHomevisitFileexamine, vo); |
|
|
LoanHomevisitInvestigateDetailsVo loanHomevisitInvestigateDetailsVo = loanHomevisitInvestigateService.fetchDetailsVoBySid(loanHomevisitFileexamine.getHomeVisitSid()); |
|
|
LoanHomevisitInvestigateDetailsVo loanHomevisitInvestigateDetailsVo = loanHomevisitInvestigateService.fetchDetailsVoBySid(loanHomevisitFileexamine.getHomeVisitSid()); |
|
|
|
|
|
//查询消贷合同
|
|
|
List<BusSalesOrderLoancontractDetailsVo> busSalesOrderLoancontractDetailsVos = busSalesOrderLoancontractFeign.selectByBorrowerSid(loanHomevisitInvestigateDetailsVo.getSaleOrderBorrowerSid()).getData(); |
|
|
List<BusSalesOrderLoancontractDetailsVo> busSalesOrderLoancontractDetailsVos = busSalesOrderLoancontractFeign.selectByBorrowerSid(loanHomevisitInvestigateDetailsVo.getSaleOrderBorrowerSid()).getData(); |
|
|
List<String> loanCotractNos = new ArrayList<>(); |
|
|
List<LoanXdConDetailsVo> loanXdConDetailsVos = new ArrayList<>(); |
|
|
List<String> bankContractNos = new ArrayList<>(); |
|
|
List<LoanZfConDetailsVo> loanZfConDetailsVos = new ArrayList<>(); |
|
|
for (BusSalesOrderLoancontractDetailsVo busSalesOrderLoancontractDetailsVo : busSalesOrderLoancontractDetailsVos) { |
|
|
for (BusSalesOrderLoancontractDetailsVo busSalesOrderLoancontractDetailsVo : busSalesOrderLoancontractDetailsVos) { |
|
|
loanCotractNos.add("消贷合同号" + "(" +busSalesOrderLoancontractDetailsVo.getLoanCotractNo() + ")"); |
|
|
LoanXdConDetailsVo loanXdConDetailsVo = new LoanXdConDetailsVo(); |
|
|
|
|
|
List<String> loanCotractImages = new ArrayList<>(); |
|
|
|
|
|
LoanZfConDetailsVo loanZfConDetailsVo = new LoanZfConDetailsVo(); |
|
|
|
|
|
List<String> bankContractImages = new ArrayList<>(); |
|
|
|
|
|
//消贷合同编号
|
|
|
|
|
|
loanXdConDetailsVo.setLoanCotractNo(busSalesOrderLoancontractDetailsVo.getLoanCotractNo()); |
|
|
|
|
|
loanXdConDetailsVo.setLoanCotractNoShow("消贷合同号" + "(" + busSalesOrderLoancontractDetailsVo.getLoanCotractNo() + ")"); |
|
|
|
|
|
//消贷合同附件
|
|
|
|
|
|
List<LoanHomevisitInvestigateFileDetailsVo> loanHomevisitInvestigateFileDetailsVos = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(loanHomevisitFileexamine.getHomeVisitSid(), busSalesOrderLoancontractDetailsVo.getLoanCotractNo()); |
|
|
|
|
|
if (loanHomevisitInvestigateFileDetailsVos != null && loanHomevisitInvestigateFileDetailsVos.size() > 0){ |
|
|
|
|
|
for (LoanHomevisitInvestigateFileDetailsVo loanHomevisitInvestigateFileDetailsVo : loanHomevisitInvestigateFileDetailsVos) { |
|
|
|
|
|
loanCotractImages.add(loanHomevisitInvestigateFileDetailsVo.getFileUrl()); |
|
|
|
|
|
} |
|
|
|
|
|
loanXdConDetailsVo.setLoanCotractImages(loanCotractImages); |
|
|
|
|
|
} |
|
|
|
|
|
//资方合同编号
|
|
|
if (StringUtils.isBlank(busSalesOrderLoancontractDetailsVo.getBankContractNo())) { |
|
|
if (StringUtils.isBlank(busSalesOrderLoancontractDetailsVo.getBankContractNo())) { |
|
|
bankContractNos.add("资方合同号(暂无)"); |
|
|
loanZfConDetailsVo.setBankContractNoShow("资方合同号(暂无)"); |
|
|
} else { |
|
|
} else { |
|
|
bankContractNos.add("资方合同号" + "(" +busSalesOrderLoancontractDetailsVo.getLoanCotractNo() + ")"); |
|
|
loanZfConDetailsVo.setBankContractNo(busSalesOrderLoancontractDetailsVo.getLoanCotractNo()); |
|
|
|
|
|
loanZfConDetailsVo.setBankContractNoShow("资方合同号" + "(" + busSalesOrderLoancontractDetailsVo.getLoanCotractNo() + ")"); |
|
|
|
|
|
//资方合同附件
|
|
|
|
|
|
List<LoanHomevisitInvestigateFileDetailsVo> loanHomevisitInvestigateFileDetailsVos2 = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(loanHomevisitFileexamine.getHomeVisitSid(), busSalesOrderLoancontractDetailsVo.getLoanCotractNo()); |
|
|
|
|
|
if (loanHomevisitInvestigateFileDetailsVos2 != null && loanHomevisitInvestigateFileDetailsVos2.size() > 0){ |
|
|
|
|
|
for (LoanHomevisitInvestigateFileDetailsVo loanHomevisitInvestigateFileDetailsVo : loanHomevisitInvestigateFileDetailsVos2) { |
|
|
|
|
|
bankContractImages.add(loanHomevisitInvestigateFileDetailsVo.getFileUrl()); |
|
|
|
|
|
} |
|
|
|
|
|
loanZfConDetailsVo.setBankContractImages(bankContractImages); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
vo.setLoanCotractNos(loanCotractNos); |
|
|
vo.setLoanXdCons(loanXdConDetailsVos); |
|
|
vo.setBankContractNos(bankContractNos); |
|
|
vo.setLoanZfCons(loanZfConDetailsVos); |
|
|
//定位信息
|
|
|
//定位信息
|
|
|
List<LoanHomevisitInvestigateFileDetailsVo> dwxxImages = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.DWXX.getAttachType()); |
|
|
List<LoanHomevisitInvestigateFileDetailsVo> dwxxImages = loanHomevisitInvestigateFileService.selByMainSidAndTypeKey(sid, LoanAttachTypeEnum.DWXX.getAttachType()); |
|
|
List<String> location = new ArrayList<>(); |
|
|
List<String> location = new ArrayList<>(); |
|
|