|
|
|
@ -15,9 +15,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
|
|
<insert id="insertLogininfor" parameterType="SysLogininfor">
|
|
|
|
|
insert into sys_logininfor (user_name, status, ipaddr, msg, access_time)
|
|
|
|
|
values (#{userName}, #{status}, #{ipaddr}, #{msg}, sysdate())
|
|
|
|
|
values (#{userName}, #{status}, #{ipaddr}, #{msg}, GETDATE())
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectLogininforList" parameterType="SysLogininfor" resultMap="SysLogininforResult">
|
|
|
|
|
select info_id, user_name, ipaddr, status, msg, access_time from sys_logininfor
|
|
|
|
|
<where>
|
|
|
|
@ -39,16 +39,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</where>
|
|
|
|
|
order by info_id desc
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<delete id="deleteLogininforByIds" parameterType="Long">
|
|
|
|
|
delete from sys_logininfor where info_id in
|
|
|
|
|
<foreach collection="array" item="infoId" open="(" separator="," close=")">
|
|
|
|
|
#{infoId}
|
|
|
|
|
</foreach>
|
|
|
|
|
</foreach>
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<update id="cleanLogininfor">
|
|
|
|
|
truncate table sys_logininfor
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|
|