123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- <?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.firm.FirmSupplierMapper">
- <sql id="Base_Column_List">
- supplier.id,
- supplier.type,
- supplier.no,
- supplier.name,
- supplier.level,
- supplier.person,
- supplier.mobile,
- supplier.address,
- supplier.sort,
- supplier.del_flag,
- supplier.remark,
- supplier.created_user_id,
- supplier.created_user_name,
- supplier.update_user_id,
- supplier.update_user_name,
- supplier.created_time,
- supplier.update_time
- </sql>
- <sql id="Ref_Column_List">
- supplier.type,
- supplier.no,
- supplier.name,
- supplier.level,
- supplier.person,
- supplier.mobile,
- supplier.address,
- supplier.sort,
- supplier.del_flag,
- supplier.remark
- </sql>
- <sql id="List_Condition">
- <if test="id != null and id != ''">
- and supplier.id = #{id}
- </if>
- <if test="type != null">
- and supplier.type = #{type}
- </if>
- <if test="no != null and no != ''">
- and supplier.no = #{no}
- </if>
- <if test="name != null and name != ''">
- and supplier.name = #{name}
- </if>
- <if test="level != null">
- and supplier.level = #{level}
- </if>
- <if test="person != null and person != ''">
- and supplier.person = #{person}
- </if>
- <if test="mobile != null and mobile != ''">
- and supplier.mobile = #{mobile}
- </if>
- <if test="address != null and address != ''">
- and supplier.address = #{address}
- </if>
- <if test="sort != null">
- and supplier.sort = #{sort}
- </if>
- <if test="delFlag != null">
- and supplier.del_flag = #{delFlag}
- </if>
- <if test="remark != null and remark != ''">
- and supplier.remark = #{remark}
- </if>
- <if test="createdUserId != null and createdUserId != ''">
- and supplier.created_user_id = #{createdUserId}
- </if>
- <if test="createdUserName != null and createdUserName != ''">
- and supplier.created_user_name = #{createdUserName}
- </if>
- <if test="updateUserId != null and updateUserId != ''">
- and supplier.update_user_id = #{updateUserId}
- </if>
- <if test="updateUserName != null and updateUserName != ''">
- and supplier.update_user_name = #{updateUserName}
- </if>
- <if test="createdTimeStart != null">
- and supplier.created_time <![CDATA[>=]]>; #{createdTimeStart}
- </if>
- <if test="createdTimeEnd != null">
- and supplier.created_time <![CDATA[<=]]> #{createdTimeEnd}
- </if>
- <if test="createdTime != null">
- and supplier.created_time = #{createdTime}
- </if>
- <if test="updateTimeStart != null">
- and supplier.update_time <![CDATA[>=]]>; #{updateTimeStart}
- </if>
- <if test="updateTimeEnd != null">
- and supplier.update_time <![CDATA[<=]]> #{updateTimeEnd}
- </if>
- <if test="updateTime != null">
- and supplier.update_time = #{updateTime}
- </if>
- <if test="keyword != null and keyword != ''">
- and supplier.id like concat('%',#{keyword},'%')
- </if>
- </sql>
- <select id="selectList" parameterType="com.platform.dao.dto.firm.FirmSupplierDTO"
- resultType="com.platform.dao.vo.query.firm.FirmSupplierVO">
- select supplier.*
- from t_firm_supplier as supplier
- <where>
- <include refid="List_Condition"/>
- and supplier.del_flag = false
- </where>
- </select>
- <select id="selectNameById" parameterType="Object" resultType="java.lang.String">
- select name
- from t_firm_supplier
- where id = #{value}
- </select>
- </mapper>
|