123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- <?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.platform.dao.mapper.tool.ToolLogMapper">
- <sql id="Base_Column_List">
- log.id,
- log.check_user_id,
- log.requirement,
- log.remark,
- log.created_user_id,
- log.update_user_id,
- log.created_user_name,
- log.update_user_name,
- log.created_time,
- log.update_time,
- log.tool_id,
- log.check_date,
- log.img_path,
- log.file_path
- </sql>
- <sql id="Ref_Column_List">
- log.check_user_id,
- log.requirement,
- log.remark, log.tool_id,
- log.check_date,
- log.img_path,
- log.file_path
- </sql>
- <sql id="List_Condition">
- <if test="id != null and id != ''">
- and log.id = #{id}
- </if>
- <if test="checkUserId != null and checkUserId != ''">
- and log.check_user_id = #{checkUserId}
- </if>
- <if test="requirement != null and requirement != ''">
- and log.requirement = #{requirement}
- </if>
- <if test="remark != null and remark != ''">
- and log.remark = #{remark}
- </if>
- <if test="createdUserId != null and createdUserId != ''">
- and log.created_user_id = #{createdUserId}
- </if>
- <if test="updateUserId != null and updateUserId != ''">
- and log.update_user_id = #{updateUserId}
- </if>
- <if test="createdUserName != null and createdUserName != ''">
- and log.created_user_name = #{createdUserName}
- </if>
- <if test="updateUserName != null and updateUserName != ''">
- and log.update_user_name = #{updateUserName}
- </if>
- <if test="createdTimeStart != null">
- and log.created_time <![CDATA[>=]]>; #{createdTimeStart}
- </if>
- <if test="createdTimeEnd != null">
- and log.created_time <![CDATA[<=]]> #{createdTimeEnd}
- </if>
- <if test="createdTime != null">
- and log.created_time = #{createdTime}
- </if>
- <if test="updateTimeStart != null">
- and log.update_time <![CDATA[>=]]>; #{updateTimeStart}
- </if>
- <if test="updateTimeEnd != null">
- and log.update_time <![CDATA[<=]]> #{updateTimeEnd}
- </if>
- <if test="updateTime != null">
- and log.update_time = #{updateTime}
- </if>
- <if test="toolId != null and toolId != ''">
- and log.tool_id = #{toolId}
- </if>
- <if test="checkDateStart != null">
- and log.check_date <![CDATA[>=]]>; #{checkDateStart}
- </if>
- <if test="checkDateEnd != null">
- and log.check_date <![CDATA[<=]]> #{checkDateEnd}
- </if>
- <if test="checkDate != null">
- and log.check_date = #{checkDate}
- </if>
- <if test="imgPath != null and imgPath != ''">
- and log.img_path = #{imgPath}
- </if>
- <if test="filePath != null and filePath != ''">
- and log.file_path = #{filePath}
- </if>
- <if test="keyword != null and keyword != ''">
- and log.id like concat(concat('%',#{keyword}),'%')
- </if>
- </sql>
- <select id="selectList" parameterType="com.platform.dao.dto.tool.ToolLogDTO"
- resultType="com.platform.dao.vo.query.tool.ToolLogVO">
- select log.*, tool.name as toolName, tool.ggxh as ggxh
- from t_tool_log as log
- Left JOIN t_tool as tool
- <where>
- <include refid="List_Condition"/>
- </where>
- </select>
- </mapper>
|