|
@@ -2,27 +2,27 @@
|
|
|
<!DOCTYPE mapper
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
-<mapper namespace="com.ozs.system.mapper.SysLogininforMapper">
|
|
|
+<mapper namespace="com.ozs.system.mapper.SysLoginInfoMapper">
|
|
|
|
|
|
- <resultMap type="SysLogininfor" id="SysLogininforResult">
|
|
|
- <id property="infoId" column="info_id" />
|
|
|
- <result property="userName" column="user_name" />
|
|
|
- <result property="status" column="status" />
|
|
|
- <result property="ipaddr" column="ipaddr" />
|
|
|
- <result property="loginLocation" column="login_location" />
|
|
|
- <result property="browser" column="browser" />
|
|
|
- <result property="os" column="os" />
|
|
|
- <result property="msg" column="msg" />
|
|
|
- <result property="loginTime" column="login_time" />
|
|
|
+ <resultMap type="SysLoginInfo" id="SysLoginInfoesult">
|
|
|
+ <id property="infoId" column="info_id"/>
|
|
|
+ <result property="userName" column="user_name"/>
|
|
|
+ <result property="status" column="status"/>
|
|
|
+ <result property="ipaddr" column="ipaddr"/>
|
|
|
+ <result property="loginLocation" column="login_location"/>
|
|
|
+ <result property="browser" column="browser"/>
|
|
|
+ <result property="os" column="os"/>
|
|
|
+ <result property="msg" column="msg"/>
|
|
|
+ <result property="loginTime" column="login_time"/>
|
|
|
</resultMap>
|
|
|
|
|
|
- <insert id="insertLogininfor" parameterType="SysLogininfor">
|
|
|
- insert into sys_logininfor (user_name, status, ipaddr, login_location, browser, os, msg, login_time)
|
|
|
+ <insert id="insertLogininfor" parameterType="SysLoginInfo">
|
|
|
+ insert into sys_login_info (user_name, status, ipaddr, login_location, browser, os, msg, login_time)
|
|
|
values (#{userName}, #{status}, #{ipaddr}, #{loginLocation}, #{browser}, #{os}, #{msg}, sysdate())
|
|
|
</insert>
|
|
|
|
|
|
- <select id="selectLogininforList" parameterType="SysLogininfor" resultMap="SysLogininforResult">
|
|
|
- select info_id, user_name, ipaddr, login_location, browser, os, status, msg, login_time from sys_logininfor
|
|
|
+ <select id="selectLogininforList" parameterType="SysLoginInfo" resultMap="SysLoginInfoesult">
|
|
|
+ select info_id, user_name, ipaddr, login_location, browser, os, status, msg, login_time from sys_login_info
|
|
|
<where>
|
|
|
<if test="ipaddr != null and ipaddr != ''">
|
|
|
AND ipaddr like concat('%', #{ipaddr}, '%')
|
|
@@ -44,14 +44,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
|
|
|
|
<delete id="deleteLogininforByIds" parameterType="Long">
|
|
|
- delete from sys_logininfor where info_id in
|
|
|
- <foreach collection="array" item="infoId" open="(" separator="," close=")">
|
|
|
+ delete from sys_login_info where info_id in
|
|
|
+ <foreach collection="array" item="infoId" open="(" separator="," close=")">
|
|
|
#{infoId}
|
|
|
</foreach>
|
|
|
</delete>
|
|
|
|
|
|
<update id="cleanLogininfor">
|
|
|
- truncate table sys_logininfor
|
|
|
- </update>
|
|
|
+ truncate table sys_login_info
|
|
|
+ </update>
|
|
|
|
|
|
</mapper>
|