AskaSplitrecordMapper.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  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.mofangchuxing.aska.dao.mapper.AskaSplitrecordMapper">
  6. <resultMap id="BaseResultMap" type="com.mofangchuxing.aska.dao.domain.AskaSplitrecord">
  7. <id property="id" column="id" jdbcType="INTEGER"/>
  8. <result property="payId" column="payId" jdbcType="INTEGER"/>
  9. <result property="spiltOrderId" column="spiltOrderId" jdbcType="VARCHAR"/>
  10. <result property="payAmount" column="payAmount" jdbcType="INTEGER"/>
  11. <result property="retailId" column="retailId" jdbcType="INTEGER"/>
  12. <result property="retailName" column="retailName" jdbcType="VARCHAR"/>
  13. <result property="retailAccount" column="retailAccount" jdbcType="VARCHAR"/>
  14. <result property="retailAmount" column="retailAmount" jdbcType="VARCHAR"/>
  15. <result property="retailRealtimeAmount" column="retailRealtimeAmount" jdbcType="INTEGER"/>
  16. <result property="retailAccountAmount" column="retailAccountAmount" jdbcType="INTEGER"/>
  17. <result property="retailSplitrule" column="retailSplitrule" jdbcType="VARCHAR"/>
  18. <result property="channelId" column="channelId" jdbcType="INTEGER"/>
  19. <result property="channelName" column="channelName" jdbcType="VARCHAR"/>
  20. <result property="channelAccount" column="channelAccount" jdbcType="VARCHAR"/>
  21. <result property="channelAmount" column="channelAmount" jdbcType="VARCHAR"/>
  22. <result property="channelRealtimeAmount" column="channelRealtimeAmount" jdbcType="INTEGER"/>
  23. <result property="channelAccountAmount" column="channelAccountAmount" jdbcType="INTEGER"/>
  24. <result property="channelSplitRule" column="channelSplitRule" jdbcType="VARCHAR"/>
  25. <result property="status" column="status" jdbcType="INTEGER"/>
  26. <result property="createTime" column="createTime" jdbcType="TIMESTAMP"/>
  27. <result property="hasRefund" column="hasRefund" jdbcType="INTEGER"/>
  28. <result property="refundTotal" column="refundTotal" jdbcType="INTEGER"/>
  29. <result property="refundRetail" column="refundRetail" jdbcType="INTEGER"/>
  30. <result property="refundChannel" column="refundChannel" jdbcType="INTEGER"/>
  31. </resultMap>
  32. <sql id="Base_Column_List">
  33. id,payId,spiltOrderId,
  34. payAmount,retailId,retailName,
  35. retailAccount,retailAmount,retailRealtimeAmount,
  36. retailAccountAmount,retailSplitrule,channelId,
  37. channelName,channelAccount,channelAmount,
  38. channelRealtimeAmount,channelAccountAmount,channelSplitRule,
  39. status,createTime,hasRefund,
  40. refundTotal,refundRetail,refundChannel
  41. </sql>
  42. <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
  43. select
  44. <include refid="Base_Column_List" />
  45. from aska_splitRecord
  46. where id = #{id,jdbcType=INTEGER}
  47. </select>
  48. <select id="selectAllByPayId" resultMap="BaseResultMap">
  49. select
  50. <include refid="Base_Column_List" />
  51. from aska_splitRecord
  52. where payId = #{payId} limit 1
  53. </select>
  54. <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
  55. delete from aska_splitRecord
  56. where id = #{id,jdbcType=INTEGER}
  57. </delete>
  58. <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.AskaSplitrecord" useGeneratedKeys="true">
  59. insert into aska_splitRecord
  60. ( id,payId,spiltOrderId
  61. ,payAmount,retailId,retailName
  62. ,retailAccount,retailAmount,retailRealtimeAmount
  63. ,retailAccountAmount,retailSplitrule,channelId
  64. ,channelName,channelAccount,channelAmount
  65. ,channelRealtimeAmount,channelAccountAmount,channelSplitRule
  66. ,status,createTime,hasRefund
  67. ,refundTotal,refundRetail,refundChannel
  68. )
  69. values (#{id,jdbcType=INTEGER},#{payId,jdbcType=INTEGER},#{spiltOrderId,jdbcType=VARCHAR}
  70. ,#{payAmount,jdbcType=INTEGER},#{retailId,jdbcType=INTEGER},#{retailName,jdbcType=VARCHAR}
  71. ,#{retailAccount,jdbcType=VARCHAR},#{retailAmount,jdbcType=VARCHAR},#{retailRealtimeAmount,jdbcType=INTEGER}
  72. ,#{retailAccountAmount,jdbcType=INTEGER},#{retailSplitrule,jdbcType=VARCHAR},#{channelId,jdbcType=INTEGER}
  73. ,#{channelName,jdbcType=VARCHAR},#{channelAccount,jdbcType=VARCHAR},#{channelAmount,jdbcType=VARCHAR}
  74. ,#{channelRealtimeAmount,jdbcType=INTEGER},#{channelAccountAmount,jdbcType=INTEGER},#{channelSplitRule,jdbcType=VARCHAR}
  75. ,#{status,jdbcType=INTEGER},#{createTime,jdbcType=TIMESTAMP},#{hasRefund,jdbcType=INTEGER}
  76. ,#{refundTotal,jdbcType=INTEGER},#{refundRetail,jdbcType=INTEGER},#{refundChannel,jdbcType=INTEGER}
  77. )
  78. </insert>
  79. <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.AskaSplitrecord" useGeneratedKeys="true">
  80. insert into aska_splitRecord
  81. <trim prefix="(" suffix=")" suffixOverrides=",">
  82. <if test="id != null">id,</if>
  83. <if test="payId != null">payId,</if>
  84. <if test="spiltOrderId != null">spiltOrderId,</if>
  85. <if test="payAmount != null">payAmount,</if>
  86. <if test="retailId != null">retailId,</if>
  87. <if test="retailName != null">retailName,</if>
  88. <if test="retailAccount != null">retailAccount,</if>
  89. <if test="retailAmount != null">retailAmount,</if>
  90. <if test="retailRealtimeAmount != null">retailRealtimeAmount,</if>
  91. <if test="retailAccountAmount != null">retailAccountAmount,</if>
  92. <if test="retailSplitrule != null">retailSplitrule,</if>
  93. <if test="channelId != null">channelId,</if>
  94. <if test="channelName != null">channelName,</if>
  95. <if test="channelAccount != null">channelAccount,</if>
  96. <if test="channelAmount != null">channelAmount,</if>
  97. <if test="channelRealtimeAmount != null">channelRealtimeAmount,</if>
  98. <if test="channelAccountAmount != null">channelAccountAmount,</if>
  99. <if test="channelSplitRule != null">channelSplitRule,</if>
  100. <if test="status != null">status,</if>
  101. <if test="createTime != null">createTime,</if>
  102. <if test="hasRefund != null">hasRefund,</if>
  103. <if test="refundTotal != null">refundTotal,</if>
  104. <if test="refundRetail != null">refundRetail,</if>
  105. <if test="refundChannel != null">refundChannel,</if>
  106. </trim>
  107. <trim prefix="values (" suffix=")" suffixOverrides=",">
  108. <if test="id != null">#{id,jdbcType=INTEGER},</if>
  109. <if test="payId != null">#{payId,jdbcType=INTEGER},</if>
  110. <if test="spiltOrderId != null">#{spiltOrderId,jdbcType=VARCHAR},</if>
  111. <if test="payAmount != null">#{payAmount,jdbcType=INTEGER},</if>
  112. <if test="retailId != null">#{retailId,jdbcType=INTEGER},</if>
  113. <if test="retailName != null">#{retailName,jdbcType=VARCHAR},</if>
  114. <if test="retailAccount != null">#{retailAccount,jdbcType=VARCHAR},</if>
  115. <if test="retailAmount != null">#{retailAmount,jdbcType=VARCHAR},</if>
  116. <if test="retailRealtimeAmount != null">#{retailRealtimeAmount,jdbcType=INTEGER},</if>
  117. <if test="retailAccountAmount != null">#{retailAccountAmount,jdbcType=INTEGER},</if>
  118. <if test="retailSplitrule != null">#{retailSplitrule,jdbcType=VARCHAR},</if>
  119. <if test="channelId != null">#{channelId,jdbcType=INTEGER},</if>
  120. <if test="channelName != null">#{channelName,jdbcType=VARCHAR},</if>
  121. <if test="channelAccount != null">#{channelAccount,jdbcType=VARCHAR},</if>
  122. <if test="channelAmount != null">#{channelAmount,jdbcType=VARCHAR},</if>
  123. <if test="channelRealtimeAmount != null">#{channelRealtimeAmount,jdbcType=INTEGER},</if>
  124. <if test="channelAccountAmount != null">#{channelAccountAmount,jdbcType=INTEGER},</if>
  125. <if test="channelSplitRule != null">#{channelSplitRule,jdbcType=VARCHAR},</if>
  126. <if test="status != null">#{status,jdbcType=INTEGER},</if>
  127. <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
  128. <if test="hasRefund != null">#{hasRefund,jdbcType=INTEGER},</if>
  129. <if test="refundTotal != null">#{refundTotal,jdbcType=INTEGER},</if>
  130. <if test="refundRetail != null">#{refundRetail,jdbcType=INTEGER},</if>
  131. <if test="refundChannel != null">#{refundChannel,jdbcType=INTEGER},</if>
  132. </trim>
  133. </insert>
  134. <update id="updateByPrimaryKeySelective" parameterType="com.mofangchuxing.aska.dao.domain.AskaSplitrecord">
  135. update aska_splitRecord
  136. <set>
  137. <if test="payId != null">
  138. payId = #{payId,jdbcType=INTEGER},
  139. </if>
  140. <if test="spiltOrderId != null">
  141. spiltOrderId = #{spiltOrderId,jdbcType=VARCHAR},
  142. </if>
  143. <if test="payAmount != null">
  144. payAmount = #{payAmount,jdbcType=INTEGER},
  145. </if>
  146. <if test="retailId != null">
  147. retailId = #{retailId,jdbcType=INTEGER},
  148. </if>
  149. <if test="retailName != null">
  150. retailName = #{retailName,jdbcType=VARCHAR},
  151. </if>
  152. <if test="retailAccount != null">
  153. retailAccount = #{retailAccount,jdbcType=VARCHAR},
  154. </if>
  155. <if test="retailAmount != null">
  156. retailAmount = #{retailAmount,jdbcType=VARCHAR},
  157. </if>
  158. <if test="retailRealtimeAmount != null">
  159. retailRealtimeAmount = #{retailRealtimeAmount,jdbcType=INTEGER},
  160. </if>
  161. <if test="retailAccountAmount != null">
  162. retailAccountAmount = #{retailAccountAmount,jdbcType=INTEGER},
  163. </if>
  164. <if test="retailSplitrule != null">
  165. retailSplitrule = #{retailSplitrule,jdbcType=VARCHAR},
  166. </if>
  167. <if test="channelId != null">
  168. channelId = #{channelId,jdbcType=INTEGER},
  169. </if>
  170. <if test="channelName != null">
  171. channelName = #{channelName,jdbcType=VARCHAR},
  172. </if>
  173. <if test="channelAccount != null">
  174. channelAccount = #{channelAccount,jdbcType=VARCHAR},
  175. </if>
  176. <if test="channelAmount != null">
  177. channelAmount = #{channelAmount,jdbcType=VARCHAR},
  178. </if>
  179. <if test="channelRealtimeAmount != null">
  180. channelRealtimeAmount = #{channelRealtimeAmount,jdbcType=INTEGER},
  181. </if>
  182. <if test="channelAccountAmount != null">
  183. channelAccountAmount = #{channelAccountAmount,jdbcType=INTEGER},
  184. </if>
  185. <if test="channelSplitRule != null">
  186. channelSplitRule = #{channelSplitRule,jdbcType=VARCHAR},
  187. </if>
  188. <if test="status != null">
  189. status = #{status,jdbcType=INTEGER},
  190. </if>
  191. <if test="createTime != null">
  192. createTime = #{createTime,jdbcType=TIMESTAMP},
  193. </if>
  194. <if test="hasRefund != null">
  195. hasRefund = #{hasRefund,jdbcType=INTEGER},
  196. </if>
  197. <if test="refundTotal != null">
  198. refundTotal = #{refundTotal,jdbcType=INTEGER},
  199. </if>
  200. <if test="refundRetail != null">
  201. refundRetail = #{refundRetail,jdbcType=INTEGER},
  202. </if>
  203. <if test="refundChannel != null">
  204. refundChannel = #{refundChannel,jdbcType=INTEGER},
  205. </if>
  206. </set>
  207. where id = #{id,jdbcType=INTEGER}
  208. </update>
  209. <update id="updateByPrimaryKey" parameterType="com.mofangchuxing.aska.dao.domain.AskaSplitrecord">
  210. update aska_splitRecord
  211. set
  212. payId = #{payId,jdbcType=INTEGER},
  213. spiltOrderId = #{spiltOrderId,jdbcType=VARCHAR},
  214. payAmount = #{payAmount,jdbcType=INTEGER},
  215. retailId = #{retailId,jdbcType=INTEGER},
  216. retailName = #{retailName,jdbcType=VARCHAR},
  217. retailAccount = #{retailAccount,jdbcType=VARCHAR},
  218. retailAmount = #{retailAmount,jdbcType=VARCHAR},
  219. retailRealtimeAmount = #{retailRealtimeAmount,jdbcType=INTEGER},
  220. retailAccountAmount = #{retailAccountAmount,jdbcType=INTEGER},
  221. retailSplitrule = #{retailSplitrule,jdbcType=VARCHAR},
  222. channelId = #{channelId,jdbcType=INTEGER},
  223. channelName = #{channelName,jdbcType=VARCHAR},
  224. channelAccount = #{channelAccount,jdbcType=VARCHAR},
  225. channelAmount = #{channelAmount,jdbcType=VARCHAR},
  226. channelRealtimeAmount = #{channelRealtimeAmount,jdbcType=INTEGER},
  227. channelAccountAmount = #{channelAccountAmount,jdbcType=INTEGER},
  228. channelSplitRule = #{channelSplitRule,jdbcType=VARCHAR},
  229. status = #{status,jdbcType=INTEGER},
  230. createTime = #{createTime,jdbcType=TIMESTAMP},
  231. hasRefund = #{hasRefund,jdbcType=INTEGER},
  232. refundTotal = #{refundTotal,jdbcType=INTEGER},
  233. refundRetail = #{refundRetail,jdbcType=INTEGER},
  234. refundChannel = #{refundChannel,jdbcType=INTEGER}
  235. where id = #{id,jdbcType=INTEGER}
  236. </update>
  237. </mapper>