AskaSplitrecordMapper.xml 15 KB

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