StoreYearWriteMapper.xml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641
  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.slodon.b2b2c.dao.write.statistics.StoreYearWriteMapper">
  4. <resultMap id="resultMap" type="com.slodon.b2b2c.statistics.pojo.StoreYear">
  5. <id column="stats_id" property="statsId" />
  6. <result column="stats_time" property="statsTime" />
  7. <result column="web_site" property="webSite" />
  8. <result column="store_id" property="storeId" />
  9. <result column="store_name" property="storeName" />
  10. <result column="visitor_num" property="visitorNum" />
  11. <result column="view_num" property="viewNum" />
  12. <result column="order_submit_num" property="orderSubmitNum" />
  13. <result column="order_submit_amount" property="orderSubmitAmount" />
  14. <result column="order_submit_member_num" property="orderSubmitMemberNum" />
  15. <result column="order_submit_atv" property="orderSubmitAtv" />
  16. <result column="order_pay_num" property="orderPayNum" />
  17. <result column="order_pay_amount" property="orderPayAmount" />
  18. <result column="order_pay_member_num" property="orderPayMemberNum" />
  19. <result column="order_pay_atv" property="orderPayAtv" />
  20. <result column="pv_submit_rate" property="pvSubmitRate" />
  21. <result column="pv_pay_rate" property="pvPayRate" />
  22. <result column="submit_pay_rate" property="submitPayRate" />
  23. <result column="goods_visitor_num" property="goodsVisitorNum" />
  24. <result column="goods_view_num" property="goodsViewNum" />
  25. <result column="view_goods_num" property="viewGoodsNum" />
  26. <result column="new_goods_num" property="newGoodsNum" />
  27. <result column="new_brand_num" property="newBrandNum" />
  28. <result column="collection_goods_num" property="collectionGoodsNum" />
  29. <result column="collection_store_num" property="collectionStoreNum" />
  30. <result column="saling_goods_num" property="salingGoodsNum" />
  31. <result column="return_num" property="returnNum" />
  32. <result column="return_amount" property="returnAmount" />
  33. <result column="new_member_num" property="newMemberNum" />
  34. <result column="per_view_num" property="perViewNum" />
  35. </resultMap>
  36. <!--除主键外的所有字段,用于插入操作-->
  37. <sql id="columns">
  38. <trim suffixOverrides=",">
  39. <if test="statsTime != null">
  40. `stats_time`,
  41. </if>
  42. <if test="webSite != null">
  43. `web_site`,
  44. </if>
  45. <if test="storeId != null">
  46. `store_id`,
  47. </if>
  48. <if test="storeName != null">
  49. `store_name`,
  50. </if>
  51. <if test="visitorNum != null">
  52. `visitor_num`,
  53. </if>
  54. <if test="viewNum != null">
  55. `view_num`,
  56. </if>
  57. <if test="orderSubmitNum != null">
  58. `order_submit_num`,
  59. </if>
  60. <if test="orderSubmitAmount != null">
  61. `order_submit_amount`,
  62. </if>
  63. <if test="orderSubmitMemberNum != null">
  64. `order_submit_member_num`,
  65. </if>
  66. <if test="orderSubmitAtv != null">
  67. `order_submit_atv`,
  68. </if>
  69. <if test="orderPayNum != null">
  70. `order_pay_num`,
  71. </if>
  72. <if test="orderPayAmount != null">
  73. `order_pay_amount`,
  74. </if>
  75. <if test="orderPayMemberNum != null">
  76. `order_pay_member_num`,
  77. </if>
  78. <if test="orderPayAtv != null">
  79. `order_pay_atv`,
  80. </if>
  81. <if test="pvSubmitRate != null">
  82. `pv_submit_rate`,
  83. </if>
  84. <if test="pvPayRate != null">
  85. `pv_pay_rate`,
  86. </if>
  87. <if test="submitPayRate != null">
  88. `submit_pay_rate`,
  89. </if>
  90. <if test="goodsVisitorNum != null">
  91. `goods_visitor_num`,
  92. </if>
  93. <if test="goodsViewNum != null">
  94. `goods_view_num`,
  95. </if>
  96. <if test="viewGoodsNum != null">
  97. `view_goods_num`,
  98. </if>
  99. <if test="newGoodsNum != null">
  100. `new_goods_num`,
  101. </if>
  102. <if test="newBrandNum != null">
  103. `new_brand_num`,
  104. </if>
  105. <if test="collectionGoodsNum != null">
  106. `collection_goods_num`,
  107. </if>
  108. <if test="collectionStoreNum != null">
  109. `collection_store_num`,
  110. </if>
  111. <if test="salingGoodsNum != null">
  112. `saling_goods_num`,
  113. </if>
  114. <if test="returnNum != null">
  115. `return_num`,
  116. </if>
  117. <if test="returnAmount != null">
  118. `return_amount`,
  119. </if>
  120. <if test="newMemberNum != null">
  121. `new_member_num`,
  122. </if>
  123. <if test="perViewNum != null">
  124. `per_view_num`,
  125. </if>
  126. </trim>
  127. </sql>
  128. <!--按照主键值进行操作-->
  129. <sql id="pkWhere">
  130. WHERE `stats_id` = #{primaryKey}
  131. </sql>
  132. <!--操作条件-->
  133. <sql id="whereCondition">
  134. <if test="example != null">
  135. <trim prefix="WHERE" prefixOverrides="AND|OR">
  136. <if test="example.statsIdNotEquals != null">
  137. AND `stats_id` != #{example.statsIdNotEquals}
  138. </if>
  139. <if test="example.statsIdIn != null">
  140. AND `stats_id` in (${example.statsIdIn})
  141. </if>
  142. <if test="example.statsTimeAfter != null">
  143. AND `stats_time` <![CDATA[ >= ]]> #{example.statsTimeAfter}
  144. </if>
  145. <if test="example.statsTimeBefore != null">
  146. AND `stats_time` <![CDATA[ <= ]]> #{example.statsTimeBefore}
  147. </if>
  148. <if test="example.webSite != null">
  149. AND `web_site` = #{example.webSite}
  150. </if>
  151. <if test="example.storeId != null">
  152. AND `store_id` = #{example.storeId}
  153. </if>
  154. <if test="example.storeName != null">
  155. AND `store_name` = #{example.storeName}
  156. </if>
  157. <if test="example.storeNameLike != null">
  158. AND `store_name` like concat('%',#{example.storeNameLike},'%')
  159. </if>
  160. <if test="example.visitorNum != null">
  161. AND `visitor_num` = #{example.visitorNum}
  162. </if>
  163. <if test="example.viewNum != null">
  164. AND `view_num` = #{example.viewNum}
  165. </if>
  166. <if test="example.orderSubmitNum != null">
  167. AND `order_submit_num` = #{example.orderSubmitNum}
  168. </if>
  169. <if test="example.orderSubmitAmount != null">
  170. AND `order_submit_amount` = #{example.orderSubmitAmount}
  171. </if>
  172. <if test="example.orderSubmitMemberNum != null">
  173. AND `order_submit_member_num` = #{example.orderSubmitMemberNum}
  174. </if>
  175. <if test="example.orderSubmitAtv != null">
  176. AND `order_submit_atv` = #{example.orderSubmitAtv}
  177. </if>
  178. <if test="example.orderPayNum != null">
  179. AND `order_pay_num` = #{example.orderPayNum}
  180. </if>
  181. <if test="example.orderPayAmount != null">
  182. AND `order_pay_amount` = #{example.orderPayAmount}
  183. </if>
  184. <if test="example.orderPayMemberNum != null">
  185. AND `order_pay_member_num` = #{example.orderPayMemberNum}
  186. </if>
  187. <if test="example.orderPayAtv != null">
  188. AND `order_pay_atv` = #{example.orderPayAtv}
  189. </if>
  190. <if test="example.pvSubmitRate != null">
  191. AND `pv_submit_rate` = #{example.pvSubmitRate}
  192. </if>
  193. <if test="example.pvPayRate != null">
  194. AND `pv_pay_rate` = #{example.pvPayRate}
  195. </if>
  196. <if test="example.submitPayRate != null">
  197. AND `submit_pay_rate` = #{example.submitPayRate}
  198. </if>
  199. <if test="example.goodsVisitorNum != null">
  200. AND `goods_visitor_num` = #{example.goodsVisitorNum}
  201. </if>
  202. <if test="example.goodsViewNum != null">
  203. AND `goods_view_num` = #{example.goodsViewNum}
  204. </if>
  205. <if test="example.viewGoodsNum != null">
  206. AND `view_goods_num` = #{example.viewGoodsNum}
  207. </if>
  208. <if test="example.viewGoodsNumLike != null">
  209. AND `view_goods_num` like concat('%',#{example.viewGoodsNumLike},'%')
  210. </if>
  211. <if test="example.newGoodsNum != null">
  212. AND `new_goods_num` = #{example.newGoodsNum}
  213. </if>
  214. <if test="example.newGoodsNumLike != null">
  215. AND `new_goods_num` like concat('%',#{example.newGoodsNumLike},'%')
  216. </if>
  217. <if test="example.collectionGoodsNum != null">
  218. AND `collection_goods_num` = #{example.collectionGoodsNum}
  219. </if>
  220. <if test="example.collectionGoodsNumLike != null">
  221. AND `collection_goods_num` like concat('%',#{example.collectionGoodsNumLike},'%')
  222. </if>
  223. <if test="example.collectionStoreNum != null">
  224. AND `collection_store_num` = #{example.collectionStoreNum}
  225. </if>
  226. <if test="example.salingGoodsNum != null">
  227. AND `saling_goods_num` = #{example.salingGoodsNum}
  228. </if>
  229. <if test="example.salingGoodsNumLike != null">
  230. AND `saling_goods_num` like concat('%',#{example.salingGoodsNumLike},'%')
  231. </if>
  232. <if test="example.returnNum != null">
  233. AND `return_num` = #{example.returnNum}
  234. </if>
  235. <if test="example.returnAmount != null">
  236. AND `return_amount` = #{example.returnAmount}
  237. </if>
  238. <if test="example.newMemberNum != null">
  239. AND `new_member_num` = #{example.newMemberNum}
  240. </if>
  241. <if test="example.perViewNum != null">
  242. AND `per_view_num` = #{example.perViewNum}
  243. </if>
  244. </trim>
  245. </if>
  246. </sql>
  247. <!--排序条件-->
  248. <sql id="orderBy">
  249. ORDER BY `stats_id` DESC
  250. </sql>
  251. <sql id="orderByOther">
  252. order by ${example.orderBy}
  253. </sql>
  254. <!--分组条件-->
  255. <sql id="groupBy">
  256. group by ${example.groupBy}
  257. </sql>
  258. <!--分页条件-->
  259. <sql id="limit">
  260. <if test="size != null and size &gt; 0">
  261. limit #{startRow},#{size}
  262. </if>
  263. </sql>
  264. <!--查询符合条件的记录数-->
  265. <select id="countByExample" parameterType="com.slodon.b2b2c.statistics.example.StoreYearExample" resultType="java.lang.Integer">
  266. SELECT
  267. COUNT(*)
  268. FROM `stats_store_year`
  269. <include refid="whereCondition" />
  270. </select>
  271. <!--根据主键查询记录-->
  272. <select id="getByPrimaryKey" resultMap="resultMap">
  273. SELECT
  274. *
  275. FROM `stats_store_year`
  276. <include refid="pkWhere" />
  277. </select>
  278. <!--查询符合条件的记录(所有字段)-->
  279. <select id="listByExample" resultMap="resultMap">
  280. SELECT
  281. *
  282. FROM `stats_store_year`
  283. <include refid="whereCondition" />
  284. <if test="example.groupBy != null">
  285. <include refid="groupBy" />
  286. </if>
  287. <choose>
  288. <when test="example.orderBy != null">
  289. <include refid="orderByOther" />
  290. </when>
  291. <otherwise>
  292. <include refid="orderBy" />
  293. </otherwise>
  294. </choose>
  295. </select>
  296. <!--分页查询符合条件的记录(所有字段)-->
  297. <select id="listPageByExample" resultMap="resultMap">
  298. SELECT
  299. *
  300. FROM `stats_store_year`
  301. <include refid="whereCondition" />
  302. <if test="example.groupBy != null">
  303. <include refid="groupBy" />
  304. </if>
  305. <choose>
  306. <when test="example.orderBy != null">
  307. <include refid="orderByOther" />
  308. </when>
  309. <otherwise>
  310. <include refid="orderBy" />
  311. </otherwise>
  312. </choose>
  313. <include refid="limit" />
  314. </select>
  315. <!--查询符合条件的记录(指定字段)-->
  316. <select id="listFieldsByExample" resultMap="resultMap">
  317. SELECT
  318. ${fields}
  319. FROM `stats_store_year`
  320. <include refid="whereCondition" />
  321. <if test="example.groupBy != null">
  322. <include refid="groupBy" />
  323. </if>
  324. <choose>
  325. <when test="example.orderBy != null">
  326. <include refid="orderByOther" />
  327. </when>
  328. <otherwise>
  329. <include refid="orderBy" />
  330. </otherwise>
  331. </choose>
  332. </select>
  333. <!--分页查询符合条件的记录(指定字段)-->
  334. <select id="listFieldsPageByExample" resultMap="resultMap">
  335. SELECT
  336. ${fields}
  337. FROM `stats_store_year`
  338. <include refid="whereCondition" />
  339. <if test="example.groupBy != null">
  340. <include refid="groupBy" />
  341. </if>
  342. <choose>
  343. <when test="example.orderBy != null">
  344. <include refid="orderByOther" />
  345. </when>
  346. <otherwise>
  347. <include refid="orderBy" />
  348. </otherwise>
  349. </choose>
  350. <include refid="limit" />
  351. </select>
  352. <!--根据条件删除记录,可多条删除-->
  353. <delete id="deleteByExample">
  354. DELETE FROM `stats_store_year`
  355. <include refid="whereCondition" />
  356. </delete>
  357. <!--根据主键删除记录-->
  358. <delete id="deleteByPrimaryKey">
  359. DELETE FROM `stats_store_year`
  360. <include refid="pkWhere" />
  361. </delete>
  362. <!--插入一条记录-->
  363. <insert id="insert" keyColumn="stats_id" keyProperty="statsId" parameterType="com.slodon.b2b2c.statistics.pojo.StoreYear" useGeneratedKeys="true">
  364. INSERT INTO `stats_store_year`(
  365. <include refid="columns" />
  366. )
  367. VALUES(
  368. <trim suffixOverrides=",">
  369. <if test="statsTime != null">
  370. #{statsTime},
  371. </if>
  372. <if test="webSite != null">
  373. #{webSite},
  374. </if>
  375. <if test="storeId != null">
  376. #{storeId},
  377. </if>
  378. <if test="storeName != null">
  379. #{storeName},
  380. </if>
  381. <if test="visitorNum != null">
  382. #{visitorNum},
  383. </if>
  384. <if test="viewNum != null">
  385. #{viewNum},
  386. </if>
  387. <if test="orderSubmitNum != null">
  388. #{orderSubmitNum},
  389. </if>
  390. <if test="orderSubmitAmount != null">
  391. #{orderSubmitAmount},
  392. </if>
  393. <if test="orderSubmitMemberNum != null">
  394. #{orderSubmitMemberNum},
  395. </if>
  396. <if test="orderSubmitAtv != null">
  397. #{orderSubmitAtv},
  398. </if>
  399. <if test="orderPayNum != null">
  400. #{orderPayNum},
  401. </if>
  402. <if test="orderPayAmount != null">
  403. #{orderPayAmount},
  404. </if>
  405. <if test="orderPayMemberNum != null">
  406. #{orderPayMemberNum},
  407. </if>
  408. <if test="orderPayAtv != null">
  409. #{orderPayAtv},
  410. </if>
  411. <if test="pvSubmitRate != null">
  412. #{pvSubmitRate},
  413. </if>
  414. <if test="pvPayRate != null">
  415. #{pvPayRate},
  416. </if>
  417. <if test="submitPayRate != null">
  418. #{submitPayRate},
  419. </if>
  420. <if test="goodsVisitorNum != null">
  421. #{goodsVisitorNum},
  422. </if>
  423. <if test="goodsViewNum != null">
  424. #{goodsViewNum},
  425. </if>
  426. <if test="viewGoodsNum != null">
  427. #{viewGoodsNum},
  428. </if>
  429. <if test="newGoodsNum != null">
  430. #{newGoodsNum},
  431. </if>
  432. <if test="newBrandNum != null">
  433. #{newBrandNum},
  434. </if>
  435. <if test="collectionGoodsNum != null">
  436. #{collectionGoodsNum},
  437. </if>
  438. <if test="collectionStoreNum != null">
  439. #{collectionStoreNum},
  440. </if>
  441. <if test="salingGoodsNum != null">
  442. #{salingGoodsNum},
  443. </if>
  444. <if test="returnNum != null">
  445. #{returnNum},
  446. </if>
  447. <if test="returnAmount != null">
  448. #{returnAmount},
  449. </if>
  450. <if test="newMemberNum != null">
  451. #{newMemberNum},
  452. </if>
  453. <if test="perViewNum != null">
  454. #{perViewNum},
  455. </if>
  456. </trim>
  457. )
  458. </insert>
  459. <!--按条件更新记录中不为空的字段-->
  460. <update id="updateByExampleSelective">
  461. UPDATE `stats_store_year`
  462. <trim prefix="SET" suffixOverrides=",">
  463. <if test="record.statsTime != null">
  464. `stats_time` = #{record.statsTime},
  465. </if>
  466. <if test="record.webSite != null">
  467. `web_site` = #{record.webSite},
  468. </if>
  469. <if test="record.storeId != null">
  470. `store_id` = #{record.storeId},
  471. </if>
  472. <if test="record.storeName != null">
  473. `store_name` = #{record.storeName},
  474. </if>
  475. <if test="record.visitorNum != null">
  476. `visitor_num` = #{record.visitorNum},
  477. </if>
  478. <if test="record.viewNum != null">
  479. `view_num` = #{record.viewNum},
  480. </if>
  481. <if test="record.orderSubmitNum != null">
  482. `order_submit_num` = #{record.orderSubmitNum},
  483. </if>
  484. <if test="record.orderSubmitAmount != null">
  485. `order_submit_amount` = #{record.orderSubmitAmount},
  486. </if>
  487. <if test="record.orderSubmitMemberNum != null">
  488. `order_submit_member_num` = #{record.orderSubmitMemberNum},
  489. </if>
  490. <if test="record.orderSubmitAtv != null">
  491. `order_submit_atv` = #{record.orderSubmitAtv},
  492. </if>
  493. <if test="record.orderPayNum != null">
  494. `order_pay_num` = #{record.orderPayNum},
  495. </if>
  496. <if test="record.orderPayAmount != null">
  497. `order_pay_amount` = #{record.orderPayAmount},
  498. </if>
  499. <if test="record.orderPayMemberNum != null">
  500. `order_pay_member_num` = #{record.orderPayMemberNum},
  501. </if>
  502. <if test="record.orderPayAtv != null">
  503. `order_pay_atv` = #{record.orderPayAtv},
  504. </if>
  505. <if test="record.pvSubmitRate != null">
  506. `pv_submit_rate` = #{record.pvSubmitRate},
  507. </if>
  508. <if test="record.pvPayRate != null">
  509. `pv_pay_rate` = #{record.pvPayRate},
  510. </if>
  511. <if test="record.submitPayRate != null">
  512. `submit_pay_rate` = #{record.submitPayRate},
  513. </if>
  514. <if test="record.goodsVisitorNum != null">
  515. `goods_visitor_num` = #{record.goodsVisitorNum},
  516. </if>
  517. <if test="record.goodsViewNum != null">
  518. `goods_view_num` = #{record.goodsViewNum},
  519. </if>
  520. <if test="record.viewGoodsNum != null">
  521. `view_goods_num` = #{record.viewGoodsNum},
  522. </if>
  523. <if test="record.newGoodsNum != null">
  524. `new_goods_num` = #{record.newGoodsNum},
  525. </if>
  526. <if test="record.collectionGoodsNum != null">
  527. `collection_goods_num` = #{record.collectionGoodsNum},
  528. </if>
  529. <if test="record.collectionStoreNum != null">
  530. `collection_store_num` = #{record.collectionStoreNum},
  531. </if>
  532. <if test="record.salingGoodsNum != null">
  533. `saling_goods_num` = #{record.salingGoodsNum},
  534. </if>
  535. <if test="record.returnNum != null">
  536. `return_num` = #{record.returnNum},
  537. </if>
  538. <if test="record.returnAmount != null">
  539. `return_amount` = #{record.returnAmount},
  540. </if>
  541. <if test="record.newMemberNum != null">
  542. `new_member_num` = #{record.newMemberNum},
  543. </if>
  544. <if test="record.perViewNum != null">
  545. `per_view_num` = #{record.perViewNum},
  546. </if>
  547. </trim>
  548. <include refid="whereCondition" />
  549. </update>
  550. <!--按照主键更新记录中不为空的字段-->
  551. <update id="updateByPrimaryKeySelective">
  552. UPDATE `stats_store_year`
  553. <trim prefix="SET" suffixOverrides=",">
  554. <if test="statsTime != null">
  555. `stats_time` = #{statsTime},
  556. </if>
  557. <if test="webSite != null">
  558. `web_site` = #{webSite},
  559. </if>
  560. <if test="storeId != null">
  561. `store_id` = #{storeId},
  562. </if>
  563. <if test="storeName != null">
  564. `store_name` = #{storeName},
  565. </if>
  566. <if test="visitorNum != null">
  567. `visitor_num` = #{visitorNum},
  568. </if>
  569. <if test="viewNum != null">
  570. `view_num` = #{viewNum},
  571. </if>
  572. <if test="orderSubmitNum != null">
  573. `order_submit_num` = #{orderSubmitNum},
  574. </if>
  575. <if test="orderSubmitAmount != null">
  576. `order_submit_amount` = #{orderSubmitAmount},
  577. </if>
  578. <if test="orderSubmitMemberNum != null">
  579. `order_submit_member_num` = #{orderSubmitMemberNum},
  580. </if>
  581. <if test="orderSubmitAtv != null">
  582. `order_submit_atv` = #{orderSubmitAtv},
  583. </if>
  584. <if test="orderPayNum != null">
  585. `order_pay_num` = #{orderPayNum},
  586. </if>
  587. <if test="orderPayAmount != null">
  588. `order_pay_amount` = #{orderPayAmount},
  589. </if>
  590. <if test="orderPayMemberNum != null">
  591. `order_pay_member_num` = #{orderPayMemberNum},
  592. </if>
  593. <if test="orderPayAtv != null">
  594. `order_pay_atv` = #{orderPayAtv},
  595. </if>
  596. <if test="pvSubmitRate != null">
  597. `pv_submit_rate` = #{pvSubmitRate},
  598. </if>
  599. <if test="pvPayRate != null">
  600. `pv_pay_rate` = #{pvPayRate},
  601. </if>
  602. <if test="submitPayRate != null">
  603. `submit_pay_rate` = #{submitPayRate},
  604. </if>
  605. <if test="goodsVisitorNum != null">
  606. `goods_visitor_num` = #{goodsVisitorNum},
  607. </if>
  608. <if test="goodsViewNum != null">
  609. `goods_view_num` = #{goodsViewNum},
  610. </if>
  611. <if test="viewGoodsNum != null">
  612. `view_goods_num` = #{viewGoodsNum},
  613. </if>
  614. <if test="newGoodsNum != null">
  615. `new_goods_num` = #{newGoodsNum},
  616. </if>
  617. <if test="collectionGoodsNum != null">
  618. `collection_goods_num` = #{collectionGoodsNum},
  619. </if>
  620. <if test="collectionStoreNum != null">
  621. `collection_store_num` = #{collectionStoreNum},
  622. </if>
  623. <if test="salingGoodsNum != null">
  624. `saling_goods_num` = #{salingGoodsNum},
  625. </if>
  626. <if test="returnNum != null">
  627. `return_num` = #{returnNum},
  628. </if>
  629. <if test="returnAmount != null">
  630. `return_amount` = #{returnAmount},
  631. </if>
  632. <if test="newMemberNum != null">
  633. `new_member_num` = #{newMemberNum},
  634. </if>
  635. <if test="perViewNum != null">
  636. `per_view_num` = #{perViewNum},
  637. </if>
  638. </trim>
  639. WHERE `stats_id` = #{statsId}
  640. </update>
  641. </mapper>