|
|
@ -4,7 +4,6 @@ import cn.hutool.core.bean.BeanUtil; |
|
|
|
import com.yxt.anrui.buscenter.api.bussalesorder.BusSalesOrder; |
|
|
|
import com.yxt.anrui.buscenter.api.bussalesorder.BusSalesOrderFeign; |
|
|
|
import com.yxt.anrui.buscenter.api.bussalesorder.BusSalesOrdersVo; |
|
|
|
import com.yxt.anrui.buscenter.api.bussalesorder.OrderSolutionVo; |
|
|
|
import com.yxt.anrui.buscenter.api.bussalesorder.app.order.AppOrderDetailsVo; |
|
|
|
import com.yxt.anrui.buscenter.api.bussalesorder.app.order.AppOrderPriceInfoVo; |
|
|
|
import com.yxt.anrui.buscenter.api.bussalesordermodel.BusSalesOrderModel; |
|
|
@ -2535,6 +2534,24 @@ public class LoanSolutionsService extends MybatisBaseService<LoanSolutionsMapper |
|
|
|
SolutionssVo solutionssVo = new SolutionssVo(); |
|
|
|
BeanUtil.copyProperties(query, solutionssVo); |
|
|
|
solutionssVo.setBusSid(query.getSaleOrderSid()); |
|
|
|
//三方金融时贴息抵车款小于等于厂家贴息
|
|
|
|
String saleOrderSid = query.getSaleOrderSid(); |
|
|
|
BusSalesOrder order = busSalesOrderFeign.fetchBySid(saleOrderSid).getData(); |
|
|
|
if (null != order) { |
|
|
|
if (order.getFinancePlanValue().equals("三方金融")) { |
|
|
|
BigDecimal cjtx = BigDecimal.ZERO;//厂家贴息
|
|
|
|
BigDecimal txdck = BigDecimal.ZERO;//贴息抵车款
|
|
|
|
if (StringUtils.isNotBlank(query.getFactoryDiscount())) { |
|
|
|
cjtx = new BigDecimal(query.getFactoryDiscount()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(query.getDiscountCar())) { |
|
|
|
txdck = new BigDecimal(query.getDiscountCar()); |
|
|
|
} |
|
|
|
if (txdck.compareTo(cjtx) > 0) { |
|
|
|
return rb.setMsg("贴息抵车款应小于等于厂家贴息"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (query.isShowMore()) { |
|
|
|
if (query.isPremiumCb()) { |
|
|
|
//保险
|
|
|
|