Browse Source

添加登录日志

tags/正式3.2.0
雍文秀 2 years ago
parent
commit
c14c4b3896
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      suser/src/main/resources/mapper/system/UserMapper.xml

+ 7
- 0
suser/src/main/resources/mapper/system/UserMapper.xml View File

212
     <select id="getUsertypeById" resultType="java.lang.Integer">
212
     <select id="getUsertypeById" resultType="java.lang.Integer">
213
         select usertype from t_user where userid=#{userid}
213
         select usertype from t_user where userid=#{userid}
214
     </select>
214
     </select>
215
+    <!--添加登录日志-->
216
+    <insert id="saveUserLog">
217
+        INSERT INTO t_user_log (userid, username, loginname, loginstate, logtime
218
+        , logip, logaddress, ultype, versionnum, logtxt, schoolid) VALUES
219
+        (#{log.userid},#{log.username},#{log.loginname},#{log.loginstate},#{log.logtime}
220
+        ,#{log.logip},#{log.logaddress},#{log.ultype},#{log.versionnum},#{log.logtxt},#{log.schoolid});
221
+    </insert>
215
 </mapper>
222
 </mapper>

Loading…
Cancel
Save