提交代码

dev-discount
胡锐 2 years ago
parent 0352cf0a0f
commit 42bc1db51d
  1. 2
      hai-bweb/src/main/java/com/bweb/controller/HighTestController.java
  2. 13
      hai-schedule/src/main/java/com/hai/schedule/HighGasSchedule.java

File diff suppressed because one or more lines are too long

@ -151,25 +151,16 @@ public class HighGasSchedule {
} }
} }
/* @Scheduled(cron = "0 1 0 * * ?") //每日凌晨12点01分执行一次 @Scheduled(cron = "0 1 0 * * ?") // 每日凌晨12点01分执行一次
public void getJiaHaoYouAllStation() throws Exception { public void getJiaHaoYouAllStation() throws Exception {
gasService.getJiaHaoYouAllStation(); gasService.getJiaHaoYouAllStation();
} }
@Scheduled(cron = "0 1 0 * * ?") //每日凌晨12点01分执行一次 /* @Scheduled(cron = "0 1 0 * * ?") //每日凌晨12点01分执行一次
public void getJinZhuAllStation() throws Exception { public void getJinZhuAllStation() throws Exception {
gasService.getJinZhuAllStation(); gasService.getJinZhuAllStation();
}*/ }*/
@Scheduled(cron = "0 40 7 13 * ?")
public void getJinZhuAllStation() throws Exception {
HighMerchantStoreModel store = highMerchantStoreService.getMerchantStoreByKey("11052456");
if (store != null) {
store.setStatus(0);
highMerchantStoreService.updateMerchantStoreDetail(store);
}
}
/* @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();

Loading…
Cancel
Save