TOrderBillMapper.xml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493
  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.goafanti.common.dao.TOrderBillMapper">
  4. <resultMap id="BaseResultMap" type="com.goafanti.common.model.TOrderBill">
  5. <!--
  6. WARNING - @mbg.generated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. This element was generated on Wed Jan 24 10:59:50 CST 2018.
  9. -->
  10. <id column="bill_no" jdbcType="VARCHAR" property="billNo" />
  11. <result column="order_no" jdbcType="VARCHAR" property="orderNo" />
  12. <result column="creater" jdbcType="VARCHAR" property="creater" />
  13. <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
  14. <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
  15. <result column="payee_id" jdbcType="VARCHAR" property="payeeId" />
  16. <result column="payer_id" jdbcType="VARCHAR" property="payerId" />
  17. <result column="transaction_amount" jdbcType="DECIMAL" property="transactionAmount" />
  18. <result column="transaction_subject" jdbcType="INTEGER" property="transactionSubject" />
  19. <result column="transaction_channel" jdbcType="INTEGER" property="transactionChannel" />
  20. <result column="transaction_mode" jdbcType="INTEGER" property="transactionMode" />
  21. <result column="remarks" jdbcType="VARCHAR" property="remarks" />
  22. <result column="confirm_sign" jdbcType="INTEGER" property="confirmSign" />
  23. <result column="delete_sign" jdbcType="BIT" property="deleteSign" />
  24. <result column="financial_pay_no" jdbcType="VARCHAR" property="financialPayNo" />
  25. <result column="financial_pay_time" jdbcType="TIMESTAMP" property="financialPayTime" />
  26. <result column="confirm_time" jdbcType="TIMESTAMP" property="confirmTime" />
  27. <result column="postscript" jdbcType="VARCHAR" property="postscript" />
  28. </resultMap>
  29. <sql id="Example_Where_Clause">
  30. <!--
  31. WARNING - @mbg.generated
  32. This element is automatically generated by MyBatis Generator, do not modify.
  33. This element was generated on Wed Jan 24 10:59:50 CST 2018.
  34. -->
  35. <where>
  36. <foreach collection="oredCriteria" item="criteria" separator="or">
  37. <if test="criteria.valid">
  38. <trim prefix="(" prefixOverrides="and" suffix=")">
  39. <foreach collection="criteria.criteria" item="criterion">
  40. <choose>
  41. <when test="criterion.noValue">
  42. and ${criterion.condition}
  43. </when>
  44. <when test="criterion.singleValue">
  45. and ${criterion.condition} #{criterion.value}
  46. </when>
  47. <when test="criterion.betweenValue">
  48. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  49. </when>
  50. <when test="criterion.listValue">
  51. and ${criterion.condition}
  52. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  53. #{listItem}
  54. </foreach>
  55. </when>
  56. </choose>
  57. </foreach>
  58. </trim>
  59. </if>
  60. </foreach>
  61. </where>
  62. </sql>
  63. <sql id="Update_By_Example_Where_Clause">
  64. <!--
  65. WARNING - @mbg.generated
  66. This element is automatically generated by MyBatis Generator, do not modify.
  67. This element was generated on Wed Jan 24 10:59:50 CST 2018.
  68. -->
  69. <where>
  70. <foreach collection="example.oredCriteria" item="criteria" separator="or">
  71. <if test="criteria.valid">
  72. <trim prefix="(" prefixOverrides="and" suffix=")">
  73. <foreach collection="criteria.criteria" item="criterion">
  74. <choose>
  75. <when test="criterion.noValue">
  76. and ${criterion.condition}
  77. </when>
  78. <when test="criterion.singleValue">
  79. and ${criterion.condition} #{criterion.value}
  80. </when>
  81. <when test="criterion.betweenValue">
  82. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  83. </when>
  84. <when test="criterion.listValue">
  85. and ${criterion.condition}
  86. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  87. #{listItem}
  88. </foreach>
  89. </when>
  90. </choose>
  91. </foreach>
  92. </trim>
  93. </if>
  94. </foreach>
  95. </where>
  96. </sql>
  97. <sql id="Base_Column_List">
  98. <!--
  99. WARNING - @mbg.generated
  100. This element is automatically generated by MyBatis Generator, do not modify.
  101. This element was generated on Wed Jan 24 10:59:50 CST 2018.
  102. -->
  103. bill_no, order_no, creater, create_time, update_time, payee_id, payer_id, transaction_amount,
  104. transaction_subject, transaction_channel, transaction_mode, remarks, confirm_sign,
  105. delete_sign, financial_pay_no, financial_pay_time, confirm_time, postscript
  106. </sql>
  107. <select id="selectByExample" parameterType="com.goafanti.common.model.TOrderBillExample" resultMap="BaseResultMap">
  108. <!--
  109. WARNING - @mbg.generated
  110. This element is automatically generated by MyBatis Generator, do not modify.
  111. This element was generated on Wed Jan 24 10:59:50 CST 2018.
  112. -->
  113. select
  114. <if test="distinct">
  115. distinct
  116. </if>
  117. <include refid="Base_Column_List" />
  118. from t_order_bill
  119. <if test="_parameter != null">
  120. <include refid="Example_Where_Clause" />
  121. </if>
  122. <if test="orderByClause != null">
  123. order by ${orderByClause}
  124. </if>
  125. </select>
  126. <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
  127. <!--
  128. WARNING - @mbg.generated
  129. This element is automatically generated by MyBatis Generator, do not modify.
  130. This element was generated on Wed Jan 24 10:59:50 CST 2018.
  131. -->
  132. select
  133. <include refid="Base_Column_List" />
  134. from t_order_bill
  135. where bill_no = #{billNo,jdbcType=VARCHAR}
  136. </select>
  137. <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
  138. <!--
  139. WARNING - @mbg.generated
  140. This element is automatically generated by MyBatis Generator, do not modify.
  141. This element was generated on Wed Jan 24 10:59:50 CST 2018.
  142. -->
  143. delete from t_order_bill
  144. where bill_no = #{billNo,jdbcType=VARCHAR}
  145. </delete>
  146. <delete id="deleteByExample" parameterType="com.goafanti.common.model.TOrderBillExample">
  147. <!--
  148. WARNING - @mbg.generated
  149. This element is automatically generated by MyBatis Generator, do not modify.
  150. This element was generated on Wed Jan 24 10:59:50 CST 2018.
  151. -->
  152. delete from t_order_bill
  153. <if test="_parameter != null">
  154. <include refid="Example_Where_Clause" />
  155. </if>
  156. </delete>
  157. <insert id="insert" parameterType="com.goafanti.common.model.TOrderBill">
  158. <!--
  159. WARNING - @mbg.generated
  160. This element is automatically generated by MyBatis Generator, do not modify.
  161. This element was generated on Wed Jan 24 10:59:50 CST 2018.
  162. -->
  163. insert into t_order_bill (bill_no, order_no, creater,
  164. create_time, update_time, payee_id,
  165. payer_id, transaction_amount, transaction_subject,
  166. transaction_channel, transaction_mode, remarks,
  167. confirm_sign, delete_sign, financial_pay_no,
  168. financial_pay_time, confirm_time, postscript
  169. )
  170. values (#{billNo,jdbcType=VARCHAR}, #{orderNo,jdbcType=VARCHAR}, #{creater,jdbcType=VARCHAR},
  171. #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{payeeId,jdbcType=VARCHAR},
  172. #{payerId,jdbcType=VARCHAR}, #{transactionAmount,jdbcType=DECIMAL}, #{transactionSubject,jdbcType=INTEGER},
  173. #{transactionChannel,jdbcType=INTEGER}, #{transactionMode,jdbcType=INTEGER}, #{remarks,jdbcType=VARCHAR},
  174. #{confirmSign,jdbcType=INTEGER}, #{deleteSign,jdbcType=BIT}, #{financialPayNo,jdbcType=VARCHAR},
  175. #{financialPayTime,jdbcType=TIMESTAMP}, #{confirmTime,jdbcType=TIMESTAMP}, #{postscript,jdbcType=VARCHAR}
  176. )
  177. </insert>
  178. <insert id="insertSelective" parameterType="com.goafanti.common.model.TOrderBill">
  179. <!--
  180. WARNING - @mbg.generated
  181. This element is automatically generated by MyBatis Generator, do not modify.
  182. This element was generated on Wed Jan 24 10:59:50 CST 2018.
  183. -->
  184. insert into t_order_bill
  185. <trim prefix="(" suffix=")" suffixOverrides=",">
  186. <if test="billNo != null">
  187. bill_no,
  188. </if>
  189. <if test="orderNo != null">
  190. order_no,
  191. </if>
  192. <if test="creater != null">
  193. creater,
  194. </if>
  195. <if test="createTime != null">
  196. create_time,
  197. </if>
  198. <if test="updateTime != null">
  199. update_time,
  200. </if>
  201. <if test="payeeId != null">
  202. payee_id,
  203. </if>
  204. <if test="payerId != null">
  205. payer_id,
  206. </if>
  207. <if test="transactionAmount != null">
  208. transaction_amount,
  209. </if>
  210. <if test="transactionSubject != null">
  211. transaction_subject,
  212. </if>
  213. <if test="transactionChannel != null">
  214. transaction_channel,
  215. </if>
  216. <if test="transactionMode != null">
  217. transaction_mode,
  218. </if>
  219. <if test="remarks != null">
  220. remarks,
  221. </if>
  222. <if test="confirmSign != null">
  223. confirm_sign,
  224. </if>
  225. <if test="deleteSign != null">
  226. delete_sign,
  227. </if>
  228. <if test="financialPayNo != null">
  229. financial_pay_no,
  230. </if>
  231. <if test="financialPayTime != null">
  232. financial_pay_time,
  233. </if>
  234. <if test="confirmTime != null">
  235. confirm_time,
  236. </if>
  237. <if test="postscript != null">
  238. postscript,
  239. </if>
  240. </trim>
  241. <trim prefix="values (" suffix=")" suffixOverrides=",">
  242. <if test="billNo != null">
  243. #{billNo,jdbcType=VARCHAR},
  244. </if>
  245. <if test="orderNo != null">
  246. #{orderNo,jdbcType=VARCHAR},
  247. </if>
  248. <if test="creater != null">
  249. #{creater,jdbcType=VARCHAR},
  250. </if>
  251. <if test="createTime != null">
  252. #{createTime,jdbcType=TIMESTAMP},
  253. </if>
  254. <if test="updateTime != null">
  255. #{updateTime,jdbcType=TIMESTAMP},
  256. </if>
  257. <if test="payeeId != null">
  258. #{payeeId,jdbcType=VARCHAR},
  259. </if>
  260. <if test="payerId != null">
  261. #{payerId,jdbcType=VARCHAR},
  262. </if>
  263. <if test="transactionAmount != null">
  264. #{transactionAmount,jdbcType=DECIMAL},
  265. </if>
  266. <if test="transactionSubject != null">
  267. #{transactionSubject,jdbcType=INTEGER},
  268. </if>
  269. <if test="transactionChannel != null">
  270. #{transactionChannel,jdbcType=INTEGER},
  271. </if>
  272. <if test="transactionMode != null">
  273. #{transactionMode,jdbcType=INTEGER},
  274. </if>
  275. <if test="remarks != null">
  276. #{remarks,jdbcType=VARCHAR},
  277. </if>
  278. <if test="confirmSign != null">
  279. #{confirmSign,jdbcType=INTEGER},
  280. </if>
  281. <if test="deleteSign != null">
  282. #{deleteSign,jdbcType=BIT},
  283. </if>
  284. <if test="financialPayNo != null">
  285. #{financialPayNo,jdbcType=VARCHAR},
  286. </if>
  287. <if test="financialPayTime != null">
  288. #{financialPayTime,jdbcType=TIMESTAMP},
  289. </if>
  290. <if test="confirmTime != null">
  291. #{confirmTime,jdbcType=TIMESTAMP},
  292. </if>
  293. <if test="postscript != null">
  294. #{postscript,jdbcType=VARCHAR},
  295. </if>
  296. </trim>
  297. </insert>
  298. <select id="countByExample" parameterType="com.goafanti.common.model.TOrderBillExample" resultType="java.lang.Long">
  299. <!--
  300. WARNING - @mbg.generated
  301. This element is automatically generated by MyBatis Generator, do not modify.
  302. This element was generated on Wed Jan 24 10:59:50 CST 2018.
  303. -->
  304. select count(*) from t_order_bill
  305. <if test="_parameter != null">
  306. <include refid="Example_Where_Clause" />
  307. </if>
  308. </select>
  309. <update id="updateByExampleSelective" parameterType="map">
  310. <!--
  311. WARNING - @mbg.generated
  312. This element is automatically generated by MyBatis Generator, do not modify.
  313. This element was generated on Wed Jan 24 10:59:50 CST 2018.
  314. -->
  315. update t_order_bill
  316. <set>
  317. <if test="record.billNo != null">
  318. bill_no = #{record.billNo,jdbcType=VARCHAR},
  319. </if>
  320. <if test="record.orderNo != null">
  321. order_no = #{record.orderNo,jdbcType=VARCHAR},
  322. </if>
  323. <if test="record.creater != null">
  324. creater = #{record.creater,jdbcType=VARCHAR},
  325. </if>
  326. <if test="record.createTime != null">
  327. create_time = #{record.createTime,jdbcType=TIMESTAMP},
  328. </if>
  329. <if test="record.updateTime != null">
  330. update_time = #{record.updateTime,jdbcType=TIMESTAMP},
  331. </if>
  332. <if test="record.payeeId != null">
  333. payee_id = #{record.payeeId,jdbcType=VARCHAR},
  334. </if>
  335. <if test="record.payerId != null">
  336. payer_id = #{record.payerId,jdbcType=VARCHAR},
  337. </if>
  338. <if test="record.transactionAmount != null">
  339. transaction_amount = #{record.transactionAmount,jdbcType=DECIMAL},
  340. </if>
  341. <if test="record.transactionSubject != null">
  342. transaction_subject = #{record.transactionSubject,jdbcType=INTEGER},
  343. </if>
  344. <if test="record.transactionChannel != null">
  345. transaction_channel = #{record.transactionChannel,jdbcType=INTEGER},
  346. </if>
  347. <if test="record.transactionMode != null">
  348. transaction_mode = #{record.transactionMode,jdbcType=INTEGER},
  349. </if>
  350. <if test="record.remarks != null">
  351. remarks = #{record.remarks,jdbcType=VARCHAR},
  352. </if>
  353. <if test="record.confirmSign != null">
  354. confirm_sign = #{record.confirmSign,jdbcType=INTEGER},
  355. </if>
  356. <if test="record.deleteSign != null">
  357. delete_sign = #{record.deleteSign,jdbcType=BIT},
  358. </if>
  359. <if test="record.financialPayNo != null">
  360. financial_pay_no = #{record.financialPayNo,jdbcType=VARCHAR},
  361. </if>
  362. <if test="record.financialPayTime != null">
  363. financial_pay_time = #{record.financialPayTime,jdbcType=TIMESTAMP},
  364. </if>
  365. <if test="record.confirmTime != null">
  366. confirm_time = #{record.confirmTime,jdbcType=TIMESTAMP},
  367. </if>
  368. <if test="record.postscript != null">
  369. postscript = #{record.postscript,jdbcType=VARCHAR},
  370. </if>
  371. </set>
  372. <if test="_parameter != null">
  373. <include refid="Update_By_Example_Where_Clause" />
  374. </if>
  375. </update>
  376. <update id="updateByExample" parameterType="map">
  377. <!--
  378. WARNING - @mbg.generated
  379. This element is automatically generated by MyBatis Generator, do not modify.
  380. This element was generated on Wed Jan 24 10:59:50 CST 2018.
  381. -->
  382. update t_order_bill
  383. set bill_no = #{record.billNo,jdbcType=VARCHAR},
  384. order_no = #{record.orderNo,jdbcType=VARCHAR},
  385. creater = #{record.creater,jdbcType=VARCHAR},
  386. create_time = #{record.createTime,jdbcType=TIMESTAMP},
  387. update_time = #{record.updateTime,jdbcType=TIMESTAMP},
  388. payee_id = #{record.payeeId,jdbcType=VARCHAR},
  389. payer_id = #{record.payerId,jdbcType=VARCHAR},
  390. transaction_amount = #{record.transactionAmount,jdbcType=DECIMAL},
  391. transaction_subject = #{record.transactionSubject,jdbcType=INTEGER},
  392. transaction_channel = #{record.transactionChannel,jdbcType=INTEGER},
  393. transaction_mode = #{record.transactionMode,jdbcType=INTEGER},
  394. remarks = #{record.remarks,jdbcType=VARCHAR},
  395. confirm_sign = #{record.confirmSign,jdbcType=INTEGER},
  396. delete_sign = #{record.deleteSign,jdbcType=BIT},
  397. financial_pay_no = #{record.financialPayNo,jdbcType=VARCHAR},
  398. financial_pay_time = #{record.financialPayTime,jdbcType=TIMESTAMP},
  399. confirm_time = #{record.confirmTime,jdbcType=TIMESTAMP},
  400. postscript = #{record.postscript,jdbcType=VARCHAR}
  401. <if test="_parameter != null">
  402. <include refid="Update_By_Example_Where_Clause" />
  403. </if>
  404. </update>
  405. <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.TOrderBill">
  406. <!--
  407. WARNING - @mbg.generated
  408. This element is automatically generated by MyBatis Generator, do not modify.
  409. This element was generated on Wed Jan 24 10:59:50 CST 2018.
  410. -->
  411. update t_order_bill
  412. <set>
  413. <if test="orderNo != null">
  414. order_no = #{orderNo,jdbcType=VARCHAR},
  415. </if>
  416. <if test="creater != null">
  417. creater = #{creater,jdbcType=VARCHAR},
  418. </if>
  419. <if test="createTime != null">
  420. create_time = #{createTime,jdbcType=TIMESTAMP},
  421. </if>
  422. <if test="updateTime != null">
  423. update_time = #{updateTime,jdbcType=TIMESTAMP},
  424. </if>
  425. <if test="payeeId != null">
  426. payee_id = #{payeeId,jdbcType=VARCHAR},
  427. </if>
  428. <if test="payerId != null">
  429. payer_id = #{payerId,jdbcType=VARCHAR},
  430. </if>
  431. <if test="transactionAmount != null">
  432. transaction_amount = #{transactionAmount,jdbcType=DECIMAL},
  433. </if>
  434. <if test="transactionSubject != null">
  435. transaction_subject = #{transactionSubject,jdbcType=INTEGER},
  436. </if>
  437. <if test="transactionChannel != null">
  438. transaction_channel = #{transactionChannel,jdbcType=INTEGER},
  439. </if>
  440. <if test="transactionMode != null">
  441. transaction_mode = #{transactionMode,jdbcType=INTEGER},
  442. </if>
  443. <if test="remarks != null">
  444. remarks = #{remarks,jdbcType=VARCHAR},
  445. </if>
  446. <if test="confirmSign != null">
  447. confirm_sign = #{confirmSign,jdbcType=INTEGER},
  448. </if>
  449. <if test="deleteSign != null">
  450. delete_sign = #{deleteSign,jdbcType=BIT},
  451. </if>
  452. <if test="financialPayNo != null">
  453. financial_pay_no = #{financialPayNo,jdbcType=VARCHAR},
  454. </if>
  455. <if test="financialPayTime != null">
  456. financial_pay_time = #{financialPayTime,jdbcType=TIMESTAMP},
  457. </if>
  458. <if test="confirmTime != null">
  459. confirm_time = #{confirmTime,jdbcType=TIMESTAMP},
  460. </if>
  461. <if test="postscript != null">
  462. postscript = #{postscript,jdbcType=VARCHAR},
  463. </if>
  464. </set>
  465. where bill_no = #{billNo,jdbcType=VARCHAR}
  466. </update>
  467. <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.TOrderBill">
  468. <!--
  469. WARNING - @mbg.generated
  470. This element is automatically generated by MyBatis Generator, do not modify.
  471. This element was generated on Wed Jan 24 10:59:50 CST 2018.
  472. -->
  473. update t_order_bill
  474. set order_no = #{orderNo,jdbcType=VARCHAR},
  475. creater = #{creater,jdbcType=VARCHAR},
  476. create_time = #{createTime,jdbcType=TIMESTAMP},
  477. update_time = #{updateTime,jdbcType=TIMESTAMP},
  478. payee_id = #{payeeId,jdbcType=VARCHAR},
  479. payer_id = #{payerId,jdbcType=VARCHAR},
  480. transaction_amount = #{transactionAmount,jdbcType=DECIMAL},
  481. transaction_subject = #{transactionSubject,jdbcType=INTEGER},
  482. transaction_channel = #{transactionChannel,jdbcType=INTEGER},
  483. transaction_mode = #{transactionMode,jdbcType=INTEGER},
  484. remarks = #{remarks,jdbcType=VARCHAR},
  485. confirm_sign = #{confirmSign,jdbcType=INTEGER},
  486. delete_sign = #{deleteSign,jdbcType=BIT},
  487. financial_pay_no = #{financialPayNo,jdbcType=VARCHAR},
  488. financial_pay_time = #{financialPayTime,jdbcType=TIMESTAMP},
  489. confirm_time = #{confirmTime,jdbcType=TIMESTAMP},
  490. postscript = #{postscript,jdbcType=VARCHAR}
  491. where bill_no = #{billNo,jdbcType=VARCHAR}
  492. </update>
  493. </mapper>