| | |
| | | |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.core.common.Cools; |
| | | import com.zy.common.properties.SchedulerProperties; |
| | | import com.zy.system.entity.UserLogin; |
| | | import com.zy.system.service.UserLoginService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | @Value("${super.pwd}") |
| | | private String superPwd; |
| | | |
| | | @Resource |
| | | private SchedulerProperties schedulerProperties; |
| | | |
| | | @Scheduled(cron = "0/30 * * * * ? ") |
| | | public void timer() { |
| | | if (!schedulerProperties.isEnabled()) { |
| | | return; |
| | | } |
| | | if (loadingConfigTimer.getTokenNumber() == 1) { |
| | | return; |
| | | } |