123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141 |
- <?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.remote.RemoteDegreeLogMapper">
- <sql id="Base_Column_List">
- degree_log
- .
- id
- ,
- degree_log.sb_id,
- degree_log.sb_name,
- degree_log.position_num,
- degree_log.type,
- degree_log.description,
- degree_log.result,
- degree_log.ratio,
- degree_log.unit,
- degree_log.remark,
- degree_log.year,
- degree_log.month,
- degree_log.day,
- degree_log.hour,
- degree_log.minute,
- degree_log.info,
- degree_log.created_user_id,
- degree_log.update_user_id,
- degree_log.created_time,
- degree_log.update_time
- </sql>
- <sql id="Ref_Column_List">
- degree_log
- .
- sb_id
- ,
- degree_log.sb_name,
- degree_log.position_num,
- degree_log.type,
- degree_log.description,
- degree_log.result,
- degree_log.year,
- degree_log.month,
- degree_log.day,
- degree_log.hour,
- degree_log.minute,
- degree_log.info,
- degree_log.ratio,
- degree_log.unit,
- degree_log.remark,
- </sql>
- <sql id="List_Condition">
- <if test="id != null and id != ''">
- and degree_log.id = #{id}
- </if>
- <if test="sbId != null and sbId != ''">
- and degree_log.sb_id = #{sbId}
- </if>
- <if test="year != null">
- and degree_log.year = #{year}
- </if>
- <if test="month != null">
- and degree_log.month = #{month}
- </if>
- <if test="day != null">
- and degree_log.day = #{day}
- </if>
- <if test="hour != null">
- and degree_log.hour = #{hour}
- </if>
- <if test="minute != null">
- and degree_log.minute = #{minute}
- </if>
- <if test="positionNum != null">
- and degree_log.position_num = #{positionNum}
- </if>
- <if test="type != null">
- and degree_log.type = #{type}
- </if>
- <if test="description != null and description != ''">
- and degree_log.description = #{description}
- </if>
- <if test="result != null and result != ''">
- and degree_log.result = #{result}
- </if>
- <if test="ratio != null">
- and degree_log.ratio = #{ratio}
- </if>
- <if test="unit != null and unit != ''">
- and degree_log.unit = #{unit}
- </if>
- <if test="remark != null and remark != ''">
- and degree_log.remark = #{remark}
- </if>
- <if test="createdUserId != null and createdUserId != ''">
- and degree_log.created_user_id = #{createdUserId}
- </if>
- <if test="updateUserId != null and updateUserId != ''">
- and degree_log.update_user_id = #{updateUserId}
- </if>
- <if test="createdTimeStart != null">
- and degree_log.created_time <![CDATA[>=]]>; #{createdTimeStart}
- </if>
- <if test="createdTimeEnd != null">
- and degree_log.created_time <![CDATA[<=]]> #{createdTimeEnd}
- </if>
- <if test="createdTime != null">
- and degree_log.created_time = #{createdTime}
- </if>
- <if test="updateTimeStart != null">
- and degree_log.update_time <![CDATA[>=]]>; #{updateTimeStart}
- </if>
- <if test="updateTimeEnd != null">
- and degree_log.update_time <![CDATA[<=]]> #{updateTimeEnd}
- </if>
- <if test="updateTime != null">
- and degree_log.update_time = #{updateTime}
- </if>
- <if test="keyword != null and keyword != ''">
- and (
- degree.sb_name like concat(concat('%',#{keyword}),'%')
- or degree_log.position_num like concat(concat('%',#{keyword}),'%')
- )
- </if>
- <if test="sbName != null and sbName != ''">
- and degree.sb_name like concat(concat('%',#{sbName}),'%')
- </if>
- <if test="line != null">
- and degree.line = #{line}
- </if>
- </sql>
- <select id="selectList" parameterType="com.platform.dao.dto.remote.RemoteDegreeLogDTO"
- resultType="com.platform.dao.vo.query.remote.RemoteDegreeLogVO">
- select degree_log.*, degree.sb_name sbName, degree.line line, degree.type
- from t_remote_degree_log as degree_log
- left join t_remote_degree degree on degree_log.position_num = degree.position_num
- <where>
- <include refid="List_Condition"/>
- <if test="line != null">
- and degree.line = #{line}
- </if>
- </where>
- </select>
- </mapper>
|