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
     //登录名
23
     //登录名
24
     private String loginname;
24
     private String loginname;
25
 
25
 
26
+    //用户类型999超管0学校管理员1教师2学生
27
+    private Integer usertype;
28
+
26
     //登录状态1成功2失败
29
     //登录状态1成功2失败
27
     private Integer loginstate;
30
     private Integer loginstate;
28
 
31
 
47
     //学校id
50
     //学校id
48
     private Integer schoolid;
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
     @Transient
65
     @Transient
51
     //截止时间
66
     //截止时间
52
     private Integer endtime;
67
     private Integer endtime;

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

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

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

68
                 and rc.userid=#{resource.createid}
68
                 and rc.userid=#{resource.createid}
69
             </if>
69
             </if>
70
         </if>
70
         </if>
71
+        <if test="resource.year!=null and resource.year!=0">
72
+            and FROM_UNIXTIME(r.createtime,'%Y')=#{resource.year}
73
+        </if>
71
         group by r.resourceid
74
         group by r.resourceid
72
         <choose>
75
         <choose>
73
             <when test="resource.readcount!=null and resource.readcount!=0">
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
     //登录终端设备
41
     //登录终端设备
42
     private String ultype;
42
     private String ultype;
43
 
43
 
44
-    //登录终端品牌(华为、小米、荣耀、vivo、oppo等)
44
+    //登录终端品牌(华为、小米、荣耀、vivo、oppo、浏览器名等)
45
     private String ultypeband;
45
     private String ultypeband;
46
 
46
 
47
-    //登录终端型号(华为mate9、小米13等)
47
+    //登录终端型号(华为mate9、小米13、浏览器版本号等)
48
     private String ultypemodel;
48
     private String ultypemodel;
49
 
49
 
50
     //版本号
50
     //版本号
51
     private String versionnum;
51
     private String versionnum;
52
 
52
 
53
-    //系统版本(android、鸿蒙、荣耀系统等)
53
+    //系统版本(android、鸿蒙、荣耀系统、win等)
54
     private String systemversion;
54
     private String systemversion;
55
 
55
 
56
     //备注
56
     //备注

Loading…
Cancel
Save