|
|
@ -4779,6 +4779,15 @@ public class BusSalesOrderService extends MybatisBaseService<BusSalesOrderMapper |
|
|
|
//更新临时号
|
|
|
|
ResultBean busSalesOrderResultBean = busSalesOrderVehicleService.updateTemporaryNo(salesOrderVinSid, temporaryNo); |
|
|
|
} |
|
|
|
}else{ |
|
|
|
for (int i = 0; i < vinList.size(); i++) { |
|
|
|
//销售订单中车辆表的sid
|
|
|
|
String salesOrderVinSid = vinList.get(i).getSid(); |
|
|
|
String temporaryNum = String.format("%02d", i + 1); |
|
|
|
//更新临时号
|
|
|
|
ResultBean busSalesOrderResultBean = busSalesOrderVehicleService.updateTemporaryNo(salesOrderVinSid, temporaryNum); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
//查询是否是结转金额,如果是,则订金金额为补交金额/台数。若为现金则为单台订金
|
|
|
|
String key = depositInfo.getDepositTypeKey(); |
|
|
@ -5718,7 +5727,7 @@ public class BusSalesOrderService extends MybatisBaseService<BusSalesOrderMapper |
|
|
|
String totaldiscount = appOrderDetailsVo.getTotaldiscount(); |
|
|
|
if (StringUtils.isNotBlank(totaldiscount)) { |
|
|
|
//计算单台优惠
|
|
|
|
BigDecimal bigDecimal = new BigDecimal(totaldiscount).divide(new BigDecimal(total)); |
|
|
|
BigDecimal bigDecimal = new BigDecimal(totaldiscount).divide(new BigDecimal(total),BigDecimal.ROUND_CEILING); |
|
|
|
busSaleOrderVehicleOutVo.setTotaldiscount(bigDecimal.toString()); |
|
|
|
//赠送情况
|
|
|
|
List<AppOrderDiscountListVo> discountList = appOrderDetailsVo.getDiscountList(); |
|
|
|