Browse Source

Merge remote-tracking branch 'origin/master'

zhanglei
fanzongzhe 2 years ago
parent
commit
4f0850e1c8
  1. 54
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanhomevisitinvestigate/LoanHomevisitInvestigateService.java

54
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanhomevisitinvestigate/LoanHomevisitInvestigateService.java

@ -413,6 +413,8 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome
|| StringUtils.isBlank(loanHomevisitInvestigateCustomerDetailsVo.getRelationshipValue())
|| StringUtils.isBlank(loanHomevisitInvestigateCustomerDetailsVo.getBankCardNo())) {
loanHomeVisitInvestigateInitReportStateVo.setCustomerState(0);
} else if (loanHomevisitInvestigateFileDetailsVos == null || loanHomevisitInvestigateFileDetailsVos.size() == 0) {
loanHomeVisitInvestigateInitReportStateVo.setCustomerState(0);
} else if ("0004".equals(loanHomevisitInvestigateCustomerDetailsVo.getMaritalStatusKey())) {
if (StringUtils.isBlank(loanHomevisitInvestigateCustomerDetailsVo.getSpouseName())
|| StringUtils.isBlank(loanHomevisitInvestigateCustomerDetailsVo.getSpouseIdNumber())
@ -421,9 +423,9 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome
|| StringUtils.isBlank(loanHomevisitInvestigateCustomerDetailsVo.getSpouseDomAddress())
|| StringUtils.isBlank(loanHomevisitInvestigateCustomerDetailsVo.getSpousePreAddress())) {
loanHomeVisitInvestigateInitReportStateVo.setCustomerState(0);
} else {
loanHomeVisitInvestigateInitReportStateVo.setCustomerState(1);
}
} else if (loanHomevisitInvestigateFileDetailsVos == null || loanHomevisitInvestigateFileDetailsVos.size() == 0) {
loanHomeVisitInvestigateInitReportStateVo.setCustomerState(0);
} else {
loanHomeVisitInvestigateInitReportStateVo.setCustomerState(1);
}
@ -501,12 +503,12 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome
if (loanHomevisitInvestigatePropertyDetailsVo == null) {
loanHomeVisitInvestigateInitReportStateVo.setAssetsState(0);
} else {
if (loanHomevisitInvestigatePropertyDetailsVo.getIsRealEstate()) {
if (loanHomevisitInvestigatePropertyDetailsVo.getIsRealEstate() != null && loanHomevisitInvestigatePropertyDetailsVo.getIsRealEstate()) {
if (loanHomevisitInvestigatePropertyDetailsVo.getPropertyType() == 0
|| StringUtils.isBlank(loanHomevisitInvestigatePropertyDetailsVo.getRealLoanSituation())) {
loanHomeVisitInvestigateInitReportStateVo.setAssetsState(0);
}
} else if (loanHomevisitInvestigatePropertyDetailsVo.getIsCar()) {
} else if (loanHomevisitInvestigatePropertyDetailsVo.getIsCar() != null && loanHomevisitInvestigatePropertyDetailsVo.getIsCar()) {
if (loanHomevisitInvestigatePropertyDetailsVo.getCarType() == 0
|| StringUtils.isBlank(loanHomevisitInvestigatePropertyDetailsVo.getCarLoanSituation())) {
loanHomeVisitInvestigateInitReportStateVo.setAssetsState(0);
@ -895,28 +897,32 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome
BeanUtil.copyProperties(loanHomevisitInvestigatePropertyDetailsVo, loanHomevisitInvestigatePropertyDto);
}
loanHomevisitInvestigatePropertyDto.setIsRealEstate(dto.getHouseCheck());
if (dto.getHouseCheck()) {
loanHomevisitInvestigatePropertyDto.setPropertyType(dto.getHouseState());
loanHomevisitInvestigatePropertyDto.setRealLoanSituationKey(dto.getHouseLoanKey());
loanHomevisitInvestigatePropertyDto.setRealLoanSituation(dto.getHouseLoan());
loanHomevisitInvestigatePropertyDto.setRealRemarks(dto.getHouseRemarks());
} else {
loanHomevisitInvestigatePropertyDto.setPropertyType(0);
loanHomevisitInvestigatePropertyDto.setRealLoanSituationKey("");
loanHomevisitInvestigatePropertyDto.setRealLoanSituation("");
loanHomevisitInvestigatePropertyDto.setRealRemarks("");
if (dto.getHouseCheck() != null){
if (dto.getHouseCheck()) {
loanHomevisitInvestigatePropertyDto.setPropertyType(dto.getHouseState());
loanHomevisitInvestigatePropertyDto.setRealLoanSituationKey(dto.getHouseLoanKey());
loanHomevisitInvestigatePropertyDto.setRealLoanSituation(dto.getHouseLoan());
loanHomevisitInvestigatePropertyDto.setRealRemarks(dto.getHouseRemarks());
} else {
loanHomevisitInvestigatePropertyDto.setPropertyType(0);
loanHomevisitInvestigatePropertyDto.setRealLoanSituationKey("");
loanHomevisitInvestigatePropertyDto.setRealLoanSituation("");
loanHomevisitInvestigatePropertyDto.setRealRemarks("");
}
}
loanHomevisitInvestigatePropertyDto.setIsCar(dto.getCarCheck());
if (dto.getCarCheck()) {
loanHomevisitInvestigatePropertyDto.setCarType(dto.getCarState());
loanHomevisitInvestigatePropertyDto.setCarLoanSituationKey(dto.getCarLoanKey());
loanHomevisitInvestigatePropertyDto.setCarLoanSituation(dto.getCarLoan());
loanHomevisitInvestigatePropertyDto.setCarRemarks(dto.getCarRemarks());
} else {
loanHomevisitInvestigatePropertyDto.setCarType(0);
loanHomevisitInvestigatePropertyDto.setCarLoanSituationKey("");
loanHomevisitInvestigatePropertyDto.setCarLoanSituation("");
loanHomevisitInvestigatePropertyDto.setCarRemarks("");
if (dto.getCarCheck() != null){
if (dto.getCarCheck()) {
loanHomevisitInvestigatePropertyDto.setCarType(dto.getCarState());
loanHomevisitInvestigatePropertyDto.setCarLoanSituationKey(dto.getCarLoanKey());
loanHomevisitInvestigatePropertyDto.setCarLoanSituation(dto.getCarLoan());
loanHomevisitInvestigatePropertyDto.setCarRemarks(dto.getCarRemarks());
} else {
loanHomevisitInvestigatePropertyDto.setCarType(0);
loanHomevisitInvestigatePropertyDto.setCarLoanSituationKey("");
loanHomevisitInvestigatePropertyDto.setCarLoanSituation("");
loanHomevisitInvestigatePropertyDto.setCarRemarks("");
}
}
loanHomevisitInvestigatePropertyDto.setDownPaySourceKey(dto.getDownPaymentKey());
loanHomevisitInvestigatePropertyDto.setDownPaySourceValue(dto.getDownPayment());

Loading…
Cancel
Save