WxPayErrorMapper.xml 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  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.emato.cuspay.dao.mapper.wx.WxPayErrorMapper" >
  4. <resultMap id="BaseResultMap" type="com.emato.cuspay.wx.entity.WxPayError" >
  5. <id column="error_sn" property="errorSn" jdbcType="VARCHAR" />
  6. <result column="wx_pay_sn" property="wxPaySn" jdbcType="VARCHAR" />
  7. <result column="merch_sn" property="merchSn" jdbcType="VARCHAR" />
  8. <result column="merch_name" property="merchName" jdbcType="VARCHAR" />
  9. <result column="plat_sn" property="platSn" jdbcType="VARCHAR" />
  10. <result column="plat_name" property="platName" jdbcType="VARCHAR" />
  11. <result column="third_party_merch_code" property="thirdPartyMerchCode" jdbcType="VARCHAR" />
  12. <result column="third_party_merch_name" property="thirdPartyMerchName" jdbcType="VARCHAR" />
  13. <result column="appid" property="appid" jdbcType="VARCHAR" />
  14. <result column="mch_id" property="mchId" jdbcType="VARCHAR" />
  15. <result column="out_trade_no" property="outTradeNo" jdbcType="VARCHAR" />
  16. <result column="transaction_id" property="transactionId" jdbcType="VARCHAR" />
  17. <result column="sub_order_no" property="subOrderNo" jdbcType="VARCHAR" />
  18. <result column="customs" property="customs" jdbcType="VARCHAR" />
  19. <result column="err_code" property="errCode" jdbcType="VARCHAR" />
  20. <result column="err_msg" property="errMsg" jdbcType="VARCHAR" />
  21. <result column="creater_sn" property="createrSn" jdbcType="VARCHAR" />
  22. <result column="create_time" property="createTime" jdbcType="VARCHAR" />
  23. <result column="moder_sn" property="moderSn" jdbcType="VARCHAR" />
  24. <result column="mod_time" property="modTime" jdbcType="VARCHAR" />
  25. <result column="tstm" property="tstm" jdbcType="TIMESTAMP" />
  26. </resultMap>
  27. <sql id="Base_Column_List" >
  28. error_sn, wx_pay_sn, merch_sn, merch_name, plat_sn, plat_name, third_party_merch_code,
  29. third_party_merch_name, appid, mch_id, out_trade_no, transaction_id, sub_order_no,
  30. customs, err_code, err_msg, creater_sn, create_time, moder_sn, mod_time, tstm
  31. </sql>
  32. <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
  33. select
  34. <include refid="Base_Column_List" />
  35. from wx_pay_error
  36. where error_sn = #{errorSn,jdbcType=VARCHAR}
  37. </select>
  38. <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
  39. delete from wx_pay_error
  40. where error_sn = #{errorSn,jdbcType=VARCHAR}
  41. </delete>
  42. <insert id="insertSelective" parameterType="com.emato.cuspay.wx.entity.WxPayError" >
  43. insert into wx_pay_error
  44. <trim prefix="(" suffix=")" suffixOverrides="," >
  45. <if test="errorSn != null" >
  46. error_sn,
  47. </if>
  48. <if test="wxPaySn != null" >
  49. wx_pay_sn,
  50. </if>
  51. <if test="merchSn != null" >
  52. merch_sn,
  53. </if>
  54. <if test="merchName != null" >
  55. merch_name,
  56. </if>
  57. <if test="platSn != null" >
  58. plat_sn,
  59. </if>
  60. <if test="platName != null" >
  61. plat_name,
  62. </if>
  63. <if test="thirdPartyMerchCode != null" >
  64. third_party_merch_code,
  65. </if>
  66. <if test="thirdPartyMerchName != null" >
  67. third_party_merch_name,
  68. </if>
  69. <if test="appid != null" >
  70. appid,
  71. </if>
  72. <if test="mchId != null" >
  73. mch_id,
  74. </if>
  75. <if test="outTradeNo != null" >
  76. out_trade_no,
  77. </if>
  78. <if test="transactionId != null" >
  79. transaction_id,
  80. </if>
  81. <if test="subOrderNo != null" >
  82. sub_order_no,
  83. </if>
  84. <if test="customs != null" >
  85. customs,
  86. </if>
  87. <if test="errCode != null" >
  88. err_code,
  89. </if>
  90. <if test="errMsg != null" >
  91. err_msg,
  92. </if>
  93. <if test="createrSn != null" >
  94. creater_sn,
  95. </if>
  96. <if test="createTime != null" >
  97. create_time,
  98. </if>
  99. <if test="moderSn != null" >
  100. moder_sn,
  101. </if>
  102. <if test="modTime != null" >
  103. mod_time,
  104. </if>
  105. <if test="tstm != null" >
  106. tstm,
  107. </if>
  108. </trim>
  109. <trim prefix="values (" suffix=")" suffixOverrides="," >
  110. <if test="errorSn != null" >
  111. #{errorSn,jdbcType=VARCHAR},
  112. </if>
  113. <if test="wxPaySn != null" >
  114. #{wxPaySn,jdbcType=VARCHAR},
  115. </if>
  116. <if test="merchSn != null" >
  117. #{merchSn,jdbcType=VARCHAR},
  118. </if>
  119. <if test="merchName != null" >
  120. #{merchName,jdbcType=VARCHAR},
  121. </if>
  122. <if test="platSn != null" >
  123. #{platSn,jdbcType=VARCHAR},
  124. </if>
  125. <if test="platName != null" >
  126. #{platName,jdbcType=VARCHAR},
  127. </if>
  128. <if test="thirdPartyMerchCode != null" >
  129. #{thirdPartyMerchCode,jdbcType=VARCHAR},
  130. </if>
  131. <if test="thirdPartyMerchName != null" >
  132. #{thirdPartyMerchName,jdbcType=VARCHAR},
  133. </if>
  134. <if test="appid != null" >
  135. #{appid,jdbcType=VARCHAR},
  136. </if>
  137. <if test="mchId != null" >
  138. #{mchId,jdbcType=VARCHAR},
  139. </if>
  140. <if test="outTradeNo != null" >
  141. #{outTradeNo,jdbcType=VARCHAR},
  142. </if>
  143. <if test="transactionId != null" >
  144. #{transactionId,jdbcType=VARCHAR},
  145. </if>
  146. <if test="subOrderNo != null" >
  147. #{subOrderNo,jdbcType=VARCHAR},
  148. </if>
  149. <if test="customs != null" >
  150. #{customs,jdbcType=VARCHAR},
  151. </if>
  152. <if test="errCode != null" >
  153. #{errCode,jdbcType=VARCHAR},
  154. </if>
  155. <if test="errMsg != null" >
  156. #{errMsg,jdbcType=VARCHAR},
  157. </if>
  158. <if test="createrSn != null" >
  159. #{createrSn,jdbcType=VARCHAR},
  160. </if>
  161. <if test="createTime != null" >
  162. #{createTime,jdbcType=VARCHAR},
  163. </if>
  164. <if test="moderSn != null" >
  165. #{moderSn,jdbcType=VARCHAR},
  166. </if>
  167. <if test="modTime != null" >
  168. #{modTime,jdbcType=VARCHAR},
  169. </if>
  170. <if test="tstm != null" >
  171. #{tstm,jdbcType=TIMESTAMP},
  172. </if>
  173. </trim>
  174. </insert>
  175. <update id="updateByPrimaryKeySelective" parameterType="com.emato.cuspay.wx.entity.WxPayError" >
  176. update wx_pay_error
  177. <set >
  178. <if test="wxPaySn != null" >
  179. wx_pay_sn = #{wxPaySn,jdbcType=VARCHAR},
  180. </if>
  181. <if test="merchSn != null" >
  182. merch_sn = #{merchSn,jdbcType=VARCHAR},
  183. </if>
  184. <if test="merchName != null" >
  185. merch_name = #{merchName,jdbcType=VARCHAR},
  186. </if>
  187. <if test="platSn != null" >
  188. plat_sn = #{platSn,jdbcType=VARCHAR},
  189. </if>
  190. <if test="platName != null" >
  191. plat_name = #{platName,jdbcType=VARCHAR},
  192. </if>
  193. <if test="thirdPartyMerchCode != null" >
  194. third_party_merch_code = #{thirdPartyMerchCode,jdbcType=VARCHAR},
  195. </if>
  196. <if test="thirdPartyMerchName != null" >
  197. third_party_merch_name = #{thirdPartyMerchName,jdbcType=VARCHAR},
  198. </if>
  199. <if test="appid != null" >
  200. appid = #{appid,jdbcType=VARCHAR},
  201. </if>
  202. <if test="mchId != null" >
  203. mch_id = #{mchId,jdbcType=VARCHAR},
  204. </if>
  205. <if test="outTradeNo != null" >
  206. out_trade_no = #{outTradeNo,jdbcType=VARCHAR},
  207. </if>
  208. <if test="transactionId != null" >
  209. transaction_id = #{transactionId,jdbcType=VARCHAR},
  210. </if>
  211. <if test="subOrderNo != null" >
  212. sub_order_no = #{subOrderNo,jdbcType=VARCHAR},
  213. </if>
  214. <if test="customs != null" >
  215. customs = #{customs,jdbcType=VARCHAR},
  216. </if>
  217. <if test="errCode != null" >
  218. err_code = #{errCode,jdbcType=VARCHAR},
  219. </if>
  220. <if test="errMsg != null" >
  221. err_msg = #{errMsg,jdbcType=VARCHAR},
  222. </if>
  223. <if test="createrSn != null" >
  224. creater_sn = #{createrSn,jdbcType=VARCHAR},
  225. </if>
  226. <if test="createTime != null" >
  227. create_time = #{createTime,jdbcType=VARCHAR},
  228. </if>
  229. <if test="moderSn != null" >
  230. moder_sn = #{moderSn,jdbcType=VARCHAR},
  231. </if>
  232. <if test="modTime != null" >
  233. mod_time = #{modTime,jdbcType=VARCHAR},
  234. </if>
  235. <if test="tstm != null" >
  236. tstm = #{tstm,jdbcType=TIMESTAMP},
  237. </if>
  238. </set>
  239. where error_sn = #{errorSn,jdbcType=VARCHAR}
  240. </update>
  241. <insert id="insertWxPayErrorBatch" parameterType="java.util.List">
  242. insert into wx_pay_error
  243. <trim prefix="(" suffix=")" suffixOverrides=",">
  244. error_sn,
  245. wx_pay_sn,
  246. merch_sn,
  247. merch_name,
  248. plat_sn,
  249. plat_name,
  250. third_party_merch_code,
  251. third_party_merch_name,
  252. appid,
  253. mch_id,
  254. out_trade_no,
  255. transaction_id,
  256. sub_order_no,
  257. customs,
  258. err_code,
  259. err_msg,
  260. creater_sn,
  261. create_time,
  262. moder_sn,
  263. mod_time
  264. </trim>
  265. VALUES
  266. <foreach collection="list" item="item" index="index" separator=",">
  267. <trim prefix="(" suffix=")" suffixOverrides=",">
  268. #{item.errorSn,jdbcType=VARCHAR},
  269. #{item.wxPaySn,jdbcType=VARCHAR},
  270. #{item.merchSn,jdbcType=VARCHAR},
  271. #{item.merchName,jdbcType=VARCHAR},
  272. #{item.platSn,jdbcType=VARCHAR},
  273. #{item.platName,jdbcType=VARCHAR},
  274. #{item.thirdPartyMerchCode,jdbcType=VARCHAR},
  275. #{item.thirdPartyMerchName,jdbcType=VARCHAR},
  276. #{item.appid,jdbcType=VARCHAR},
  277. #{item.mchId,jdbcType=VARCHAR},
  278. #{item.outTradeNo,jdbcType=VARCHAR},
  279. #{item.transactionId,jdbcType=VARCHAR},
  280. #{item.subOrderNo,jdbcType=VARCHAR},
  281. #{item.customs,jdbcType=VARCHAR},
  282. #{item.errCode,jdbcType=VARCHAR},
  283. #{item.errMsg,jdbcType=VARCHAR},
  284. #{item.createrSn,jdbcType=VARCHAR},
  285. #{item.createTime,jdbcType=VARCHAR},
  286. #{item.moderSn,jdbcType=VARCHAR},
  287. #{item.modTime,jdbcType=VARCHAR},
  288. </trim>
  289. </foreach>
  290. </insert>
  291. </mapper>