瀏覽代碼

解决缺陷【ID1000218】
渠道筛选【今天】的数据,新增用户数不对, 传参为0时不进判断条件

Liugl 3 年之前
父節點
當前提交
db93c482ea
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      mp-service/src/main/resources/mapper/channel/ChannelUserRelMapper.xml

+ 1 - 1
mp-service/src/main/resources/mapper/channel/ChannelUserRelMapper.xml

@@ -30,7 +30,7 @@
 		from mp_channel_user_rel t1
 		left join mp_channel t2 on t1.channel_id = t2.channel_id
 		where t2.channel_no like concat(#{channelNo}, '.%')
-		<if test="days != null and days != ''">
+		<if test="days != null">
 			<!-- AND date_format(t1.created_time,'%Y-%m-%d') between date_format(DATE_ADD(CURDATE(),INTERVAL #{days} DAY),'%Y-%m-%d') and date_format(CURDATE(),'%Y-%m-%d') -->
 			AND t1.created_time between DATE_ADD(CURDATE(),INTERVAL #{days} DAY) and NOW()
 		 </if>