File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
tang-system/src/main/java/com/tang/system/service/impl/log Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ public List<Long> selectUserVisit() {
72
72
var userId = SecurityUtils .getUser ().getUserId ();
73
73
var now = LocalDate .now ();
74
74
var monday = now .with (DayOfWeek .MONDAY );
75
- var sunday = monday .plusDays (6 );
75
+ var nextMonday = monday .plusDays (7 );
76
76
var startDate = monday ;
77
77
var list = sysLogLoginMapper .selectUserVisit (userId , startDate );
78
78
var listGrouped = list .stream ()
@@ -81,7 +81,7 @@ public List<Long> selectUserVisit() {
81
81
return LocalDate .of (loginTime .getYear (), loginTime .getMonth (), loginTime .getDayOfMonth ());
82
82
}));
83
83
var userVisitList = new ArrayList <Long >();
84
- while (startDate .isBefore (sunday )) {
84
+ while (startDate .isBefore (nextMonday )) {
85
85
var count = listGrouped .get (startDate );
86
86
if (count != null ) {
87
87
userVisitList .add (count .stream ().count ());
You can’t perform that action at this time.
0 commit comments