PayOrderMapper.xml 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159
  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. #{receivable_amt,jdbcType=DOUBLE},
  440. </if>
  441. <if test="receivedAmt != null">
  442. #{received_amt,jdbcType=DOUBLE},
  443. </if>
  444. <if test="discountAmt != null">
  445. #{discount_amt,jdbcType=DOUBLE},
  446. </if>
  447. <if test="discountCouponAmt != null">
  448. #{discount_coupon_amt,jdbcType=DOUBLE},
  449. </if>
  450. <if test="discountCoupon != null">
  451. #{discount_coupon,jdbcType=VARCHAR},
  452. </if>
  453. <if test="wxAmt != null">
  454. #{wx_amt,jdbcType=DOUBLE},
  455. </if>
  456. <if test="zfbAmt != null">
  457. #{zfb_amt,jdbcType=DOUBLE},
  458. </if>
  459. <if test="posAmt != null">
  460. #{pos_amt,jdbcType=DOUBLE},
  461. </if>
  462. <if test="xjAmt != null">
  463. #{xj_amt,jdbcType=DOUBLE},
  464. </if>
  465. <if test="didiAppAmt != null">
  466. #{didi_app_amt,jdbcType=DOUBLE},
  467. </if>
  468. <if test="tyAppAmt != null">
  469. #{ty_app_amt,jdbcType=DOUBLE},
  470. </if>
  471. <if test="otherAmt != null">
  472. #{other_amt,jdbcType=DOUBLE},
  473. </if>
  474. <if test="dzkAmt != null">
  475. #{dzk_amt,jdbcType=DOUBLE},
  476. </if>
  477. <if test="score != null">
  478. #{score,jdbcType=INTEGER},
  479. </if>
  480. <if test="memberNo != null">
  481. #{member_no,jdbcType=VARCHAR},
  482. </if>
  483. <if test="memberAmt != null">
  484. #{member_amt,jdbcType=DOUBLE},
  485. </if>
  486. <if test="printCount != null">
  487. #{print_count,jdbcType=INTEGER},
  488. </if>
  489. <if test="carNo != null">
  490. #{car_no,jdbcType=VARCHAR},
  491. </if>
  492. <if test="customerPhone != null">
  493. #{customer_phone,jdbcType=VARCHAR},
  494. </if>
  495. <if test="customerGrade != null">
  496. #{customer_grade,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. <where>
  721. <if test="blogOpenid !=null and blogOpenid !='' ">
  722. blog_openid = #{blogOpenid} AND
  723. </if>
  724. <if test="minaOpenid !=null and minaOpenid !='' ">
  725. mina_openid = #{minaOpenid} AND
  726. </if>
  727. <if test="stationId !=null and stationId !='' ">
  728. station_id = #{stationId}
  729. </if>
  730. </where>
  731. </update>
  732. <!-- 插入客户表 -->
  733. <insert id="insertCustomer" parameterType="com.platform.yijia.pojo.CustomerManage">
  734. INSERT INTO customer_manage
  735. <trim prefix="(" suffix=")" suffixOverrides=",">
  736. <if test="memberId !=null ">
  737. member_id,
  738. </if>
  739. <if test="customerName !=null ">
  740. customer_name,
  741. </if>
  742. <if test="commendMan !=null ">
  743. commend_man,
  744. </if>
  745. <if test="memberGrade !=null ">
  746. member_grade,
  747. </if>
  748. <if test="phoneNumber !=null ">
  749. phone_number,
  750. </if>
  751. <if test="carNumber !=null ">
  752. car_number,
  753. </if>
  754. <if test="balance !=null ">
  755. balance,
  756. </if>
  757. <if test="integral !=null ">
  758. integral,
  759. </if>
  760. <if test="specialCarType !=null ">
  761. specialCarType,
  762. </if>
  763. <if test="regtime !=null ">
  764. regtime,
  765. </if>
  766. <if test="stationId !=null ">
  767. station_id,
  768. </if>
  769. <if test="stationName !=null ">
  770. station_name,
  771. </if>
  772. <if test="cyGrade !=null ">
  773. cy_grade,
  774. </if>
  775. <if test="qyGrade !=null ">
  776. qy_grade,
  777. </if>
  778. <if test="cyLiters !=null ">
  779. cy_liters,
  780. </if>
  781. <if test="qyLiters !=null ">
  782. qy_liters,
  783. </if>
  784. <if test="cyAmt !=null ">
  785. cy_amt,
  786. </if>
  787. <if test="qyAmt !=null ">
  788. qy_amt,
  789. </if>
  790. <if test="blogOpenid !=null ">
  791. blog_openid,
  792. </if>
  793. <if test="minaOpenid !=null ">
  794. mina_openid,
  795. </if>
  796. <if test="blogUserId !=null ">
  797. blog_user_id,
  798. </if>
  799. <if test="minaUserId !=null ">
  800. mina_user_id
  801. </if>
  802. </trim>
  803. <trim prefix="values (" suffix=")" suffixOverrides=",">
  804. <if test="memberId !=null ">
  805. #{memberId},
  806. </if>
  807. <if test="customerName !=null ">
  808. #{customerName},
  809. </if>
  810. <if test="commendMan !=null ">
  811. #{commendMan},
  812. </if>
  813. <if test="memberGrade !=null ">
  814. #{memberGrade},
  815. </if>
  816. <if test="phoneNumber !=null ">
  817. #{phoneNumber},
  818. </if>
  819. <if test="carNumber !=null ">
  820. #{carNumber},
  821. </if>
  822. <if test="balance !=null ">
  823. #{balance},
  824. </if>
  825. <if test="integral !=null ">
  826. #{integral},
  827. </if>
  828. <if test="specialCarType !=null ">
  829. #{specialCarType},
  830. </if>
  831. <if test="regtime !=null ">
  832. #{regtime},
  833. </if>
  834. <if test="stationId !=null ">
  835. #{stationId, jdbcType=INTEGER},
  836. </if>
  837. <if test="stationName !=null ">
  838. #{stationName, jdbcType=VARCHAR},
  839. </if>
  840. <if test="cyGrade !=null ">
  841. #{cyGrade},
  842. </if>
  843. <if test="qyGrade !=null ">
  844. #{qyGrade},
  845. </if>
  846. <if test="cyLiters !=null ">
  847. #{cyLiters},
  848. </if>
  849. <if test="qyLiters !=null ">
  850. #{qyLiters},
  851. </if>
  852. <if test="cyAmt !=null ">
  853. #{cyAmt},
  854. </if>
  855. <if test="qyAmt !=null ">
  856. #{qyAmt},
  857. </if>
  858. <if test="blogOpenid !=null ">
  859. #{blogOpenid},
  860. </if>
  861. <if test="minaOpenid !=null ">
  862. #{minaOpenid, jdbcType=VARCHAR},
  863. </if>
  864. <if test="blogUserId !=null ">
  865. #{blogUserId, jdbcType=INTEGER},
  866. </if>
  867. <if test="minaUserId !=null ">
  868. #{minaUserId, jdbcType=INTEGER}
  869. </if>
  870. </trim>
  871. </insert>
  872. <update id="updateByExample" parameterType="map">
  873. <!--
  874. WARNING - @mbg.generated
  875. This element is automatically generated by MyBatis Generator, do not modify.
  876. -->
  877. update pay_order
  878. set order_id = #{record.orderId,jdbcType=INTEGER},
  879. order_no = #{record.orderNo,jdbcType=VARCHAR},
  880. oil_gun = #{record.oilGun,jdbcType=VARCHAR},
  881. oil_name = #{record.oilName,jdbcType=VARCHAR},
  882. oil_pirce = #{record.oilPirce,jdbcType=VARCHAR},
  883. consumer_id = #{record.consumerId,jdbcType=INTEGER},
  884. consumer = #{record.consumer,jdbcType=VARCHAR},
  885. amt = #{record.amt,jdbcType=DOUBLE},
  886. station_id = #{record.stationId,jdbcType=INTEGER},
  887. status = #{record.status,jdbcType=VARCHAR},
  888. order_liters = #{record.orderLiters,jdbcType=VARCHAR},
  889. pay_type = #{record.payType,jdbcType=VARCHAR},
  890. pay_way = #{record.payWay,jdbcType=VARCHAR},
  891. pay_date = #{record.payDate,jdbcType=TIMESTAMP},
  892. oil_personnel = #{record.oilPersonnel,jdbcType=VARCHAR},
  893. created_date = #{record.createdDate,jdbcType=TIMESTAMP},
  894. order_type = #{record.orderType,jdbcType=CHAR},
  895. station_name = #{record.stationName,jdbcType=VARCHAR},
  896. receivable_amt = #{record.receivableAmt,jdbcType=DOUBLE},
  897. received_amt = #{record.receivedAmt,jdbcType=DOUBLE},
  898. discount_amt = #{record.discountAmt,jdbcType=DOUBLE},
  899. discount_coupon_amt = #{record.discountCouponAmt,jdbcType=DOUBLE},
  900. discount_coupon = #{record.discountCoupon,jdbcType=DOUBLE},
  901. wx_amt = #{record.wxAmt,jdbcType=DOUBLE},
  902. zfb_amt = #{record.zfbAmt,jdbcType=DOUBLE},
  903. pos_amt = #{record.posAmt,jdbcType=DOUBLE},
  904. xj_amt = #{record.xjAmt,jdbcType=DOUBLE},
  905. didi_app_amt = #{record.didiAppAmt,jdbcType=DOUBLE},
  906. ty_app_amt = #{record.tyAppAmt,jdbcType=DOUBLE},
  907. other_amt = #{record.otherAmt,jdbcType=DOUBLE},
  908. dzk_amt = #{record.dzkAmt,jdbcType=DOUBLE},
  909. score = #{record.score,jdbcType=INTEGER},
  910. member_no = #{record.memberNo,jdbcType=VARCHAR},
  911. member_amt = #{record.memberAmt,jdbcType=DOUBLE},
  912. print_count = #{record.printCount,jdbcType=INTEGER},
  913. car_no = #{record.carNo,jdbcType=VARCHAR},
  914. customer_phone = #{record.customerPhone,jdbcType=VARCHAR},
  915. customer_grade = #{record.customerGrade,jdbcType=VARCHAR},
  916. oil_type = #{record.oilType,jdbcType=VARCHAR}
  917. <if test="_parameter != null">
  918. <include refid="Update_By_Example_Where_Clause" />
  919. </if>
  920. </update>
  921. <update id="updateByPrimaryKeySelective" parameterType="com.platform.yijia.pojo.PayOrder">
  922. <!--
  923. WARNING - @mbg.generated
  924. This element is automatically generated by MyBatis Generator, do not modify.
  925. -->
  926. update pay_order
  927. <set>
  928. <if test="orderNo != null">
  929. order_no = #{orderNo,jdbcType=VARCHAR},
  930. </if>
  931. <if test="oilGun != null">
  932. oil_gun = #{oilGun,jdbcType=VARCHAR},
  933. </if>
  934. <if test="oilName != null">
  935. oil_name = #{oilName,jdbcType=VARCHAR},
  936. </if>
  937. <if test="oilPirce != null">
  938. oil_pirce = #{oilPirce,jdbcType=VARCHAR},
  939. </if>
  940. <if test="consumerId != null">
  941. consumer_id = #{consumerId,jdbcType=INTEGER},
  942. </if>
  943. <if test="consumer != null">
  944. consumer = #{consumer,jdbcType=VARCHAR},
  945. </if>
  946. <if test="amt != null">
  947. amt = #{amt,jdbcType=DOUBLE},
  948. </if>
  949. <if test="stationId != null">
  950. station_id = #{stationId,jdbcType=INTEGER},
  951. </if>
  952. <if test="status != null">
  953. status = #{status,jdbcType=VARCHAR},
  954. </if>
  955. <if test="orderLiters != null">
  956. order_liters = #{orderLiters,jdbcType=VARCHAR},
  957. </if>
  958. <if test="payType != null">
  959. pay_type = #{payType,jdbcType=VARCHAR},
  960. </if>
  961. <if test="payWay != null">
  962. pay_way = #{payWay,jdbcType=VARCHAR},
  963. </if>
  964. <if test="payDate != null">
  965. pay_date = #{payDate,jdbcType=TIMESTAMP},
  966. </if>
  967. <if test="oilPersonnel != null">
  968. oil_personnel = #{oilPersonnel,jdbcType=VARCHAR},
  969. </if>
  970. <if test="createdDate != null">
  971. created_date = #{createdDate,jdbcType=TIMESTAMP},
  972. </if>
  973. <if test="orderType != null">
  974. order_type = #{orderType,jdbcType=CHAR},
  975. </if>
  976. <if test="stationName != null">
  977. station_name = #{stationName,jdbcType=CHAR},
  978. </if>
  979. <if test="receivableAmt != null">
  980. receivable_amt = #{receivableAmt,jdbcType=DOUBLE},
  981. </if>
  982. <if test="receivedAmt != null">
  983. received_amt = #{receivedAmt,jdbcType=DOUBLE},
  984. </if>
  985. <if test="discountAmt != null">
  986. discount_amt = #{discountAmt,jdbcType=DOUBLE},
  987. </if>
  988. <if test="discountCouponAmt != null">
  989. discount_coupon_amt = #{discountCouponAmt,jdbcType=DOUBLE},
  990. </if>
  991. <if test="discountCoupon != null">
  992. discount_coupon = #{discountCoupon,jdbcType=VARCHAR},
  993. </if>
  994. <if test="wxAmt != null">
  995. wx_amt = #{wxAmt,jdbcType=DOUBLE},
  996. </if>
  997. <if test="zfbAmt != null">
  998. zfb_amt = #{zfbAmt,jdbcType=DOUBLE},
  999. </if>
  1000. <if test="posAmt != null">
  1001. pos_amt = #{posAmt,jdbcType=DOUBLE},
  1002. </if>
  1003. <if test="xjAmt != null">
  1004. xj_amt = #{xjAmt,jdbcType=DOUBLE},
  1005. </if>
  1006. <if test="didiAppAmt != null">
  1007. didi_app_amt = #{didiAppAmt,jdbcType=DOUBLE},
  1008. </if>
  1009. <if test="tyAppAmt != null">
  1010. ty_app_amt = #{tyAppAmt,jdbcType=DOUBLE},
  1011. </if>
  1012. <if test="otherAmt != null">
  1013. other_amt = #{otherAmt,jdbcType=DOUBLE},
  1014. </if>
  1015. <if test="dzkAmt != null">
  1016. dzk_amt = #{dzkAmt,jdbcType=DOUBLE},
  1017. </if>
  1018. <if test="score != null">
  1019. score = #{score,jdbcType=INTEGER},
  1020. </if>
  1021. <if test="memberNo != null">
  1022. member_no = #{memberNo,jdbcType=VARCHAR},
  1023. </if>
  1024. <if test="memberAmt != null">
  1025. member_amt = #{memberAmt,jdbcType=DOUBLE},
  1026. </if>
  1027. <if test="printCount != null">
  1028. print_count = #{printCount,jdbcType=INTEGER},
  1029. </if>
  1030. <if test="carNo != null">
  1031. car_no = #{carNo,jdbcType=VARCHAR},
  1032. </if>
  1033. <if test="customerPhone != null">
  1034. customer_phone = #{customerPhone,jdbcType=VARCHAR},
  1035. </if>
  1036. <if test="oilType != null">
  1037. oil_type = #{oilType,jdbcType=VARCHAR}
  1038. </if>
  1039. </set>
  1040. where order_id = #{orderId,jdbcType=INTEGER}
  1041. </update>
  1042. <update id="updateByPrimaryKey" parameterType="com.platform.yijia.pojo.PayOrder">
  1043. <!--
  1044. WARNING - @mbg.generated
  1045. This element is automatically generated by MyBatis Generator, do not modify.
  1046. -->
  1047. update pay_order
  1048. set order_no = #{orderNo,jdbcType=VARCHAR},
  1049. oil_gun = #{oilGun,jdbcType=VARCHAR},
  1050. oil_name = #{oilName,jdbcType=VARCHAR},
  1051. oil_pirce = #{oilPirce,jdbcType=VARCHAR},
  1052. consumer_id = #{consumerId,jdbcType=INTEGER},
  1053. consumer = #{consumer,jdbcType=VARCHAR},
  1054. amt = #{amt,jdbcType=VARCHAR},
  1055. station_id = #{stationId,jdbcType=INTEGER},
  1056. status = #{status,jdbcType=VARCHAR},
  1057. order_liters = #{orderLiters,jdbcType=VARCHAR},
  1058. pay_type = #{payType,jdbcType=VARCHAR},
  1059. pay_way = #{payWay,jdbcType=VARCHAR},
  1060. pay_date = #{payDate,jdbcType=TIMESTAMP},
  1061. oil_personnel = #{oilPersonnel,jdbcType=VARCHAR},
  1062. created_date = #{createdDate,jdbcType=TIMESTAMP},
  1063. order_type = #{orderType,jdbcType=CHAR}
  1064. station_name = #{stationName,jdbcType=VARCHAR},
  1065. receivable_amt = #{receivableAmt,jdbcType=DOUBLE},
  1066. received_amt = #{receivedAmt,jdbcType=DOUBLE},
  1067. discount_amt = #{discountAmt,jdbcType=DOUBLE},
  1068. discount_coupon_amt = #{discountCouponAmt,jdbcType=DOUBLE},
  1069. discount_coupon = #{discountCoupon,jdbcType=DOUBLE},
  1070. wx_amt = #{wxAmt,jdbcType=DOUBLE},
  1071. zfb_amt = #{zfbAmt,jdbcType=DOUBLE},
  1072. pos_amt = #{posAmt,jdbcType=DOUBLE},
  1073. xj_amt = #{xjAmt,jdbcType=DOUBLE},
  1074. didi_app_amt = #{didiAppAmt,jdbcType=DOUBLE},
  1075. ty_app_amt = #{tyAppAmt,jdbcType=DOUBLE},
  1076. other_amt = #{otherAmt,jdbcType=DOUBLE},
  1077. dzk_amt = #{dzkAmt,jdbcType=DOUBLE},
  1078. score = #{score,jdbcType=INTEGER},
  1079. member_no = #{memberNo,jdbcType=VARCHAR},
  1080. member_amt = #{memberAmt,jdbcType=DOUBLE},
  1081. print_count = #{printCount,jdbcType=INTEGER},
  1082. car_no = #{carNo,jdbcType=VARCHAR},
  1083. customer_phone = #{customerPhone,jdbcType=VARCHAR},
  1084. customer_grade = #{customerGrade,jdbcType=VARCHAR},
  1085. oil_type = #{oilType,jdbcType=VARCHAR}
  1086. where order_id = #{orderId,jdbcType=INTEGER}
  1087. </update>
  1088. </mapper>