|
|
@ -141,6 +141,8 @@ import com.yxt.anrui.portal.api.sysuser.PrivilegeQuery; |
|
|
|
import com.yxt.anrui.portal.api.sysuser.SysUserFeign; |
|
|
|
import com.yxt.anrui.portal.api.sysuser.SysUserVo; |
|
|
|
import com.yxt.anrui.portal.api.sysuser.UserQuery; |
|
|
|
import com.yxt.anrui.riskcenter.api.loanfileexamine.LoanFileexamine; |
|
|
|
import com.yxt.anrui.riskcenter.api.loanfileexamine.LoanFileexamineFeign; |
|
|
|
import com.yxt.anrui.riskcenter.api.loanparameter.LoanParameterFeign; |
|
|
|
import com.yxt.anrui.riskcenter.api.loansolutions.LoanSolutionsFeign; |
|
|
|
import com.yxt.anrui.riskcenter.api.loansolutions.app.SolutionsDetailsVo; |
|
|
@ -258,6 +260,8 @@ public class BusDeliveredApplyService extends MybatisBaseService<BusDeliveredApp |
|
|
|
private BusValcustFilingService busValcustFilingService; |
|
|
|
@Autowired |
|
|
|
private BusArrearsCarryVehicleApplyService busArrearsCarryVehicleApplyService; |
|
|
|
@Autowired |
|
|
|
private LoanFileexamineFeign loanFileexamineFeign; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
@ -2579,6 +2583,8 @@ public class BusDeliveredApplyService extends MybatisBaseService<BusDeliveredApp |
|
|
|
if (!detailsList.isEmpty()) { |
|
|
|
for (int i = 0; i < detailsList.size(); i++) { |
|
|
|
BusDeliveredApplyDetails busDeliveredApplyDetails = detailsList.get(i); |
|
|
|
//根据合同编号和车辆sid查询销售订单的车辆信息
|
|
|
|
BusSalesOrderVehicle busSalesOrderVehicle = busSalesOrderVehicleService.selectByNoAndVinSid(busDeliveredApply.getContractNo(), busDeliveredApplyDetails.getVinSid()); |
|
|
|
AppCarListVo appCarListVo = new AppCarListVo(); |
|
|
|
appCarListVo.setDiscount(busDeliveredApplyDetails.getSingleCarDiscountPrice()); |
|
|
|
appCarListVo.setVinSid(busDeliveredApplyDetails.getVinSid()); |
|
|
@ -2615,6 +2621,34 @@ public class BusDeliveredApplyService extends MybatisBaseService<BusDeliveredApp |
|
|
|
BeanUtil.copyProperties(busDeliveredUseMessage, realBuyer); |
|
|
|
realBuyer.setVin(busDeliveredApplyDetails.getVinNo()); |
|
|
|
appCarListVo.setRealBuyer(realBuyer); |
|
|
|
//===============================添加资料是否齐全和资方放款是否审核
|
|
|
|
BusSalesOrder busSalesOrder = busSalesOrderService.fetchBySid(busSalesOrderVehicle.getSalesOrderSid()); |
|
|
|
if(busSalesOrder != null && "2".equals(busSalesOrder.getPayTypeKey())){ |
|
|
|
String saleOrderSid = busSalesOrderVehicle.getSalesOrderSid(); |
|
|
|
String loanContractSid = busSalesOrderVehicle.getLoanContractSid(); |
|
|
|
//根据消贷合同和销售订单查询
|
|
|
|
ResultBean<LoanFileexamine> loanFileexamineResultBean = loanFileexamineFeign.selectOrderSidAndContract(saleOrderSid,loanContractSid); |
|
|
|
if(!loanFileexamineResultBean.getSuccess()){ |
|
|
|
appCarListVo.setBankStateValue("未审核"); |
|
|
|
appCarListVo.setZlStateValue("否"); |
|
|
|
}else{ |
|
|
|
LoanFileexamine loanFileexamine = loanFileexamineResultBean.getData(); |
|
|
|
if("1".equals(loanFileexamine.getZlState())){ |
|
|
|
appCarListVo.setZlStateValue("是"); |
|
|
|
appCarListVo.setZlState(loanFileexamine.getZlState()); |
|
|
|
}else{ |
|
|
|
appCarListVo.setZlStateValue("否"); |
|
|
|
appCarListVo.setZlState(loanFileexamine.getZlState()); |
|
|
|
} |
|
|
|
if(StringUtils.isBlank(loanFileexamine.getBankStateValue())){ |
|
|
|
appCarListVo.setBankStateValue("未审核"); |
|
|
|
}else{ |
|
|
|
appCarListVo.setBankStateValue(loanFileexamine.getBankStateValue()); |
|
|
|
appCarListVo.setBankStateKey(loanFileexamine.getBankStateKey()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
carList.add(appCarListVo); |
|
|
|
} |
|
|
|
} |
|
|
|