123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <?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.store.SpareRestoreDetailMapper">
- <sql id="Base_Column_List">
- sparepickdetail.id,
- sparepickdetail.pick_id,
- sparepickdetail.pick_no,
- sparepickdetail.spare_id,
- sparepickdetail.num,
- sparepickdetail.created_user_id,
- sparepickdetail.created_user_name,
- sparepickdetail.update_user_id,
- sparepickdetail.update_user_name,
- sparepickdetail.created_time,
- sparepickdetail.update_time
- </sql>
- <sql id="Ref_Column_List">
- sparepickdetail.pick_id,
- sparepickdetail.pick_no,
- sparepickdetail.spare_id,
- sparepickdetail.num,
- </sql>
- <sql id="List_Condition">
- <if test="id != null and id != ''">
- and sparepickdetail.id = #{id}
- </if>
- <if test="pickId != null and pickId != ''">
- and sparepickdetail.pick_id = #{pickId}
- </if>
- <if test="pickNo != null and pickNo != ''">
- and sparepickdetail.pick_no = #{pickNo}
- </if>
- <if test="spareId != null and spareId != ''">
- and sparepickdetail.spare_id = #{spareId}
- </if>
- <if test="num != null">
- and sparepickdetail.num = #{num}
- </if>
- <if test="createdUserId != null and createdUserId != ''">
- and sparepickdetail.created_user_id = #{createdUserId}
- </if>
- <if test="createdUserName != null and createdUserName != ''">
- and sparepickdetail.created_user_name = #{createdUserName}
- </if>
- <if test="updateUserId != null and updateUserId != ''">
- and sparepickdetail.update_user_id = #{updateUserId}
- </if>
- <if test="updateUserName != null and updateUserName != ''">
- and sparepickdetail.update_user_name = #{updateUserName}
- </if>
- <if test="createdTimeStart != null">
- and sparepickdetail.created_time <![CDATA[>=]]>; #{createdTimeStart}
- </if>
- <if test="createdTimeEnd != null">
- and sparepickdetail.created_time <![CDATA[<=]]> #{createdTimeEnd}
- </if>
- <if test="createdTime != null">
- and sparepickdetail.created_time = #{createdTime}
- </if>
- <if test="updateTimeStart != null">
- and sparepickdetail.update_time <![CDATA[>=]]>; #{updateTimeStart}
- </if>
- <if test="updateTimeEnd != null">
- and sparepickdetail.update_time <![CDATA[<=]]> #{updateTimeEnd}
- </if>
- <if test="updateTime != null">
- and sparepickdetail.update_time = #{updateTime}
- </if>
- <if test="keyword != null and keyword != ''">
- and sparepickdetail.id like concat('%',#{keyword},'%')
- </if>
- </sql>
- <select id="selectList" parameterType="com.platform.dao.dto.store.SpareRestoreDetailDTO"
- resultType="com.platform.dao.vo.query.store.SpareRestoreDetailVO">
- select sparepickdetail.*
- from t_spare_restore_detail as sparepickdetail
- <where>
- <include refid="List_Condition"/>
- </where>
- </select>
- </mapper>
|