From 188b2ccd2c9de230b65e582372da63c659aba363 Mon Sep 17 00:00:00 2001 From: 喻健 <喻健@Admin> Date: 星期五, 21 十二月 2018 12:10:45 +0800 Subject: [PATCH] 分享记录 非今日浏览处理设置0 --- fanli/src/main/java/com/yeshi/fanli/mapping/share/UserShareGoodsRecordMapper.xml | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/mapping/share/UserShareGoodsRecordMapper.xml b/fanli/src/main/java/com/yeshi/fanli/mapping/share/UserShareGoodsRecordMapper.xml index 7773aa7..b714918 100644 --- a/fanli/src/main/java/com/yeshi/fanli/mapping/share/UserShareGoodsRecordMapper.xml +++ b/fanli/src/main/java/com/yeshi/fanli/mapping/share/UserShareGoodsRecordMapper.xml @@ -97,7 +97,7 @@ <select id="listCountTodayBrowse" resultMap="CountRecordMap" parameterType="java.util.List"> - SELECT g.`gu_record_id`AS sgr_id,SUM(g.`gu_today_browse`)AS todayBrowse FROM yeshi_ec_share_goods_group g + SELECT g.`gu_record_id`AS sgr_id, IFNULL(SUM(g.`gu_today_browse`),0)AS todayBrowse FROM yeshi_ec_share_goods_group g WHERE TO_DAYS(g.`gu_browse_time`) = TO_DAYS(NOW()) AND g.`gu_record_id` IN <foreach collection="list" item="item" open="(" close=")" separator=",">#{item}</foreach> -- Gitblit v1.8.0