2018-04-23 00:00:29 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<!DOCTYPE mapper
|
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
<mapper namespace="com.ruoyi.project.monitor.logininfor.dao.ILogininforDao">
|
|
|
|
|
|
|
|
<resultMap type="Logininfor" id="LogininforResult">
|
|
|
|
<id property="infoId" column="info_id" />
|
|
|
|
<result property="loginName" column="login_name" />
|
|
|
|
<result property="status" column="status" />
|
|
|
|
<result property="ipaddr" column="ipaddr" />
|
|
|
|
<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="Logininfor">
|
|
|
|
insert into sys_logininfor (login_name, status, ipaddr, browser, os, msg)
|
|
|
|
values (#{loginName}, #{status}, #{ipaddr}, #{browser}, #{os}, #{msg})
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
<select id="selectLogininforList" parameterType="Logininfor" resultMap="LogininforResult">
|
|
|
|
select * from sys_logininfor
|
|
|
|
<where>
|
|
|
|
<if test="searchValue != null and searchValue != ''">
|
|
|
|
AND login_name = #{searchValue}
|
|
|
|
</if>
|
|
|
|
</where>
|
|
|
|
</select>
|
|
|
|
|
2018-05-04 20:25:14 +08:00
|
|
|
<delete id="batchDeleteLogininfor" parameterType="Integer">
|
2018-04-23 00:00:29 +08:00
|
|
|
delete from sys_logininfor where info_id in
|
|
|
|
<foreach collection="array" item="infoId" open="(" separator="," close=")">
|
|
|
|
#{infoId}
|
|
|
|
</foreach>
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
</mapper>
|