123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- <?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.CustomFormBomFieldMapper">
- <sql id="Base_Column_List">
- field
- .
- id
- ,
- field.name,
- field.filed_name,
- field.bom_id,
- field.remark,
- field.created_user_id,
- field.created_user_name,
- field.created_time,
- field.update_user_id,
- field.update_user_name,
- field.update_time
- </sql>
- <sql id="Ref_Column_List">
- field
- .
- name
- ,
- field.filed_name,
- field.bom_id,
- field.remark,
- </sql>
- <sql id="List_Condition">
- <if test="id != null and id != ''">
- and field.id = #{id}
- </if>
- <if test="name != null and name != ''">
- and field.name = #{name}
- </if>
- <if test="filedName != null and filedName != ''">
- and field.filed_name = #{filedName}
- </if>
- <if test="bomId != null and bomId != ''">
- and field.bom_id = #{bomId}
- </if>
- <if test="remark != null and remark != ''">
- and field.remark = #{remark}
- </if>
- <if test="createdUserId != null and createdUserId != ''">
- and field.created_user_id = #{createdUserId}
- </if>
- <if test="createdUserName != null and createdUserName != ''">
- and field.created_user_name = #{createdUserName}
- </if>
- <if test="createdTimeStart != null">
- and field.created_time <![CDATA[>=]]>; #{createdTimeStart}
- </if>
- <if test="createdTimeEnd != null">
- and field.created_time <![CDATA[<=]]> #{createdTimeEnd}
- </if>
- <if test="createdTime != null">
- and field.created_time = #{createdTime}
- </if>
- <if test="updateUserId != null and updateUserId != ''">
- and field.update_user_id = #{updateUserId}
- </if>
- <if test="updateUserName != null and updateUserName != ''">
- and field.update_user_name = #{updateUserName}
- </if>
- <if test="updateTimeStart != null">
- and field.update_time <![CDATA[>=]]>; #{updateTimeStart}
- </if>
- <if test="updateTimeEnd != null">
- and field.update_time <![CDATA[<=]]> #{updateTimeEnd}
- </if>
- <if test="updateTime != null">
- and field.update_time = #{updateTime}
- </if>
- <if test="keyword != null and keyword != ''">
- and field.id like concat(concat('%',#{keyword}),'%')
- </if>
- </sql>
- <select id="selectList" parameterType="com.platform.dao.dto.custom.CustomFormBomFieldDTO"
- resultType="com.platform.dao.vo.query.custom.CustomFormBomFieldVO">
- select field.*
- from t_custom_form_bom_field as field
- <where>
- <include refid="List_Condition"/>
- </where>
- </select>
- <select id="selectByCategoryType" parameterType="com.platform.dao.dto.custom.CustomFormBomFieldDTO"
- resultType="com.platform.dao.vo.query.custom.CustomFormBomFieldVO">
- select field.* from t_custom_form_bom_field as field
- join t_custom_form form on field.form_id = form.id
- <where>
- <if test="type != null and type != ''">
- and form.type = #{type}
- </if>
- <if test="category != null and category != ''">
- and form.category = #{category}
- </if>
- </where>
- </select>
- </mapper>
|