|
|
@ -29,6 +29,7 @@ import cn.hutool.core.bean.BeanUtil; |
|
|
|
import com.yxt.anrui.buscenter.api.bussalesorder.BusSalesOrder; |
|
|
|
import com.yxt.anrui.buscenter.api.bussalesorder.app.order.AppOrderPriceInfoVo; |
|
|
|
import com.yxt.anrui.buscenter.api.bussalesordermakeup.BusSalesOrderMakeupDetailsVo; |
|
|
|
import com.yxt.anrui.buscenter.api.bussalesordermodel.BusSalesOrderModelDetailsVo; |
|
|
|
import com.yxt.anrui.buscenter.api.bussalesorderprice.BusSalesOrderPrice; |
|
|
|
import com.yxt.anrui.buscenter.api.bussalesorderprice.BusSalesOrderPriceDetailsVo; |
|
|
|
import com.yxt.anrui.buscenter.api.bussalesorderprice.BusSalesOrderPriceDto; |
|
|
@ -131,18 +132,22 @@ public class BusSalesOrderPriceService extends MybatisBaseService<BusSalesOrderP |
|
|
|
} |
|
|
|
AppBusSalesOrderPriceVo vo = new AppBusSalesOrderPriceVo(); |
|
|
|
AppBusSalesOrderPriceVo vo1 = baseMapper.getPriceInfo(sid); |
|
|
|
BusSalesOrderModelDetailsVo detailsVo = busSalesOrderModelService.details(sid); |
|
|
|
BeanUtil.copyProperties(vo1, vo); |
|
|
|
BigDecimal bigDecimalFinalPrice = new BigDecimal("0"); |
|
|
|
if(detailsVo == null){ |
|
|
|
return rb.setMsg("请先完善车型信息"); |
|
|
|
} |
|
|
|
if (vo1 != null) { |
|
|
|
//查询挂车和上装的总价
|
|
|
|
BusSalesOrderMakeupDetailsVo busSalesOrderMakeupDetailsVo = busSalesOrderMakeupService.details(sid); |
|
|
|
if (busSalesOrderMakeupDetailsVo != null) { |
|
|
|
String topPrice = busSalesOrderMakeupDetailsVo.getTopPrice(); |
|
|
|
vo.setTopAndTrailerPrice(topPrice); |
|
|
|
bigDecimalFinalPrice = bigDecimalFinalPrice.add(new BigDecimal(topPrice)); |
|
|
|
if(StringUtils.isNotBlank(topPrice)){ |
|
|
|
vo.setTopAndTrailerPrice(topPrice); |
|
|
|
bigDecimalFinalPrice = bigDecimalFinalPrice.add(new BigDecimal(topPrice)); |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
return rb.setMsg("请先完善车型信息"); |
|
|
|
} |
|
|
|
|
|
|
|
if (StringUtils.isNotBlank(vo.getTransactionPrice())) { |
|
|
|