12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <?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.remote.RemoteDegreeMapper">
- <sql id="Base_Column_List">
- degree.id,
- degree.sb_id,
- degree.sb_name,
- degree.position_num,
- degree.type,
- degree.desc,
- degree.value,
- degree.ratio,
- degree.unit,
- degree.remark,
- degree.created_user_id,
- degree.update_user_id,
- degree.created_time,
- degree.update_time
- </sql>
- <sql id="Ref_Column_List">
- degree.sb_id,
- degree.sb_name,
- degree.position_num,
- degree.type,
- degree.desc,
- degree.value,
- degree.ratio,
- degree.unit,
- degree.remark,
- </sql>
- <sql id="List_Condition">
- <if test="id != null and id != ''">
- and degree.id = #{id}
- </if>
- <if test="sbId != null and sbId != ''">
- and degree.sb_id = #{sbId}
- </if>
- <if test="sbName != null and sbName != ''">
- and degree.sb_name = #{sbName}
- </if>
- <if test="positionNum != null">
- and degree.position_num = #{positionNum}
- </if>
- <if test="type != null">
- and degree.type = #{type}
- </if>
- <if test="desc != null and desc != ''">
- and degree.desc = #{desc}
- </if>
- <if test="value != null and value != ''">
- and degree.value = #{value}
- </if>
- <if test="ratio != null">
- and degree.ratio = #{ratio}
- </if>
- <if test="unit != null and unit != ''">
- and degree.unit = #{unit}
- </if>
- <if test="remark != null and remark != ''">
- and degree.remark = #{remark}
- </if>
- <if test="createdUserId != null and createdUserId != ''">
- and degree.created_user_id = #{createdUserId}
- </if>
- <if test="updateUserId != null and updateUserId != ''">
- and degree.update_user_id = #{updateUserId}
- </if>
- <if test="createdTimeStart != null">
- and degree.created_time <![CDATA[>=]]>; #{createdTimeStart}
- </if>
- <if test="createdTimeEnd != null">
- and degree.created_time <![CDATA[<=]]> #{createdTimeEnd}
- </if>
- <if test="createdTime != null">
- and degree.created_time = #{createdTime}
- </if>
- <if test="updateTimeStart != null">
- and degree.update_time <![CDATA[>=]]>; #{updateTimeStart}
- </if>
- <if test="updateTimeEnd != null">
- and degree.update_time <![CDATA[<=]]> #{updateTimeEnd}
- </if>
- <if test="updateTime != null">
- and degree.update_time = #{updateTime}
- </if>
- <if test="keyword != null and keyword != ''">
- and degree.id like concat(concat('%',#{keyword}),'%')
- </if>
- </sql>
- <select id="selectList" parameterType="com.platform.dao.dto.remote.RemoteDegreeDTO" resultType="com.platform.dao.vo.query.remote.RemoteDegreeVO">
- select degree.*
- from t_remote_degree as degree
- <where>
- <include refid="List_Condition" />
- </where>
- </select>
- </mapper>
|