提交代码

dev-discount
胡锐 2 years ago
parent 5e9230c9dd
commit 738bb24690
  1. 4
      hai-cweb/src/main/java/com/cweb/controller/HighOrderController.java
  2. 5
      hai-schedule/src/main/java/com/hai/schedule/HighGasSchedule.java
  3. 2
      hai-service/src/main/java/com/hai/service/impl/HighOrderServiceImpl.java

@ -329,13 +329,13 @@ public class HighOrderController {
childOrder.setGasPriceGun(priceModel.getPriceGun()); childOrder.setGasPriceGun(priceModel.getPriceGun());
childOrder.setGasPriceVip(priceModel.getPriceGun()); childOrder.setGasPriceVip(priceModel.getPriceGun());
childOrder.setGasPriceOfficial(new BigDecimal("0")); childOrder.setGasPriceOfficial(new BigDecimal("0"));
childOrder.setGasPricePlatform(priceModel.getPriceVip()); childOrder.setGasPricePlatform(priceModel.getPriceGun());
childOrder.setGasOilLiters(priceModel.getOilLiters()); childOrder.setGasOilLiters(priceModel.getOilLiters());
childOrder.setGasDiscount(new BigDecimal("0")); childOrder.setGasDiscount(new BigDecimal("0"));
childOrder.setExt1(childOrder.getGasPricePlatform().toString()); childOrder.setExt1(childOrder.getGasPricePlatform().toString());
childOrder.setGasOilSubsidy(new BigDecimal("0")); childOrder.setGasOilSubsidy(new BigDecimal("0"));
childOrder.setGasLitersPreferences(new BigDecimal("0")); childOrder.setGasLitersPreferences(new BigDecimal("0"));
childOrder.setGasPricePreferences(priceModel.getPriceVip()); childOrder.setGasPricePreferences(priceModel.getPriceGun());
} else { } else {
// 支付价格 // 支付价格
childOrder.setGoodsActualPrice(priceModel.getPayPrice()); childOrder.setGoodsActualPrice(priceModel.getPayPrice());

@ -156,6 +156,11 @@ public class HighGasSchedule {
gasService.getJiaHaoYouAllStation(); gasService.getJiaHaoYouAllStation();
} }
@Scheduled(cron = "0 1 0 * * ?") //每日凌晨12点01分执行一次
public void getJinZhuAllStation() throws Exception {
gasService.getJinZhuAllStation();
}
/* @Scheduled(cron = "0 30 7 * * ?") //每日7点1分执行一次 /* @Scheduled(cron = "0 30 7 * * ?") //每日7点1分执行一次
public void refreshPriceOfficial() throws Exception { public void refreshPriceOfficial() throws Exception {
gasOilPriceOfficialService.refreshPriceOfficial(); gasOilPriceOfficialService.refreshPriceOfficial();

@ -343,7 +343,7 @@ public class HighOrderServiceImpl implements HighOrderService {
"抵扣积分订单:" + highOrder.getOrderNo() + ",使用积分:" + highOrder.getPayGold()); "抵扣积分订单:" + highOrder.getOrderNo() + ",使用积分:" + highOrder.getPayGold());
highOrder.setOrderStatus(OrderStatusEnum.type3.getType()); highOrder.setOrderStatus(OrderStatusEnum.type3.getType());
highOrder.setPayablePrice(highOrder.getPayPrice()); highOrder.setPayRealPrice(highOrder.getPayPrice());
highOrder.setPayTime(new Date()); highOrder.setPayTime(new Date());
for (HighChildOrder childOrder : highOrder.getHighChildOrderList()) { for (HighChildOrder childOrder : highOrder.getHighChildOrderList()) {

Loading…
Cancel
Save