OmsOrderMapper.xml 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843
  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.yonge.cooleshow.mbg.mapper.OmsOrderMapper">
  4. <resultMap id="BaseResultMap" type="com.yonge.cooleshow.mbg.model.OmsOrder">
  5. <id column="id" jdbcType="BIGINT" property="id" />
  6. <result column="member_id" jdbcType="BIGINT" property="memberId" />
  7. <result column="coupon_id" jdbcType="BIGINT" property="couponId" />
  8. <result column="order_sn" jdbcType="VARCHAR" property="orderSn" />
  9. <result column="cart_ids" jdbcType="VARCHAR" property="cartIds" />
  10. <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
  11. <result column="member_username" jdbcType="VARCHAR" property="memberUsername" />
  12. <result column="total_amount" jdbcType="DECIMAL" property="totalAmount" />
  13. <result column="pay_amount" jdbcType="DECIMAL" property="payAmount" />
  14. <result column="freight_amount" jdbcType="DECIMAL" property="freightAmount" />
  15. <result column="promotion_amount" jdbcType="DECIMAL" property="promotionAmount" />
  16. <result column="integration_amount" jdbcType="DECIMAL" property="integrationAmount" />
  17. <result column="coupon_amount" jdbcType="DECIMAL" property="couponAmount" />
  18. <result column="discount_amount" jdbcType="DECIMAL" property="discountAmount" />
  19. <result column="pay_type" jdbcType="INTEGER" property="payType" />
  20. <result column="source_type" jdbcType="INTEGER" property="sourceType" />
  21. <result column="status" jdbcType="INTEGER" property="status" />
  22. <result column="order_type" jdbcType="INTEGER" property="orderType" />
  23. <result column="delivery_company" jdbcType="VARCHAR" property="deliveryCompany" />
  24. <result column="delivery_sn" jdbcType="VARCHAR" property="deliverySn" />
  25. <result column="auto_confirm_day" jdbcType="INTEGER" property="autoConfirmDay" />
  26. <result column="integration" jdbcType="INTEGER" property="integration" />
  27. <result column="growth" jdbcType="INTEGER" property="growth" />
  28. <result column="promotion_info" jdbcType="VARCHAR" property="promotionInfo" />
  29. <result column="bill_type" jdbcType="INTEGER" property="billType" />
  30. <result column="bill_header" jdbcType="VARCHAR" property="billHeader" />
  31. <result column="bill_content" jdbcType="VARCHAR" property="billContent" />
  32. <result column="bill_receiver_phone" jdbcType="VARCHAR" property="billReceiverPhone" />
  33. <result column="bill_receiver_email" jdbcType="VARCHAR" property="billReceiverEmail" />
  34. <result column="receiver_name" jdbcType="VARCHAR" property="receiverName" />
  35. <result column="receiver_phone" jdbcType="VARCHAR" property="receiverPhone" />
  36. <result column="receiver_post_code" jdbcType="VARCHAR" property="receiverPostCode" />
  37. <result column="receiver_province" jdbcType="VARCHAR" property="receiverProvince" />
  38. <result column="receiver_city" jdbcType="VARCHAR" property="receiverCity" />
  39. <result column="receiver_region" jdbcType="VARCHAR" property="receiverRegion" />
  40. <result column="receiver_detail_address" jdbcType="VARCHAR" property="receiverDetailAddress" />
  41. <result column="note" jdbcType="VARCHAR" property="note" />
  42. <result column="confirm_status" jdbcType="INTEGER" property="confirmStatus" />
  43. <result column="delete_status" jdbcType="INTEGER" property="deleteStatus" />
  44. <result column="use_integration" jdbcType="INTEGER" property="useIntegration" />
  45. <result column="payment_time" jdbcType="TIMESTAMP" property="paymentTime" />
  46. <result column="delivery_time" jdbcType="TIMESTAMP" property="deliveryTime" />
  47. <result column="receive_time" jdbcType="TIMESTAMP" property="receiveTime" />
  48. <result column="comment_time" jdbcType="TIMESTAMP" property="commentTime" />
  49. <result column="modify_time" jdbcType="TIMESTAMP" property="modifyTime" />
  50. </resultMap>
  51. <sql id="Example_Where_Clause">
  52. <where>
  53. <foreach collection="oredCriteria" item="criteria" separator="or">
  54. <if test="criteria.valid">
  55. <trim prefix="(" prefixOverrides="and" suffix=")">
  56. <foreach collection="criteria.criteria" item="criterion">
  57. <choose>
  58. <when test="criterion.noValue">
  59. and ${criterion.condition}
  60. </when>
  61. <when test="criterion.singleValue">
  62. and ${criterion.condition} #{criterion.value}
  63. </when>
  64. <when test="criterion.betweenValue">
  65. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  66. </when>
  67. <when test="criterion.listValue">
  68. and ${criterion.condition}
  69. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  70. #{listItem}
  71. </foreach>
  72. </when>
  73. </choose>
  74. </foreach>
  75. </trim>
  76. </if>
  77. </foreach>
  78. </where>
  79. </sql>
  80. <sql id="Update_By_Example_Where_Clause">
  81. <where>
  82. <foreach collection="example.oredCriteria" item="criteria" separator="or">
  83. <if test="criteria.valid">
  84. <trim prefix="(" prefixOverrides="and" suffix=")">
  85. <foreach collection="criteria.criteria" item="criterion">
  86. <choose>
  87. <when test="criterion.noValue">
  88. and ${criterion.condition}
  89. </when>
  90. <when test="criterion.singleValue">
  91. and ${criterion.condition} #{criterion.value}
  92. </when>
  93. <when test="criterion.betweenValue">
  94. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  95. </when>
  96. <when test="criterion.listValue">
  97. and ${criterion.condition}
  98. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  99. #{listItem}
  100. </foreach>
  101. </when>
  102. </choose>
  103. </foreach>
  104. </trim>
  105. </if>
  106. </foreach>
  107. </where>
  108. </sql>
  109. <sql id="Base_Column_List">
  110. id, member_id, coupon_id, order_sn, create_time, member_username, total_amount, pay_amount,
  111. freight_amount, promotion_amount, integration_amount, coupon_amount, discount_amount,
  112. pay_type, source_type, status, order_type, delivery_company, delivery_sn, auto_confirm_day,
  113. integration, growth, promotion_info, bill_type, bill_header, bill_content, bill_receiver_phone,
  114. bill_receiver_email, receiver_name, receiver_phone, receiver_post_code, receiver_province,
  115. receiver_city, receiver_region, receiver_detail_address, note, confirm_status, delete_status,
  116. use_integration, payment_time, delivery_time, receive_time, comment_time, modify_time,cart_ids
  117. </sql>
  118. <select id="selectByExample" parameterType="com.yonge.cooleshow.mbg.model.OmsOrderExample" resultMap="BaseResultMap">
  119. select
  120. <if test="distinct">
  121. distinct
  122. </if>
  123. <include refid="Base_Column_List" />
  124. from oms_order
  125. <if test="_parameter != null">
  126. <include refid="Example_Where_Clause" />
  127. </if>
  128. <if test="orderByClause != null">
  129. order by ${orderByClause}
  130. </if>
  131. </select>
  132. <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
  133. select
  134. <include refid="Base_Column_List" />
  135. from oms_order
  136. where id = #{id,jdbcType=BIGINT}
  137. </select>
  138. <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
  139. delete from oms_order
  140. where id = #{id,jdbcType=BIGINT}
  141. </delete>
  142. <delete id="deleteByExample" parameterType="com.yonge.cooleshow.mbg.model.OmsOrderExample">
  143. delete from oms_order
  144. <if test="_parameter != null">
  145. <include refid="Example_Where_Clause" />
  146. </if>
  147. </delete>
  148. <insert id="insert" parameterType="com.yonge.cooleshow.mbg.model.OmsOrder">
  149. <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
  150. SELECT LAST_INSERT_ID()
  151. </selectKey>
  152. insert into oms_order (member_id, coupon_id, order_sn,
  153. create_time, member_username, total_amount,
  154. pay_amount, freight_amount, promotion_amount,
  155. integration_amount, coupon_amount, discount_amount,
  156. pay_type, source_type, status,
  157. order_type, delivery_company, delivery_sn,
  158. auto_confirm_day, integration, growth,
  159. promotion_info, bill_type, bill_header,
  160. bill_content, bill_receiver_phone, bill_receiver_email,
  161. receiver_name, receiver_phone, receiver_post_code,
  162. receiver_province, receiver_city, receiver_region,
  163. receiver_detail_address, note, confirm_status,
  164. delete_status, use_integration, payment_time,
  165. delivery_time, receive_time, comment_time,
  166. modify_time,cart_ids)
  167. values (#{memberId,jdbcType=BIGINT}, #{couponId,jdbcType=BIGINT}, #{orderSn,jdbcType=VARCHAR},
  168. #{createTime,jdbcType=TIMESTAMP}, #{memberUsername,jdbcType=VARCHAR}, #{totalAmount,jdbcType=DECIMAL},
  169. #{payAmount,jdbcType=DECIMAL}, #{freightAmount,jdbcType=DECIMAL}, #{promotionAmount,jdbcType=DECIMAL},
  170. #{integrationAmount,jdbcType=DECIMAL}, #{couponAmount,jdbcType=DECIMAL}, #{discountAmount,jdbcType=DECIMAL},
  171. #{payType,jdbcType=INTEGER}, #{sourceType,jdbcType=INTEGER}, #{status,jdbcType=INTEGER},
  172. #{orderType,jdbcType=INTEGER}, #{deliveryCompany,jdbcType=VARCHAR}, #{deliverySn,jdbcType=VARCHAR},
  173. #{autoConfirmDay,jdbcType=INTEGER}, #{integration,jdbcType=INTEGER}, #{growth,jdbcType=INTEGER},
  174. #{promotionInfo,jdbcType=VARCHAR}, #{billType,jdbcType=INTEGER}, #{billHeader,jdbcType=VARCHAR},
  175. #{billContent,jdbcType=VARCHAR}, #{billReceiverPhone,jdbcType=VARCHAR}, #{billReceiverEmail,jdbcType=VARCHAR},
  176. #{receiverName,jdbcType=VARCHAR}, #{receiverPhone,jdbcType=VARCHAR}, #{receiverPostCode,jdbcType=VARCHAR},
  177. #{receiverProvince,jdbcType=VARCHAR}, #{receiverCity,jdbcType=VARCHAR}, #{receiverRegion,jdbcType=VARCHAR},
  178. #{receiverDetailAddress,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, #{confirmStatus,jdbcType=INTEGER},
  179. #{deleteStatus,jdbcType=INTEGER}, #{useIntegration,jdbcType=INTEGER}, #{paymentTime,jdbcType=TIMESTAMP},
  180. #{deliveryTime,jdbcType=TIMESTAMP}, #{receiveTime,jdbcType=TIMESTAMP}, #{commentTime,jdbcType=TIMESTAMP},
  181. #{modifyTime,jdbcType=TIMESTAMP},#{cartIds})
  182. </insert>
  183. <insert id="insertSelective" parameterType="com.yonge.cooleshow.mbg.model.OmsOrder">
  184. <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
  185. SELECT LAST_INSERT_ID()
  186. </selectKey>
  187. insert into oms_order
  188. <trim prefix="(" suffix=")" suffixOverrides=",">
  189. <if test="memberId != null">
  190. member_id,
  191. </if>
  192. <if test="couponId != null">
  193. coupon_id,
  194. </if>
  195. <if test="orderSn != null">
  196. order_sn,
  197. </if>
  198. <if test="createTime != null">
  199. create_time,
  200. </if>
  201. <if test="memberUsername != null">
  202. member_username,
  203. </if>
  204. <if test="totalAmount != null">
  205. total_amount,
  206. </if>
  207. <if test="payAmount != null">
  208. pay_amount,
  209. </if>
  210. <if test="freightAmount != null">
  211. freight_amount,
  212. </if>
  213. <if test="promotionAmount != null">
  214. promotion_amount,
  215. </if>
  216. <if test="integrationAmount != null">
  217. integration_amount,
  218. </if>
  219. <if test="couponAmount != null">
  220. coupon_amount,
  221. </if>
  222. <if test="discountAmount != null">
  223. discount_amount,
  224. </if>
  225. <if test="payType != null">
  226. pay_type,
  227. </if>
  228. <if test="sourceType != null">
  229. source_type,
  230. </if>
  231. <if test="status != null">
  232. status,
  233. </if>
  234. <if test="orderType != null">
  235. order_type,
  236. </if>
  237. <if test="deliveryCompany != null">
  238. delivery_company,
  239. </if>
  240. <if test="deliverySn != null">
  241. delivery_sn,
  242. </if>
  243. <if test="autoConfirmDay != null">
  244. auto_confirm_day,
  245. </if>
  246. <if test="integration != null">
  247. integration,
  248. </if>
  249. <if test="growth != null">
  250. growth,
  251. </if>
  252. <if test="promotionInfo != null">
  253. promotion_info,
  254. </if>
  255. <if test="billType != null">
  256. bill_type,
  257. </if>
  258. <if test="billHeader != null">
  259. bill_header,
  260. </if>
  261. <if test="billContent != null">
  262. bill_content,
  263. </if>
  264. <if test="billReceiverPhone != null">
  265. bill_receiver_phone,
  266. </if>
  267. <if test="billReceiverEmail != null">
  268. bill_receiver_email,
  269. </if>
  270. <if test="receiverName != null">
  271. receiver_name,
  272. </if>
  273. <if test="receiverPhone != null">
  274. receiver_phone,
  275. </if>
  276. <if test="receiverPostCode != null">
  277. receiver_post_code,
  278. </if>
  279. <if test="receiverProvince != null">
  280. receiver_province,
  281. </if>
  282. <if test="receiverCity != null">
  283. receiver_city,
  284. </if>
  285. <if test="receiverRegion != null">
  286. receiver_region,
  287. </if>
  288. <if test="receiverDetailAddress != null">
  289. receiver_detail_address,
  290. </if>
  291. <if test="note != null">
  292. note,
  293. </if>
  294. <if test="confirmStatus != null">
  295. confirm_status,
  296. </if>
  297. <if test="deleteStatus != null">
  298. delete_status,
  299. </if>
  300. <if test="useIntegration != null">
  301. use_integration,
  302. </if>
  303. <if test="paymentTime != null">
  304. payment_time,
  305. </if>
  306. <if test="deliveryTime != null">
  307. delivery_time,
  308. </if>
  309. <if test="receiveTime != null">
  310. receive_time,
  311. </if>
  312. <if test="commentTime != null">
  313. comment_time,
  314. </if>
  315. <if test="modifyTime != null">
  316. modify_time,
  317. </if>
  318. <if test="cartIds != null">
  319. cart_ids,
  320. </if>
  321. </trim>
  322. <trim prefix="values (" suffix=")" suffixOverrides=",">
  323. <if test="memberId != null">
  324. #{memberId,jdbcType=BIGINT},
  325. </if>
  326. <if test="couponId != null">
  327. #{couponId,jdbcType=BIGINT},
  328. </if>
  329. <if test="orderSn != null">
  330. #{orderSn,jdbcType=VARCHAR},
  331. </if>
  332. <if test="createTime != null">
  333. #{createTime,jdbcType=TIMESTAMP},
  334. </if>
  335. <if test="memberUsername != null">
  336. #{memberUsername,jdbcType=VARCHAR},
  337. </if>
  338. <if test="totalAmount != null">
  339. #{totalAmount,jdbcType=DECIMAL},
  340. </if>
  341. <if test="payAmount != null">
  342. #{payAmount,jdbcType=DECIMAL},
  343. </if>
  344. <if test="freightAmount != null">
  345. #{freightAmount,jdbcType=DECIMAL},
  346. </if>
  347. <if test="promotionAmount != null">
  348. #{promotionAmount,jdbcType=DECIMAL},
  349. </if>
  350. <if test="integrationAmount != null">
  351. #{integrationAmount,jdbcType=DECIMAL},
  352. </if>
  353. <if test="couponAmount != null">
  354. #{couponAmount,jdbcType=DECIMAL},
  355. </if>
  356. <if test="discountAmount != null">
  357. #{discountAmount,jdbcType=DECIMAL},
  358. </if>
  359. <if test="payType != null">
  360. #{payType,jdbcType=INTEGER},
  361. </if>
  362. <if test="sourceType != null">
  363. #{sourceType,jdbcType=INTEGER},
  364. </if>
  365. <if test="status != null">
  366. #{status,jdbcType=INTEGER},
  367. </if>
  368. <if test="orderType != null">
  369. #{orderType,jdbcType=INTEGER},
  370. </if>
  371. <if test="deliveryCompany != null">
  372. #{deliveryCompany,jdbcType=VARCHAR},
  373. </if>
  374. <if test="deliverySn != null">
  375. #{deliverySn,jdbcType=VARCHAR},
  376. </if>
  377. <if test="autoConfirmDay != null">
  378. #{autoConfirmDay,jdbcType=INTEGER},
  379. </if>
  380. <if test="integration != null">
  381. #{integration,jdbcType=INTEGER},
  382. </if>
  383. <if test="growth != null">
  384. #{growth,jdbcType=INTEGER},
  385. </if>
  386. <if test="promotionInfo != null">
  387. #{promotionInfo,jdbcType=VARCHAR},
  388. </if>
  389. <if test="billType != null">
  390. #{billType,jdbcType=INTEGER},
  391. </if>
  392. <if test="billHeader != null">
  393. #{billHeader,jdbcType=VARCHAR},
  394. </if>
  395. <if test="billContent != null">
  396. #{billContent,jdbcType=VARCHAR},
  397. </if>
  398. <if test="billReceiverPhone != null">
  399. #{billReceiverPhone,jdbcType=VARCHAR},
  400. </if>
  401. <if test="billReceiverEmail != null">
  402. #{billReceiverEmail,jdbcType=VARCHAR},
  403. </if>
  404. <if test="receiverName != null">
  405. #{receiverName,jdbcType=VARCHAR},
  406. </if>
  407. <if test="receiverPhone != null">
  408. #{receiverPhone,jdbcType=VARCHAR},
  409. </if>
  410. <if test="receiverPostCode != null">
  411. #{receiverPostCode,jdbcType=VARCHAR},
  412. </if>
  413. <if test="receiverProvince != null">
  414. #{receiverProvince,jdbcType=VARCHAR},
  415. </if>
  416. <if test="receiverCity != null">
  417. #{receiverCity,jdbcType=VARCHAR},
  418. </if>
  419. <if test="receiverRegion != null">
  420. #{receiverRegion,jdbcType=VARCHAR},
  421. </if>
  422. <if test="receiverDetailAddress != null">
  423. #{receiverDetailAddress,jdbcType=VARCHAR},
  424. </if>
  425. <if test="note != null">
  426. #{note,jdbcType=VARCHAR},
  427. </if>
  428. <if test="confirmStatus != null">
  429. #{confirmStatus,jdbcType=INTEGER},
  430. </if>
  431. <if test="deleteStatus != null">
  432. #{deleteStatus,jdbcType=INTEGER},
  433. </if>
  434. <if test="useIntegration != null">
  435. #{useIntegration,jdbcType=INTEGER},
  436. </if>
  437. <if test="paymentTime != null">
  438. #{paymentTime,jdbcType=TIMESTAMP},
  439. </if>
  440. <if test="deliveryTime != null">
  441. #{deliveryTime,jdbcType=TIMESTAMP},
  442. </if>
  443. <if test="receiveTime != null">
  444. #{receiveTime,jdbcType=TIMESTAMP},
  445. </if>
  446. <if test="commentTime != null">
  447. #{commentTime,jdbcType=TIMESTAMP},
  448. </if>
  449. <if test="modifyTime != null">
  450. #{modifyTime,jdbcType=TIMESTAMP},
  451. </if>
  452. <if test="cartIds != null">
  453. #{cartIds},
  454. </if>
  455. </trim>
  456. </insert>
  457. <select id="countByExample" parameterType="com.yonge.cooleshow.mbg.model.OmsOrderExample" resultType="java.lang.Long">
  458. select count(*) from oms_order
  459. <if test="_parameter != null">
  460. <include refid="Example_Where_Clause" />
  461. </if>
  462. </select>
  463. <update id="updateByExampleSelective" parameterType="map">
  464. update oms_order
  465. <set>
  466. <if test="record.id != null">
  467. id = #{record.id,jdbcType=BIGINT},
  468. </if>
  469. <if test="record.memberId != null">
  470. member_id = #{record.memberId,jdbcType=BIGINT},
  471. </if>
  472. <if test="record.couponId != null">
  473. coupon_id = #{record.couponId,jdbcType=BIGINT},
  474. </if>
  475. <if test="record.orderSn != null">
  476. order_sn = #{record.orderSn,jdbcType=VARCHAR},
  477. </if>
  478. <if test="record.createTime != null">
  479. create_time = #{record.createTime,jdbcType=TIMESTAMP},
  480. </if>
  481. <if test="record.memberUsername != null">
  482. member_username = #{record.memberUsername,jdbcType=VARCHAR},
  483. </if>
  484. <if test="record.totalAmount != null">
  485. total_amount = #{record.totalAmount,jdbcType=DECIMAL},
  486. </if>
  487. <if test="record.payAmount != null">
  488. pay_amount = #{record.payAmount,jdbcType=DECIMAL},
  489. </if>
  490. <if test="record.freightAmount != null">
  491. freight_amount = #{record.freightAmount,jdbcType=DECIMAL},
  492. </if>
  493. <if test="record.promotionAmount != null">
  494. promotion_amount = #{record.promotionAmount,jdbcType=DECIMAL},
  495. </if>
  496. <if test="record.integrationAmount != null">
  497. integration_amount = #{record.integrationAmount,jdbcType=DECIMAL},
  498. </if>
  499. <if test="record.couponAmount != null">
  500. coupon_amount = #{record.couponAmount,jdbcType=DECIMAL},
  501. </if>
  502. <if test="record.discountAmount != null">
  503. discount_amount = #{record.discountAmount,jdbcType=DECIMAL},
  504. </if>
  505. <if test="record.payType != null">
  506. pay_type = #{record.payType,jdbcType=INTEGER},
  507. </if>
  508. <if test="record.sourceType != null">
  509. source_type = #{record.sourceType,jdbcType=INTEGER},
  510. </if>
  511. <if test="record.status != null">
  512. status = #{record.status,jdbcType=INTEGER},
  513. </if>
  514. <if test="record.orderType != null">
  515. order_type = #{record.orderType,jdbcType=INTEGER},
  516. </if>
  517. <if test="record.deliveryCompany != null">
  518. delivery_company = #{record.deliveryCompany,jdbcType=VARCHAR},
  519. </if>
  520. <if test="record.deliverySn != null">
  521. delivery_sn = #{record.deliverySn,jdbcType=VARCHAR},
  522. </if>
  523. <if test="record.autoConfirmDay != null">
  524. auto_confirm_day = #{record.autoConfirmDay,jdbcType=INTEGER},
  525. </if>
  526. <if test="record.integration != null">
  527. integration = #{record.integration,jdbcType=INTEGER},
  528. </if>
  529. <if test="record.growth != null">
  530. growth = #{record.growth,jdbcType=INTEGER},
  531. </if>
  532. <if test="record.promotionInfo != null">
  533. promotion_info = #{record.promotionInfo,jdbcType=VARCHAR},
  534. </if>
  535. <if test="record.billType != null">
  536. bill_type = #{record.billType,jdbcType=INTEGER},
  537. </if>
  538. <if test="record.billHeader != null">
  539. bill_header = #{record.billHeader,jdbcType=VARCHAR},
  540. </if>
  541. <if test="record.billContent != null">
  542. bill_content = #{record.billContent,jdbcType=VARCHAR},
  543. </if>
  544. <if test="record.billReceiverPhone != null">
  545. bill_receiver_phone = #{record.billReceiverPhone,jdbcType=VARCHAR},
  546. </if>
  547. <if test="record.billReceiverEmail != null">
  548. bill_receiver_email = #{record.billReceiverEmail,jdbcType=VARCHAR},
  549. </if>
  550. <if test="record.receiverName != null">
  551. receiver_name = #{record.receiverName,jdbcType=VARCHAR},
  552. </if>
  553. <if test="record.receiverPhone != null">
  554. receiver_phone = #{record.receiverPhone,jdbcType=VARCHAR},
  555. </if>
  556. <if test="record.receiverPostCode != null">
  557. receiver_post_code = #{record.receiverPostCode,jdbcType=VARCHAR},
  558. </if>
  559. <if test="record.receiverProvince != null">
  560. receiver_province = #{record.receiverProvince,jdbcType=VARCHAR},
  561. </if>
  562. <if test="record.receiverCity != null">
  563. receiver_city = #{record.receiverCity,jdbcType=VARCHAR},
  564. </if>
  565. <if test="record.receiverRegion != null">
  566. receiver_region = #{record.receiverRegion,jdbcType=VARCHAR},
  567. </if>
  568. <if test="record.receiverDetailAddress != null">
  569. receiver_detail_address = #{record.receiverDetailAddress,jdbcType=VARCHAR},
  570. </if>
  571. <if test="record.note != null">
  572. note = #{record.note,jdbcType=VARCHAR},
  573. </if>
  574. <if test="record.confirmStatus != null">
  575. confirm_status = #{record.confirmStatus,jdbcType=INTEGER},
  576. </if>
  577. <if test="record.deleteStatus != null">
  578. delete_status = #{record.deleteStatus,jdbcType=INTEGER},
  579. </if>
  580. <if test="record.useIntegration != null">
  581. use_integration = #{record.useIntegration,jdbcType=INTEGER},
  582. </if>
  583. <if test="record.paymentTime != null">
  584. payment_time = #{record.paymentTime,jdbcType=TIMESTAMP},
  585. </if>
  586. <if test="record.deliveryTime != null">
  587. delivery_time = #{record.deliveryTime,jdbcType=TIMESTAMP},
  588. </if>
  589. <if test="record.receiveTime != null">
  590. receive_time = #{record.receiveTime,jdbcType=TIMESTAMP},
  591. </if>
  592. <if test="record.commentTime != null">
  593. comment_time = #{record.commentTime,jdbcType=TIMESTAMP},
  594. </if>
  595. <if test="record.modifyTime != null">
  596. modify_time = #{record.modifyTime,jdbcType=TIMESTAMP},
  597. </if>
  598. <if test="record.cartIds != null">
  599. cart_ids = #{record.cartIds},
  600. </if>
  601. </set>
  602. <if test="_parameter != null">
  603. <include refid="Update_By_Example_Where_Clause" />
  604. </if>
  605. </update>
  606. <update id="updateByExample" parameterType="map">
  607. update oms_order
  608. set id = #{record.id,jdbcType=BIGINT},
  609. member_id = #{record.memberId,jdbcType=BIGINT},
  610. coupon_id = #{record.couponId,jdbcType=BIGINT},
  611. order_sn = #{record.orderSn,jdbcType=VARCHAR},
  612. create_time = #{record.createTime,jdbcType=TIMESTAMP},
  613. member_username = #{record.memberUsername,jdbcType=VARCHAR},
  614. total_amount = #{record.totalAmount,jdbcType=DECIMAL},
  615. pay_amount = #{record.payAmount,jdbcType=DECIMAL},
  616. freight_amount = #{record.freightAmount,jdbcType=DECIMAL},
  617. promotion_amount = #{record.promotionAmount,jdbcType=DECIMAL},
  618. integration_amount = #{record.integrationAmount,jdbcType=DECIMAL},
  619. coupon_amount = #{record.couponAmount,jdbcType=DECIMAL},
  620. discount_amount = #{record.discountAmount,jdbcType=DECIMAL},
  621. pay_type = #{record.payType,jdbcType=INTEGER},
  622. source_type = #{record.sourceType,jdbcType=INTEGER},
  623. status = #{record.status,jdbcType=INTEGER},
  624. order_type = #{record.orderType,jdbcType=INTEGER},
  625. delivery_company = #{record.deliveryCompany,jdbcType=VARCHAR},
  626. delivery_sn = #{record.deliverySn,jdbcType=VARCHAR},
  627. auto_confirm_day = #{record.autoConfirmDay,jdbcType=INTEGER},
  628. integration = #{record.integration,jdbcType=INTEGER},
  629. growth = #{record.growth,jdbcType=INTEGER},
  630. promotion_info = #{record.promotionInfo,jdbcType=VARCHAR},
  631. bill_type = #{record.billType,jdbcType=INTEGER},
  632. bill_header = #{record.billHeader,jdbcType=VARCHAR},
  633. bill_content = #{record.billContent,jdbcType=VARCHAR},
  634. bill_receiver_phone = #{record.billReceiverPhone,jdbcType=VARCHAR},
  635. bill_receiver_email = #{record.billReceiverEmail,jdbcType=VARCHAR},
  636. receiver_name = #{record.receiverName,jdbcType=VARCHAR},
  637. receiver_phone = #{record.receiverPhone,jdbcType=VARCHAR},
  638. receiver_post_code = #{record.receiverPostCode,jdbcType=VARCHAR},
  639. receiver_province = #{record.receiverProvince,jdbcType=VARCHAR},
  640. receiver_city = #{record.receiverCity,jdbcType=VARCHAR},
  641. receiver_region = #{record.receiverRegion,jdbcType=VARCHAR},
  642. receiver_detail_address = #{record.receiverDetailAddress,jdbcType=VARCHAR},
  643. note = #{record.note,jdbcType=VARCHAR},
  644. confirm_status = #{record.confirmStatus,jdbcType=INTEGER},
  645. delete_status = #{record.deleteStatus,jdbcType=INTEGER},
  646. use_integration = #{record.useIntegration,jdbcType=INTEGER},
  647. payment_time = #{record.paymentTime,jdbcType=TIMESTAMP},
  648. delivery_time = #{record.deliveryTime,jdbcType=TIMESTAMP},
  649. receive_time = #{record.receiveTime,jdbcType=TIMESTAMP},
  650. comment_time = #{record.commentTime,jdbcType=TIMESTAMP},
  651. cart_ids = #{record.cartIds},
  652. modify_time = #{record.modifyTime,jdbcType=TIMESTAMP}
  653. <if test="_parameter != null">
  654. <include refid="Update_By_Example_Where_Clause" />
  655. </if>
  656. </update>
  657. <update id="updateByPrimaryKeySelective" parameterType="com.yonge.cooleshow.mbg.model.OmsOrder">
  658. update oms_order
  659. <set>
  660. <if test="memberId != null">
  661. member_id = #{memberId,jdbcType=BIGINT},
  662. </if>
  663. <if test="couponId != null">
  664. coupon_id = #{couponId,jdbcType=BIGINT},
  665. </if>
  666. <if test="orderSn != null">
  667. order_sn = #{orderSn,jdbcType=VARCHAR},
  668. </if>
  669. <if test="createTime != null">
  670. create_time = #{createTime,jdbcType=TIMESTAMP},
  671. </if>
  672. <if test="memberUsername != null">
  673. member_username = #{memberUsername,jdbcType=VARCHAR},
  674. </if>
  675. <if test="totalAmount != null">
  676. total_amount = #{totalAmount,jdbcType=DECIMAL},
  677. </if>
  678. <if test="payAmount != null">
  679. pay_amount = #{payAmount,jdbcType=DECIMAL},
  680. </if>
  681. <if test="freightAmount != null">
  682. freight_amount = #{freightAmount,jdbcType=DECIMAL},
  683. </if>
  684. <if test="promotionAmount != null">
  685. promotion_amount = #{promotionAmount,jdbcType=DECIMAL},
  686. </if>
  687. <if test="integrationAmount != null">
  688. integration_amount = #{integrationAmount,jdbcType=DECIMAL},
  689. </if>
  690. <if test="couponAmount != null">
  691. coupon_amount = #{couponAmount,jdbcType=DECIMAL},
  692. </if>
  693. <if test="discountAmount != null">
  694. discount_amount = #{discountAmount,jdbcType=DECIMAL},
  695. </if>
  696. <if test="payType != null">
  697. pay_type = #{payType,jdbcType=INTEGER},
  698. </if>
  699. <if test="sourceType != null">
  700. source_type = #{sourceType,jdbcType=INTEGER},
  701. </if>
  702. <if test="status != null">
  703. status = #{status,jdbcType=INTEGER},
  704. </if>
  705. <if test="orderType != null">
  706. order_type = #{orderType,jdbcType=INTEGER},
  707. </if>
  708. <if test="deliveryCompany != null">
  709. delivery_company = #{deliveryCompany,jdbcType=VARCHAR},
  710. </if>
  711. <if test="deliverySn != null">
  712. delivery_sn = #{deliverySn,jdbcType=VARCHAR},
  713. </if>
  714. <if test="autoConfirmDay != null">
  715. auto_confirm_day = #{autoConfirmDay,jdbcType=INTEGER},
  716. </if>
  717. <if test="integration != null">
  718. integration = #{integration,jdbcType=INTEGER},
  719. </if>
  720. <if test="growth != null">
  721. growth = #{growth,jdbcType=INTEGER},
  722. </if>
  723. <if test="promotionInfo != null">
  724. promotion_info = #{promotionInfo,jdbcType=VARCHAR},
  725. </if>
  726. <if test="billType != null">
  727. bill_type = #{billType,jdbcType=INTEGER},
  728. </if>
  729. <if test="billHeader != null">
  730. bill_header = #{billHeader,jdbcType=VARCHAR},
  731. </if>
  732. <if test="billContent != null">
  733. bill_content = #{billContent,jdbcType=VARCHAR},
  734. </if>
  735. <if test="billReceiverPhone != null">
  736. bill_receiver_phone = #{billReceiverPhone,jdbcType=VARCHAR},
  737. </if>
  738. <if test="billReceiverEmail != null">
  739. bill_receiver_email = #{billReceiverEmail,jdbcType=VARCHAR},
  740. </if>
  741. <if test="receiverName != null">
  742. receiver_name = #{receiverName,jdbcType=VARCHAR},
  743. </if>
  744. <if test="receiverPhone != null">
  745. receiver_phone = #{receiverPhone,jdbcType=VARCHAR},
  746. </if>
  747. <if test="receiverPostCode != null">
  748. receiver_post_code = #{receiverPostCode,jdbcType=VARCHAR},
  749. </if>
  750. <if test="receiverProvince != null">
  751. receiver_province = #{receiverProvince,jdbcType=VARCHAR},
  752. </if>
  753. <if test="receiverCity != null">
  754. receiver_city = #{receiverCity,jdbcType=VARCHAR},
  755. </if>
  756. <if test="receiverRegion != null">
  757. receiver_region = #{receiverRegion,jdbcType=VARCHAR},
  758. </if>
  759. <if test="receiverDetailAddress != null">
  760. receiver_detail_address = #{receiverDetailAddress,jdbcType=VARCHAR},
  761. </if>
  762. <if test="note != null">
  763. note = #{note,jdbcType=VARCHAR},
  764. </if>
  765. <if test="confirmStatus != null">
  766. confirm_status = #{confirmStatus,jdbcType=INTEGER},
  767. </if>
  768. <if test="deleteStatus != null">
  769. delete_status = #{deleteStatus,jdbcType=INTEGER},
  770. </if>
  771. <if test="useIntegration != null">
  772. use_integration = #{useIntegration,jdbcType=INTEGER},
  773. </if>
  774. <if test="paymentTime != null">
  775. payment_time = #{paymentTime,jdbcType=TIMESTAMP},
  776. </if>
  777. <if test="deliveryTime != null">
  778. delivery_time = #{deliveryTime,jdbcType=TIMESTAMP},
  779. </if>
  780. <if test="receiveTime != null">
  781. receive_time = #{receiveTime,jdbcType=TIMESTAMP},
  782. </if>
  783. <if test="commentTime != null">
  784. comment_time = #{commentTime,jdbcType=TIMESTAMP},
  785. </if>
  786. <if test="modifyTime != null">
  787. modify_time = #{modifyTime,jdbcType=TIMESTAMP},
  788. </if>
  789. <if test="cartIds != null">
  790. cart_ids = #{cartIds,jdbcType=TIMESTAMP},
  791. </if>
  792. </set>
  793. where id = #{id,jdbcType=BIGINT}
  794. </update>
  795. <update id="updateByPrimaryKey" parameterType="com.yonge.cooleshow.mbg.model.OmsOrder">
  796. update oms_order
  797. set member_id = #{memberId,jdbcType=BIGINT},
  798. coupon_id = #{couponId,jdbcType=BIGINT},
  799. order_sn = #{orderSn,jdbcType=VARCHAR},
  800. create_time = #{createTime,jdbcType=TIMESTAMP},
  801. member_username = #{memberUsername,jdbcType=VARCHAR},
  802. total_amount = #{totalAmount,jdbcType=DECIMAL},
  803. pay_amount = #{payAmount,jdbcType=DECIMAL},
  804. freight_amount = #{freightAmount,jdbcType=DECIMAL},
  805. promotion_amount = #{promotionAmount,jdbcType=DECIMAL},
  806. integration_amount = #{integrationAmount,jdbcType=DECIMAL},
  807. coupon_amount = #{couponAmount,jdbcType=DECIMAL},
  808. discount_amount = #{discountAmount,jdbcType=DECIMAL},
  809. pay_type = #{payType,jdbcType=INTEGER},
  810. source_type = #{sourceType,jdbcType=INTEGER},
  811. status = #{status,jdbcType=INTEGER},
  812. order_type = #{orderType,jdbcType=INTEGER},
  813. delivery_company = #{deliveryCompany,jdbcType=VARCHAR},
  814. delivery_sn = #{deliverySn,jdbcType=VARCHAR},
  815. auto_confirm_day = #{autoConfirmDay,jdbcType=INTEGER},
  816. integration = #{integration,jdbcType=INTEGER},
  817. growth = #{growth,jdbcType=INTEGER},
  818. promotion_info = #{promotionInfo,jdbcType=VARCHAR},
  819. bill_type = #{billType,jdbcType=INTEGER},
  820. bill_header = #{billHeader,jdbcType=VARCHAR},
  821. bill_content = #{billContent,jdbcType=VARCHAR},
  822. bill_receiver_phone = #{billReceiverPhone,jdbcType=VARCHAR},
  823. bill_receiver_email = #{billReceiverEmail,jdbcType=VARCHAR},
  824. receiver_name = #{receiverName,jdbcType=VARCHAR},
  825. receiver_phone = #{receiverPhone,jdbcType=VARCHAR},
  826. receiver_post_code = #{receiverPostCode,jdbcType=VARCHAR},
  827. receiver_province = #{receiverProvince,jdbcType=VARCHAR},
  828. receiver_city = #{receiverCity,jdbcType=VARCHAR},
  829. receiver_region = #{receiverRegion,jdbcType=VARCHAR},
  830. receiver_detail_address = #{receiverDetailAddress,jdbcType=VARCHAR},
  831. note = #{note,jdbcType=VARCHAR},
  832. confirm_status = #{confirmStatus,jdbcType=INTEGER},
  833. delete_status = #{deleteStatus,jdbcType=INTEGER},
  834. use_integration = #{useIntegration,jdbcType=INTEGER},
  835. payment_time = #{paymentTime,jdbcType=TIMESTAMP},
  836. delivery_time = #{deliveryTime,jdbcType=TIMESTAMP},
  837. receive_time = #{receiveTime,jdbcType=TIMESTAMP},
  838. comment_time = #{commentTime,jdbcType=TIMESTAMP},
  839. cart_ids = #{cartIds},
  840. modify_time = #{modifyTime,jdbcType=TIMESTAMP}
  841. where id = #{id,jdbcType=BIGINT}
  842. </update>
  843. </mapper>