注释不需要的定时任务

2.0-dev
胡锐 4 months ago
parent b006cd6d7c
commit 45ffb3ba18
  1. 2
      hai-cweb/src/main/java/com/cweb/controller/HighTestController.java
  2. 4
      hai-schedule/src/main/java/com/hai/schedule/ApiBlxCouponSchedule.java
  3. 2
      hai-schedule/src/main/java/com/hai/schedule/ApiThirdProductSchedule.java
  4. 6
      hai-schedule/src/main/java/com/hai/schedule/HighCouponSchedule.java
  5. 8
      hai-schedule/src/main/java/com/hai/schedule/HighDiscountSchedule.java
  6. 6
      hai-schedule/src/main/java/com/hai/schedule/HighGasSchedule.java
  7. 4
      hai-schedule/src/main/java/com/hai/schedule/HighIntegralSchedule.java
  8. 4
      hai-schedule/src/main/java/com/hai/schedule/HighOrderSchedule.java
  9. 4
      hai-schedule/src/main/java/com/hai/schedule/HighRechargeOrderSchedule.java
  10. 1
      hai-schedule/src/main/java/com/hai/schedule/HighTestController.java
  11. 4
      hai-schedule/src/main/java/com/hai/schedule/SynchronizeCNPC.java

File diff suppressed because one or more lines are too long

@ -26,7 +26,7 @@ public class ApiBlxCouponSchedule {
@Resource @Resource
private BlxConfig blxConfig; private BlxConfig blxConfig;
/*
@Scheduled(cron="0 0/60 * * * ?") //每60分钟执行一次 @Scheduled(cron="0 0/60 * * * ?") //每60分钟执行一次
public void getBlxCoupon() { public void getBlxCoupon() {
JSONObject object = blxConfig.queryCouponPage(); JSONObject object = blxConfig.queryCouponPage();
@ -72,6 +72,6 @@ public class ApiBlxCouponSchedule {
} }
} }*/
} }

@ -25,6 +25,7 @@ public class ApiThirdProductSchedule {
@Resource @Resource
private ApiProductService apiProductService; private ApiProductService apiProductService;
/*
@Scheduled(cron="0 0/30 * * * ?") //每30分钟执行一次 @Scheduled(cron="0 0/30 * * * ?") //每30分钟执行一次
public void getStarbucksProducts() throws Exception { public void getStarbucksProducts() throws Exception {
@ -116,5 +117,6 @@ public class ApiThirdProductSchedule {
} }
} }
} }
*/
} }

@ -74,11 +74,11 @@ public class HighCouponSchedule {
} }
} }
/** /* *//**
* @Author 胡锐 * @Author 胡锐
* @Description 处理汇联卡券状态 * @Description 处理汇联卡券状态
* @Date 2021/4/4 22:44 * @Date 2021/4/4 22:44
**/ **//*
@Scheduled(cron="0 0/10 * * * ?") //每10分钟执行一次 @Scheduled(cron="0 0/10 * * * ?") //每10分钟执行一次
public void handleCouponStatus() throws Exception { public void handleCouponStatus() throws Exception {
HighCouponCodeOtherExample example = new HighCouponCodeOtherExample(); HighCouponCodeOtherExample example = new HighCouponCodeOtherExample();
@ -129,7 +129,7 @@ public class HighCouponSchedule {
} }
} }
} }
} }*/
@Scheduled(cron="0 0/15 * * * ?") //每30分钟执行一次 @Scheduled(cron="0 0/15 * * * ?") //每30分钟执行一次

@ -43,7 +43,7 @@ public class HighDiscountSchedule {
* @Date 2021/4/4 22:44 * @Date 2021/4/4 22:44
**/ **/
//@Scheduled(cron = "5 0 0 * * ?") //每日凌晨12点5秒执行一次 //@Scheduled(cron = "5 0 0 * * ?") //每日凌晨12点5秒执行一次
@Scheduled(cron="0 0/1 * * * ?") //每1分钟执行一次 /* @Scheduled(cron="0 0/1 * * * ?") //每1分钟执行一次
public void expiredDiscount() { public void expiredDiscount() {
List<HighDiscountUserRel> expiredDiscount = highDiscountUserRelService.getExpiredDiscount(); List<HighDiscountUserRel> expiredDiscount = highDiscountUserRelService.getExpiredDiscount();
for (HighDiscountUserRel rel : expiredDiscount) { for (HighDiscountUserRel rel : expiredDiscount) {
@ -61,10 +61,10 @@ public class HighDiscountSchedule {
log.error("HighCouponSchedule --> expiredCoupon() error!", e); log.error("HighCouponSchedule --> expiredCoupon() error!", e);
} }
} }
} }*/
@Scheduled(cron = "0 5 0 * * ?") // 每日凌晨00:00:5执行一次 /* @Scheduled(cron = "0 5 0 * * ?") // 每日凌晨00:00:5执行一次
public void deleteOilNo() { public void deleteOilNo() {
List<BsTemporary> list = bsTemporaryServices.getList(new HashMap<>()); List<BsTemporary> list = bsTemporaryServices.getList(new HashMap<>());
@ -80,6 +80,6 @@ public class HighDiscountSchedule {
} }
} }*/
} }

@ -147,22 +147,24 @@ public class HighGasSchedule {
// } // }
// } // }
// } // }
/*
@Scheduled(cron = "5 0 0 * * ?") // 每日凌晨00:00:5执行一次 @Scheduled(cron = "5 0 0 * * ?") // 每日凌晨00:00:5执行一次
public void getJiaHaoYouAllStation() throws Exception { public void getJiaHaoYouAllStation() throws Exception {
// gasService.getJiaHaoYouAllStation(); // gasService.getJiaHaoYouAllStation();
} }
*/
// @Scheduled(cron = "5 0 0 * * ?") // 每日凌晨00:00:5执行一次 // @Scheduled(cron = "5 0 0 * * ?") // 每日凌晨00:00:5执行一次
// public void getPayloAllStation() throws Exception { // public void getPayloAllStation() throws Exception {
// gasService.getPayloAllStation(); // gasService.getPayloAllStation();
// } // }
@Scheduled(cron = "5 0 0 * * ?") // 每日凌晨00:00:5执行一次 @Scheduled(cron = "0 0 2 * * ?") // 每日凌晨00:00:5执行一次
public void getDianAllStation() throws Exception { public void getDianAllStation() throws Exception {
gasService.getDianAllStation(); gasService.getDianAllStation();
} }
@Scheduled(cron = "0 0 3 * * ?") // 每日凌晨00:00:7执行一次 @Scheduled(cron = "0 0 4 * * ?") // 每日凌晨00:00:7执行一次
public void deleteOilNo() { public void deleteOilNo() {
gasService.deleteOilNo(); gasService.deleteOilNo();
} }

@ -30,7 +30,7 @@ public class HighIntegralSchedule {
@Resource @Resource
private HighUserService highUserService; private HighUserService highUserService;
@Scheduled(cron="0 0/5 * * * ?") //每5分钟执行一次 /* @Scheduled(cron="0 0/5 * * * ?") //每5分钟执行一次
public void integralRebateOrder() { public void integralRebateOrder() {
List<HighGoldRec> list = highGoldRecService.selectByExpiringSoonByAll(365); List<HighGoldRec> list = highGoldRecService.selectByExpiringSoonByAll(365);
@ -44,6 +44,6 @@ public class HighIntegralSchedule {
} }
} }*/
} }

@ -74,7 +74,7 @@ public class HighOrderSchedule {
* @Param [] * @Param []
* @return void * @return void
*/ */
@Scheduled(cron="0 0/10 * * * ?") //每 10分钟执行一次 /* @Scheduled(cron="0 0/10 * * * ?") //每 10分钟执行一次
public void integralRebateOrder() { public void integralRebateOrder() {
// 查询满足初步返利条件订单 // 查询满足初步返利条件订单
@ -99,7 +99,7 @@ public class HighOrderSchedule {
highOrderService.updateOrderDetail(highOrder); highOrderService.updateOrderDetail(highOrder);
} }
} }*/
} }

@ -50,7 +50,7 @@ public class HighRechargeOrderSchedule {
* @Date 14:18 2022/5/31 * @Date 14:18 2022/5/31
* @Param [] * @Param []
*/ */
@Scheduled(cron = "0 0/60 * * * ?") //每60分钟执行一次 /* @Scheduled(cron = "0 0/60 * * * ?") //每60分钟执行一次
public void initRechargeOrder() { public void initRechargeOrder() {
log.info("处理话费订单定时任务开始"); log.info("处理话费订单定时任务开始");
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
@ -67,7 +67,7 @@ public class HighRechargeOrderSchedule {
} }
} }
} }
} }*/
} }

File diff suppressed because one or more lines are too long

@ -38,7 +38,7 @@ public class SynchronizeCNPC {
@Resource @Resource
private SecSinopecConfigService secSinopecConfigService; private SecSinopecConfigService secSinopecConfigService;
/*
@Scheduled(cron="0 0/5 * * * ?") //每5分钟执行一次 @Scheduled(cron="0 0/5 * * * ?") //每5分钟执行一次
public void certification() { public void certification() {
@ -145,7 +145,7 @@ public class SynchronizeCNPC {
} }
} }
} }
} }*/
/*@Scheduled(cron="0 0/1 * * * ?") //每5分钟执行一次 /*@Scheduled(cron="0 0/1 * * * ?") //每5分钟执行一次
public void certification3(){ public void certification3(){

Loading…
Cancel
Save