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.eventprocessmanager.mapper.TUEventprocessMapper">
-
- <resultMap type="TUEventprocess" id="TUEventprocessResult">
- <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="processer" column="processer" />
- <result property="processTime" column="process_time" />
- <result property="longitude" column="longitude" />
- <result property="latitude" column="latitude" />
- <result property="processDescription" column="process_description" />
- <result property="ishaveAttarch" column="ishave_attarch" />
- <result property="processerId" column="processer_id" />
- <result property="eventprocessType" column="eventprocess_type" />
- <result property="eventId" column="event_id" />
- </resultMap>
- <sql id="selectTUEventprocessVo">
- select processer_id,id, status, remark, del_flag, create_by, create_time, update_by, update_time, processer, process_time, longitude, latitude, process_description, ishave_attarch, eventprocess_type, event_id from t_u_eventprocess
- </sql>
- <select id="selectTUEventprocessList" parameterType="TUEventprocess" resultMap="TUEventprocessResult">
- <include refid="selectTUEventprocessVo"/>
- <where>
- <if test="status != null and status != ''"> and status = #{status}</if>
- <if test="processer != null and processer != ''"> and processer = #{processer}</if>
- <if test="processTime != null "> and process_time = #{processTime}</if>
- <if test="longitude != null and longitude != ''"> and longitude = #{longitude}</if>
- <if test="latitude != null and latitude != ''"> and latitude = #{latitude}</if>
- <if test="processDescription != null and processDescription != ''"> and process_description = #{processDescription}</if>
- <if test="ishaveAttarch != null "> and ishave_attarch = #{ishaveAttarch}</if>
- <if test="processerId != null "> and processer_id = #{processerId}</if>
- <if test="eventprocessType != null and eventprocessType != ''"> and eventprocess_type = #{eventprocessType}</if>
- <if test="eventId != null and eventId != ''"> and event_id = #{eventId}</if>
- </where>
- </select>
-
- <select id="selectTUEventprocessById" parameterType="String" resultMap="TUEventprocessResult">
- <include refid="selectTUEventprocessVo"/>
- where id = #{id}
- </select>
-
- <insert id="insertTUEventprocess" parameterType="TUEventprocess">
- insert into t_u_eventprocess
- <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="processer != null">processer,</if>
- <if test="processTime != null">process_time,</if>
- <if test="longitude != null">longitude,</if>
- <if test="latitude != null">latitude,</if>
- <if test="processDescription != null">process_description,</if>
- <if test="ishaveAttarch != null">ishave_attarch,</if>
- <if test="processerId != null">processer_id,</if>
- <if test="eventprocessType != null">eventprocess_type,</if>
- <if test="eventId != null">event_id,</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="processer != null">#{processer},</if>
- <if test="processTime != null">#{processTime},</if>
- <if test="longitude != null">#{longitude},</if>
- <if test="latitude != null">#{latitude},</if>
- <if test="processDescription != null">#{processDescription},</if>
- <if test="ishaveAttarch != null">#{ishaveAttarch},</if>
- <if test="processerId != null">#{processerId},</if>
- <if test="eventprocessType != null">#{eventprocessType},</if>
- <if test="eventId != null">#{eventId},</if>
- </trim>
- </insert>
- <update id="updateTUEventprocess" parameterType="TUEventprocess">
- update t_u_eventprocess
- <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="processer != null">processer = #{processer},</if>
- <if test="processTime != null">process_time = #{processTime},</if>
- <if test="longitude != null">longitude = #{longitude},</if>
- <if test="latitude != null">latitude = #{latitude},</if>
- <if test="processDescription != null">process_description = #{processDescription},</if>
- <if test="ishaveAttarch != null">ishave_attarch = #{ishaveAttarch},</if>
- <if test="processerId != null">processer_id = #{processerId},</if>
- <if test="eventprocessType != null">eventprocess_type = #{eventprocessType},</if>
- <if test="eventId != null">event_id = #{eventId},</if>
- </trim>
- where id = #{id}
- </update>
- <delete id="deleteTUEventprocessById" parameterType="String">
- delete from t_u_eventprocess where id = #{id}
- </delete>
- <delete id="deleteTUEventprocessByIds" parameterType="String">
- delete from t_u_eventprocess where id in
- <foreach item="id" collection="array" open="(" separator="," close=")">
- #{id}
- </foreach>
- </delete>
- </mapper>
|