Browse Source

日志和资源搜索

tags/正式3.10.0
王宁 1 year ago
parent
commit
6cd82cdd43

+ 15
- 0
sapi/src/main/java/com/xhkjedu/sapi/model/system/TUserLog.java View File

@@ -23,6 +23,9 @@ public class TUserLog extends BaseBean {
23 23
     //登录名
24 24
     private String loginname;
25 25
 
26
+    //用户类型999超管0学校管理员1教师2学生
27
+    private Integer usertype;
28
+
26 29
     //登录状态1成功2失败
27 30
     private Integer loginstate;
28 31
 
@@ -47,6 +50,18 @@ public class TUserLog extends BaseBean {
47 50
     //学校id
48 51
     private Integer schoolid;
49 52
 
53
+    //登录mac地址
54
+    private String mac;
55
+
56
+    //登录终端品牌(华为、小米、荣耀、vivo、oppo、浏览器名等)
57
+    private String ultypeband;
58
+
59
+    //登录终端型号(华为mate9、小米13、浏览器版本号等)
60
+    private String ultypemodel;
61
+
62
+    //系统版本(android、鸿蒙、荣耀系统、win等)
63
+    private String systemversion;
64
+
50 65
     @Transient
51 66
     //截止时间
52 67
     private Integer endtime;

+ 6
- 0
sstudy/src/main/resources/mapper/question/QuestionMapper.xml View File

@@ -193,6 +193,9 @@
193 193
         <if test="question.complexity!=null and question.complexity!=0">
194 194
             and q.complexity=#{question.complexity}
195 195
         </if>
196
+        <if test="question.year!=null and question.year!=0">
197
+            and FROM_UNIXTIME(q.createtime,'%Y')=#{question.year}
198
+        </if>
196 199
         and q.qlevel &lt; 3
197 200
         </where>
198 201
         group by q.questionid order by q.qstate,q.createtime desc
@@ -288,6 +291,9 @@
288 291
                 and qc.userid=#{question.createid}
289 292
             </if>
290 293
         </if>
294
+        <if test="question.year!=null and question.year!=0">
295
+            and FROM_UNIXTIME(q.createtime,'%Y')=#{question.year}
296
+        </if>
291 297
         and q.qlevel &lt; 3
292 298
         group by q.questionid order by q.createtime desc
293 299
     </select>

+ 3
- 0
sstudy/src/main/resources/mapper/resource/ResourceMapper.xml View File

@@ -68,6 +68,9 @@
68 68
                 and rc.userid=#{resource.createid}
69 69
             </if>
70 70
         </if>
71
+        <if test="resource.year!=null and resource.year!=0">
72
+            and FROM_UNIXTIME(r.createtime,'%Y')=#{resource.year}
73
+        </if>
71 74
         group by r.resourceid
72 75
         <choose>
73 76
             <when test="resource.readcount!=null and resource.readcount!=0">

+ 3
- 3
suser/src/main/java/com/xhkjedu/suser/model/system/TUserLog.java View File

@@ -41,16 +41,16 @@ public class TUserLog extends BaseBean {
41 41
     //登录终端设备
42 42
     private String ultype;
43 43
 
44
-    //登录终端品牌(华为、小米、荣耀、vivo、oppo等)
44
+    //登录终端品牌(华为、小米、荣耀、vivo、oppo、浏览器名等)
45 45
     private String ultypeband;
46 46
 
47
-    //登录终端型号(华为mate9、小米13等)
47
+    //登录终端型号(华为mate9、小米13、浏览器版本号等)
48 48
     private String ultypemodel;
49 49
 
50 50
     //版本号
51 51
     private String versionnum;
52 52
 
53
-    //系统版本(android、鸿蒙、荣耀系统等)
53
+    //系统版本(android、鸿蒙、荣耀系统、win等)
54 54
     private String systemversion;
55 55
 
56 56
     //备注

Loading…
Cancel
Save