|
@@ -2,12 +2,13 @@
|
|
|
<!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.RemoteDegreeLogMapper">
|
|
|
<sql id="Base_Column_List">
|
|
|
- degree-log.id,
|
|
|
+ degree
|
|
|
+ -log.id,
|
|
|
degree-log.sb_id,
|
|
|
degree-log.sb_name,
|
|
|
degree-log.position_num,
|
|
|
degree-log.type,
|
|
|
- degree-log.desc,
|
|
|
+ degree-log.description,
|
|
|
degree-log.result,
|
|
|
degree-log.ratio,
|
|
|
degree-log.unit,
|
|
@@ -16,82 +17,84 @@
|
|
|
degree-log.update_user_id,
|
|
|
degree-log.created_time,
|
|
|
degree-log.update_time
|
|
|
- </sql>
|
|
|
+ </sql>
|
|
|
<sql id="Ref_Column_List">
|
|
|
- degree-log.sb_id,
|
|
|
+ degree
|
|
|
+ -log.sb_id,
|
|
|
degree-log.sb_name,
|
|
|
degree-log.position_num,
|
|
|
degree-log.type,
|
|
|
- degree-log.desc,
|
|
|
+ degree-log.description,
|
|
|
degree-log.result,
|
|
|
degree-log.ratio,
|
|
|
degree-log.unit,
|
|
|
degree-log.remark,
|
|
|
- </sql>
|
|
|
+ </sql>
|
|
|
<sql id="List_Condition">
|
|
|
- <if test="id != null and id != ''">
|
|
|
- and degree-log.id = #{id}
|
|
|
- </if>
|
|
|
- <if test="sbId != null and sbId != ''">
|
|
|
- and degree-log.sb_id = #{sbId}
|
|
|
- </if>
|
|
|
- <if test="sbName != null and sbName != ''">
|
|
|
- and degree-log.sb_name = #{sbName}
|
|
|
- </if>
|
|
|
- <if test="positionNum != null">
|
|
|
- and degree-log.position_num = #{positionNum}
|
|
|
- </if>
|
|
|
- <if test="type != null">
|
|
|
- and degree-log.type = #{type}
|
|
|
- </if>
|
|
|
- <if test="desc != null and desc != ''">
|
|
|
- and degree-log.desc = #{desc}
|
|
|
- </if>
|
|
|
- <if test="result != null and result != ''">
|
|
|
- and degree-log.result = #{result}
|
|
|
- </if>
|
|
|
- <if test="ratio != null">
|
|
|
- and degree-log.ratio = #{ratio}
|
|
|
- </if>
|
|
|
- <if test="unit != null and unit != ''">
|
|
|
- and degree-log.unit = #{unit}
|
|
|
- </if>
|
|
|
- <if test="remark != null and remark != ''">
|
|
|
- and degree-log.remark = #{remark}
|
|
|
- </if>
|
|
|
- <if test="createdUserId != null and createdUserId != ''">
|
|
|
- and degree-log.created_user_id = #{createdUserId}
|
|
|
- </if>
|
|
|
- <if test="updateUserId != null and updateUserId != ''">
|
|
|
- and degree-log.update_user_id = #{updateUserId}
|
|
|
- </if>
|
|
|
- <if test="createdTimeStart != null">
|
|
|
- and degree-log.created_time <![CDATA[>=]]>; #{createdTimeStart}
|
|
|
- </if>
|
|
|
- <if test="createdTimeEnd != null">
|
|
|
- and degree-log.created_time <![CDATA[<=]]> #{createdTimeEnd}
|
|
|
- </if>
|
|
|
- <if test="createdTime != null">
|
|
|
- and degree-log.created_time = #{createdTime}
|
|
|
- </if>
|
|
|
- <if test="updateTimeStart != null">
|
|
|
- and degree-log.update_time <![CDATA[>=]]>; #{updateTimeStart}
|
|
|
- </if>
|
|
|
- <if test="updateTimeEnd != null">
|
|
|
- and degree-log.update_time <![CDATA[<=]]> #{updateTimeEnd}
|
|
|
- </if>
|
|
|
- <if test="updateTime != null">
|
|
|
- and degree-log.update_time = #{updateTime}
|
|
|
- </if>
|
|
|
- <if test="keyword != null and keyword != ''">
|
|
|
+ <if test="id != null and id != ''">
|
|
|
+ and degree-log.id = #{id}
|
|
|
+ </if>
|
|
|
+ <if test="sbId != null and sbId != ''">
|
|
|
+ and degree-log.sb_id = #{sbId}
|
|
|
+ </if>
|
|
|
+ <if test="sbName != null and sbName != ''">
|
|
|
+ and degree-log.sb_name = #{sbName}
|
|
|
+ </if>
|
|
|
+ <if test="positionNum != null">
|
|
|
+ and degree-log.position_num = #{positionNum}
|
|
|
+ </if>
|
|
|
+ <if test="type != null">
|
|
|
+ and degree-log.type = #{type}
|
|
|
+ </if>
|
|
|
+ <if test="description != null and description != ''">
|
|
|
+ and degree-log.description = #{description}
|
|
|
+ </if>
|
|
|
+ <if test="result != null and result != ''">
|
|
|
+ and degree-log.result = #{result}
|
|
|
+ </if>
|
|
|
+ <if test="ratio != null">
|
|
|
+ and degree-log.ratio = #{ratio}
|
|
|
+ </if>
|
|
|
+ <if test="unit != null and unit != ''">
|
|
|
+ and degree-log.unit = #{unit}
|
|
|
+ </if>
|
|
|
+ <if test="remark != null and remark != ''">
|
|
|
+ and degree-log.remark = #{remark}
|
|
|
+ </if>
|
|
|
+ <if test="createdUserId != null and createdUserId != ''">
|
|
|
+ and degree-log.created_user_id = #{createdUserId}
|
|
|
+ </if>
|
|
|
+ <if test="updateUserId != null and updateUserId != ''">
|
|
|
+ and degree-log.update_user_id = #{updateUserId}
|
|
|
+ </if>
|
|
|
+ <if test="createdTimeStart != null">
|
|
|
+ and degree-log.created_time <![CDATA[>=]]>; #{createdTimeStart}
|
|
|
+ </if>
|
|
|
+ <if test="createdTimeEnd != null">
|
|
|
+ and degree-log.created_time <![CDATA[<=]]> #{createdTimeEnd}
|
|
|
+ </if>
|
|
|
+ <if test="createdTime != null">
|
|
|
+ and degree-log.created_time = #{createdTime}
|
|
|
+ </if>
|
|
|
+ <if test="updateTimeStart != null">
|
|
|
+ and degree-log.update_time <![CDATA[>=]]>; #{updateTimeStart}
|
|
|
+ </if>
|
|
|
+ <if test="updateTimeEnd != null">
|
|
|
+ and degree-log.update_time <![CDATA[<=]]> #{updateTimeEnd}
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ and degree-log.update_time = #{updateTime}
|
|
|
+ </if>
|
|
|
+ <if test="keyword != null and keyword != ''">
|
|
|
and degree-log.id like concat(concat('%',#{keyword}),'%')
|
|
|
</if>
|
|
|
</sql>
|
|
|
- <select id="selectList" parameterType="com.platform.dao.dto.remote.RemoteDegreeLogDTO" resultType="com.platform.dao.vo.query.remote.RemoteDegreeLogVO">
|
|
|
+ <select id="selectList" parameterType="com.platform.dao.dto.remote.RemoteDegreeLogDTO"
|
|
|
+ resultType="com.platform.dao.vo.query.remote.RemoteDegreeLogVO">
|
|
|
select degree-log.*
|
|
|
- from t_remote_degree_log as degree-log
|
|
|
- <where>
|
|
|
- <include refid="List_Condition" />
|
|
|
+ from t_remote_degree_log as degree-log
|
|
|
+ <where>
|
|
|
+ <include refid="List_Condition"/>
|
|
|
</where>
|
|
|
</select>
|
|
|
</mapper>
|