CmCouponMapper.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670
  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.caimei.modules.coupon.dao.CmCouponDao">
  4. <sql id="cmCouponColumns">
  5. a.id AS "id",
  6. a.name AS "name",
  7. a.couponAmount AS "couponAmount",
  8. a.touchPrice AS "touchPrice",
  9. a.startDate AS "startDate",
  10. a.endDate AS "endDate",
  11. a.receivePeriod,
  12. a.receiveFlag,
  13. a.usePeriod,
  14. a.useTimeFlag,
  15. a.status AS "status",
  16. a.couponType AS "couponType",
  17. a.vipFlag AS "vipFlag",
  18. a.userId AS "userId",
  19. a.shopId AS "shopId",
  20. a.productType AS "productType",
  21. a.pcBanner AS "pcBanner",
  22. a.appletsBanner AS "appletsBanner",
  23. a.categoryType AS "categoryType",
  24. a.couponsMode AS "couponsMode",
  25. a.moneyCouponPrice AS "moneyCouponPrice",
  26. a.moneyCouponFlag AS "moneyCouponFlag",
  27. a.moneyCouponType as "moneyCouponType",
  28. a.createDate AS "createDate",
  29. a.couponPayWay as "couponPayWay",
  30. a.delFlag AS "delFlag"
  31. </sql>
  32. <sql id="cmCouponJoins">
  33. </sql>
  34. <select id="get" resultType="CmCoupon">
  35. SELECT
  36. <include refid="cmCouponColumns"/>
  37. FROM cm_coupon a
  38. <include refid="cmCouponJoins"/>
  39. WHERE a.id = #{id}
  40. </select>
  41. <select id="findList" resultType="CmCoupon">
  42. SELECT
  43. <include refid="cmCouponColumns"/>,
  44. u.name AS "clubName",
  45. s.name AS "shopName"
  46. FROM cm_coupon a
  47. LEFT JOIN cm_coupon_club ccc ON ccc.couponId = a.id
  48. LEFT JOIN USER u ON u.userID = a.userId
  49. LEFT JOIN shop s ON s.shopID = a.shopId
  50. <include refid="cmCouponJoins"/>
  51. <where>
  52. AND a.delFlag = 0 AND a.vipFlag != '1'
  53. <if test="couponType != null and couponType != 5">
  54. AND a.couponType = #{couponType}
  55. </if>
  56. <if test="moneyCouponFlag != null and moneyCouponFlag > 0">
  57. AND a.moneyCouponFlag = #{moneyCouponFlag}
  58. </if>
  59. <if test="couponPayWay != null">
  60. AND a.couponPayWay = #{couponPayWay}
  61. </if>
  62. <if test="name != null and name != ''">
  63. AND a.name LIKE
  64. <if test="dbName == 'oracle'">'%'||#{name}||'%'</if>
  65. <if test="dbName == 'mssql'">'%'+#{name}+'%'</if>
  66. <if test="dbName == 'mysql'">concat('%',#{name},'%')</if>
  67. </if>
  68. <if test="startDate != null and startDate != ''">
  69. AND a.startDate <![CDATA[ >= ]]> #{startDate}
  70. </if>
  71. <if test="endDate != null and endDate != ''">
  72. AND a.endDate <![CDATA[ <= ]]> #{endDate}
  73. </if>
  74. <if test='status == "0"'>
  75. AND a.startDate <![CDATA[ > ]]> NOW()
  76. </if>
  77. <if test='status == "1"'>
  78. AND a.startDate <![CDATA[ <= ]]> NOW()
  79. AND a.endDate <![CDATA[ >= ]]> NOW()
  80. AND a.status != '2'
  81. </if>
  82. <if test='status == "2"'>
  83. AND a.status = '2'
  84. </if>
  85. <if test='status == "3"'>
  86. AND a.endDate <![CDATA[ < ]]> NOW()
  87. </if>
  88. <if test="clubName != null and clubName != ''">
  89. AND u.name LIKE concat('%',#{clubName},'%')
  90. </if>
  91. <if test='claimStatus == "1"'>
  92. AND ccc.id IS NULL
  93. </if>
  94. <if test='claimStatus == "2"'>
  95. AND ccc.id IS NOT NULL
  96. </if>
  97. <if test='useStatus == "1"'>
  98. AND (ccc.status IS NULL OR ccc.status = #{useStatus})
  99. </if>
  100. <if test='useStatus == "2"'>
  101. AND ccc.status = #{useStatus}
  102. </if>
  103. <if test="source != null and source != ''">
  104. AND ccc.source = #{source}
  105. </if>
  106. <if test="shopName != null and shopName != ''">
  107. AND s.name LIKE concat('%',#{shopName},'%')
  108. </if>
  109. <if test="couponsMode != null and couponsMode != ''">
  110. AND a.couponsMode = #{couponsMode}
  111. </if>
  112. </where>
  113. GROUP BY a.id
  114. <choose>
  115. <when test="page !=null and page.orderBy != null and page.orderBy != ''">
  116. ORDER BY ${page.orderBy}
  117. </when>
  118. <otherwise>
  119. ORDER BY createDate DESC
  120. </otherwise>
  121. </choose>
  122. </select>
  123. <select id="findAllList" resultType="CmCoupon">
  124. SELECT
  125. <include refid="cmCouponColumns"/>
  126. FROM cm_coupon a
  127. <include refid="cmCouponJoins"/>
  128. <where>
  129. </where>
  130. <choose>
  131. <when test="page !=null and page.orderBy != null and page.orderBy != ''">
  132. ORDER BY ${page.orderBy}
  133. </when>
  134. <otherwise>
  135. </otherwise>
  136. </choose>
  137. </select>
  138. <insert id="insert" parameterType="CmCoupon" keyProperty="id" useGeneratedKeys="true">
  139. INSERT INTO cm_coupon(
  140. name,
  141. couponPayWay,
  142. couponAmount,
  143. touchPrice,
  144. startDate,
  145. endDate,
  146. receivePeriod,
  147. receiveFlag,
  148. useTimeFlag,
  149. usePeriod,
  150. status,
  151. couponType,
  152. vipFlag,
  153. userId,
  154. shopId,
  155. productType,
  156. pcBanner,
  157. appletsBanner,
  158. categoryType,
  159. couponsMode,
  160. createDate,
  161. moneyCouponPrice,
  162. moneyCouponFlag,
  163. moneyCouponType,
  164. delFlag,
  165. configure
  166. ) VALUES (
  167. #{name},
  168. #{couponPayWay},
  169. #{couponAmount},
  170. #{touchPrice},
  171. #{startDate},
  172. #{endDate},
  173. #{receivePeriod},
  174. #{receiveFlag},
  175. #{useTimeFlag},
  176. #{usePeriod},
  177. #{status},
  178. #{couponType},
  179. #{vipFlag},
  180. #{userId},
  181. #{shopId},
  182. #{productType},
  183. #{pcBanner},
  184. #{appletsBanner},
  185. #{categoryType},
  186. #{couponsMode},
  187. #{createDate},
  188. #{moneyCouponPrice},
  189. #{moneyCouponFlag},
  190. #{moneyCouponType},
  191. #{delFlag},
  192. #{configure}
  193. )
  194. </insert>
  195. <update id="update">
  196. UPDATE cm_coupon SET
  197. name = #{name},
  198. couponPayWay = #{couponPayWay},
  199. couponAmount = #{couponAmount},
  200. touchPrice = #{touchPrice},
  201. startDate = #{startDate},
  202. endDate = #{endDate},
  203. receivePeriod = #{receivePeriod},
  204. receiveFlag = #{receiveFlag},
  205. useTimeFlag = #{useTimeFlag},
  206. usePeriod = #{usePeriod},
  207. status = #{status},
  208. couponType = #{couponType},
  209. vipFlag = #{vipFlag},
  210. userId = #{userId},
  211. shopId = #{shopId},
  212. productType = #{productType},
  213. pcBanner = #{pcBanner},
  214. appletsBanner = #{appletsBanner},
  215. categoryType = #{categoryType},
  216. couponsMode = #{couponsMode},
  217. moneyCouponPrice = #{moneyCouponPrice},
  218. moneyCouponType = #{moneyCouponType},
  219. configure = #{configure}
  220. WHERE id = #{id}
  221. </update>
  222. <delete id="delete">
  223. DELETE FROM cm_coupon
  224. WHERE id = #{id}
  225. </delete>
  226. <select id="findByProductType" resultType="com.caimei.modules.coupon.entity.CmCouponAssociate">
  227. SELECT
  228. cca.id,
  229. cca.couponId,
  230. cca.productId,
  231. cca.pcStatus,
  232. cca.appletsStatus,
  233. cca.sort,
  234. cca.addTime,
  235. cca.delFlag,
  236. s.name AS shopName,
  237. p.name AS productName,
  238. p.mainImage AS image
  239. FROM
  240. cm_coupon_product cca
  241. LEFT JOIN product p ON cca.productId = p.productID
  242. LEFT JOIN shop s ON p.shopID = s.shopID
  243. WHERE
  244. cca.couponId = #{couponId}
  245. AND delFlag = 0
  246. ORDER BY
  247. - sort DESC
  248. </select>
  249. <insert id="insertCouponAssociate">
  250. INSERT INTO `cm_coupon_product` (
  251. `couponId`, `productId`, `pcStatus`,
  252. `appletsStatus`,
  253. `sort`, `addTime`, `delFlag`
  254. )
  255. VALUES
  256. (
  257. #{couponId}, #{productId}, #{pcStatus},
  258. #{appletsStatus},
  259. #{sort}, #{addTime}, #{delFlag}
  260. )
  261. </insert>
  262. <select id="findByCouponId" resultType="integer">
  263. SELECT id FROM cm_coupon_product WHERE couponId = #{couponId} AND delFlag = 0
  264. </select>
  265. <update id="updateCouponAssociate">
  266. UPDATE
  267. `cm_coupon_product`
  268. <set>
  269. <if test="pcStatus != null and pcStatus != ''">
  270. `pcStatus` = #{pcStatus},
  271. </if>
  272. <if test="appletsStatus != null and appletsStatus != ''">
  273. `appletsStatus` = #{appletsStatus},
  274. </if>
  275. <if test="sort != null">
  276. `sort` = #{sort},
  277. </if>
  278. </set>
  279. WHERE
  280. `id` = #{id}
  281. </update>
  282. <update id="logicDeleteCouponAssociate">
  283. UPDATE cm_coupon_product SET delFlag = 1 WHERE id = #{id}
  284. </update>
  285. <update id="updateByDelFlag">
  286. UPDATE cm_coupon SET delFlag = 1 WHERE id = #{couponId}
  287. </update>
  288. <update id="updateAssociateByDelFlag">
  289. UPDATE cm_coupon_product SET delFlag = 1 WHERE couponId = #{couponId}
  290. </update>
  291. <select id="findCouponClub" resultType="com.caimei.modules.coupon.entity.CmCouponClub">
  292. SELECT
  293. `userId`,
  294. `couponId`,
  295. orderId,
  296. `source`,
  297. `status`,
  298. `createDate`,
  299. `useDate`,
  300. `delFlag`
  301. FROM
  302. `cm_coupon_club`
  303. WHERE
  304. couponId = #{couponId}
  305. AND delFlag = 0
  306. LIMIT
  307. 1
  308. </select>
  309. <select id="findUserList" resultType="com.caimei.modules.user.entity.CmUser">
  310. SELECT
  311. c.clubID,
  312. c.userID,
  313. u.userName,
  314. u.bindMobile,
  315. u.name,
  316. u.userIdentity,
  317. c.sname AS shortName
  318. FROM
  319. club c
  320. LEFT JOIN USER u ON c.userID = u.userID
  321. WHERE
  322. c.status IN (1, 90)
  323. <if test="userID != null">
  324. AND u.userID = #{userID}
  325. </if>
  326. <if test="name != null and name != ''">
  327. AND u.name LIKE CONCAT('%',#{name},'%')
  328. </if>
  329. <if test="shortName != null and shortName != ''">
  330. AND c.sname LIKE CONCAT('%',#{shortName},'%')
  331. </if>
  332. ORDER BY
  333. userID ASC
  334. </select>
  335. <select id="findShopList" resultType="com.caimei.modules.user.entity.NewCmShop">
  336. SELECT
  337. s.shopID,
  338. s.userID,
  339. IFNULL(s.name, u.name) AS name,
  340. IFNULL(s.sname, u.realName) AS sname,
  341. IFNULL(s.contractMobile, u.bindMobile) AS contractMobile,
  342. IFNULL(s.linkMan, u.userName) AS linkMan
  343. FROM
  344. shop s
  345. LEFT JOIN USER u ON u.`shopID` = s.`shopID`
  346. WHERE
  347. s.status = 90
  348. <if test="shopID != null">
  349. AND s.shopID = #{shopID}
  350. </if>
  351. <if test="name != null and name != ''">
  352. AND (s.name LIKE CONCAT('%',#{name},'%') OR u.name LIKE CONCAT('%',#{name},'%'))
  353. </if>
  354. <if test="sname != null and sname != ''">
  355. AND (s.sname LIKE CONCAT('%',#{sname},'%') OR u.realName LIKE CONCAT('%',#{sname},'%'))
  356. </if>
  357. ORDER BY
  358. s.shopID
  359. </select>
  360. <select id="findRedemptionCodeNum" resultType="integer">
  361. SELECT COUNT(id) FROM cm_coupon_redemption_code WHERE couponId = #{couponId}
  362. </select>
  363. <select id="findByRedemptionCode" resultType="com.caimei.modules.coupon.entity.CmCouponRedemptionCode">
  364. SELECT
  365. `id`,
  366. `couponId`,
  367. `clubCouponId`,
  368. `redemptionCode`,
  369. `status`,
  370. `redemptionTime`,
  371. `addTime`
  372. FROM
  373. cm_coupon_redemption_code
  374. WHERE
  375. redemptionCode = #{redemptionCode}
  376. </select>
  377. <insert id="insertRedemptionCode">
  378. INSERT INTO `cm_coupon_redemption_code` (
  379. `couponId`,
  380. `clubCouponId`,
  381. `redemptionCode`,
  382. `status`,
  383. `redemptionTime`,
  384. `addTime`
  385. )
  386. VALUES
  387. (
  388. #{couponId},
  389. #{clubCouponId},
  390. #{redemptionCode},
  391. #{status},
  392. #{redemptionTime},
  393. #{addTime}
  394. )
  395. </insert>
  396. <select id="findRedemptionCode" resultType="com.caimei.modules.coupon.entity.CmCouponRedemptionCode">
  397. SELECT
  398. `id`,
  399. `couponId`,
  400. `clubCouponId`,
  401. `redemptionCode`,
  402. `status`,
  403. `redemptionTime`,
  404. `addTime`
  405. FROM
  406. cm_coupon_redemption_code
  407. WHERE
  408. couponId = #{couponId}
  409. <if test="status != null and status != ''">
  410. AND status = #{status}
  411. </if>
  412. ORDER BY
  413. addTime DESC
  414. </select>
  415. <select id="findQuantityRedeemed" resultType="integer">
  416. SELECT COUNT(id) FROM cm_coupon_redemption_code WHERE couponId = #{couponId} AND status = 2
  417. </select>
  418. <select id="findClubCouponList" resultType="com.caimei.modules.coupon.entity.CmCoupon">
  419. SELECT
  420. cc.`id`,
  421. cc.`name`,
  422. cc.`couponAmount`,
  423. cc.`touchPrice`,
  424. cc.`startDate`,
  425. cc.`endDate`,
  426. a.`createDate` as `receiveDate`,
  427. if(useTimeFlag = 1, cc.endDate,date_add(a.createDate,interval cc.usePeriod DAY)) as `useEndDate`,
  428. cc.`status`,
  429. cc.`couponType`,
  430. cc.`userId`,
  431. cc.`shopId`,
  432. cc.`productType`,
  433. cc.`pcBanner`,
  434. cc.`appletsBanner`,
  435. cc.`categoryType`,
  436. cc.`couponsMode`,
  437. cc.`createDate`,
  438. cc.`delFlag`,
  439. a.id AS clubCouponId,
  440. ccrc.redemptionCode
  441. FROM
  442. cm_coupon_club a
  443. LEFT JOIN cm_coupon cc ON a.couponId = cc.id
  444. LEFT JOIN cm_coupon_redemption_code ccrc ON a.id = ccrc.clubCouponId
  445. WHERE
  446. if(moneyCouponFlag=2,cc.delFlag = 0,cc.id>0)
  447. AND a.delFlag = 0
  448. AND a.userId = #{userId}
  449. AND a.status = 1
  450. AND NOW() <![CDATA[ < ]]> if(cc.usePeriod is null,cc.endDate,date_add(a.createDate,interval cc.usePeriod DAY))
  451. AND cc.status != 2
  452. ORDER BY
  453. a.createDate DESC
  454. </select>
  455. <select id="findAllProductId" resultType="integer">
  456. SELECT
  457. productId
  458. FROM
  459. cm_coupon_product
  460. WHERE
  461. couponId = #{couponId}
  462. AND (
  463. pcStatus = 1
  464. OR appletsStatus = 1
  465. )
  466. </select>
  467. <select id="findNotRedeemedCoupon" resultType="com.caimei.modules.coupon.entity.CmCoupon">
  468. SELECT
  469. a.`id`,
  470. a.`name`,
  471. a.`couponAmount`,
  472. a.`touchPrice`,
  473. a.`startDate`,
  474. a.`endDate`,
  475. a.`status`,
  476. a.`couponType`,
  477. a.`userId`,
  478. a.`shopId`,
  479. a.`productType`,
  480. a.`pcBanner`,
  481. a.`appletsBanner`,
  482. a.`categoryType`,
  483. a.`couponsMode`,
  484. a.`createDate`,
  485. a.`delFlag`,
  486. ccrc.redemptionCode
  487. FROM
  488. cm_coupon a
  489. LEFT JOIN cm_coupon_redemption_code ccrc ON a.id = ccrc.couponId
  490. WHERE
  491. a.status != 2
  492. AND a.moneyCouponFlag = 2
  493. AND a.delFlag = 0
  494. AND NOW() BETWEEN a.startDate
  495. AND a.endDate
  496. AND a.couponsMode = 1
  497. AND ccrc.status = 1
  498. </select>
  499. <select id="findCouponList" resultType="com.caimei.modules.coupon.entity.CmCoupon">
  500. SELECT
  501. cc.`id`,
  502. cc.`name`,
  503. cc.`couponAmount`,
  504. cc.`touchPrice`,
  505. cc.`startDate`,
  506. cc.`endDate`,
  507. cc.`status`,
  508. cc.`couponType`,
  509. cc.`userId`,
  510. cc.`shopId`,
  511. cc.`productType`,
  512. cc.`pcBanner`,
  513. cc.`appletsBanner`,
  514. cc.`categoryType`,
  515. cc.`couponsMode`,
  516. cc.`createDate`,
  517. cc.moneyCouponPrice,
  518. cc.`delFlag`
  519. FROM
  520. cm_coupon cc
  521. WHERE
  522. cc.id > 0
  523. AND cc.delFlag = 0
  524. AND cc.moneyCouponFlag = #{moneyCouponFlag}
  525. AND cc.status != 2
  526. AND cc.couponsMode = 0
  527. AND (couponType IN (0,1,3)
  528. OR (couponType = 2 AND userId = #{userId})
  529. OR ((SELECT registerTime FROM USER WHERE userID = #{userId}) <![CDATA[ >= ]]> startDate
  530. AND couponType = 4))
  531. AND NOW() <![CDATA[ < ]]> if(useTimeFlag = 1 or receiveFlag = 1,endDate,
  532. date_add(if((SELECT registerTime FROM USER WHERE userID = #{userId}) <![CDATA[ > ]]> startDate and (SELECT registerTime FROM USER WHERE userID = #{userId}) <![CDATA[ < ]]> endDate,(SELECT registerTime FROM USER WHERE userID = #{userId}),startDate),
  533. interval receivePeriod day))
  534. ORDER BY
  535. cc.couponAmount DESC
  536. </select>
  537. <update id="updateClubCoupon">
  538. UPDATE
  539. cm_coupon_club
  540. SET
  541. STATUS = 2,
  542. orderId = #{orderId},
  543. useDate = NOW()
  544. WHERE
  545. id = #{clubCouponId}
  546. </update>
  547. <select id="selconfigure" resultType="com.caimei.modules.coupon.entity.CmCoupon">
  548. SELECT <include refid="cmCouponColumns"/> FROM cm_coupon a WHERE configure = 1
  549. </select>
  550. <select id="selMonthTime" resultType="java.lang.String">
  551. SELECT cscm.useTime
  552. FROM cm_coupon a
  553. LEFT JOIN cm_svip_coupon csc ON a.id = csc.couponId
  554. LEFT JOIN cm_svip_coupon_month cscm ON csc.montId = cscm.id WHERE a.delFlag = 0 AND a.configure = 1 LIMIT 1
  555. </select>
  556. <select id="selCouponId" resultType="integer">
  557. SELECT cscm.id as id FROM cm_svip_coupon_month cscm LEFT JOIN cm_svip_coupon csc ON csc.montId = cscm.id WHERE csc.couponId = #{couponId}
  558. </select>
  559. <!--<insert id="insertConfigure">
  560. INSERT INTO cm_coupon_configure(
  561. name,
  562. couponPayWay,
  563. couponAmount,
  564. touchPrice,
  565. startDate,
  566. endDate,
  567. receivePeriod,
  568. receiveFlag,
  569. useTimeFlag,
  570. usePeriod,
  571. status,
  572. couponType,
  573. vipFlag,
  574. userId,
  575. shopId,
  576. productType,
  577. pcBanner,
  578. appletsBanner,
  579. categoryType,
  580. couponsMode,
  581. createDate,
  582. moneyCouponPrice,
  583. moneyCouponFlag,
  584. moneyCouponType,
  585. delFlag
  586. ) VALUES (
  587. #{name},
  588. #{couponPayWay},
  589. #{couponAmount},
  590. #{touchPrice},
  591. #{startDate},
  592. #{endDate},
  593. #{receivePeriod},
  594. #{receiveFlag},
  595. #{useTimeFlag},
  596. #{usePeriod},
  597. #{status},
  598. #{couponType},
  599. #{vipFlag},
  600. #{userId},
  601. #{shopId},
  602. #{productType},
  603. #{pcBanner},
  604. #{appletsBanner},
  605. #{categoryType},
  606. #{couponsMode},
  607. #{createDate},
  608. #{moneyCouponPrice},
  609. #{moneyCouponFlag},
  610. #{moneyCouponType},
  611. #{delFlag}
  612. )
  613. </insert>
  614. <update id="updateConfigure">
  615. UPDATE cm_coupon_configure SET
  616. name = #{name},
  617. couponPayWay = #{couponPayWay},
  618. couponAmount = #{couponAmount},
  619. touchPrice = #{touchPrice},
  620. startDate = #{startDate},
  621. endDate = #{endDate},
  622. receivePeriod = #{receivePeriod},
  623. receiveFlag = #{receiveFlag},
  624. useTimeFlag = #{useTimeFlag},
  625. usePeriod = #{usePeriod},
  626. status = #{status},
  627. couponType = #{couponType},
  628. vipFlag = #{vipFlag},
  629. userId = #{userId},
  630. shopId = #{shopId},
  631. productType = #{productType},
  632. pcBanner = #{pcBanner},
  633. appletsBanner = #{appletsBanner},
  634. categoryType = #{categoryType},
  635. couponsMode = #{couponsMode},
  636. moneyCouponPrice = #{moneyCouponPrice},
  637. moneyCouponType = #{moneyCouponType}
  638. WHERE id = #{id}
  639. </update>-->
  640. </mapper>