|
@@ -6,7 +6,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<resultMap type="SysLoginInfo" id="SysLoginInfoesult">
|
|
|
<id property="infoId" column="info_id"/>
|
|
|
- <result property="userName" column="user_name"/>
|
|
|
+ <result property="userId" column="user_id"/>
|
|
|
<result property="status" column="status"/>
|
|
|
<result property="ipaddr" column="ipaddr"/>
|
|
|
<result property="loginLocation" column="login_location"/>
|
|
@@ -17,12 +17,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<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 into sys_login_info (user_id, status, ipaddr, login_location, browser, os, msg, login_time)
|
|
|
+ values (#{userId}, #{status}, #{ipaddr}, #{loginLocation}, #{browser}, #{os}, #{msg}, sysdate())
|
|
|
</insert>
|
|
|
|
|
|
<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
|
|
|
+ select info_id, user_id, 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}, '%')
|
|
@@ -30,8 +30,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="status != null and status != ''">
|
|
|
AND status = #{status}
|
|
|
</if>
|
|
|
- <if test="userName != null and userName != ''">
|
|
|
- AND user_name like concat('%', #{userName}, '%')
|
|
|
+ <if test="userId != null and userId != ''">
|
|
|
+ AND user_id like concat('%', #{userId}, '%')
|
|
|
</if>
|
|
|
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
|
|
and date_format(login_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
|