| | |
| | | * 定时检测是否存在新的发圈
|
| | | */
|
| | | @Scheduled(cron = "0 0/20 * * * ? ")
|
| | | public void dailyCount() {
|
| | | public void fixedTimeSend() {
|
| | | if (!Constant.IS_TASK) {
|
| | | return;
|
| | | }
|
| | |
| | | // 单品商品
|
| | | List<GoodsEvaluate> listGoods = goodsEvaluateService.queryValidSortASC(1, 5, EvaluateEnum.single, true);
|
| | | // 执行发单
|
| | | userCloudService.fixedTimeSend(listActivity, listGoods);
|
| | | userCloudService.fixedTimeSend(listActivity, listGoods, true);
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * 每日22点进行深夜发圈
|
| | | */
|
| | | @Scheduled(cron = "0 0 22 * * ? ")
|
| | | public void zeroPoint() {
|
| | | if (!Constant.IS_TASK) {
|
| | | return;
|
| | | }
|
| | | |
| | | List<GoodsEvaluate> list = goodsEvaluateService.queryValidZeroPoint(1, 50);
|
| | | if (list == null || list.size() == 0) {
|
| | | return;
|
| | | }
|
| | | // 执行发单
|
| | | userCloudService.fixedTimeSend(null, list, false);
|
| | | }
|
| | | |
| | | }
|