| @@ -3,6 +3,7 @@ package com.iformall.controller.contract; | |||||
| import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | ||||
| import com.github.pagehelper.PageInfo; | import com.github.pagehelper.PageInfo; | ||||
| import com.iformall.annotation.SystemControllerLog; | import com.iformall.annotation.SystemControllerLog; | ||||
| import com.iformall.annotation.TenantIgnore; | |||||
| import com.iformall.annotation.UserDataRuleAnnotation; | import com.iformall.annotation.UserDataRuleAnnotation; | ||||
| import com.iformall.common.ErrorCode; | import com.iformall.common.ErrorCode; | ||||
| import com.iformall.common.Result; | import com.iformall.common.Result; | ||||
| @@ -712,6 +713,7 @@ public class WxRentContractController extends WxContractBaseController { | |||||
| @GetMapping("/init") | @GetMapping("/init") | ||||
| @TenantIgnore | |||||
| public ResultData init() { | public ResultData init() { | ||||
| List<WxRentContract> clist = wxRentContractService.findList(new WxRentContract()); | List<WxRentContract> clist = wxRentContractService.findList(new WxRentContract()); | ||||
| for (WxRentContract wrc: clist) { | for (WxRentContract wrc: clist) { | ||||
| @@ -37,7 +37,7 @@ public class ContractSchedule { | |||||
| /** | /** | ||||
| * 凌晨5分 | * 凌晨5分 | ||||
| */ | */ | ||||
| @Scheduled(cron = "0 0/2 * * * ?") | |||||
| @Scheduled(cron = "0 0/5 * * * ?") | |||||
| public void updateContractStatus() { | public void updateContractStatus() { | ||||
| //更新合同状态,正常到期 | //更新合同状态,正常到期 | ||||
| @@ -48,7 +48,7 @@ public class CouponOrderExpiringSchedule { | |||||
| @Autowired | @Autowired | ||||
| private WxOrderService wxOrderService; | private WxOrderService wxOrderService; | ||||
| @Scheduled(cron = "0 5 0 * * ?") // 每天凌晨00:05 | |||||
| @Scheduled(cron = "0 0/5 * * * ?") // 每天凌晨00:05 | |||||
| // @Scheduled(cron = "*/10 * * * * ?") // 测试10秒中一次 | // @Scheduled(cron = "*/10 * * * * ?") // 测试10秒中一次 | ||||
| public void couponOrderExpiringSchedule() { | public void couponOrderExpiringSchedule() { | ||||
| @@ -67,7 +67,7 @@ public class CouponOrderExpiringSchedule { | |||||
| } | } | ||||
| @Scheduled(cron = "0 5 0 * * ?") // 每天凌晨00:05 | |||||
| @Scheduled(cron = "0 0/5 * * * ?") // 每天凌晨00:05 | |||||
| // @Scheduled(cron = "*/10 * * * * ?") // 测试10秒中一次 | // @Scheduled(cron = "*/10 * * * * ?") // 测试10秒中一次 | ||||
| public void couponOrderRefundSchedule() { | public void couponOrderRefundSchedule() { | ||||
| List<WxCouponOrder> list = wxCouponOrderMapper.findExpiredCouponOrderByValidDate(); | List<WxCouponOrder> list = wxCouponOrderMapper.findExpiredCouponOrderByValidDate(); | ||||