123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- <?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.custom.CustomFormBomMapper">
- <sql id="Base_Column_List">
- bom
- .
- id
- ,
- bom.data_id,
- bom.apply_man,
- bom.apply_time,
- bom.cdefine1,
- bom.cdefine2,
- bom.cdefine3,
- bom.cdefine4,
- bom.cdefine5,
- bom.cdefine6,
- bom.cdefine7,
- bom.cdefine8,
- bom.cdefine9,
- bom.cdefine10,
- bom.remark,
- bom.created_user_id,
- bom.created_user_name,
- bom.created_time,
- bom.update_user_id,
- bom.update_user_name,
- bom.update_time
- </sql>
- <sql id="Ref_Column_List">
- bom
- .
- data_id
- ,
- bom.apply_man,
- bom.apply_time,
- bom.cdefine1,
- bom.cdefine2,
- bom.cdefine3,
- bom.cdefine4,
- bom.cdefine5,
- bom.cdefine6,
- bom.cdefine7,
- bom.cdefine8,
- bom.cdefine9,
- bom.cdefine10,
- bom.remark,
- </sql>
- <sql id="List_Condition">
- <if test="id != null and id != ''">
- and bom.id = #{id}
- </if>
- <if test="dataId != null and dataId != ''">
- and bom.data_id = #{dataId}
- </if>
- <if test="applyMan != null and applyMan != ''">
- and bom.apply_man = #{applyMan}
- </if>
- <if test="applyTimeStart != null">
- and bom.apply_time <![CDATA[>=]]>; #{applyTimeStart}
- </if>
- <if test="applyTimeEnd != null">
- and bom.apply_time <![CDATA[<=]]> #{applyTimeEnd}
- </if>
- <if test="applyTime != null">
- and bom.apply_time = #{applyTime}
- </if>
- <if test="cdefine1 != null and cdefine1 != ''">
- and bom.cdefine1 = #{cdefine1}
- </if>
- <if test="cdefine2 != null and cdefine2 != ''">
- and bom.cdefine2 = #{cdefine2}
- </if>
- <if test="cdefine3 != null and cdefine3 != ''">
- and bom.cdefine3 = #{cdefine3}
- </if>
- <if test="cdefine4 != null and cdefine4 != ''">
- and bom.cdefine4 = #{cdefine4}
- </if>
- <if test="cdefine5 != null and cdefine5 != ''">
- and bom.cdefine5 = #{cdefine5}
- </if>
- <if test="cdefine6 != null and cdefine6 != ''">
- and bom.cdefine6 = #{cdefine6}
- </if>
- <if test="cdefine7 != null and cdefine7 != ''">
- and bom.cdefine7 = #{cdefine7}
- </if>
- <if test="cdefine8 != null and cdefine8 != ''">
- and bom.cdefine8 = #{cdefine8}
- </if>
- <if test="cdefine9 != null and cdefine9 != ''">
- and bom.cdefine9 = #{cdefine9}
- </if>
- <if test="cdefine10 != null and cdefine10 != ''">
- and bom.cdefine10 = #{cdefine10}
- </if>
- <if test="remark != null and remark != ''">
- and bom.remark = #{remark}
- </if>
- <if test="createdUserId != null and createdUserId != ''">
- and bom.created_user_id = #{createdUserId}
- </if>
- <if test="createdUserName != null and createdUserName != ''">
- and bom.created_user_name = #{createdUserName}
- </if>
- <if test="createdTimeStart != null">
- and bom.created_time <![CDATA[>=]]>; #{createdTimeStart}
- </if>
- <if test="createdTimeEnd != null">
- and bom.created_time <![CDATA[<=]]> #{createdTimeEnd}
- </if>
- <if test="createdTime != null">
- and bom.created_time = #{createdTime}
- </if>
- <if test="updateUserId != null and updateUserId != ''">
- and bom.update_user_id = #{updateUserId}
- </if>
- <if test="updateUserName != null and updateUserName != ''">
- and bom.update_user_name = #{updateUserName}
- </if>
- <if test="updateTimeStart != null">
- and bom.update_time <![CDATA[>=]]>; #{updateTimeStart}
- </if>
- <if test="updateTimeEnd != null">
- and bom.update_time <![CDATA[<=]]> #{updateTimeEnd}
- </if>
- <if test="updateTime != null">
- and bom.update_time = #{updateTime}
- </if>
- <if test="keyword != null and keyword != ''">
- and bom.id like concat(concat('%',#{keyword}),'%')
- </if>
- </sql>
- <select id="selectList" parameterType="com.platform.dao.dto.custom.CustomFormBomDTO"
- resultType="com.platform.dao.vo.query.custom.CustomFormBomVO">
- select bom.*
- from t_custom_form_bom as bom
- <where>
- <include refid="List_Condition"/>
- </where>
- </select>
- </mapper>
|