PayOrderMapper.xml 38 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160
  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=VARCHAR}, #{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=VARCHAR},
  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. <update id="updateOrderStatus" parameterType="com.platform.yijia.pojo.PayOrder">
  644. UPDATE
  645. pay_order
  646. <set>
  647. <if test="status != null">
  648. status = #{status,jdbcType=VARCHAR},
  649. </if>
  650. <if test="receivedAmt != null">
  651. received_amt = #{receivedAmt,jdbcType=DOUBLE},
  652. </if>
  653. <if test="payDate != null">
  654. pay_date = #{payDate,jdbcType=TIMESTAMP},
  655. </if>
  656. <if test="printCount != null">
  657. print_count = #{printCount,jdbcType=INTEGER}
  658. </if>
  659. </set>
  660. <where>
  661. order_no = #{orderNo,jdbcType=VARCHAR}
  662. </where>
  663. </update>
  664. <!-- 判断客户表是否已存在-->
  665. <select id="isExistCustomer" parameterType="com.platform.yijia.pojo.CustomerManage" resultType="com.platform.yijia.pojo.CustomerManage">
  666. SELECT
  667. id AS id,
  668. member_id AS memberId,
  669. member_grade AS memberGrade,
  670. phone_number AS phoneNumber,
  671. regtime AS regtime,
  672. station_name AS stationName,
  673. cy_liters AS cyLiters,
  674. qy_liters AS qyLiters,
  675. cy_amt AS cyAmt,
  676. qy_amt AS qyAmt
  677. FROM
  678. customer_manage
  679. <where>
  680. <if test="blogOpenid !=null and blogOpenid !='' ">
  681. blog_openid = #{blogOpenid}
  682. </if>
  683. <if test="minaOpenid !=null and minaOpenid !='' ">
  684. AND mina_openid = #{minaOpenid}
  685. </if>
  686. <if test="stationId !=null and stationId !='' ">
  687. AND station_id = #{stationId}
  688. </if>
  689. </where>
  690. </select>
  691. <!-- 更新客户表 -->
  692. <update id="updateCustomer" parameterType="com.platform.yijia.pojo.CustomerManage">
  693. UPDATE
  694. customer_manage
  695. <set>
  696. <if test="memberGrade !=null ">
  697. member_grade = #{memberGrade},
  698. </if>
  699. <if test="phoneNumber !=null ">
  700. phone_number = #{phoneNumber},
  701. </if>
  702. <if test="regtime !=null ">
  703. regtime = #{regtime},
  704. </if>
  705. <if test="stationName !=null ">
  706. station_name = #{stationName},
  707. </if>
  708. <if test="cyLiters !=null ">
  709. cy_liters = #{cyLiters},
  710. </if>
  711. <if test="qyLiters !=null ">
  712. qy_liters = #{qyLiters},
  713. </if>
  714. <if test="cyAmt !=null ">
  715. cy_amt = #{cyAmt},
  716. </if>
  717. <if test="qyAmt !=null ">
  718. qy_amt = #{qyAmt},
  719. </if>
  720. </set>
  721. <where>
  722. <if test="blogOpenid != null and blogOpenid !='' ">
  723. blog_openid = #{blogOpenid}
  724. </if>
  725. <if test="minaOpenid != null and minaOpenid !='' ">
  726. mina_openid = #{minaOpenid}
  727. </if>
  728. <if test="stationId != null and stationId !='' ">
  729. AND station_id = #{stationId}
  730. </if>
  731. </where>
  732. </update>
  733. <!-- 插入客户表 -->
  734. <insert id="insertCustomer" parameterType="com.platform.yijia.pojo.CustomerManage">
  735. INSERT INTO customer_manage
  736. <trim prefix="(" suffix=")" suffixOverrides=",">
  737. <if test="memberId !=null ">
  738. member_id,
  739. </if>
  740. <if test="customerName !=null ">
  741. customer_name,
  742. </if>
  743. <if test="commendMan !=null ">
  744. commend_man,
  745. </if>
  746. <if test="memberGrade !=null ">
  747. member_grade,
  748. </if>
  749. <if test="phoneNumber !=null ">
  750. phone_number,
  751. </if>
  752. <if test="carNumber !=null ">
  753. car_number,
  754. </if>
  755. <if test="balance !=null ">
  756. balance,
  757. </if>
  758. <if test="integral !=null ">
  759. integral,
  760. </if>
  761. <if test="specialCarType !=null ">
  762. specialCarType,
  763. </if>
  764. <if test="regtime !=null ">
  765. regtime,
  766. </if>
  767. <if test="stationId !=null ">
  768. station_id,
  769. </if>
  770. <if test="stationName !=null ">
  771. station_name,
  772. </if>
  773. <if test="cyGrade !=null ">
  774. cy_grade,
  775. </if>
  776. <if test="qyGrade !=null ">
  777. qy_grade,
  778. </if>
  779. <if test="cyLiters !=null ">
  780. cy_liters,
  781. </if>
  782. <if test="qyLiters !=null ">
  783. qy_liters,
  784. </if>
  785. <if test="cyAmt !=null ">
  786. cy_amt,
  787. </if>
  788. <if test="qyAmt !=null ">
  789. qy_amt,
  790. </if>
  791. <if test="blogOpenid !=null ">
  792. blog_openid,
  793. </if>
  794. <if test="minaOpenid !=null ">
  795. mina_openid,
  796. </if>
  797. <if test="blogUserId !=null ">
  798. blog_user_id,
  799. </if>
  800. <if test="minaUserId !=null ">
  801. mina_user_id
  802. </if>
  803. </trim>
  804. <trim prefix="values (" suffix=")" suffixOverrides=",">
  805. <if test="memberId !=null ">
  806. #{memberId},
  807. </if>
  808. <if test="customerName !=null ">
  809. #{customerName},
  810. </if>
  811. <if test="commendMan !=null ">
  812. #{commendMan},
  813. </if>
  814. <if test="memberGrade !=null ">
  815. #{memberGrade},
  816. </if>
  817. <if test="phoneNumber !=null ">
  818. #{phoneNumber},
  819. </if>
  820. <if test="carNumber !=null ">
  821. #{carNumber},
  822. </if>
  823. <if test="balance !=null ">
  824. #{balance},
  825. </if>
  826. <if test="integral !=null ">
  827. #{integral},
  828. </if>
  829. <if test="specialCarType !=null ">
  830. #{specialCarType},
  831. </if>
  832. <if test="regtime !=null ">
  833. #{regtime},
  834. </if>
  835. <if test="stationId !=null ">
  836. #{stationId, jdbcType=INTEGER},
  837. </if>
  838. <if test="stationName !=null ">
  839. #{stationName, jdbcType=VARCHAR},
  840. </if>
  841. <if test="cyGrade !=null ">
  842. #{cyGrade},
  843. </if>
  844. <if test="qyGrade !=null ">
  845. #{qyGrade},
  846. </if>
  847. <if test="cyLiters !=null ">
  848. #{cyLiters},
  849. </if>
  850. <if test="qyLiters !=null ">
  851. #{qyLiters},
  852. </if>
  853. <if test="cyAmt !=null ">
  854. #{cyAmt},
  855. </if>
  856. <if test="qyAmt !=null ">
  857. #{qyAmt},
  858. </if>
  859. <if test="blogOpenid !=null ">
  860. #{blogOpenid},
  861. </if>
  862. <if test="minaOpenid !=null ">
  863. #{minaOpenid, jdbcType=VARCHAR},
  864. </if>
  865. <if test="blogUserId !=null ">
  866. #{blogUserId, jdbcType=INTEGER},
  867. </if>
  868. <if test="minaUserId !=null ">
  869. #{minaUserId, jdbcType=INTEGER}
  870. </if>
  871. </trim>
  872. </insert>
  873. <update id="updateByExample" parameterType="map">
  874. <!--
  875. WARNING - @mbg.generated
  876. This element is automatically generated by MyBatis Generator, do not modify.
  877. -->
  878. update pay_order
  879. set order_id = #{record.orderId,jdbcType=INTEGER},
  880. order_no = #{record.orderNo,jdbcType=VARCHAR},
  881. oil_gun = #{record.oilGun,jdbcType=VARCHAR},
  882. oil_name = #{record.oilName,jdbcType=VARCHAR},
  883. oil_pirce = #{record.oilPirce,jdbcType=VARCHAR},
  884. consumer_id = #{record.consumerId,jdbcType=INTEGER},
  885. consumer = #{record.consumer,jdbcType=VARCHAR},
  886. amt = #{record.amt,jdbcType=DOUBLE},
  887. station_id = #{record.stationId,jdbcType=INTEGER},
  888. status = #{record.status,jdbcType=VARCHAR},
  889. order_liters = #{record.orderLiters,jdbcType=VARCHAR},
  890. pay_type = #{record.payType,jdbcType=VARCHAR},
  891. pay_way = #{record.payWay,jdbcType=VARCHAR},
  892. pay_date = #{record.payDate,jdbcType=TIMESTAMP},
  893. oil_personnel = #{record.oilPersonnel,jdbcType=VARCHAR},
  894. created_date = #{record.createdDate,jdbcType=TIMESTAMP},
  895. order_type = #{record.orderType,jdbcType=CHAR},
  896. station_name = #{record.stationName,jdbcType=VARCHAR},
  897. receivable_amt = #{record.receivableAmt,jdbcType=DOUBLE},
  898. received_amt = #{record.receivedAmt,jdbcType=DOUBLE},
  899. discount_amt = #{record.discountAmt,jdbcType=DOUBLE},
  900. discount_coupon_amt = #{record.discountCouponAmt,jdbcType=DOUBLE},
  901. discount_coupon = #{record.discountCoupon,jdbcType=DOUBLE},
  902. wx_amt = #{record.wxAmt,jdbcType=DOUBLE},
  903. zfb_amt = #{record.zfbAmt,jdbcType=DOUBLE},
  904. pos_amt = #{record.posAmt,jdbcType=DOUBLE},
  905. xj_amt = #{record.xjAmt,jdbcType=DOUBLE},
  906. didi_app_amt = #{record.didiAppAmt,jdbcType=DOUBLE},
  907. ty_app_amt = #{record.tyAppAmt,jdbcType=DOUBLE},
  908. other_amt = #{record.otherAmt,jdbcType=DOUBLE},
  909. dzk_amt = #{record.dzkAmt,jdbcType=DOUBLE},
  910. score = #{record.score,jdbcType=INTEGER},
  911. member_no = #{record.memberNo,jdbcType=VARCHAR},
  912. member_amt = #{record.memberAmt,jdbcType=DOUBLE},
  913. print_count = #{record.printCount,jdbcType=INTEGER},
  914. car_no = #{record.carNo,jdbcType=VARCHAR},
  915. customer_phone = #{record.customerPhone,jdbcType=VARCHAR},
  916. customer_grade = #{record.customerGrade,jdbcType=VARCHAR},
  917. oil_type = #{record.oilType,jdbcType=VARCHAR}
  918. <if test="_parameter != null">
  919. <include refid="Update_By_Example_Where_Clause" />
  920. </if>
  921. </update>
  922. <update id="updateByPrimaryKeySelective" parameterType="com.platform.yijia.pojo.PayOrder">
  923. <!--
  924. WARNING - @mbg.generated
  925. This element is automatically generated by MyBatis Generator, do not modify.
  926. -->
  927. update pay_order
  928. <set>
  929. <if test="orderNo != null">
  930. order_no = #{orderNo,jdbcType=VARCHAR},
  931. </if>
  932. <if test="oilGun != null">
  933. oil_gun = #{oilGun,jdbcType=VARCHAR},
  934. </if>
  935. <if test="oilName != null">
  936. oil_name = #{oilName,jdbcType=VARCHAR},
  937. </if>
  938. <if test="oilPirce != null">
  939. oil_pirce = #{oilPirce,jdbcType=VARCHAR},
  940. </if>
  941. <if test="consumerId != null">
  942. consumer_id = #{consumerId,jdbcType=INTEGER},
  943. </if>
  944. <if test="consumer != null">
  945. consumer = #{consumer,jdbcType=VARCHAR},
  946. </if>
  947. <if test="amt != null">
  948. amt = #{amt,jdbcType=DOUBLE},
  949. </if>
  950. <if test="stationId != null">
  951. station_id = #{stationId,jdbcType=INTEGER},
  952. </if>
  953. <if test="status != null">
  954. status = #{status,jdbcType=VARCHAR},
  955. </if>
  956. <if test="orderLiters != null">
  957. order_liters = #{orderLiters,jdbcType=VARCHAR},
  958. </if>
  959. <if test="payType != null">
  960. pay_type = #{payType,jdbcType=VARCHAR},
  961. </if>
  962. <if test="payWay != null">
  963. pay_way = #{payWay,jdbcType=VARCHAR},
  964. </if>
  965. <if test="payDate != null">
  966. pay_date = #{payDate,jdbcType=TIMESTAMP},
  967. </if>
  968. <if test="oilPersonnel != null">
  969. oil_personnel = #{oilPersonnel,jdbcType=VARCHAR},
  970. </if>
  971. <if test="createdDate != null">
  972. created_date = #{createdDate,jdbcType=TIMESTAMP},
  973. </if>
  974. <if test="orderType != null">
  975. order_type = #{orderType,jdbcType=CHAR},
  976. </if>
  977. <if test="stationName != null">
  978. station_name = #{stationName,jdbcType=CHAR},
  979. </if>
  980. <if test="receivableAmt != null">
  981. receivable_amt = #{receivableAmt,jdbcType=DOUBLE},
  982. </if>
  983. <if test="receivedAmt != null">
  984. received_amt = #{receivedAmt,jdbcType=DOUBLE},
  985. </if>
  986. <if test="discountAmt != null">
  987. discount_amt = #{discountAmt,jdbcType=DOUBLE},
  988. </if>
  989. <if test="discountCouponAmt != null">
  990. discount_coupon_amt = #{discountCouponAmt,jdbcType=DOUBLE},
  991. </if>
  992. <if test="discountCoupon != null">
  993. discount_coupon = #{discountCoupon,jdbcType=VARCHAR},
  994. </if>
  995. <if test="wxAmt != null">
  996. wx_amt = #{wxAmt,jdbcType=DOUBLE},
  997. </if>
  998. <if test="zfbAmt != null">
  999. zfb_amt = #{zfbAmt,jdbcType=DOUBLE},
  1000. </if>
  1001. <if test="posAmt != null">
  1002. pos_amt = #{posAmt,jdbcType=DOUBLE},
  1003. </if>
  1004. <if test="xjAmt != null">
  1005. xj_amt = #{xjAmt,jdbcType=DOUBLE},
  1006. </if>
  1007. <if test="didiAppAmt != null">
  1008. didi_app_amt = #{didiAppAmt,jdbcType=DOUBLE},
  1009. </if>
  1010. <if test="tyAppAmt != null">
  1011. ty_app_amt = #{tyAppAmt,jdbcType=DOUBLE},
  1012. </if>
  1013. <if test="otherAmt != null">
  1014. other_amt = #{otherAmt,jdbcType=DOUBLE},
  1015. </if>
  1016. <if test="dzkAmt != null">
  1017. dzk_amt = #{dzkAmt,jdbcType=DOUBLE},
  1018. </if>
  1019. <if test="score != null">
  1020. score = #{score,jdbcType=INTEGER},
  1021. </if>
  1022. <if test="memberNo != null">
  1023. member_no = #{memberNo,jdbcType=VARCHAR},
  1024. </if>
  1025. <if test="memberAmt != null">
  1026. member_amt = #{memberAmt,jdbcType=DOUBLE},
  1027. </if>
  1028. <if test="printCount != null">
  1029. print_count = #{printCount,jdbcType=INTEGER},
  1030. </if>
  1031. <if test="carNo != null">
  1032. car_no = #{carNo,jdbcType=VARCHAR},
  1033. </if>
  1034. <if test="customerPhone != null">
  1035. customer_phone = #{customerPhone,jdbcType=VARCHAR},
  1036. </if>
  1037. <if test="oilType != null">
  1038. oil_type = #{oilType,jdbcType=VARCHAR}
  1039. </if>
  1040. </set>
  1041. where order_id = #{orderId,jdbcType=INTEGER}
  1042. </update>
  1043. <update id="updateByPrimaryKey" parameterType="com.platform.yijia.pojo.PayOrder">
  1044. <!--
  1045. WARNING - @mbg.generated
  1046. This element is automatically generated by MyBatis Generator, do not modify.
  1047. -->
  1048. update pay_order
  1049. set order_no = #{orderNo,jdbcType=VARCHAR},
  1050. oil_gun = #{oilGun,jdbcType=VARCHAR},
  1051. oil_name = #{oilName,jdbcType=VARCHAR},
  1052. oil_pirce = #{oilPirce,jdbcType=VARCHAR},
  1053. consumer_id = #{consumerId,jdbcType=INTEGER},
  1054. consumer = #{consumer,jdbcType=VARCHAR},
  1055. amt = #{amt,jdbcType=VARCHAR},
  1056. station_id = #{stationId,jdbcType=INTEGER},
  1057. status = #{status,jdbcType=VARCHAR},
  1058. order_liters = #{orderLiters,jdbcType=VARCHAR},
  1059. pay_type = #{payType,jdbcType=VARCHAR},
  1060. pay_way = #{payWay,jdbcType=VARCHAR},
  1061. pay_date = #{payDate,jdbcType=TIMESTAMP},
  1062. oil_personnel = #{oilPersonnel,jdbcType=VARCHAR},
  1063. created_date = #{createdDate,jdbcType=TIMESTAMP},
  1064. order_type = #{orderType,jdbcType=CHAR}
  1065. station_name = #{stationName,jdbcType=VARCHAR},
  1066. receivable_amt = #{receivableAmt,jdbcType=DOUBLE},
  1067. received_amt = #{receivedAmt,jdbcType=DOUBLE},
  1068. discount_amt = #{discountAmt,jdbcType=DOUBLE},
  1069. discount_coupon_amt = #{discountCouponAmt,jdbcType=DOUBLE},
  1070. discount_coupon = #{discountCoupon,jdbcType=DOUBLE},
  1071. wx_amt = #{wxAmt,jdbcType=DOUBLE},
  1072. zfb_amt = #{zfbAmt,jdbcType=DOUBLE},
  1073. pos_amt = #{posAmt,jdbcType=DOUBLE},
  1074. xj_amt = #{xjAmt,jdbcType=DOUBLE},
  1075. didi_app_amt = #{didiAppAmt,jdbcType=DOUBLE},
  1076. ty_app_amt = #{tyAppAmt,jdbcType=DOUBLE},
  1077. other_amt = #{otherAmt,jdbcType=DOUBLE},
  1078. dzk_amt = #{dzkAmt,jdbcType=DOUBLE},
  1079. score = #{score,jdbcType=INTEGER},
  1080. member_no = #{memberNo,jdbcType=VARCHAR},
  1081. member_amt = #{memberAmt,jdbcType=DOUBLE},
  1082. print_count = #{printCount,jdbcType=INTEGER},
  1083. car_no = #{carNo,jdbcType=VARCHAR},
  1084. customer_phone = #{customerPhone,jdbcType=VARCHAR},
  1085. customer_grade = #{customerGrade,jdbcType=VARCHAR},
  1086. oil_type = #{oilType,jdbcType=VARCHAR}
  1087. where order_id = #{orderId,jdbcType=INTEGER}
  1088. </update>
  1089. </mapper>