Pārlūkot izejas kodu

添加登录日志

tags/正式3.2.0
雍文秀 pirms 2 gadiem
vecāks
revīzija
c14c4b3896

+ 7
- 0
suser/src/main/resources/mapper/system/UserMapper.xml Parādīt failu

@@ -212,4 +212,11 @@
212 212
     <select id="getUsertypeById" resultType="java.lang.Integer">
213 213
         select usertype from t_user where userid=#{userid}
214 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 222
 </mapper>

Notiek ielāde…
Atcelt
Saglabāt