Browse Source

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

Liugl 3 years ago
parent
commit
db93c482ea

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

@@ -30,7 +30,7 @@
 		from mp_channel_user_rel t1
 		from mp_channel_user_rel t1
 		left join mp_channel t2 on t1.channel_id = t2.channel_id
 		left join mp_channel t2 on t1.channel_id = t2.channel_id
 		where t2.channel_no like concat(#{channelNo}, '.%')
 		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 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()
 			AND t1.created_time between DATE_ADD(CURDATE(),INTERVAL #{days} DAY) and NOW()
 		 </if>
 		 </if>