TUEventprocessMapper.xml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.business.slfh.manager.eventprocessmanager.mapper.TUEventprocessMapper">
  6. <resultMap type="TUEventprocess" id="TUEventprocessResult">
  7. <result property="id" column="id" />
  8. <result property="status" column="status" />
  9. <result property="remark" column="remark" />
  10. <result property="delFlag" column="del_flag" />
  11. <result property="createBy" column="create_by" />
  12. <result property="createTime" column="create_time" />
  13. <result property="updateBy" column="update_by" />
  14. <result property="updateTime" column="update_time" />
  15. <result property="processer" column="processer" />
  16. <result property="processTime" column="process_time" />
  17. <result property="longitude" column="longitude" />
  18. <result property="latitude" column="latitude" />
  19. <result property="processDescription" column="process_description" />
  20. <result property="ishaveAttarch" column="ishave_attarch" />
  21. <result property="processerId" column="processer_id" />
  22. <result property="eventprocessType" column="eventprocess_type" />
  23. <result property="eventId" column="event_id" />
  24. </resultMap>
  25. <sql id="selectTUEventprocessVo">
  26. 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
  27. </sql>
  28. <select id="selectTUEventprocessList" parameterType="TUEventprocess" resultMap="TUEventprocessResult">
  29. <include refid="selectTUEventprocessVo"/>
  30. <where>
  31. <if test="status != null and status != ''"> and status = #{status}</if>
  32. <if test="processer != null and processer != ''"> and processer = #{processer}</if>
  33. <if test="processTime != null "> and process_time = #{processTime}</if>
  34. <if test="longitude != null and longitude != ''"> and longitude = #{longitude}</if>
  35. <if test="latitude != null and latitude != ''"> and latitude = #{latitude}</if>
  36. <if test="processDescription != null and processDescription != ''"> and process_description = #{processDescription}</if>
  37. <if test="ishaveAttarch != null "> and ishave_attarch = #{ishaveAttarch}</if>
  38. <if test="processerId != null "> and processer_id = #{processerId}</if>
  39. <if test="eventprocessType != null and eventprocessType != ''"> and eventprocess_type = #{eventprocessType}</if>
  40. <if test="eventId != null and eventId != ''"> and event_id = #{eventId}</if>
  41. </where>
  42. </select>
  43. <select id="selectTUEventprocessById" parameterType="String" resultMap="TUEventprocessResult">
  44. <include refid="selectTUEventprocessVo"/>
  45. where id = #{id}
  46. </select>
  47. <insert id="insertTUEventprocess" parameterType="TUEventprocess">
  48. insert into t_u_eventprocess
  49. <trim prefix="(" suffix=")" suffixOverrides=",">
  50. <if test="id != null">id,</if>
  51. <if test="status != null">status,</if>
  52. <if test="remark != null">remark,</if>
  53. <if test="delFlag != null">del_flag,</if>
  54. <if test="createBy != null">create_by,</if>
  55. <if test="createTime != null">create_time,</if>
  56. <if test="updateBy != null">update_by,</if>
  57. <if test="updateTime != null">update_time,</if>
  58. <if test="processer != null">processer,</if>
  59. <if test="processTime != null">process_time,</if>
  60. <if test="longitude != null">longitude,</if>
  61. <if test="latitude != null">latitude,</if>
  62. <if test="processDescription != null">process_description,</if>
  63. <if test="ishaveAttarch != null">ishave_attarch,</if>
  64. <if test="processerId != null">processer_id,</if>
  65. <if test="eventprocessType != null">eventprocess_type,</if>
  66. <if test="eventId != null">event_id,</if>
  67. </trim>
  68. <trim prefix="values (" suffix=")" suffixOverrides=",">
  69. <if test="id != null">#{id},</if>
  70. <if test="status != null">#{status},</if>
  71. <if test="remark != null">#{remark},</if>
  72. <if test="delFlag != null">#{delFlag},</if>
  73. <if test="createBy != null">#{createBy},</if>
  74. <if test="createTime != null">#{createTime},</if>
  75. <if test="updateBy != null">#{updateBy},</if>
  76. <if test="updateTime != null">#{updateTime},</if>
  77. <if test="processer != null">#{processer},</if>
  78. <if test="processTime != null">#{processTime},</if>
  79. <if test="longitude != null">#{longitude},</if>
  80. <if test="latitude != null">#{latitude},</if>
  81. <if test="processDescription != null">#{processDescription},</if>
  82. <if test="ishaveAttarch != null">#{ishaveAttarch},</if>
  83. <if test="processerId != null">#{processerId},</if>
  84. <if test="eventprocessType != null">#{eventprocessType},</if>
  85. <if test="eventId != null">#{eventId},</if>
  86. </trim>
  87. </insert>
  88. <update id="updateTUEventprocess" parameterType="TUEventprocess">
  89. update t_u_eventprocess
  90. <trim prefix="SET" suffixOverrides=",">
  91. <if test="status != null">status = #{status},</if>
  92. <if test="remark != null">remark = #{remark},</if>
  93. <if test="delFlag != null">del_flag = #{delFlag},</if>
  94. <if test="createBy != null">create_by = #{createBy},</if>
  95. <if test="createTime != null">create_time = #{createTime},</if>
  96. <if test="updateBy != null">update_by = #{updateBy},</if>
  97. <if test="updateTime != null">update_time = #{updateTime},</if>
  98. <if test="processer != null">processer = #{processer},</if>
  99. <if test="processTime != null">process_time = #{processTime},</if>
  100. <if test="longitude != null">longitude = #{longitude},</if>
  101. <if test="latitude != null">latitude = #{latitude},</if>
  102. <if test="processDescription != null">process_description = #{processDescription},</if>
  103. <if test="ishaveAttarch != null">ishave_attarch = #{ishaveAttarch},</if>
  104. <if test="processerId != null">processer_id = #{processerId},</if>
  105. <if test="eventprocessType != null">eventprocess_type = #{eventprocessType},</if>
  106. <if test="eventId != null">event_id = #{eventId},</if>
  107. </trim>
  108. where id = #{id}
  109. </update>
  110. <delete id="deleteTUEventprocessById" parameterType="String">
  111. delete from t_u_eventprocess where id = #{id}
  112. </delete>
  113. <delete id="deleteTUEventprocessByIds" parameterType="String">
  114. delete from t_u_eventprocess where id in
  115. <foreach item="id" collection="array" open="(" separator="," close=")">
  116. #{id}
  117. </foreach>
  118. </delete>
  119. </mapper>