数据统计

This commit is contained in:
Tankaikai 2025-03-19 16:41:52 +08:00
parent 0afee43e90
commit fd5e7cd57b
1 changed files with 2 additions and 2 deletions

View File

@ -42,11 +42,11 @@
<select id="getNewMemberCount" resultType="java.lang.Long">
select count(1) from tb_shop_user where shop_id = #{shopId}
<if test="beginDate != null and beginDate != ''">
and create_time >= str_to_date(concat(#{beginDate},' 00:00:00'), '%Y-%m-%d %H:%i:%s')
and create_time >= str_to_date(#{beginDate}, '%Y-%m-%d %H:%i:%s')
</if>
<if test="endDate != null and endDate != ''">
<![CDATA[
and create_time <= str_to_date(concat(#{endDate},' 23:59:59'), '%Y-%m-%d %H:%i:%s')
and create_time <= str_to_date(#{endDate}, '%Y-%m-%d %H:%i:%s')
]]>
</if>
</select>