【优化】优化导包

pull/94/head v2.2.2
徐玉祥 2023-03-18 19:44:56 +08:00
parent 5352269b09
commit f1e4e44d7e
2 changed files with 3 additions and 2 deletions

View File

@ -96,7 +96,6 @@ public class AuthSessionServiceImpl implements AuthSessionService {
List<Date> sessionCreateTimeList = CollectionUtil.newArrayList();
sessionCreateTimeList.addAll(sessionListB.stream().map(jsonObject -> jsonObject.getDate("createTime")).collect(Collectors.toList()));
sessionCreateTimeList.addAll(sessionListC.stream().map(jsonObject -> jsonObject.getDate("createTime")).collect(Collectors.toList()));
System.out.println(sessionCreateTimeList);
DateTime oneHourAgo = DateUtil.offset(DateTime.now(), DateField.HOUR, -1);
authSessionAnalysisResult.setOneHourNewlyAdded(Convert.toStr(sessionCreateTimeList.stream().filter(date -> DateUtil.compare(oneHourAgo, date) <= 0).count()));
authSessionAnalysisResult.setProportionOfBAndC(sessionListB.size() + StrUtil.SLASH + sessionListC.size());

View File

@ -12,6 +12,7 @@
*/
package vip.xiaonuo.dev.modular.job.task;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import vip.xiaonuo.common.timer.CommonTimerTaskRunner;
@ -21,6 +22,7 @@ import vip.xiaonuo.common.timer.CommonTimerTaskRunner;
* @author xuyuxiang
* @date 2022/8/5 15:52
**/
@Slf4j
@Component
public class DevJobTimerTaskRunner implements CommonTimerTaskRunner {
@ -28,7 +30,7 @@ public class DevJobTimerTaskRunner implements CommonTimerTaskRunner {
@Override
public void action() {
System.out.println("我是一个定时任务,正在在被执行第" + n + "次");
log.info("我是一个定时任务,正在在被执行第" + n + "次");
n = n + 1;
}
}