123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <?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.fill.FillGatherTaskDetailMapper">
- <sql id="Base_Column_List">
- fill.id,
- fill.task_id,
- fill.sb_id,
- fill.created_time,
- fill.update_time,
- fill.created_user_id,
- fill.created_user_name,
- fill.update_user_id,
- fill.update_user_name,
- fill.content,
- fill.status
- </sql>
- <sql id="Ref_Column_List">
- fill.task_id,
- fill.sb_id,
- fill.content,
- fill.status
- </sql>
- <sql id="List_Condition">
- <if test="id != null and id != ''">
- and fill.id = #{id}
- </if>
- <if test="taskId != null and taskId != ''">
- and fill.task_id = #{taskId}
- </if>
- <if test="sbId != null and sbId != ''">
- and fill.sb_id = #{sbId}
- </if>
- <if test="createdTimeStart != null">
- and fill.created_time <![CDATA[>=]]>; #{createdTimeStart}
- </if>
- <if test="createdTimeEnd != null">
- and fill.created_time <![CDATA[<=]]> #{createdTimeEnd}
- </if>
- <if test="createdTime != null">
- and fill.created_time = #{createdTime}
- </if>
- <if test="updateTimeStart != null">
- and fill.update_time <![CDATA[>=]]>; #{updateTimeStart}
- </if>
- <if test="updateTimeEnd != null">
- and fill.update_time <![CDATA[<=]]> #{updateTimeEnd}
- </if>
- <if test="updateTime != null">
- and fill.update_time = #{updateTime}
- </if>
- <if test="createdUserId != null and createdUserId != ''">
- and fill.created_user_id = #{createdUserId}
- </if>
- <if test="createdUserName != null and createdUserName != ''">
- and fill.created_user_name = #{createdUserName}
- </if>
- <if test="updateUserId != null and updateUserId != ''">
- and fill.update_user_id = #{updateUserId}
- </if>
- <if test="updateUserName != null and updateUserName != ''">
- and fill.update_user_name = #{updateUserName}
- </if>
- <if test="content != null">
- and fill.content = #{content}
- </if>
- <if test="status != null">
- and fill.status = #{status}
- </if>
- <if test="keyword != null and keyword != ''">
- and fill.id like concat(concat('%',#{keyword}),'%')
- </if>
- </sql>
- <select id="selectList" parameterType="com.platform.dao.dto.fill.FillGatherTaskDetailDTO"
- resultType="com.platform.dao.vo.query.fill.FillGatherTaskDetailVO">
- select fill.*
- from t_fill_gather_task_detail as fill
- <where>
- <include refid="List_Condition"/>
- </where>
- </select>
- <select id="selectVOByTaskId" parameterType="java.lang.String" resultType="com.platform.dao.vo.query.fill.FillGatherTaskDetailVO">
- select fill.*,sb.name as sbName,sp.name as positionName,sb.no as sbNo from t_fill_gather_task_detail as fill
- join t_sb_info sb on fill.sb_id = sb.id join t_sb_position sp on sb.position_id = sp.id
- where fill.task_id = #{taskId}
- </select>
- </mapper>
|