123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- <?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.spareAdd.LongYanSpareAddMapper">
- <sql id="Base_Column_List">
- menu.id,
- menu.category,
- menu.big_category,
- menu.name,
- menu.ggxh,
- menu.unit,
- menu.remark,
- menu.status,
- menu.created_user_id,
- menu.created_user_name,
- menu.created_time,
- menu.update_user_id,
- menu.update_user_name,
- menu.update_time
- </sql>
- <sql id="Ref_Column_List">
- menu.category,
- menu.big_category,
- menu.name,
- menu.ggxh,
- menu.unit,
- menu.remark,
- menu.status,
- </sql>
- <sql id="List_Condition">
- <if test="id != null and id != ''">
- and menu.id = #{id}
- </if>
- <if test="category != null and category != ''">
- and menu.category = #{category}
- </if>
- <if test="bigCategory != null and bigCategory != ''">
- and menu.big_category = #{bigCategory}
- </if>
- <if test="name != null and name != ''">
- and menu.name = #{name}
- </if>
- <if test="ggxh != null and ggxh != ''">
- and menu.ggxh = #{ggxh}
- </if>
- <if test="unit != null and unit != ''">
- and menu.unit = #{unit}
- </if>
- <if test="remark != null and remark != ''">
- and menu.remark = #{remark}
- </if>
- <if test="status != null">
- and menu.status = #{status}
- </if>
- <if test="createdUserId != null and createdUserId != ''">
- and menu.created_user_id = #{createdUserId}
- </if>
- <if test="createdUserName != null and createdUserName != ''">
- and menu.created_user_name = #{createdUserName}
- </if>
- <if test="createdTimeStart != null">
- and menu.created_time <![CDATA[>=]]>; #{createdTimeStart}
- </if>
- <if test="createdTimeEnd != null">
- and menu.created_time <![CDATA[<=]]> #{createdTimeEnd}
- </if>
- <if test="createdTime != null">
- and menu.created_time = #{createdTime}
- </if>
- <if test="updateUserId != null and updateUserId != ''">
- and menu.update_user_id = #{updateUserId}
- </if>
- <if test="updateUserName != null and updateUserName != ''">
- and menu.update_user_name = #{updateUserName}
- </if>
- <if test="updateTimeStart != null">
- and menu.update_time <![CDATA[>=]]>; #{updateTimeStart}
- </if>
- <if test="updateTimeEnd != null">
- and menu.update_time <![CDATA[<=]]> #{updateTimeEnd}
- </if>
- <if test="updateTime != null">
- and menu.update_time = #{updateTime}
- </if>
- <if test="keyword != null and keyword != ''">
- and menu.id like concat(concat('%',#{keyword}),'%')
- </if>
- </sql>
- <select id="selectList" parameterType="com.platform.dao.dto.spareAdd.LongYanSpareAddDTO"
- resultType="com.platform.dao.vo.query.spareAdd.LongYanSpareAddVO">
- select menu.*
- from t_long_yan_spare_add as menu
- <where>
- <include refid="List_Condition"/>
- </where>
- </select>
- </mapper>
|