123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- <?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.sb.SbInfoStopDetailMapper">
- <sql id="Base_Column_List">
- stopDetail.id,
- stopDetail.no,
- stopDetail.sb_id,
- stopDetail.repair_id,
- stopDetail.user_id,
- stopDetail.type,
- stopDetail.apply_date,
- stopDetail.start_date,
- stopDetail.stop_date,
- stopDetail.content,
- stopDetail.status,
- stopDetail.remark,
- stopDetail.created_time,
- stopDetail.update_time,
- stopDetail.created_user_id,
- stopDetail.created_user_name,
- stopDetail.update_user_id,
- stopDetail.update_user_name
- </sql>
- <sql id="Ref_Column_List">
- stopDetail.no,
- stopDetail.sb_id,
- stopDetail.repair_id,
- stopDetail.user_id,
- stopDetail.type,
- stopDetail.apply_date,
- stopDetail.start_date,
- stopDetail.stop_date,
- stopDetail.content,
- stopDetail.status,
- stopDetail.remark,
- </sql>
- <sql id="List_Condition">
- <if test="id != null and id != ''">
- and stopDetail.id = #{id}
- </if>
- <if test="no != null and no != ''">
- and stopDetail.no = #{no}
- </if>
- <if test="sbId != null and sbId != ''">
- and stopDetail.sb_id = #{sbId}
- </if>
- <if test="repairId != null">
- and stopDetail.repair_id = #{repairId}
- </if>
- <if test="userId != null and userId != ''">
- and stopDetail.user_id = #{userId}
- </if>
- <if test="type != null">
- and stopDetail.type = #{type}
- </if>
- <if test="applyDateStart != null">
- and stopDetail.apply_date <![CDATA[>=]]>; #{applyDateStart}
- </if>
- <if test="applyDateEnd != null">
- and stopDetail.apply_date <![CDATA[<=]]> #{applyDateEnd}
- </if>
- <if test="applyDate != null">
- and stopDetail.apply_date = #{applyDate}
- </if>
- <if test="startDateStart != null">
- and stopDetail.start_date <![CDATA[>=]]>; #{startDateStart}
- </if>
- <if test="startDateEnd != null">
- and stopDetail.start_date <![CDATA[<=]]> #{startDateEnd}
- </if>
- <if test="startDate != null">
- and stopDetail.start_date = #{startDate}
- </if>
- <if test="stopDateStart != null">
- and stopDetail.stop_date <![CDATA[>=]]>; #{stopDateStart}
- </if>
- <if test="stopDateEnd != null">
- and stopDetail.stop_date <![CDATA[<=]]> #{stopDateEnd}
- </if>
- <if test="stopDate != null">
- and stopDetail.stop_date = #{stopDate}
- </if>
- <if test="content != null and content != ''">
- and stopDetail.content = #{content}
- </if>
- <if test="status != null">
- and stopDetail.status = #{status}
- </if>
- <if test="remark != null and remark != ''">
- and stopDetail.remark = #{remark}
- </if>
- <if test="createdTimeStart != null">
- and stopDetail.created_time <![CDATA[>=]]>; #{createdTimeStart}
- </if>
- <if test="createdTimeEnd != null">
- and stopDetail.created_time <![CDATA[<=]]> #{createdTimeEnd}
- </if>
- <if test="createdTime != null">
- and stopDetail.created_time = #{createdTime}
- </if>
- <if test="updateTimeStart != null">
- and stopDetail.update_time <![CDATA[>=]]>; #{updateTimeStart}
- </if>
- <if test="updateTimeEnd != null">
- and stopDetail.update_time <![CDATA[<=]]> #{updateTimeEnd}
- </if>
- <if test="updateTime != null">
- and stopDetail.update_time = #{updateTime}
- </if>
- <if test="createdUserId != null and createdUserId != ''">
- and stopDetail.created_user_id = #{createdUserId}
- </if>
- <if test="createdUserName != null and createdUserName != ''">
- and stopDetail.created_user_name = #{createdUserName}
- </if>
- <if test="updateUserId != null and updateUserId != ''">
- and stopDetail.update_user_id = #{updateUserId}
- </if>
- <if test="updateUserName != null and updateUserName != ''">
- and stopDetail.update_user_name = #{updateUserName}
- </if>
- <if test="keyword != null and keyword != ''">
- and (stopDetail.id like concat(concat('%',#{keyword}),'%')
- or t1.no like concat(concat('%',#{keyword}),'%')
- or t1.name like concat(concat('%',#{keyword}),'%')
- )
- </if>
- </sql>
- <select id="selectList" parameterType="com.platform.dao.dto.sb.SbInfoStopDetailDTO"
- resultType="com.platform.dao.vo.query.sb.SbInfoStopDetailVO">
- select stopDetail.*
- ,t1.name as sbInfoName
- from t_sb_info_stop_detail as stopDetail
- LEFT JOIN t_sb_info t1 on stopDetail.sb_id = t1.id
- <where>
- <include refid="List_Condition"/>
- </where>
- </select>
- </mapper>
|