| | |
| | | @Scheduled(cron = "0 0/30 17,18,19,20 * * ? ")
|
| | | public void insetShopInfo4() {
|
| | |
|
| | | // if (!Constant.IS_TASK) {
|
| | | // return;
|
| | | // }
|
| | | if (!Constant.IS_TASK) {
|
| | | return;
|
| | | }
|
| | |
|
| | | try {
|
| | | dynamicInfoService.insertShopInfo();
|
| | |
| | | // if (!Constant.IS_TASK) {
|
| | | // return;
|
| | | // }
|
| | | // |
| | | |
| | | try {
|
| | | dynamicInfoService.removeByDate(DateUtil.reduceDay(3, new Date()));
|
| | | } catch (Exception e) {
|
| | |
| | | // if (!Constant.IS_TASK) {
|
| | | // return;
|
| | | // }
|
| | | // |
| | | |
| | | try {
|
| | | List<RecommendActivity> list = activityService.getNeedPublish();
|
| | | if (list == null || list.size() == 0) {
|