123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <?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.maintain.MaintainStandardMapper">
- <sql id="Base_Column_List">
- maintainstandard.id,
- maintainstandard.name,
- maintainstandard.no,
- maintainstandard.type,
- maintainstandard.enable,
- maintainstandard.requirement,
- maintainstandard.remark,
- maintainstandard.created_user_id,
- maintainstandard.update_user_id,
- maintainstandard.created_user_name,
- maintainstandard.update_user_name,
- maintainstandard.created_time,
- maintainstandard.update_time
- </sql>
- <sql id="Ref_Column_List">
- maintainstandard.name,
- maintainstandard.no,
- maintainstandard.type,
- maintainstandard.enable,
- maintainstandard.requirement,
- maintainstandard.remark,
- </sql>
- <sql id="List_Condition">
- <if test="id != null and id != ''">
- and maintainstandard.id = #{id}
- </if>
- <if test="name != null and name != ''">
- and maintainstandard.name = #{name}
- </if>
- <if test="no != null and no != ''">
- and maintainstandard.no = #{no}
- </if>
- <if test="type != null">
- and maintainstandard.type = #{type}
- </if>
- <if test="enable != null">
- and maintainstandard.enable = #{enable}
- </if>
- <if test="requirement != null and requirement != ''">
- and maintainstandard.requirement = #{requirement}
- </if>
- <if test="remark != null and remark != ''">
- and maintainstandard.remark = #{remark}
- </if>
- <if test="createdUserId != null and createdUserId != ''">
- and maintainstandard.created_user_id = #{createdUserId}
- </if>
- <if test="updateUserId != null and updateUserId != ''">
- and maintainstandard.update_user_id = #{updateUserId}
- </if>
- <if test="createdUserName != null and createdUserName != ''">
- and maintainstandard.created_user_name = #{createdUserName}
- </if>
- <if test="updateUserName != null and updateUserName != ''">
- and maintainstandard.update_user_name = #{updateUserName}
- </if>
- <if test="createdTimeStart != null">
- and maintainstandard.created_time <![CDATA[>=]]>; #{createdTimeStart}
- </if>
- <if test="createdTimeEnd != null">
- and maintainstandard.created_time <![CDATA[<=]]> #{createdTimeEnd}
- </if>
- <if test="createdTime != null">
- and maintainstandard.created_time = #{createdTime}
- </if>
- <if test="updateTimeStart != null">
- and maintainstandard.update_time <![CDATA[>=]]>; #{updateTimeStart}
- </if>
- <if test="updateTimeEnd != null">
- and maintainstandard.update_time <![CDATA[<=]]> #{updateTimeEnd}
- </if>
- <if test="updateTime != null">
- and maintainstandard.update_time = #{updateTime}
- </if>
- <if test="keyword != null and keyword != ''">
- and maintainstandard.name like concat('%',#{keyword},'%')
- </if>
- </sql>
- <select id="selectList" parameterType="com.platform.dao.dto.maintain.MaintainStandardDTO" resultType="com.platform.dao.entity.maintain.MaintainStandard">
- select maintainstandard.*
- from t_maintain_standard as maintainstandard
- <where>
- <include refid="List_Condition"/>
- </where>
- </select>
- </mapper>
|