123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- <?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.business.slfh.manager.dispatchmanager.mapper.TUDispatchMapper">
-
- <resultMap type="TUDispatch" id="TUDispatchResult">
- <result property="id" column="id" />
- <result property="status" column="status" />
- <result property="remark" column="remark" />
- <result property="delFlag" column="del_flag" />
- <result property="createBy" column="create_by" />
- <result property="createTime" column="create_time" />
- <result property="updateBy" column="update_by" />
- <result property="updateTime" column="update_time" />
- <result property="eventdispatchType" column="eventdispatch_type" />
- <result property="sender" column="sender" />
- <result property="senderTime" column="sender_time" />
- <result property="dispatchDescription" column="dispatch_description" />
- <result property="isApproval" column="is_approval" />
- <result property="approvalPerson" column="approval_person" />
- <result property="approvalTime" column="approval_time" />
- <result property="eventId" column="event_id" />
- <result property="reserveplanType" column="reserveplan_type" />
- </resultMap>
- <sql id="selectTUDispatchVo">
- select id, status, remark, del_flag, create_by, create_time, update_by, update_time, eventdispatch_type, sender, sender_time, dispatch_description, is_approval, approval_person, approval_time, event_id, reserveplan_type from t_u_dispatch
- </sql>
- <select id="selectTUDispatchList" parameterType="TUDispatch" resultMap="TUDispatchResult">
- <include refid="selectTUDispatchVo"/>
- <where>
- <if test="status != null and status != ''"> and status = #{status}</if>
- <if test="eventdispatchType != null and eventdispatchType != ''"> and eventdispatch_type = #{eventdispatchType}</if>
- <if test="sender != null and sender != ''"> and sender = #{sender}</if>
- <if test="senderTime != null "> and sender_time = #{senderTime}</if>
- <if test="dispatchDescription != null and dispatchDescription != ''"> and dispatch_description = #{dispatchDescription}</if>
- <if test="isApproval != null "> and is_approval = #{isApproval}</if>
- <if test="approvalPerson != null and approvalPerson != ''"> and approval_person = #{approvalPerson}</if>
- <if test="approvalTime != null "> and approval_time = #{approvalTime}</if>
- <if test="eventId != null and eventId != ''"> and event_id = #{eventId}</if>
- <if test="reserveplanType != null and reserveplanType != ''"> and reserveplan_type = #{reserveplanType}</if>
- </where>
- </select>
-
- <select id="selectTUDispatchById" parameterType="String" resultMap="TUDispatchResult">
- <include refid="selectTUDispatchVo"/>
- where id = #{id}
- </select>
-
- <insert id="insertTUDispatch" parameterType="TUDispatch">
- insert into t_u_dispatch
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="id != null">id,</if>
- <if test="status != null">status,</if>
- <if test="remark != null">remark,</if>
- <if test="delFlag != null">del_flag,</if>
- <if test="createBy != null">create_by,</if>
- <if test="createTime != null">create_time,</if>
- <if test="updateBy != null">update_by,</if>
- <if test="updateTime != null">update_time,</if>
- <if test="eventdispatchType != null">eventdispatch_type,</if>
- <if test="sender != null">sender,</if>
- <if test="senderTime != null">sender_time,</if>
- <if test="dispatchDescription != null">dispatch_description,</if>
- <if test="isApproval != null">is_approval,</if>
- <if test="approvalPerson != null">approval_person,</if>
- <if test="approvalTime != null">approval_time,</if>
- <if test="eventId != null">event_id,</if>
- <if test="reserveplanType != null">reserveplan_type,</if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="id != null">#{id},</if>
- <if test="status != null">#{status},</if>
- <if test="remark != null">#{remark},</if>
- <if test="delFlag != null">#{delFlag},</if>
- <if test="createBy != null">#{createBy},</if>
- <if test="createTime != null">#{createTime},</if>
- <if test="updateBy != null">#{updateBy},</if>
- <if test="updateTime != null">#{updateTime},</if>
- <if test="eventdispatchType != null">#{eventdispatchType},</if>
- <if test="sender != null">#{sender},</if>
- <if test="senderTime != null">#{senderTime},</if>
- <if test="dispatchDescription != null">#{dispatchDescription},</if>
- <if test="isApproval != null">#{isApproval},</if>
- <if test="approvalPerson != null">#{approvalPerson},</if>
- <if test="approvalTime != null">#{approvalTime},</if>
- <if test="eventId != null">#{eventId},</if>
- <if test="reserveplanType != null">#{reserveplanType},</if>
- </trim>
- </insert>
- <update id="updateTUDispatch" parameterType="TUDispatch">
- update t_u_dispatch
- <trim prefix="SET" suffixOverrides=",">
- <if test="status != null">status = #{status},</if>
- <if test="remark != null">remark = #{remark},</if>
- <if test="delFlag != null">del_flag = #{delFlag},</if>
- <if test="createBy != null">create_by = #{createBy},</if>
- <if test="createTime != null">create_time = #{createTime},</if>
- <if test="updateBy != null">update_by = #{updateBy},</if>
- <if test="updateTime != null">update_time = #{updateTime},</if>
- <if test="eventdispatchType != null">eventdispatch_type = #{eventdispatchType},</if>
- <if test="sender != null">sender = #{sender},</if>
- <if test="senderTime != null">sender_time = #{senderTime},</if>
- <if test="dispatchDescription != null">dispatch_description = #{dispatchDescription},</if>
- <if test="isApproval != null">is_approval = #{isApproval},</if>
- <if test="approvalPerson != null">approval_person = #{approvalPerson},</if>
- <if test="approvalTime != null">approval_time = #{approvalTime},</if>
- <if test="eventId != null">event_id = #{eventId},</if>
- <if test="reserveplanType != null">reserveplan_type = #{reserveplanType},</if>
- </trim>
- where id = #{id}
- </update>
- <delete id="deleteTUDispatchById" parameterType="String">
- delete from t_u_dispatch where id = #{id}
- </delete>
- <delete id="deleteTUDispatchByIds" parameterType="String">
- delete from t_u_dispatch where id in
- <foreach item="id" collection="array" open="(" separator="," close=")">
- #{id}
- </foreach>
- </delete>
- </mapper>
|