TOrderMapper.xml 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589
  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.TOrderMapper">
  4. <resultMap id="BaseResultMap" type="com.goafanti.common.model.TOrder">
  5. <!--
  6. WARNING - @mbg.generated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. This element was generated on Sat Dec 23 15:43:40 CST 2017.
  9. -->
  10. <id column="order_no" jdbcType="BIGINT" property="orderNo" />
  11. <result column="creater" jdbcType="VARCHAR" property="creater" />
  12. <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
  13. <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
  14. <result column="buyer_id" jdbcType="VARCHAR" property="buyerId" />
  15. <result column="seller_id" jdbcType="VARCHAR" property="sellerId" />
  16. <result column="commodity_id" jdbcType="VARCHAR" property="commodityId" />
  17. <result column="commodity_type" jdbcType="INTEGER" property="commodityType" />
  18. <result column="first_payment" jdbcType="DECIMAL" property="firstPayment" />
  19. <result column="total_payment" jdbcType="DECIMAL" property="totalPayment" />
  20. <result column="brokerage_amount" jdbcType="DECIMAL" property="brokerageAmount" />
  21. <result column="brokerage_proportion" jdbcType="DECIMAL" property="brokerageProportion" />
  22. <result column="actually_first_payment" jdbcType="DECIMAL" property="actuallyFirstPayment" />
  23. <result column="actually_total_payment" jdbcType="DECIMAL" property="actuallyTotalPayment" />
  24. <result column="actually_brokerage_amount" jdbcType="DECIMAL" property="actuallyBrokerageAmount" />
  25. <result column="delete_sign" jdbcType="BIT" property="deleteSign" />
  26. <result column="order_status" jdbcType="INTEGER" property="orderStatus" />
  27. <result column="intention_status" jdbcType="INTEGER" property="intentionStatus" />
  28. <result column="trading_status" jdbcType="INTEGER" property="tradingStatus" />
  29. <result column="technology_transfer_progress" jdbcType="INTEGER" property="technologyTransferProgress" />
  30. <result column="payment_status" jdbcType="INTEGER" property="paymentStatus" />
  31. <result column="liquidation_status" jdbcType="INTEGER" property="liquidationStatus" />
  32. <result column="order_follow" jdbcType="VARCHAR" property="orderFollow" />
  33. <result column="order_channel" jdbcType="INTEGER" property="orderChannel" />
  34. </resultMap>
  35. <sql id="Example_Where_Clause">
  36. <!--
  37. WARNING - @mbg.generated
  38. This element is automatically generated by MyBatis Generator, do not modify.
  39. This element was generated on Sat Dec 23 15:43:40 CST 2017.
  40. -->
  41. <where>
  42. <foreach collection="oredCriteria" item="criteria" separator="or">
  43. <if test="criteria.valid">
  44. <trim prefix="(" prefixOverrides="and" suffix=")">
  45. <foreach collection="criteria.criteria" item="criterion">
  46. <choose>
  47. <when test="criterion.noValue">
  48. and ${criterion.condition}
  49. </when>
  50. <when test="criterion.singleValue">
  51. and ${criterion.condition} #{criterion.value}
  52. </when>
  53. <when test="criterion.betweenValue">
  54. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  55. </when>
  56. <when test="criterion.listValue">
  57. and ${criterion.condition}
  58. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  59. #{listItem}
  60. </foreach>
  61. </when>
  62. </choose>
  63. </foreach>
  64. </trim>
  65. </if>
  66. </foreach>
  67. </where>
  68. </sql>
  69. <sql id="Update_By_Example_Where_Clause">
  70. <!--
  71. WARNING - @mbg.generated
  72. This element is automatically generated by MyBatis Generator, do not modify.
  73. This element was generated on Sat Dec 23 15:43:40 CST 2017.
  74. -->
  75. <where>
  76. <foreach collection="example.oredCriteria" item="criteria" separator="or">
  77. <if test="criteria.valid">
  78. <trim prefix="(" prefixOverrides="and" suffix=")">
  79. <foreach collection="criteria.criteria" item="criterion">
  80. <choose>
  81. <when test="criterion.noValue">
  82. and ${criterion.condition}
  83. </when>
  84. <when test="criterion.singleValue">
  85. and ${criterion.condition} #{criterion.value}
  86. </when>
  87. <when test="criterion.betweenValue">
  88. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  89. </when>
  90. <when test="criterion.listValue">
  91. and ${criterion.condition}
  92. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  93. #{listItem}
  94. </foreach>
  95. </when>
  96. </choose>
  97. </foreach>
  98. </trim>
  99. </if>
  100. </foreach>
  101. </where>
  102. </sql>
  103. <sql id="Base_Column_List">
  104. <!--
  105. WARNING - @mbg.generated
  106. This element is automatically generated by MyBatis Generator, do not modify.
  107. This element was generated on Sat Dec 23 15:43:40 CST 2017.
  108. -->
  109. order_no, creater, create_time, update_time, buyer_id, seller_id, commodity_id, commodity_type,
  110. first_payment, total_payment, brokerage_amount, brokerage_proportion, actually_first_payment,
  111. actually_total_payment, actually_brokerage_amount, delete_sign, order_status, intention_status,
  112. trading_status, technology_transfer_progress, payment_status, liquidation_status,
  113. order_follow, order_channel
  114. </sql>
  115. <select id="selectByExample" parameterType="com.goafanti.common.model.TOrderExample" resultMap="BaseResultMap">
  116. <!--
  117. WARNING - @mbg.generated
  118. This element is automatically generated by MyBatis Generator, do not modify.
  119. This element was generated on Sat Dec 23 15:43:40 CST 2017.
  120. -->
  121. select
  122. <if test="distinct">
  123. distinct
  124. </if>
  125. <include refid="Base_Column_List" />
  126. from t_order
  127. <if test="_parameter != null">
  128. <include refid="Example_Where_Clause" />
  129. </if>
  130. <if test="orderByClause != null">
  131. order by ${orderByClause}
  132. </if>
  133. </select>
  134. <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
  135. <!--
  136. WARNING - @mbg.generated
  137. This element is automatically generated by MyBatis Generator, do not modify.
  138. This element was generated on Sat Dec 23 15:43:40 CST 2017.
  139. -->
  140. select
  141. <include refid="Base_Column_List" />
  142. from t_order
  143. where order_no = #{orderNo,jdbcType=BIGINT}
  144. </select>
  145. <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
  146. <!--
  147. WARNING - @mbg.generated
  148. This element is automatically generated by MyBatis Generator, do not modify.
  149. This element was generated on Sat Dec 23 15:43:40 CST 2017.
  150. -->
  151. delete from t_order
  152. where order_no = #{orderNo,jdbcType=BIGINT}
  153. </delete>
  154. <delete id="deleteByExample" parameterType="com.goafanti.common.model.TOrderExample">
  155. <!--
  156. WARNING - @mbg.generated
  157. This element is automatically generated by MyBatis Generator, do not modify.
  158. This element was generated on Sat Dec 23 15:43:40 CST 2017.
  159. -->
  160. delete from t_order
  161. <if test="_parameter != null">
  162. <include refid="Example_Where_Clause" />
  163. </if>
  164. </delete>
  165. <insert id="insert" parameterType="com.goafanti.common.model.TOrder">
  166. <!--
  167. WARNING - @mbg.generated
  168. This element is automatically generated by MyBatis Generator, do not modify.
  169. This element was generated on Sat Dec 23 15:43:40 CST 2017.
  170. -->
  171. insert into t_order (order_no, creater, create_time,
  172. update_time, buyer_id, seller_id,
  173. commodity_id, commodity_type, first_payment,
  174. total_payment, brokerage_amount, brokerage_proportion,
  175. actually_first_payment, actually_total_payment,
  176. actually_brokerage_amount, delete_sign, order_status,
  177. intention_status, trading_status, technology_transfer_progress,
  178. payment_status, liquidation_status, order_follow,
  179. order_channel)
  180. values (#{orderNo,jdbcType=BIGINT}, #{creater,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
  181. #{updateTime,jdbcType=TIMESTAMP}, #{buyerId,jdbcType=VARCHAR}, #{sellerId,jdbcType=VARCHAR},
  182. #{commodityId,jdbcType=VARCHAR}, #{commodityType,jdbcType=INTEGER}, #{firstPayment,jdbcType=DECIMAL},
  183. #{totalPayment,jdbcType=DECIMAL}, #{brokerageAmount,jdbcType=DECIMAL}, #{brokerageProportion,jdbcType=DECIMAL},
  184. #{actuallyFirstPayment,jdbcType=DECIMAL}, #{actuallyTotalPayment,jdbcType=DECIMAL},
  185. #{actuallyBrokerageAmount,jdbcType=DECIMAL}, #{deleteSign,jdbcType=BIT}, #{orderStatus,jdbcType=INTEGER},
  186. #{intentionStatus,jdbcType=INTEGER}, #{tradingStatus,jdbcType=INTEGER}, #{technologyTransferProgress,jdbcType=INTEGER},
  187. #{paymentStatus,jdbcType=INTEGER}, #{liquidationStatus,jdbcType=INTEGER}, #{orderFollow,jdbcType=VARCHAR},
  188. #{orderChannel,jdbcType=INTEGER})
  189. </insert>
  190. <insert id="insertSelective" parameterType="com.goafanti.common.model.TOrder">
  191. <!--
  192. WARNING - @mbg.generated
  193. This element is automatically generated by MyBatis Generator, do not modify.
  194. This element was generated on Sat Dec 23 15:43:40 CST 2017.
  195. -->
  196. insert into t_order
  197. <trim prefix="(" suffix=")" suffixOverrides=",">
  198. <if test="orderNo != null">
  199. order_no,
  200. </if>
  201. <if test="creater != null">
  202. creater,
  203. </if>
  204. <if test="createTime != null">
  205. create_time,
  206. </if>
  207. <if test="updateTime != null">
  208. update_time,
  209. </if>
  210. <if test="buyerId != null">
  211. buyer_id,
  212. </if>
  213. <if test="sellerId != null">
  214. seller_id,
  215. </if>
  216. <if test="commodityId != null">
  217. commodity_id,
  218. </if>
  219. <if test="commodityType != null">
  220. commodity_type,
  221. </if>
  222. <if test="firstPayment != null">
  223. first_payment,
  224. </if>
  225. <if test="totalPayment != null">
  226. total_payment,
  227. </if>
  228. <if test="brokerageAmount != null">
  229. brokerage_amount,
  230. </if>
  231. <if test="brokerageProportion != null">
  232. brokerage_proportion,
  233. </if>
  234. <if test="actuallyFirstPayment != null">
  235. actually_first_payment,
  236. </if>
  237. <if test="actuallyTotalPayment != null">
  238. actually_total_payment,
  239. </if>
  240. <if test="actuallyBrokerageAmount != null">
  241. actually_brokerage_amount,
  242. </if>
  243. <if test="deleteSign != null">
  244. delete_sign,
  245. </if>
  246. <if test="orderStatus != null">
  247. order_status,
  248. </if>
  249. <if test="intentionStatus != null">
  250. intention_status,
  251. </if>
  252. <if test="tradingStatus != null">
  253. trading_status,
  254. </if>
  255. <if test="technologyTransferProgress != null">
  256. technology_transfer_progress,
  257. </if>
  258. <if test="paymentStatus != null">
  259. payment_status,
  260. </if>
  261. <if test="liquidationStatus != null">
  262. liquidation_status,
  263. </if>
  264. <if test="orderFollow != null">
  265. order_follow,
  266. </if>
  267. <if test="orderChannel != null">
  268. order_channel,
  269. </if>
  270. </trim>
  271. <trim prefix="values (" suffix=")" suffixOverrides=",">
  272. <if test="orderNo != null">
  273. #{orderNo,jdbcType=BIGINT},
  274. </if>
  275. <if test="creater != null">
  276. #{creater,jdbcType=VARCHAR},
  277. </if>
  278. <if test="createTime != null">
  279. #{createTime,jdbcType=TIMESTAMP},
  280. </if>
  281. <if test="updateTime != null">
  282. #{updateTime,jdbcType=TIMESTAMP},
  283. </if>
  284. <if test="buyerId != null">
  285. #{buyerId,jdbcType=VARCHAR},
  286. </if>
  287. <if test="sellerId != null">
  288. #{sellerId,jdbcType=VARCHAR},
  289. </if>
  290. <if test="commodityId != null">
  291. #{commodityId,jdbcType=VARCHAR},
  292. </if>
  293. <if test="commodityType != null">
  294. #{commodityType,jdbcType=INTEGER},
  295. </if>
  296. <if test="firstPayment != null">
  297. #{firstPayment,jdbcType=DECIMAL},
  298. </if>
  299. <if test="totalPayment != null">
  300. #{totalPayment,jdbcType=DECIMAL},
  301. </if>
  302. <if test="brokerageAmount != null">
  303. #{brokerageAmount,jdbcType=DECIMAL},
  304. </if>
  305. <if test="brokerageProportion != null">
  306. #{brokerageProportion,jdbcType=DECIMAL},
  307. </if>
  308. <if test="actuallyFirstPayment != null">
  309. #{actuallyFirstPayment,jdbcType=DECIMAL},
  310. </if>
  311. <if test="actuallyTotalPayment != null">
  312. #{actuallyTotalPayment,jdbcType=DECIMAL},
  313. </if>
  314. <if test="actuallyBrokerageAmount != null">
  315. #{actuallyBrokerageAmount,jdbcType=DECIMAL},
  316. </if>
  317. <if test="deleteSign != null">
  318. #{deleteSign,jdbcType=BIT},
  319. </if>
  320. <if test="orderStatus != null">
  321. #{orderStatus,jdbcType=INTEGER},
  322. </if>
  323. <if test="intentionStatus != null">
  324. #{intentionStatus,jdbcType=INTEGER},
  325. </if>
  326. <if test="tradingStatus != null">
  327. #{tradingStatus,jdbcType=INTEGER},
  328. </if>
  329. <if test="technologyTransferProgress != null">
  330. #{technologyTransferProgress,jdbcType=INTEGER},
  331. </if>
  332. <if test="paymentStatus != null">
  333. #{paymentStatus,jdbcType=INTEGER},
  334. </if>
  335. <if test="liquidationStatus != null">
  336. #{liquidationStatus,jdbcType=INTEGER},
  337. </if>
  338. <if test="orderFollow != null">
  339. #{orderFollow,jdbcType=VARCHAR},
  340. </if>
  341. <if test="orderChannel != null">
  342. #{orderChannel,jdbcType=INTEGER},
  343. </if>
  344. </trim>
  345. </insert>
  346. <select id="countByExample" parameterType="com.goafanti.common.model.TOrderExample" resultType="java.lang.Long">
  347. <!--
  348. WARNING - @mbg.generated
  349. This element is automatically generated by MyBatis Generator, do not modify.
  350. This element was generated on Sat Dec 23 15:43:40 CST 2017.
  351. -->
  352. select count(*) from t_order
  353. <if test="_parameter != null">
  354. <include refid="Example_Where_Clause" />
  355. </if>
  356. </select>
  357. <update id="updateByExampleSelective" parameterType="map">
  358. <!--
  359. WARNING - @mbg.generated
  360. This element is automatically generated by MyBatis Generator, do not modify.
  361. This element was generated on Sat Dec 23 15:43:40 CST 2017.
  362. -->
  363. update t_order
  364. <set>
  365. <if test="record.orderNo != null">
  366. order_no = #{record.orderNo,jdbcType=BIGINT},
  367. </if>
  368. <if test="record.creater != null">
  369. creater = #{record.creater,jdbcType=VARCHAR},
  370. </if>
  371. <if test="record.createTime != null">
  372. create_time = #{record.createTime,jdbcType=TIMESTAMP},
  373. </if>
  374. <if test="record.updateTime != null">
  375. update_time = #{record.updateTime,jdbcType=TIMESTAMP},
  376. </if>
  377. <if test="record.buyerId != null">
  378. buyer_id = #{record.buyerId,jdbcType=VARCHAR},
  379. </if>
  380. <if test="record.sellerId != null">
  381. seller_id = #{record.sellerId,jdbcType=VARCHAR},
  382. </if>
  383. <if test="record.commodityId != null">
  384. commodity_id = #{record.commodityId,jdbcType=VARCHAR},
  385. </if>
  386. <if test="record.commodityType != null">
  387. commodity_type = #{record.commodityType,jdbcType=INTEGER},
  388. </if>
  389. <if test="record.firstPayment != null">
  390. first_payment = #{record.firstPayment,jdbcType=DECIMAL},
  391. </if>
  392. <if test="record.totalPayment != null">
  393. total_payment = #{record.totalPayment,jdbcType=DECIMAL},
  394. </if>
  395. <if test="record.brokerageAmount != null">
  396. brokerage_amount = #{record.brokerageAmount,jdbcType=DECIMAL},
  397. </if>
  398. <if test="record.brokerageProportion != null">
  399. brokerage_proportion = #{record.brokerageProportion,jdbcType=DECIMAL},
  400. </if>
  401. <if test="record.actuallyFirstPayment != null">
  402. actually_first_payment = #{record.actuallyFirstPayment,jdbcType=DECIMAL},
  403. </if>
  404. <if test="record.actuallyTotalPayment != null">
  405. actually_total_payment = #{record.actuallyTotalPayment,jdbcType=DECIMAL},
  406. </if>
  407. <if test="record.actuallyBrokerageAmount != null">
  408. actually_brokerage_amount = #{record.actuallyBrokerageAmount,jdbcType=DECIMAL},
  409. </if>
  410. <if test="record.deleteSign != null">
  411. delete_sign = #{record.deleteSign,jdbcType=BIT},
  412. </if>
  413. <if test="record.orderStatus != null">
  414. order_status = #{record.orderStatus,jdbcType=INTEGER},
  415. </if>
  416. <if test="record.intentionStatus != null">
  417. intention_status = #{record.intentionStatus,jdbcType=INTEGER},
  418. </if>
  419. <if test="record.tradingStatus != null">
  420. trading_status = #{record.tradingStatus,jdbcType=INTEGER},
  421. </if>
  422. <if test="record.technologyTransferProgress != null">
  423. technology_transfer_progress = #{record.technologyTransferProgress,jdbcType=INTEGER},
  424. </if>
  425. <if test="record.paymentStatus != null">
  426. payment_status = #{record.paymentStatus,jdbcType=INTEGER},
  427. </if>
  428. <if test="record.liquidationStatus != null">
  429. liquidation_status = #{record.liquidationStatus,jdbcType=INTEGER},
  430. </if>
  431. <if test="record.orderFollow != null">
  432. order_follow = #{record.orderFollow,jdbcType=VARCHAR},
  433. </if>
  434. <if test="record.orderChannel != null">
  435. order_channel = #{record.orderChannel,jdbcType=INTEGER},
  436. </if>
  437. </set>
  438. <if test="_parameter != null">
  439. <include refid="Update_By_Example_Where_Clause" />
  440. </if>
  441. </update>
  442. <update id="updateByExample" parameterType="map">
  443. <!--
  444. WARNING - @mbg.generated
  445. This element is automatically generated by MyBatis Generator, do not modify.
  446. This element was generated on Sat Dec 23 15:43:40 CST 2017.
  447. -->
  448. update t_order
  449. set order_no = #{record.orderNo,jdbcType=BIGINT},
  450. creater = #{record.creater,jdbcType=VARCHAR},
  451. create_time = #{record.createTime,jdbcType=TIMESTAMP},
  452. update_time = #{record.updateTime,jdbcType=TIMESTAMP},
  453. buyer_id = #{record.buyerId,jdbcType=VARCHAR},
  454. seller_id = #{record.sellerId,jdbcType=VARCHAR},
  455. commodity_id = #{record.commodityId,jdbcType=VARCHAR},
  456. commodity_type = #{record.commodityType,jdbcType=INTEGER},
  457. first_payment = #{record.firstPayment,jdbcType=DECIMAL},
  458. total_payment = #{record.totalPayment,jdbcType=DECIMAL},
  459. brokerage_amount = #{record.brokerageAmount,jdbcType=DECIMAL},
  460. brokerage_proportion = #{record.brokerageProportion,jdbcType=DECIMAL},
  461. actually_first_payment = #{record.actuallyFirstPayment,jdbcType=DECIMAL},
  462. actually_total_payment = #{record.actuallyTotalPayment,jdbcType=DECIMAL},
  463. actually_brokerage_amount = #{record.actuallyBrokerageAmount,jdbcType=DECIMAL},
  464. delete_sign = #{record.deleteSign,jdbcType=BIT},
  465. order_status = #{record.orderStatus,jdbcType=INTEGER},
  466. intention_status = #{record.intentionStatus,jdbcType=INTEGER},
  467. trading_status = #{record.tradingStatus,jdbcType=INTEGER},
  468. technology_transfer_progress = #{record.technologyTransferProgress,jdbcType=INTEGER},
  469. payment_status = #{record.paymentStatus,jdbcType=INTEGER},
  470. liquidation_status = #{record.liquidationStatus,jdbcType=INTEGER},
  471. order_follow = #{record.orderFollow,jdbcType=VARCHAR},
  472. order_channel = #{record.orderChannel,jdbcType=INTEGER}
  473. <if test="_parameter != null">
  474. <include refid="Update_By_Example_Where_Clause" />
  475. </if>
  476. </update>
  477. <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.TOrder">
  478. <!--
  479. WARNING - @mbg.generated
  480. This element is automatically generated by MyBatis Generator, do not modify.
  481. This element was generated on Sat Dec 23 15:43:40 CST 2017.
  482. -->
  483. update t_order
  484. <set>
  485. <if test="creater != null">
  486. creater = #{creater,jdbcType=VARCHAR},
  487. </if>
  488. <if test="createTime != null">
  489. create_time = #{createTime,jdbcType=TIMESTAMP},
  490. </if>
  491. <if test="updateTime != null">
  492. update_time = #{updateTime,jdbcType=TIMESTAMP},
  493. </if>
  494. <if test="buyerId != null">
  495. buyer_id = #{buyerId,jdbcType=VARCHAR},
  496. </if>
  497. <if test="sellerId != null">
  498. seller_id = #{sellerId,jdbcType=VARCHAR},
  499. </if>
  500. <if test="commodityId != null">
  501. commodity_id = #{commodityId,jdbcType=VARCHAR},
  502. </if>
  503. <if test="commodityType != null">
  504. commodity_type = #{commodityType,jdbcType=INTEGER},
  505. </if>
  506. <if test="firstPayment != null">
  507. first_payment = #{firstPayment,jdbcType=DECIMAL},
  508. </if>
  509. <if test="totalPayment != null">
  510. total_payment = #{totalPayment,jdbcType=DECIMAL},
  511. </if>
  512. <if test="brokerageAmount != null">
  513. brokerage_amount = #{brokerageAmount,jdbcType=DECIMAL},
  514. </if>
  515. <if test="brokerageProportion != null">
  516. brokerage_proportion = #{brokerageProportion,jdbcType=DECIMAL},
  517. </if>
  518. <if test="actuallyFirstPayment != null">
  519. actually_first_payment = #{actuallyFirstPayment,jdbcType=DECIMAL},
  520. </if>
  521. <if test="actuallyTotalPayment != null">
  522. actually_total_payment = #{actuallyTotalPayment,jdbcType=DECIMAL},
  523. </if>
  524. <if test="actuallyBrokerageAmount != null">
  525. actually_brokerage_amount = #{actuallyBrokerageAmount,jdbcType=DECIMAL},
  526. </if>
  527. <if test="deleteSign != null">
  528. delete_sign = #{deleteSign,jdbcType=BIT},
  529. </if>
  530. <if test="orderStatus != null">
  531. order_status = #{orderStatus,jdbcType=INTEGER},
  532. </if>
  533. <if test="intentionStatus != null">
  534. intention_status = #{intentionStatus,jdbcType=INTEGER},
  535. </if>
  536. <if test="tradingStatus != null">
  537. trading_status = #{tradingStatus,jdbcType=INTEGER},
  538. </if>
  539. <if test="technologyTransferProgress != null">
  540. technology_transfer_progress = #{technologyTransferProgress,jdbcType=INTEGER},
  541. </if>
  542. <if test="paymentStatus != null">
  543. payment_status = #{paymentStatus,jdbcType=INTEGER},
  544. </if>
  545. <if test="liquidationStatus != null">
  546. liquidation_status = #{liquidationStatus,jdbcType=INTEGER},
  547. </if>
  548. <if test="orderFollow != null">
  549. order_follow = #{orderFollow,jdbcType=VARCHAR},
  550. </if>
  551. <if test="orderChannel != null">
  552. order_channel = #{orderChannel,jdbcType=INTEGER},
  553. </if>
  554. </set>
  555. where order_no = #{orderNo,jdbcType=BIGINT}
  556. </update>
  557. <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.TOrder">
  558. <!--
  559. WARNING - @mbg.generated
  560. This element is automatically generated by MyBatis Generator, do not modify.
  561. This element was generated on Sat Dec 23 15:43:40 CST 2017.
  562. -->
  563. update t_order
  564. set creater = #{creater,jdbcType=VARCHAR},
  565. create_time = #{createTime,jdbcType=TIMESTAMP},
  566. update_time = #{updateTime,jdbcType=TIMESTAMP},
  567. buyer_id = #{buyerId,jdbcType=VARCHAR},
  568. seller_id = #{sellerId,jdbcType=VARCHAR},
  569. commodity_id = #{commodityId,jdbcType=VARCHAR},
  570. commodity_type = #{commodityType,jdbcType=INTEGER},
  571. first_payment = #{firstPayment,jdbcType=DECIMAL},
  572. total_payment = #{totalPayment,jdbcType=DECIMAL},
  573. brokerage_amount = #{brokerageAmount,jdbcType=DECIMAL},
  574. brokerage_proportion = #{brokerageProportion,jdbcType=DECIMAL},
  575. actually_first_payment = #{actuallyFirstPayment,jdbcType=DECIMAL},
  576. actually_total_payment = #{actuallyTotalPayment,jdbcType=DECIMAL},
  577. actually_brokerage_amount = #{actuallyBrokerageAmount,jdbcType=DECIMAL},
  578. delete_sign = #{deleteSign,jdbcType=BIT},
  579. order_status = #{orderStatus,jdbcType=INTEGER},
  580. intention_status = #{intentionStatus,jdbcType=INTEGER},
  581. trading_status = #{tradingStatus,jdbcType=INTEGER},
  582. technology_transfer_progress = #{technologyTransferProgress,jdbcType=INTEGER},
  583. payment_status = #{paymentStatus,jdbcType=INTEGER},
  584. liquidation_status = #{liquidationStatus,jdbcType=INTEGER},
  585. order_follow = #{orderFollow,jdbcType=VARCHAR},
  586. order_channel = #{orderChannel,jdbcType=INTEGER}
  587. where order_no = #{orderNo,jdbcType=BIGINT}
  588. </update>
  589. </mapper>