|
@@ -1,7 +1,7 @@
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<!DOCTYPE mapper
|
|
<!DOCTYPE mapper
|
|
-PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
-"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
|
+ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
+ "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.fs.qw.mapper.QwIpadServerLogMapper">
|
|
<mapper namespace="com.fs.qw.mapper.QwIpadServerLogMapper">
|
|
|
|
|
|
<resultMap type="QwIpadServerLog" id="QwIpadServerLogResult">
|
|
<resultMap type="QwIpadServerLog" id="QwIpadServerLogResult">
|
|
@@ -31,6 +31,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
+ <select id="selectIpadServerLogList" resultType="com.fs.qw.vo.QwIPadServerLogVO">
|
|
|
|
+ SELECT sl.id,sl.server_id,sl.qw_user_id,sl.company_id,sl.company_user_id,sl.tilie,sl.type,sl.create_time,s.title server_name,u.qw_user_name,c.company_name,cu.user_name company_user_name FROM qw_ipad_server_log sl
|
|
|
|
+ JOIN qw_ipad_server s ON sl.server_id = s.id
|
|
|
|
+ JOIN qw_user u ON sl.qw_user_id = u.id
|
|
|
|
+ JOIN company c ON sl.company_id = c.company_id
|
|
|
|
+ JOIN company_user cu ON sl.company_user_id = cu.user_id
|
|
|
|
+ <where>
|
|
|
|
+ <if test="serverName != null "> and s.title = #{serverName}</if>
|
|
|
|
+ <if test="qwUserName != null "> and u.qw_user_name = #{qwUserName}</if>
|
|
|
|
+ <if test="companyName != null "> and c.company_name = #{companyName}</if>
|
|
|
|
+ <if test="companyUserName != null "> and cu.user_name = #{companyUserName}</if>
|
|
|
|
+ <if test="type != null "> and sl.type = #{type}</if>
|
|
|
|
+ </where>
|
|
|
|
+ ORDER BY sl.create_time DESC
|
|
|
|
+ </select>
|
|
|
|
+
|
|
<select id="selectQwIpadServerLogById" parameterType="Long" resultMap="QwIpadServerLogResult">
|
|
<select id="selectQwIpadServerLogById" parameterType="Long" resultMap="QwIpadServerLogResult">
|
|
<include refid="selectQwIpadServerLogVo"/>
|
|
<include refid="selectQwIpadServerLogVo"/>
|
|
where id = #{id}
|
|
where id = #{id}
|
|
@@ -47,7 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="tilie != null">tilie,</if>
|
|
<if test="tilie != null">tilie,</if>
|
|
<if test="type != null">type,</if>
|
|
<if test="type != null">type,</if>
|
|
<if test="createTime != null">create_time,</if>
|
|
<if test="createTime != null">create_time,</if>
|
|
- </trim>
|
|
|
|
|
|
+ </trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">#{id},</if>
|
|
<if test="id != null">#{id},</if>
|
|
<if test="serverId != null">#{serverId},</if>
|
|
<if test="serverId != null">#{serverId},</if>
|
|
@@ -57,7 +73,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="tilie != null">#{tilie},</if>
|
|
<if test="tilie != null">#{tilie},</if>
|
|
<if test="type != null">#{type},</if>
|
|
<if test="type != null">#{type},</if>
|
|
<if test="createTime != null">#{createTime},</if>
|
|
<if test="createTime != null">#{createTime},</if>
|
|
- </trim>
|
|
|
|
|
|
+ </trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<update id="updateQwIpadServerLog" parameterType="QwIpadServerLog">
|
|
<update id="updateQwIpadServerLog" parameterType="QwIpadServerLog">
|