|
|
@@ -1,35 +1,37 @@
|
|
1
|
1
|
package com.chinaitop.depot.system.service.impl;
|
|
2
|
2
|
|
|
|
3
|
+import java.io.IOException;
|
|
|
4
|
+import java.net.URLEncoder;
|
|
|
5
|
+import java.time.LocalDateTime;
|
|
|
6
|
+import java.util.ArrayList;
|
|
|
7
|
+import java.util.Date;
|
|
|
8
|
+import java.util.List;
|
|
|
9
|
+import java.util.UUID;
|
|
|
10
|
+
|
|
|
11
|
+import javax.annotation.Resource;
|
|
|
12
|
+import javax.servlet.http.HttpServletRequest;
|
|
|
13
|
+import javax.servlet.http.HttpServletResponse;
|
|
|
14
|
+
|
|
|
15
|
+import org.springframework.beans.BeanUtils;
|
|
|
16
|
+import org.springframework.stereotype.Service;
|
|
|
17
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
18
|
+import org.springframework.util.ObjectUtils;
|
|
|
19
|
+import org.springframework.util.StringUtils;
|
|
|
20
|
+
|
|
3
|
21
|
import com.alibaba.excel.EasyExcel;
|
|
4
|
22
|
import com.alibaba.excel.support.ExcelTypeEnum;
|
|
5
|
23
|
import com.chinaitop.depot.common.CommonObject;
|
|
6
|
|
-import com.chinaitop.depot.system.model.UserInfo;
|
|
7
|
24
|
import com.chinaitop.depot.system.mapper.UserLoginLogMapper;
|
|
|
25
|
+import com.chinaitop.depot.system.model.UserInfo;
|
|
8
|
26
|
import com.chinaitop.depot.system.model.UserLoginLog;
|
|
9
|
27
|
import com.chinaitop.depot.system.model.UserLoginLogExample;
|
|
10
|
28
|
import com.chinaitop.depot.system.model.UserLoginLogVO;
|
|
11
|
29
|
import com.chinaitop.depot.system.param.UserLoginLogPageParam;
|
|
12
|
30
|
import com.chinaitop.depot.system.service.UserLoginLogService;
|
|
13
|
|
-import com.chinaitop.depot.utils.DateUtils;
|
|
14
|
31
|
import com.chinaitop.depot.utils.IPUtil;
|
|
15
|
32
|
import com.chinaitop.depot.utils.RedisUtil;
|
|
16
|
|
-import lombok.extern.slf4j.Slf4j;
|
|
17
|
|
-import org.springframework.beans.BeanUtils;
|
|
18
|
|
-import org.springframework.stereotype.Service;
|
|
19
|
|
-import org.springframework.transaction.annotation.Transactional;
|
|
20
|
|
-import org.springframework.util.ObjectUtils;
|
|
21
|
|
-import org.springframework.util.StringUtils;
|
|
22
|
33
|
|
|
23
|
|
-import javax.annotation.Resource;
|
|
24
|
|
-import javax.servlet.http.HttpServletRequest;
|
|
25
|
|
-import javax.servlet.http.HttpServletResponse;
|
|
26
|
|
-import java.io.IOException;
|
|
27
|
|
-import java.net.URLEncoder;
|
|
28
|
|
-import java.time.LocalDateTime;
|
|
29
|
|
-import java.util.ArrayList;
|
|
30
|
|
-import java.util.Date;
|
|
31
|
|
-import java.util.List;
|
|
32
|
|
-import java.util.UUID;
|
|
|
34
|
+import lombok.extern.slf4j.Slf4j;
|
|
33
|
35
|
|
|
34
|
36
|
/**
|
|
35
|
37
|
* @author qingsong.han
|
|
|
@@ -126,6 +128,8 @@ public class UserLoginLogServiceImpl implements UserLoginLogService {
|
|
126
|
128
|
if (StringUtils.hasText(param.getRealName())) {
|
|
127
|
129
|
criteria.andRealNameLike(param.getRealName());
|
|
128
|
130
|
}
|
|
|
131
|
+ //排序
|
|
|
132
|
+ example.setOrderByClause("in_login_time desc");
|
|
129
|
133
|
|
|
130
|
134
|
return userLoginLogMapper.selectByExample(example);
|
|
131
|
135
|
}
|