PayOrderMapper.xml 39 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190
  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.platform.yijia.dao.PayOrderMapper">
  4. <resultMap id="BaseResultMap" type="com.platform.yijia.pojo.PayOrder">
  5. <!--
  6. WARNING - @mbg.generated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. -->
  9. <id column="order_id" jdbcType="INTEGER" property="orderId" />
  10. <result column="order_no" jdbcType="VARCHAR" property="orderNo" />
  11. <result column="oil_gun" jdbcType="VARCHAR" property="oilGun" />
  12. <result column="oil_name" jdbcType="VARCHAR" property="oilName" />
  13. <result column="oil_pirce" jdbcType="VARCHAR" property="oilPirce" />
  14. <result column="consumer_id" jdbcType="INTEGER" property="consumerId" />
  15. <result column="consumer" jdbcType="VARCHAR" property="consumer" />
  16. <result column="amt" jdbcType="DOUBLE" property="amt" />
  17. <result column="station_id" jdbcType="INTEGER" property="stationId" />
  18. <result column="status" jdbcType="VARCHAR" property="status" />
  19. <result column="order_liters" jdbcType="VARCHAR" property="orderLiters" />
  20. <result column="pay_type" jdbcType="VARCHAR" property="payType" />
  21. <result column="pay_way" jdbcType="VARCHAR" property="payWay" />
  22. <result column="pay_date" jdbcType="TIMESTAMP" property="payDate" />
  23. <result column="oil_personnel" jdbcType="VARCHAR" property="oilPersonnel" />
  24. <result column="created_date" jdbcType="TIMESTAMP" property="createdDate" />
  25. <result column="order_type" jdbcType="CHAR" property="orderType" />
  26. <result column="station_name" jdbcType="CHAR" property="stationName" />
  27. <result column="receivable_amt" jdbcType="DOUBLE" property="receivableAmt" />
  28. <result column="received_amt" jdbcType="DOUBLE" property="receivedAmt" />
  29. <result column="discount_coupon" jdbcType="VARCHAR" property="discountCoupon" />
  30. <result column="discount_amt" jdbcType="DOUBLE" property="discountAmt" />
  31. <result column="discount_coupon_amt" jdbcType="DOUBLE" property="discountCouponAmt" />
  32. <result column="wx_amt" jdbcType="DOUBLE" property="wxAmt" />
  33. <result column="zfb_amt" jdbcType="DOUBLE" property="zfbAmt" />
  34. <result column="pos_amt" jdbcType="DOUBLE" property="posAmt" />
  35. <result column="xj_amt" jdbcType="DOUBLE" property="xjAmt" />
  36. <result column="didi_app_amt" jdbcType="DOUBLE" property="didiAppAmt" />
  37. <result column="ty_app_amt" jdbcType="DOUBLE" property="tyAppAmt" />
  38. <result column="other_amt" jdbcType="DOUBLE" property="otherAmt" />
  39. <result column="dzk_amt" jdbcType="TIMESTAMP" property="dzkAmt" />
  40. <result column="score" jdbcType="INTEGER" property="score" />
  41. <result column="member_no" jdbcType="VARCHAR" property="memberNo" />
  42. <result column="member_amt" jdbcType="DOUBLE" property="memberAmt" />
  43. <result column="print_count" jdbcType="INTEGER" property="printCount" />
  44. <result column="car_no" jdbcType="VARCHAR" property="carNo" />
  45. <result column="customer_phone" jdbcType="VARCHAR" property="customerPhone" />
  46. <result column="customer_grade" jdbcType="VARCHAR" property="customerGrade" />
  47. <result column="oil_type" jdbcType="VARCHAR" property="oilType" />
  48. </resultMap>
  49. <sql id="Example_Where_Clause">
  50. <!--
  51. WARNING - @mbg.generated
  52. This element is automatically generated by MyBatis Generator, do not modify.
  53. -->
  54. <where>
  55. <foreach collection="oredCriteria" item="criteria" separator="or">
  56. <if test="criteria.valid">
  57. <trim prefix="(" prefixOverrides="and" suffix=")">
  58. <foreach collection="criteria.criteria" item="criterion">
  59. <choose>
  60. <when test="criterion.noValue">
  61. and ${criterion.condition}
  62. </when>
  63. <when test="criterion.singleValue">
  64. and ${criterion.condition} #{criterion.value}
  65. </when>
  66. <when test="criterion.betweenValue">
  67. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  68. </when>
  69. <when test="criterion.listValue">
  70. and ${criterion.condition}
  71. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  72. #{listItem}
  73. </foreach>
  74. </when>
  75. </choose>
  76. </foreach>
  77. </trim>
  78. </if>
  79. </foreach>
  80. </where>
  81. </sql>
  82. <sql id="Update_By_Example_Where_Clause">
  83. <!--
  84. WARNING - @mbg.generated
  85. This element is automatically generated by MyBatis Generator, do not modify.
  86. -->
  87. <where>
  88. <foreach collection="example.oredCriteria" item="criteria" separator="or">
  89. <if test="criteria.valid">
  90. <trim prefix="(" prefixOverrides="and" suffix=")">
  91. <foreach collection="criteria.criteria" item="criterion">
  92. <choose>
  93. <when test="criterion.noValue">
  94. and ${criterion.condition}
  95. </when>
  96. <when test="criterion.singleValue">
  97. and ${criterion.condition} #{criterion.value}
  98. </when>
  99. <when test="criterion.betweenValue">
  100. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  101. </when>
  102. <when test="criterion.listValue">
  103. and ${criterion.condition}
  104. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  105. #{listItem}
  106. </foreach>
  107. </when>
  108. </choose>
  109. </foreach>
  110. </trim>
  111. </if>
  112. </foreach>
  113. </where>
  114. </sql>
  115. <sql id="Base_Column_List">
  116. <!--
  117. WARNING - @mbg.generated
  118. This element is automatically generated by MyBatis Generator, do not modify.
  119. -->
  120. order_id, order_no, oil_gun, oil_name, oil_pirce, consumer_id, consumer, amt, station_id, status,
  121. order_liters, pay_type, pay_way, pay_date, oil_personnel, created_date, order_type, station_name,
  122. receivable_amt, received_amt, discount_amt, discount_coupon_amt, discount_coupon, wx_amt,
  123. zfb_amt, pos_amt, xj_amt, didi_app_amt, ty_app_amt, other_amt, dzk_amt, score, member_no, member_amt,
  124. print_count, car_no, customer_phone, customer_grade, oil_type
  125. </sql>
  126. <!-- 查询加油员-->
  127. <select id="selectPersonelName" parameterType="map" resultType="map">
  128. SELECT
  129. A.personnel_id AS personnelId,
  130. A.personnel_name AS personelName,
  131. A.station_name AS stationName
  132. FROM
  133. station_personnel AS A
  134. <where>
  135. <if test="oliGunNo != null and oliGunNo !=''">
  136. FIND_IN_SET(#{oliGunNo}, A.gun_no)
  137. </if>
  138. <if test="stationId !=null and stationId !=''">
  139. AND A.station_id = #{stationId}
  140. </if>
  141. </where>
  142. </select>
  143. <!-- 根据油品名称和油站查询油枪编号和价格 -->
  144. <select id="selectOilGunNoAndOilPrice" parameterType="map" resultType="map">
  145. SELECT
  146. A.oil_gun_no AS oliGunNo,
  147. A.oil_name AS oilName,
  148. A.station_name AS stationName,
  149. B.oil_price AS oilPrice,
  150. C.personnel_name AS personelName
  151. FROM station_oil_gun AS A
  152. LEFT JOIN station_oil_price AS B ON A.oil_name = B.oil_name AND A.station_id = B.station_id
  153. LEFT JOIN station_personnel AS C ON A.oil_gun_no = C.gun_no AND A.station_id = C.station_id
  154. <where>
  155. <if test="oliGunNo != null and oliGunNo !=''">
  156. A.oil_gun_no = #{oliGunNo}
  157. </if>
  158. <if test="stationId !=null and stationId !=''">
  159. AND A.station_id = #{stationId}
  160. </if>
  161. </where>
  162. </select>
  163. <!-- 根据油品名称和油站id获取当前油品调价信息 -->
  164. <select id="selectOilPriceAdjust" parameterType="map" resultType="map">
  165. SELECT
  166. adjust_price_id AS adjustPriceId,
  167. oil_name AS oilName,
  168. oil_adjust_price AS oilAdjustPrice,
  169. take_effect_status AS takeEffectStatus,
  170. take_effect_date AS takeEffectDate,
  171. adjust_date AS adjustDate,
  172. station_id AS stationId,
  173. operator AS operator,
  174. status AS status
  175. FROM
  176. station_oil_price_adjust
  177. <where>
  178. <if test="oilName !=null and oilName !=''">
  179. oil_name = #{oilName}
  180. </if>
  181. <if test="stationId !=null and stationId !=''">
  182. AND station_id = #{stationId}
  183. </if>
  184. ORDER BY take_effect_date DESC
  185. </where>
  186. </select>
  187. <select id="selectByExample" parameterType="com.platform.yijia.pojo.PayOrderExample" resultMap="BaseResultMap">
  188. <!--
  189. WARNING - @mbg.generated
  190. This element is automatically generated by MyBatis Generator, do not modify.
  191. -->
  192. select
  193. <if test="distinct">
  194. distinct
  195. </if>
  196. <include refid="Base_Column_List" />
  197. from pay_order
  198. <if test="_parameter != null">
  199. <include refid="Example_Where_Clause" />
  200. </if>
  201. <if test="orderByClause != null">
  202. order by ${orderByClause}
  203. </if>
  204. </select>
  205. <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
  206. <!--
  207. WARNING - @mbg.generated
  208. This element is automatically generated by MyBatis Generator, do not modify.
  209. -->
  210. select
  211. <include refid="Base_Column_List" />
  212. from pay_order
  213. where order_id = #{orderId,jdbcType=INTEGER}
  214. </select>
  215. <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
  216. <!--
  217. WARNING - @mbg.generated
  218. This element is automatically generated by MyBatis Generator, do not modify.
  219. -->
  220. delete from pay_order
  221. where order_id = #{orderId,jdbcType=INTEGER}
  222. </delete>
  223. <delete id="deleteByExample" parameterType="com.platform.yijia.pojo.PayOrderExample">
  224. <!--
  225. WARNING - @mbg.generated
  226. This element is automatically generated by MyBatis Generator, do not modify.
  227. -->
  228. delete from pay_order
  229. <if test="_parameter != null">
  230. <include refid="Example_Where_Clause" />
  231. </if>
  232. </delete>
  233. <insert id="insert" parameterType="com.platform.yijia.pojo.PayOrder">
  234. <!--
  235. WARNING - @mbg.generated
  236. This element is automatically generated by MyBatis Generator, do not modify.
  237. -->
  238. INSERT into
  239. pay_order (order_id, order_no, oil_gun,
  240. oil_name, oli_price, consumer_id, consumer,
  241. amt, station_id, status,
  242. order_liters, pay_type, pay_way,
  243. pay_date, oil_personnel, created_date,
  244. order_type, station_name, receivable_amt, received_amt, discount_amt, discount_coupon_amt, discount_coupon, wx_amt,
  245. zfb_amt, pos_amt, xj_amt, didi_app_amt, ty_app_amt, other_amt, dzk_amt, score,
  246. member_no, member_amt, print_count, car_no, customer_phone, customer_grade, oil_type)
  247. VALUES (
  248. #{orderId,jdbcType=INTEGER}, #{orderNo,jdbcType=VARCHAR}, #{oilGun,jdbcType=VARCHAR},
  249. #{oilName,jdbcType=VARCHAR}, #{oilPirce,jdbcType=DOUBLE}, #{consumerId,jdbcType=INTEGER}, #{consumer,jdbcType=VARCHAR},
  250. #{amt,jdbcType=DOUBLE}, #{stationId,jdbcType=INTEGER}, #{status,jdbcType=VARCHAR},
  251. #{orderLiters,jdbcType=VARCHAR}, #{payType,jdbcType=VARCHAR}, #{payWay,jdbcType=VARCHAR},
  252. #{payDate,jdbcType=TIMESTAMP}, #{oilPersonnel,jdbcType=VARCHAR}, #{createdDate,jdbcType=TIMESTAMP},
  253. #{orderType,jdbcType=CHAR}, #{stationName,jdbcType=VARCHAR},
  254. #{receivableAmt,jdbcType=DOUBLE}, #{receivedAmt,jdbcType=DOUBLE},#{discountAmt,jdbcType=DOUBLE}, #{discountCouponAmt,jdbcType=DOUBLE},
  255. #{discountCoupon,jdbcType=INTEGER}, #{wxAmt,jdbcType=DOUBLE}, #{zfbAmt,jdbcType=DOUBLE},#{posAmt,jdbcType=DOUBLE},
  256. #{xjAmt,jdbcType=DOUBLE}, #{didiAppAmt,jdbcType=DOUBLE}, #{tyAppAmt,jdbcType=DOUBLE}, #{otherAmt,jdbcType=DOUBLE},
  257. #{dzkAmt,jdbcType=DOUBLE}, #{score,jdbcType=INTEGER}, #{memberNo,jdbcType=VARCHAR}, #{memberAmt,jdbcType=DOUBLE},
  258. #{printCount,jdbcType=INTEGER}, #{carNo,jdbcType=VARCHAR}, #{customerPhone,jdbcType=VARCHAR}, #{customerGrade,jdbcType=VARCHAR}, #{oilType,jdbcType=VARCHAR}
  259. )
  260. </insert>
  261. <insert id="insertSelective" parameterType="com.platform.yijia.pojo.PayOrder">
  262. <!--
  263. WARNING - @mbg.generated
  264. This element is automatically generated by MyBatis Generator, do not modify.
  265. -->
  266. insert into pay_order
  267. <trim prefix="(" suffix=")" suffixOverrides=",">
  268. <if test="orderId != null">
  269. order_id,
  270. </if>
  271. <if test="orderNo != null">
  272. order_no,
  273. </if>
  274. <if test="oilGun != null">
  275. oil_gun,
  276. </if>
  277. <if test="oilName != null">
  278. oil_name,
  279. </if>
  280. <if test="oilPirce != null">
  281. oil_pirce,
  282. </if>
  283. <if test="consumerId != null">
  284. consumer_id,
  285. </if>
  286. <if test="consumer != null">
  287. consumer,
  288. </if>
  289. <if test="amt != null">
  290. amt,
  291. </if>
  292. <if test="stationId != null">
  293. station_id,
  294. </if>
  295. <if test="status != null">
  296. status,
  297. </if>
  298. <if test="orderLiters != null">
  299. order_liters,
  300. </if>
  301. <if test="payType != null">
  302. pay_type,
  303. </if>
  304. <if test="payWay != null">
  305. pay_way,
  306. </if>
  307. <if test="payDate != null">
  308. pay_date,
  309. </if>
  310. <if test="oilPersonnel != null">
  311. oil_personnel,
  312. </if>
  313. <if test="createdDate != null">
  314. created_date,
  315. </if>
  316. <if test="orderType != null">
  317. order_type,
  318. </if>
  319. <if test="stationName != null">
  320. station_name,
  321. </if>
  322. <if test="receivableAmt != null">
  323. receivable_amt,
  324. </if>
  325. <if test="receivedAmt != null">
  326. received_amt,
  327. </if>
  328. <if test="discountAmt != null">
  329. discount_amt,
  330. </if>
  331. <if test="discountCouponAmt != null">
  332. discount_coupon_amt,
  333. </if>
  334. <if test="discountCoupon != null">
  335. discount_coupon,
  336. </if>
  337. <if test="wxAmt != null">
  338. wx_amt,
  339. </if>
  340. <if test="zfbAmt != null">
  341. zfb_amt,
  342. </if>
  343. <if test="posAmt != null">
  344. pos_amt,
  345. </if>
  346. <if test="didiAppAmt != null">
  347. didi_app_amt,
  348. </if>
  349. <if test="tyAppAmt != null">
  350. ty_app_amt,
  351. </if>
  352. <if test="otherAmt != null">
  353. other_amt,
  354. </if>
  355. <if test="dzkAmt != null">
  356. dzk_amt,
  357. </if>
  358. <if test="score != null">
  359. score,
  360. </if>
  361. <if test="memberNo != null">
  362. member_no,
  363. </if>
  364. <if test="memberAmt != null">
  365. member_amt,
  366. </if>
  367. <if test="printCount != null">
  368. print_count,
  369. </if>
  370. <if test="carNo != null">
  371. car_no,
  372. </if>
  373. <if test="customerPhone != null">
  374. customer_phone,
  375. </if>
  376. <if test="customerGrade != null">
  377. customer_grade,
  378. </if>
  379. <if test="oilType != null">
  380. oil_type
  381. </if>
  382. </trim>
  383. <trim prefix="values (" suffix=")" suffixOverrides=",">
  384. <if test="orderId != null">
  385. #{orderId,jdbcType=INTEGER},
  386. </if>
  387. <if test="orderNo != null">
  388. #{orderNo,jdbcType=VARCHAR},
  389. </if>
  390. <if test="oilGun != null">
  391. #{oilGun,jdbcType=VARCHAR},
  392. </if>
  393. <if test="oilName != null">
  394. #{oilName,jdbcType=VARCHAR},
  395. </if>
  396. <if test="oilPirce != null">
  397. #{oilPirce,jdbcType=DOUBLE},
  398. </if>
  399. <if test="consumerId != null">
  400. #{consumerId,jdbcType=INTEGER},
  401. </if>
  402. <if test="consumer != null">
  403. #{consumer,jdbcType=VARCHAR},
  404. </if>
  405. <if test="amt != null">
  406. #{amt,jdbcType=DOUBLE},
  407. </if>
  408. <if test="stationId != null">
  409. #{stationId,jdbcType=INTEGER},
  410. </if>
  411. <if test="status != null">
  412. #{status,jdbcType=VARCHAR},
  413. </if>
  414. <if test="orderLiters != null">
  415. #{orderLiters,jdbcType=VARCHAR},
  416. </if>
  417. <if test="payType != null">
  418. #{payType,jdbcType=VARCHAR},
  419. </if>
  420. <if test="payWay != null">
  421. #{payWay,jdbcType=VARCHAR},
  422. </if>
  423. <if test="payDate != null">
  424. #{payDate,jdbcType=TIMESTAMP},
  425. </if>
  426. <if test="oilPersonnel != null">
  427. #{oilPersonnel,jdbcType=VARCHAR},
  428. </if>
  429. <if test="createdDate != null">
  430. #{createdDate,jdbcType=TIMESTAMP},
  431. </if>
  432. <if test="orderType != null">
  433. #{orderType,jdbcType=CHAR},
  434. </if>
  435. <if test="stationName != null">
  436. #{stationName,jdbcType=VARCHAR},
  437. </if>
  438. <if test="receivableAmt != null">
  439. #{receivableAmt,jdbcType=DOUBLE},
  440. </if>
  441. <if test="receivedAmt != null">
  442. #{receivedAmt,jdbcType=DOUBLE},
  443. </if>
  444. <if test="discountAmt != null">
  445. #{discountAmt,jdbcType=DOUBLE},
  446. </if>
  447. <if test="discountCouponAmt != null">
  448. #{discountCouponAmt,jdbcType=DOUBLE},
  449. </if>
  450. <if test="discountCoupon != null">
  451. #{discountCoupon,jdbcType=VARCHAR},
  452. </if>
  453. <if test="wxAmt != null">
  454. #{wxAmt,jdbcType=DOUBLE},
  455. </if>
  456. <if test="zfbAmt != null">
  457. #{zfbAmt,jdbcType=DOUBLE},
  458. </if>
  459. <if test="posAmt != null">
  460. #{posAmt,jdbcType=DOUBLE},
  461. </if>
  462. <if test="xjAmt != null">
  463. #{xjAmt,jdbcType=DOUBLE},
  464. </if>
  465. <if test="didiAppAmt != null">
  466. #{didiAppAmt,jdbcType=DOUBLE},
  467. </if>
  468. <if test="tyAppAmt != null">
  469. #{tyAppAmt,jdbcType=DOUBLE},
  470. </if>
  471. <if test="otherAmt != null">
  472. #{otherAmt,jdbcType=DOUBLE},
  473. </if>
  474. <if test="dzkAmt != null">
  475. #{dzkAmt,jdbcType=DOUBLE},
  476. </if>
  477. <if test="score != null">
  478. #{score,jdbcType=INTEGER},
  479. </if>
  480. <if test="memberNo != null">
  481. #{memberNo,jdbcType=VARCHAR},
  482. </if>
  483. <if test="memberAmt != null">
  484. #{memberAmt,jdbcType=DOUBLE},
  485. </if>
  486. <if test="printCount != null">
  487. #{printCount,jdbcType=INTEGER},
  488. </if>
  489. <if test="carNo != null">
  490. #{carNo,jdbcType=VARCHAR},
  491. </if>
  492. <if test="customerPhone != null">
  493. #{customerPhone,jdbcType=VARCHAR},
  494. </if>
  495. <if test="customerGrade != null">
  496. #{customerGrade,jdbcType=VARCHAR},
  497. </if>
  498. <if test="oilType != null">
  499. #{oilType,jdbcType=VARCHAR}
  500. </if>
  501. </trim>
  502. </insert>
  503. <select id="countByExample" parameterType="com.platform.yijia.pojo.PayOrderExample" resultType="java.lang.Long">
  504. <!--
  505. WARNING - @mbg.generated
  506. This element is automatically generated by MyBatis Generator, do not modify.
  507. -->
  508. select count(*) from pay_order
  509. <if test="_parameter != null">
  510. <include refid="Example_Where_Clause" />
  511. </if>
  512. </select>
  513. <update id="updateByExampleSelective" parameterType="map">
  514. <!--
  515. WARNING - @mbg.generated
  516. This element is automatically generated by MyBatis Generator, do not modify.
  517. -->
  518. update pay_order
  519. <set>
  520. <if test="record.orderId != null">
  521. order_id = #{record.orderId,jdbcType=INTEGER},
  522. </if>
  523. <if test="record.orderNo != null">
  524. order_no = #{record.orderNo,jdbcType=VARCHAR},
  525. </if>
  526. <if test="record.oilGun != null">
  527. oil_gun = #{record.oilGun,jdbcType=VARCHAR},
  528. </if>
  529. <if test="record.oilName != null">
  530. oil_name = #{record.oilName,jdbcType=VARCHAR},
  531. </if>
  532. <if test="record.oilPirce != null">
  533. oil_pirce = #{record.oilPirce,jdbcType=VARCHAR},
  534. </if>
  535. <if test="record.consumerId != null">
  536. consumer_id = #{record.consumerId,jdbcType=INTEGER},
  537. </if>
  538. <if test="record.consumer != null">
  539. consumer = #{record.consumer,jdbcType=VARCHAR},
  540. </if>
  541. <if test="record.amt != null">
  542. amt = #{record.amt,jdbcType=DOUBLE},
  543. </if>
  544. <if test="record.stationId != null">
  545. station_id = #{record.stationId,jdbcType=INTEGER},
  546. </if>
  547. <if test="record.status != null">
  548. status = #{record.status,jdbcType=VARCHAR},
  549. </if>
  550. <if test="record.orderLiters != null">
  551. order_liters = #{record.orderLiters,jdbcType=VARCHAR},
  552. </if>
  553. <if test="record.payType != null">
  554. pay_type = #{record.payType,jdbcType=VARCHAR},
  555. </if>
  556. <if test="record.payWay != null">
  557. pay_way = #{record.payWay,jdbcType=VARCHAR},
  558. </if>
  559. <if test="record.payDate != null">
  560. pay_date = #{record.payDate,jdbcType=TIMESTAMP},
  561. </if>
  562. <if test="record.oilPersonnel != null">
  563. oil_personnel = #{record.oilPersonnel,jdbcType=VARCHAR},
  564. </if>
  565. <if test="record.createdDate != null">
  566. created_date = #{record.createdDate,jdbcType=TIMESTAMP},
  567. </if>
  568. <if test="record.orderType != null">
  569. order_type = #{record.orderType,jdbcType=CHAR},
  570. </if>
  571. <if test="record.stationName != null">
  572. station_name = #{record.stationName,jdbcType=VARCHAR},
  573. </if>
  574. <if test="record.receivableAmt != null">
  575. receivable_amt = #{record.receivableAmt,jdbcType=DOUBLE},
  576. </if>
  577. <if test="record.receivedAmt != null">
  578. received_amt = #{record.receivedAmt,jdbcType=DOUBLE},
  579. </if>
  580. <if test="record.discountAmt != null">
  581. discount_amt = #{record.discountAmt,jdbcType=DOUBLE},
  582. </if>
  583. <if test="record.discountCouponAmt != null">
  584. discount_coupon_amt = #{record.discountCouponAmt,jdbcType=DOUBLE},
  585. </if>
  586. <if test="record.discountCoupon != null">
  587. discount_coupon = #{record.discountCoupon,jdbcType=VARCHAR},
  588. </if>
  589. <if test="record.wxAmt != null">
  590. wx_amt = #{record.wxAmt,jdbcType=DOUBLE},
  591. </if>
  592. <if test="record.zfbAmt != null">
  593. zfb_amt = #{record.zfbAmt,jdbcType=DOUBLE},
  594. </if>
  595. <if test="record.posAmt != null">
  596. pos_amt = #{record.posAmt,jdbcType=DOUBLE},
  597. </if>
  598. <if test="record.xjAmt != null">
  599. xj_amt = #{record.xjAmt,jdbcType=DOUBLE},
  600. </if>
  601. <if test="record.didiAppAmt != null">
  602. didi_app_amt = #{record.didiAppAmt,jdbcType=DOUBLE},
  603. </if>
  604. <if test="record.tyAppAmt != null">
  605. ty_app_amt = #{record.tyAppAmt,jdbcType=DOUBLE},
  606. </if>
  607. <if test="record.otherAmt != null">
  608. other_amt = #{record.otherAmt,jdbcType=DOUBLE},
  609. </if>
  610. <if test="record.dzkAmt != null">
  611. dzk_amt = #{record.dzkAmt,jdbcType=DOUBLE},
  612. </if>
  613. <if test="record.score != null">
  614. score = #{record.score,jdbcType=INTEGER},
  615. </if>
  616. <if test="record.memberNo != null">
  617. member_no = #{record.memberNo,jdbcType=VARCHAR},
  618. </if>
  619. <if test="record.memberAmt != null">
  620. member_amt = #{record.memberAmt,jdbcType=DOUBLE},
  621. </if>
  622. <if test="record.printCount != null">
  623. print_count = #{record.printCount,jdbcType=INTEGER},
  624. </if>
  625. <if test="record.carNo != null">
  626. car_no = #{record.carNo,jdbcType=VARCHAR},
  627. </if>
  628. <if test="record.customerPhone != null">
  629. customer_phone = #{record.customerPhone,jdbcType=VARCHAR},
  630. </if>
  631. <if test="record.customerGrade != null">
  632. customer_grade = #{record.customerGrade,jdbcType=VARCHAR},
  633. </if>
  634. <if test="oilType != null">
  635. oil_type = #{record.oilType,jdbcType=VARCHAR},
  636. </if>
  637. </set>
  638. <if test="_parameter != null">
  639. <include refid="Update_By_Example_Where_Clause" />
  640. </if>
  641. </update>
  642. <!--根据订单号查询订单信息和用户信息 此方法在随行付回调之后修改状态完成后-->
  643. <select id="getOrderInfoAndUserInfoByOrderNo" parameterType="com.platform.yijia.pojo.PayOrder" resultType="map">
  644. SELECT
  645. A.order_no AS orderNo,
  646. A.station_name AS stationName,
  647. A.station_id AS stationId,
  648. A.status AS status,
  649. A.oil_name AS oilName,
  650. A.order_liters AS orderLiters,
  651. A.amt AS amt,
  652. B.user_type AS userType,
  653. B.mobile_phone AS mobilePhone
  654. FROM
  655. pay_order AS A
  656. LEFT JOIN app_user_info AS B ON A.consumer_id = B.user_id
  657. WHERE
  658. A.order_no = #{orderNo}
  659. </select>
  660. <!-- 更新订单-->
  661. <update id="updateOrderStatus" parameterType="com.platform.yijia.pojo.PayOrder">
  662. UPDATE
  663. pay_order
  664. <set>
  665. <if test="status != null">
  666. status = #{status,jdbcType=VARCHAR},
  667. </if>
  668. <if test="receivedAmt != null">
  669. received_amt = #{receivedAmt,jdbcType=DOUBLE},
  670. </if>
  671. <if test="payDate != null">
  672. pay_date = #{payDate,jdbcType=TIMESTAMP},
  673. </if>
  674. <if test="printCount != null">
  675. print_count = #{printCount,jdbcType=INTEGER},
  676. </if>
  677. </set>
  678. <where>
  679. order_no = #{orderNo,jdbcType=VARCHAR}
  680. </where>
  681. </update>
  682. <!--根据用户登录openId 获取用户信息用于插入客户表-->
  683. <select id="getUserInfoByOpenId" parameterType="com.platform.yijia.pojo.AppUserInfo" resultType="com.platform.yijia.pojo.AppUserInfo">
  684. SELECT
  685. user_id AS userId,
  686. mina_openid AS minaOpenid,
  687. blog_openid AS blogOpenid,
  688. registe_date AS registeDate,
  689. mobile_phone AS mobilePhone,
  690. user_type AS userType
  691. FROM
  692. app_user_info
  693. <where>
  694. <if test="mobilePhone !=null and mobilePhone !='' ">
  695. mobile_phone = #{mobilePhone}
  696. </if>
  697. </where>
  698. </select>
  699. <!-- 判断客户表是否已存在-->
  700. <select id="isExistCustomer" parameterType="com.platform.yijia.pojo.CustomerManage" resultType="com.platform.yijia.pojo.CustomerManage">
  701. SELECT
  702. id AS id,
  703. member_id AS memberId,
  704. member_grade AS memberGrade,
  705. phone_number AS phoneNumber,
  706. regtime AS regtime,
  707. station_name AS stationName,
  708. oil_name AS oilName,
  709. liters AS liters,
  710. amt AS amt
  711. FROM
  712. customer_manage
  713. <where>
  714. <if test="stationId !=null and stationId !='' ">
  715. station_id = #{stationId}
  716. </if>
  717. <if test="phoneNumber !=null and phoneNumber !='' ">
  718. AND phone_number = #{phoneNumber}
  719. </if>
  720. <if test="oilName !=null and oilName !='' ">
  721. AND oil_name = #{oilName}
  722. </if>
  723. </where>
  724. </select>
  725. <!-- 更新客户表 -->
  726. <update id="updateCustomer" parameterType="com.platform.yijia.pojo.CustomerManage">
  727. UPDATE
  728. customer_manage
  729. <set>
  730. <if test="memberGrade !=null ">
  731. member_grade = #{memberGrade},
  732. </if>
  733. <if test="phoneNumber !=null ">
  734. phone_number = #{phoneNumber},
  735. </if>
  736. <if test="regtime !=null ">
  737. regtime = #{regtime},
  738. </if>
  739. <if test="stationName !=null ">
  740. station_name = #{stationName},
  741. </if>
  742. <if test="oilName !=null ">
  743. oil_name = #{oilName},
  744. </if>
  745. <if test="liters !=null ">
  746. liters = #{liters},
  747. </if>
  748. <if test="amt !=null ">
  749. amt = #{amt},
  750. </if>
  751. </set>
  752. <where>
  753. <if test="stationId != null and stationId !='' ">
  754. station_id = #{stationId}
  755. </if>
  756. <if test="phoneNumber !=null and phoneNumber !='' ">
  757. AND phone_number = #{phoneNumber}
  758. </if>
  759. <if test="oilName !=null and oilName !='' ">
  760. AND oil_name = #{oilName}
  761. </if>
  762. </where>
  763. </update>
  764. <!-- 插入客户表 -->
  765. <insert id="insertCustomer" parameterType="com.platform.yijia.pojo.CustomerManage">
  766. INSERT INTO customer_manage
  767. <trim prefix="(" suffix=")" suffixOverrides=",">
  768. <if test="memberId !=null ">
  769. member_id,
  770. </if>
  771. <if test="customerName !=null ">
  772. customer_name,
  773. </if>
  774. <if test="commendMan !=null ">
  775. commend_man,
  776. </if>
  777. <if test="memberGrade !=null ">
  778. member_grade,
  779. </if>
  780. <if test="phoneNumber !=null ">
  781. phone_number,
  782. </if>
  783. <if test="carNumber !=null ">
  784. car_number,
  785. </if>
  786. <if test="balance !=null ">
  787. balance,
  788. </if>
  789. <if test="integral !=null ">
  790. integral,
  791. </if>
  792. <if test="specialCarType !=null ">
  793. specialCarType,
  794. </if>
  795. <if test="regtime !=null ">
  796. regtime,
  797. </if>
  798. <if test="stationId !=null ">
  799. station_id,
  800. </if>
  801. <if test="stationName !=null ">
  802. station_name,
  803. </if>
  804. <if test="oilName !=null ">
  805. oil_name,
  806. </if>
  807. <if test="liters !=null ">
  808. liters,
  809. </if>
  810. <if test="amt !=null ">
  811. amt,
  812. </if>
  813. <if test="cyGrade !=null ">
  814. cy_grade,
  815. </if>
  816. <if test="qyGrade !=null ">
  817. qy_grade,
  818. </if>
  819. <if test="blogOpenid !=null ">
  820. blog_openid,
  821. </if>
  822. <if test="minaOpenid !=null ">
  823. mina_openid,
  824. </if>
  825. <if test="blogUserId !=null ">
  826. blog_user_id,
  827. </if>
  828. <if test="minaUserId !=null ">
  829. mina_user_id
  830. </if>
  831. </trim>
  832. <trim prefix="values (" suffix=")" suffixOverrides=",">
  833. <if test="memberId !=null ">
  834. #{memberId},
  835. </if>
  836. <if test="customerName !=null ">
  837. #{customerName},
  838. </if>
  839. <if test="commendMan !=null ">
  840. #{commendMan},
  841. </if>
  842. <if test="memberGrade !=null ">
  843. #{memberGrade},
  844. </if>
  845. <if test="phoneNumber !=null ">
  846. #{phoneNumber},
  847. </if>
  848. <if test="carNumber !=null ">
  849. #{carNumber},
  850. </if>
  851. <if test="balance !=null ">
  852. #{balance},
  853. </if>
  854. <if test="integral !=null ">
  855. #{integral},
  856. </if>
  857. <if test="specialCarType !=null ">
  858. #{specialCarType},
  859. </if>
  860. <if test="regtime !=null ">
  861. #{regtime},
  862. </if>
  863. <if test="stationId !=null ">
  864. #{stationId, jdbcType=INTEGER},
  865. </if>
  866. <if test="stationName !=null ">
  867. #{stationName, jdbcType=VARCHAR},
  868. </if>
  869. <if test="oilName !=null ">
  870. #{oilName},
  871. </if>
  872. <if test="liters !=null ">
  873. #{liters},
  874. </if>
  875. <if test="amt !=null ">
  876. #{amt},
  877. </if>
  878. <if test="cyGrade !=null ">
  879. #{cyGrade},
  880. </if>
  881. <if test="qyGrade !=null ">
  882. #{qyGrade},
  883. </if>
  884. <if test="blogOpenid !=null ">
  885. #{blogOpenid},
  886. </if>
  887. <if test="minaOpenid !=null ">
  888. #{minaOpenid, jdbcType=VARCHAR},
  889. </if>
  890. <if test="blogUserId !=null ">
  891. #{blogUserId, jdbcType=INTEGER},
  892. </if>
  893. <if test="minaUserId !=null ">
  894. #{minaUserId, jdbcType=INTEGER}
  895. </if>
  896. </trim>
  897. </insert>
  898. <update id="updateByExample" parameterType="map">
  899. <!--
  900. WARNING - @mbg.generated
  901. This element is automatically generated by MyBatis Generator, do not modify.
  902. -->
  903. update pay_order
  904. set order_id = #{record.orderId,jdbcType=INTEGER},
  905. order_no = #{record.orderNo,jdbcType=VARCHAR},
  906. oil_gun = #{record.oilGun,jdbcType=VARCHAR},
  907. oil_name = #{record.oilName,jdbcType=VARCHAR},
  908. oil_pirce = #{record.oilPirce,jdbcType=VARCHAR},
  909. consumer_id = #{record.consumerId,jdbcType=INTEGER},
  910. consumer = #{record.consumer,jdbcType=VARCHAR},
  911. amt = #{record.amt,jdbcType=DOUBLE},
  912. station_id = #{record.stationId,jdbcType=INTEGER},
  913. status = #{record.status,jdbcType=VARCHAR},
  914. order_liters = #{record.orderLiters,jdbcType=VARCHAR},
  915. pay_type = #{record.payType,jdbcType=VARCHAR},
  916. pay_way = #{record.payWay,jdbcType=VARCHAR},
  917. pay_date = #{record.payDate,jdbcType=TIMESTAMP},
  918. oil_personnel = #{record.oilPersonnel,jdbcType=VARCHAR},
  919. created_date = #{record.createdDate,jdbcType=TIMESTAMP},
  920. order_type = #{record.orderType,jdbcType=CHAR},
  921. station_name = #{record.stationName,jdbcType=VARCHAR},
  922. receivable_amt = #{record.receivableAmt,jdbcType=DOUBLE},
  923. received_amt = #{record.receivedAmt,jdbcType=DOUBLE},
  924. discount_amt = #{record.discountAmt,jdbcType=DOUBLE},
  925. discount_coupon_amt = #{record.discountCouponAmt,jdbcType=DOUBLE},
  926. discount_coupon = #{record.discountCoupon,jdbcType=DOUBLE},
  927. wx_amt = #{record.wxAmt,jdbcType=DOUBLE},
  928. zfb_amt = #{record.zfbAmt,jdbcType=DOUBLE},
  929. pos_amt = #{record.posAmt,jdbcType=DOUBLE},
  930. xj_amt = #{record.xjAmt,jdbcType=DOUBLE},
  931. didi_app_amt = #{record.didiAppAmt,jdbcType=DOUBLE},
  932. ty_app_amt = #{record.tyAppAmt,jdbcType=DOUBLE},
  933. other_amt = #{record.otherAmt,jdbcType=DOUBLE},
  934. dzk_amt = #{record.dzkAmt,jdbcType=DOUBLE},
  935. score = #{record.score,jdbcType=INTEGER},
  936. member_no = #{record.memberNo,jdbcType=VARCHAR},
  937. member_amt = #{record.memberAmt,jdbcType=DOUBLE},
  938. print_count = #{record.printCount,jdbcType=INTEGER},
  939. car_no = #{record.carNo,jdbcType=VARCHAR},
  940. customer_phone = #{record.customerPhone,jdbcType=VARCHAR},
  941. customer_grade = #{record.customerGrade,jdbcType=VARCHAR},
  942. oil_type = #{record.oilType,jdbcType=VARCHAR}
  943. <if test="_parameter != null">
  944. <include refid="Update_By_Example_Where_Clause" />
  945. </if>
  946. </update>
  947. <update id="updateByPrimaryKeySelective" parameterType="com.platform.yijia.pojo.PayOrder">
  948. <!--
  949. WARNING - @mbg.generated
  950. This element is automatically generated by MyBatis Generator, do not modify.
  951. -->
  952. update pay_order
  953. <set>
  954. <if test="orderNo != null">
  955. order_no = #{orderNo,jdbcType=VARCHAR},
  956. </if>
  957. <if test="oilGun != null">
  958. oil_gun = #{oilGun,jdbcType=VARCHAR},
  959. </if>
  960. <if test="oilName != null">
  961. oil_name = #{oilName,jdbcType=VARCHAR},
  962. </if>
  963. <if test="oilPirce != null">
  964. oil_pirce = #{oilPirce,jdbcType=DOUBLE},
  965. </if>
  966. <if test="consumerId != null">
  967. consumer_id = #{consumerId,jdbcType=INTEGER},
  968. </if>
  969. <if test="consumer != null">
  970. consumer = #{consumer,jdbcType=VARCHAR},
  971. </if>
  972. <if test="amt != null">
  973. amt = #{amt,jdbcType=DOUBLE},
  974. </if>
  975. <if test="stationId != null">
  976. station_id = #{stationId,jdbcType=INTEGER},
  977. </if>
  978. <if test="status != null">
  979. status = #{status,jdbcType=VARCHAR},
  980. </if>
  981. <if test="orderLiters != null">
  982. order_liters = #{orderLiters,jdbcType=VARCHAR},
  983. </if>
  984. <if test="payType != null">
  985. pay_type = #{payType,jdbcType=VARCHAR},
  986. </if>
  987. <if test="payWay != null">
  988. pay_way = #{payWay,jdbcType=VARCHAR},
  989. </if>
  990. <if test="payDate != null">
  991. pay_date = #{payDate,jdbcType=TIMESTAMP},
  992. </if>
  993. <if test="oilPersonnel != null">
  994. oil_personnel = #{oilPersonnel,jdbcType=VARCHAR},
  995. </if>
  996. <if test="createdDate != null">
  997. created_date = #{createdDate,jdbcType=TIMESTAMP},
  998. </if>
  999. <if test="orderType != null">
  1000. order_type = #{orderType,jdbcType=CHAR},
  1001. </if>
  1002. <if test="stationName != null">
  1003. station_name = #{stationName,jdbcType=CHAR},
  1004. </if>
  1005. <if test="receivableAmt != null">
  1006. receivable_amt = #{receivableAmt,jdbcType=DOUBLE},
  1007. </if>
  1008. <if test="receivedAmt != null">
  1009. received_amt = #{receivedAmt,jdbcType=DOUBLE},
  1010. </if>
  1011. <if test="discountAmt != null">
  1012. discount_amt = #{discountAmt,jdbcType=DOUBLE},
  1013. </if>
  1014. <if test="discountCouponAmt != null">
  1015. discount_coupon_amt = #{discountCouponAmt,jdbcType=DOUBLE},
  1016. </if>
  1017. <if test="discountCoupon != null">
  1018. discount_coupon = #{discountCoupon,jdbcType=VARCHAR},
  1019. </if>
  1020. <if test="wxAmt != null">
  1021. wx_amt = #{wxAmt,jdbcType=DOUBLE},
  1022. </if>
  1023. <if test="zfbAmt != null">
  1024. zfb_amt = #{zfbAmt,jdbcType=DOUBLE},
  1025. </if>
  1026. <if test="posAmt != null">
  1027. pos_amt = #{posAmt,jdbcType=DOUBLE},
  1028. </if>
  1029. <if test="xjAmt != null">
  1030. xj_amt = #{xjAmt,jdbcType=DOUBLE},
  1031. </if>
  1032. <if test="didiAppAmt != null">
  1033. didi_app_amt = #{didiAppAmt,jdbcType=DOUBLE},
  1034. </if>
  1035. <if test="tyAppAmt != null">
  1036. ty_app_amt = #{tyAppAmt,jdbcType=DOUBLE},
  1037. </if>
  1038. <if test="otherAmt != null">
  1039. other_amt = #{otherAmt,jdbcType=DOUBLE},
  1040. </if>
  1041. <if test="dzkAmt != null">
  1042. dzk_amt = #{dzkAmt,jdbcType=DOUBLE},
  1043. </if>
  1044. <if test="score != null">
  1045. score = #{score,jdbcType=INTEGER},
  1046. </if>
  1047. <if test="memberNo != null">
  1048. member_no = #{memberNo,jdbcType=VARCHAR},
  1049. </if>
  1050. <if test="memberAmt != null">
  1051. member_amt = #{memberAmt,jdbcType=DOUBLE},
  1052. </if>
  1053. <if test="printCount != null">
  1054. print_count = #{printCount,jdbcType=INTEGER},
  1055. </if>
  1056. <if test="carNo != null">
  1057. car_no = #{carNo,jdbcType=VARCHAR},
  1058. </if>
  1059. <if test="customerPhone != null">
  1060. customer_phone = #{customerPhone,jdbcType=VARCHAR},
  1061. </if>
  1062. <if test="oilType != null">
  1063. oil_type = #{oilType,jdbcType=VARCHAR}
  1064. </if>
  1065. </set>
  1066. where order_id = #{orderId,jdbcType=INTEGER}
  1067. </update>
  1068. <update id="updateByPrimaryKey" parameterType="com.platform.yijia.pojo.PayOrder">
  1069. <!--
  1070. WARNING - @mbg.generated
  1071. This element is automatically generated by MyBatis Generator, do not modify.
  1072. -->
  1073. update pay_order
  1074. set order_no = #{orderNo,jdbcType=VARCHAR},
  1075. oil_gun = #{oilGun,jdbcType=VARCHAR},
  1076. oil_name = #{oilName,jdbcType=VARCHAR},
  1077. oil_pirce = #{oilPirce,jdbcType=DOUBLE},
  1078. consumer_id = #{consumerId,jdbcType=INTEGER},
  1079. consumer = #{consumer,jdbcType=VARCHAR},
  1080. amt = #{amt,jdbcType=VARCHAR},
  1081. station_id = #{stationId,jdbcType=INTEGER},
  1082. status = #{status,jdbcType=VARCHAR},
  1083. order_liters = #{orderLiters,jdbcType=VARCHAR},
  1084. pay_type = #{payType,jdbcType=VARCHAR},
  1085. pay_way = #{payWay,jdbcType=VARCHAR},
  1086. pay_date = #{payDate,jdbcType=TIMESTAMP},
  1087. oil_personnel = #{oilPersonnel,jdbcType=VARCHAR},
  1088. created_date = #{createdDate,jdbcType=TIMESTAMP},
  1089. order_type = #{orderType,jdbcType=CHAR}
  1090. station_name = #{stationName,jdbcType=VARCHAR},
  1091. receivable_amt = #{receivableAmt,jdbcType=DOUBLE},
  1092. received_amt = #{receivedAmt,jdbcType=DOUBLE},
  1093. discount_amt = #{discountAmt,jdbcType=DOUBLE},
  1094. discount_coupon_amt = #{discountCouponAmt,jdbcType=DOUBLE},
  1095. discount_coupon = #{discountCoupon,jdbcType=DOUBLE},
  1096. wx_amt = #{wxAmt,jdbcType=DOUBLE},
  1097. zfb_amt = #{zfbAmt,jdbcType=DOUBLE},
  1098. pos_amt = #{posAmt,jdbcType=DOUBLE},
  1099. xj_amt = #{xjAmt,jdbcType=DOUBLE},
  1100. didi_app_amt = #{didiAppAmt,jdbcType=DOUBLE},
  1101. ty_app_amt = #{tyAppAmt,jdbcType=DOUBLE},
  1102. other_amt = #{otherAmt,jdbcType=DOUBLE},
  1103. dzk_amt = #{dzkAmt,jdbcType=DOUBLE},
  1104. score = #{score,jdbcType=INTEGER},
  1105. member_no = #{memberNo,jdbcType=VARCHAR},
  1106. member_amt = #{memberAmt,jdbcType=DOUBLE},
  1107. print_count = #{printCount,jdbcType=INTEGER},
  1108. car_no = #{carNo,jdbcType=VARCHAR},
  1109. customer_phone = #{customerPhone,jdbcType=VARCHAR},
  1110. customer_grade = #{customerGrade,jdbcType=VARCHAR},
  1111. oil_type = #{oilType,jdbcType=VARCHAR}
  1112. where order_id = #{orderId,jdbcType=INTEGER}
  1113. </update>
  1114. </mapper>