123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- <?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.line,
- degree.type,
- degree.description,
- degree.result,
- 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.line,
- degree.type,
- degree.description,
- degree.result,
- 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="line != null">
- and degree.line = #{line}
- </if>
- <if test="type != null">
- and degree.type = #{type}
- </if>
- <if test="description != null and description != ''">
- and degree.description = #{description}
- </if>
- <if test="result != null and result != ''">
- and degree.result = #{result}
- </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}),'%')
- or degree.position_num 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.*, sbInfo.name sbName, sbInfo.no sbNo
- from t_remote_degree as degree
- left join t_sb_info sbInfo on degree.sb_id = sbInfo.id
- <where>
- <include refid="List_Condition"/>
- </where>
- </select>
- </mapper>
|