PubSendDetailMapper.xml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
  3. <mapper namespace="com.minpay.db.table.mapper.PubSendDetailMapper" >
  4. <resultMap id="BaseResultMap" type="com.minpay.db.table.model.PubSendDetail" >
  5. <!--
  6. WARNING - @mbggenerated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. -->
  9. <result column="OSD_CODE" property="code" jdbcType="VARCHAR" />
  10. <result column="OSD_USERID" property="userid" jdbcType="VARCHAR" />
  11. <result column="OSD_LASTTIME" property="lasttime" jdbcType="VARCHAR" />
  12. <result column="OSD_STATUS" property="status" jdbcType="VARCHAR" />
  13. </resultMap>
  14. <sql id="Example_Where_Clause" >
  15. <!--
  16. WARNING - @mbggenerated
  17. This element is automatically generated by MyBatis Generator, do not modify.
  18. -->
  19. <where >
  20. <foreach collection="oredCriteria" item="criteria" separator="or" >
  21. <if test="criteria.valid" >
  22. <trim prefix="(" suffix=")" prefixOverrides="and" >
  23. <foreach collection="criteria.criteria" item="criterion" >
  24. <choose >
  25. <when test="criterion.noValue" >
  26. and ${criterion.condition}
  27. </when>
  28. <when test="criterion.singleValue" >
  29. and ${criterion.condition} #{criterion.value}
  30. </when>
  31. <when test="criterion.betweenValue" >
  32. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  33. </when>
  34. <when test="criterion.listValue" >
  35. and ${criterion.condition}
  36. <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
  37. #{listItem}
  38. </foreach>
  39. </when>
  40. </choose>
  41. </foreach>
  42. </trim>
  43. </if>
  44. </foreach>
  45. </where>
  46. </sql>
  47. <sql id="Update_By_Example_Where_Clause" >
  48. <!--
  49. WARNING - @mbggenerated
  50. This element is automatically generated by MyBatis Generator, do not modify.
  51. -->
  52. <where >
  53. <foreach collection="example.oredCriteria" item="criteria" separator="or" >
  54. <if test="criteria.valid" >
  55. <trim prefix="(" suffix=")" prefixOverrides="and" >
  56. <foreach collection="criteria.criteria" item="criterion" >
  57. <choose >
  58. <when test="criterion.noValue" >
  59. and ${criterion.condition}
  60. </when>
  61. <when test="criterion.singleValue" >
  62. and ${criterion.condition} #{criterion.value}
  63. </when>
  64. <when test="criterion.betweenValue" >
  65. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  66. </when>
  67. <when test="criterion.listValue" >
  68. and ${criterion.condition}
  69. <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
  70. #{listItem}
  71. </foreach>
  72. </when>
  73. </choose>
  74. </foreach>
  75. </trim>
  76. </if>
  77. </foreach>
  78. </where>
  79. </sql>
  80. <sql id="Base_Column_List" >
  81. <!--
  82. WARNING - @mbggenerated
  83. This element is automatically generated by MyBatis Generator, do not modify.
  84. -->
  85. OSD_CODE, OSD_USERID, OSD_LASTTIME, OSD_STATUS
  86. </sql>
  87. <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.minpay.db.table.model.PubSendDetailExample" >
  88. <!--
  89. WARNING - @mbggenerated
  90. This element is automatically generated by MyBatis Generator, do not modify.
  91. -->
  92. select
  93. <if test="distinct" >
  94. distinct
  95. </if>
  96. <include refid="Base_Column_List" />
  97. from pub_send_detail
  98. <if test="_parameter != null" >
  99. <include refid="Example_Where_Clause" />
  100. </if>
  101. <if test="orderByClause != null" >
  102. order by ${orderByClause}
  103. </if>
  104. </select>
  105. <delete id="deleteByExample" parameterType="com.minpay.db.table.model.PubSendDetailExample" >
  106. <!--
  107. WARNING - @mbggenerated
  108. This element is automatically generated by MyBatis Generator, do not modify.
  109. -->
  110. delete from pub_send_detail
  111. <if test="_parameter != null" >
  112. <include refid="Example_Where_Clause" />
  113. </if>
  114. </delete>
  115. <insert id="insert" parameterType="com.minpay.db.table.model.PubSendDetail" >
  116. <!--
  117. WARNING - @mbggenerated
  118. This element is automatically generated by MyBatis Generator, do not modify.
  119. -->
  120. insert into pub_send_detail (OSD_CODE, OSD_USERID, OSD_LASTTIME,
  121. OSD_STATUS)
  122. values (#{code,jdbcType=VARCHAR}, #{userid,jdbcType=VARCHAR}, #{lasttime,jdbcType=VARCHAR},
  123. #{status,jdbcType=VARCHAR})
  124. </insert>
  125. <insert id="insertSelective" parameterType="com.minpay.db.table.model.PubSendDetail" >
  126. <!--
  127. WARNING - @mbggenerated
  128. This element is automatically generated by MyBatis Generator, do not modify.
  129. -->
  130. insert into pub_send_detail
  131. <trim prefix="(" suffix=")" suffixOverrides="," >
  132. <if test="code != null" >
  133. OSD_CODE,
  134. </if>
  135. <if test="userid != null" >
  136. OSD_USERID,
  137. </if>
  138. <if test="lasttime != null" >
  139. OSD_LASTTIME,
  140. </if>
  141. <if test="status != null" >
  142. OSD_STATUS,
  143. </if>
  144. </trim>
  145. <trim prefix="values (" suffix=")" suffixOverrides="," >
  146. <if test="code != null" >
  147. #{code,jdbcType=VARCHAR},
  148. </if>
  149. <if test="userid != null" >
  150. #{userid,jdbcType=VARCHAR},
  151. </if>
  152. <if test="lasttime != null" >
  153. #{lasttime,jdbcType=VARCHAR},
  154. </if>
  155. <if test="status != null" >
  156. #{status,jdbcType=VARCHAR},
  157. </if>
  158. </trim>
  159. </insert>
  160. <select id="countByExample" parameterType="com.minpay.db.table.model.PubSendDetailExample" resultType="java.lang.Integer" >
  161. <!--
  162. WARNING - @mbggenerated
  163. This element is automatically generated by MyBatis Generator, do not modify.
  164. -->
  165. select count(*) from pub_send_detail
  166. <if test="_parameter != null" >
  167. <include refid="Example_Where_Clause" />
  168. </if>
  169. </select>
  170. <update id="updateByExampleSelective" parameterType="map" >
  171. <!--
  172. WARNING - @mbggenerated
  173. This element is automatically generated by MyBatis Generator, do not modify.
  174. -->
  175. update pub_send_detail
  176. <set >
  177. <if test="record.code != null" >
  178. OSD_CODE = #{record.code,jdbcType=VARCHAR},
  179. </if>
  180. <if test="record.userid != null" >
  181. OSD_USERID = #{record.userid,jdbcType=VARCHAR},
  182. </if>
  183. <if test="record.lasttime != null" >
  184. OSD_LASTTIME = #{record.lasttime,jdbcType=VARCHAR},
  185. </if>
  186. <if test="record.status != null" >
  187. OSD_STATUS = #{record.status,jdbcType=VARCHAR},
  188. </if>
  189. </set>
  190. <if test="_parameter != null" >
  191. <include refid="Update_By_Example_Where_Clause" />
  192. </if>
  193. </update>
  194. <update id="updateByExample" parameterType="map" >
  195. <!--
  196. WARNING - @mbggenerated
  197. This element is automatically generated by MyBatis Generator, do not modify.
  198. -->
  199. update pub_send_detail
  200. set OSD_CODE = #{record.code,jdbcType=VARCHAR},
  201. OSD_USERID = #{record.userid,jdbcType=VARCHAR},
  202. OSD_LASTTIME = #{record.lasttime,jdbcType=VARCHAR},
  203. OSD_STATUS = #{record.status,jdbcType=VARCHAR}
  204. <if test="_parameter != null" >
  205. <include refid="Update_By_Example_Where_Clause" />
  206. </if>
  207. </update>
  208. </mapper>