|
@@ -3,6 +3,7 @@ package shop.alien.store.job;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
+import org.springframework.scheduling.annotation.Scheduled;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
import shop.alien.entity.store.*;
|
|
import shop.alien.entity.store.*;
|
|
import shop.alien.mapper.*;
|
|
import shop.alien.mapper.*;
|
|
@@ -60,7 +61,7 @@ public class DeliciousFoodJob {
|
|
/**
|
|
/**
|
|
* 美食筛选标签定时存储数据
|
|
* 美食筛选标签定时存储数据
|
|
*/
|
|
*/
|
|
-// @Scheduled(cron = "0 0 0/2 * * ?")
|
|
|
|
|
|
+ @Scheduled(cron = "0 0 0/2 * * ?")
|
|
public void deliciousFoodJob() {
|
|
public void deliciousFoodJob() {
|
|
// 获取所有美食筛选
|
|
// 获取所有美食筛选
|
|
List<EssentialModuleInformation> essentialModuleInformations = informationMapper.selectList(
|
|
List<EssentialModuleInformation> essentialModuleInformations = informationMapper.selectList(
|
|
@@ -485,7 +486,7 @@ public class DeliciousFoodJob {
|
|
/**
|
|
/**
|
|
* 酒店和民宿筛选标签定时存储数据
|
|
* 酒店和民宿筛选标签定时存储数据
|
|
*/
|
|
*/
|
|
-// @Scheduled(cron = "0 0 0/2 * * ?")
|
|
|
|
|
|
+ @Scheduled(cron = "0 0 0/2 * * ?")
|
|
public void hotelAndHomestayJob() {
|
|
public void hotelAndHomestayJob() {
|
|
// 获取所有酒店民宿筛选
|
|
// 获取所有酒店民宿筛选
|
|
List<EssentialModuleInformation> essentialModuleInformations = informationMapper.selectList(
|
|
List<EssentialModuleInformation> essentialModuleInformations = informationMapper.selectList(
|
|
@@ -1032,7 +1033,7 @@ public class DeliciousFoodJob {
|
|
/**
|
|
/**
|
|
* 汗蒸洗浴筛选标签定时存储数据
|
|
* 汗蒸洗浴筛选标签定时存储数据
|
|
*/
|
|
*/
|
|
-// @Scheduled(cron = "0 0 0/2 * * ?")
|
|
|
|
|
|
+ @Scheduled(cron = "0 0 0/2 * * ?")
|
|
public void takeABathAndSaunaJob() {
|
|
public void takeABathAndSaunaJob() {
|
|
// 获取所有洗浴汗蒸筛选
|
|
// 获取所有洗浴汗蒸筛选
|
|
List<EssentialModuleInformation> essentialModuleInformations = informationMapper.selectList(
|
|
List<EssentialModuleInformation> essentialModuleInformations = informationMapper.selectList(
|
|
@@ -1283,7 +1284,7 @@ public class DeliciousFoodJob {
|
|
/**
|
|
/**
|
|
* 丽人美发筛选标签定时存储数据
|
|
* 丽人美发筛选标签定时存储数据
|
|
*/
|
|
*/
|
|
-// @Scheduled(cron = "0 0 0/2 * * ?")
|
|
|
|
|
|
+ @Scheduled(cron = "0 0 0/2 * * ?")
|
|
public void lirenHairdressingJob() {
|
|
public void lirenHairdressingJob() {
|
|
// 获取所有丽人筛选
|
|
// 获取所有丽人筛选
|
|
List<EssentialModuleInformation> essentialModuleInformations = informationMapper.selectList(
|
|
List<EssentialModuleInformation> essentialModuleInformations = informationMapper.selectList(
|
|
@@ -1298,7 +1299,7 @@ public class DeliciousFoodJob {
|
|
/**
|
|
/**
|
|
* 运动健身筛选标签定时存储数据
|
|
* 运动健身筛选标签定时存储数据
|
|
*/
|
|
*/
|
|
-// @Scheduled(cron = "0 0 0/2 * * ?")
|
|
|
|
|
|
+ @Scheduled(cron = "0 0 0/2 * * ?")
|
|
public void sportsAndFitnessJob() {
|
|
public void sportsAndFitnessJob() {
|
|
// 获取所有的运动健身1级菜单
|
|
// 获取所有的运动健身1级菜单
|
|
List<EssentialModuleInformation> moduleInformations = informationMapper.selectList(
|
|
List<EssentialModuleInformation> moduleInformations = informationMapper.selectList(
|
|
@@ -1384,7 +1385,7 @@ public class DeliciousFoodJob {
|
|
/**
|
|
/**
|
|
* 医美医疗筛选标签定时存储数据
|
|
* 医美医疗筛选标签定时存储数据
|
|
*/
|
|
*/
|
|
-// @Scheduled(cron = "0 0 0/2 * * ?")
|
|
|
|
|
|
+ @Scheduled(cron = "0 0 0/2 * * ?")
|
|
public void medicalAestheticsJob() {
|
|
public void medicalAestheticsJob() {
|
|
// 获取所有医美医疗筛选标签
|
|
// 获取所有医美医疗筛选标签
|
|
List<EssentialModuleInformation> essentialModuleInformations = informationMapper.selectList(
|
|
List<EssentialModuleInformation> essentialModuleInformations = informationMapper.selectList(
|