diff --git a/mallinkService/src/main/resources/mapper/TtCUserMapper.xml b/mallinkService/src/main/resources/mapper/TtCUserMapper.xml index c40c193bc..3fb904143 100644 --- a/mallinkService/src/main/resources/mapper/TtCUserMapper.xml +++ b/mallinkService/src/main/resources/mapper/TtCUserMapper.xml @@ -326,7 +326,7 @@ SELECT DATE_FORMAT(create_date,'%Y-%m-%d') as xTime,IFNULL(SUM(coupon_price),0) as price from wx_coupon_order - where create_date_times >= unix_timestamp(#{startTime}) and create_date_times < unix_timestamp(#{endTime}) + where create_date_times >= unix_timestamp(#{startTime})*1000 and create_date_times < unix_timestamp(#{endTime})*1000 and `tenant_id` = #{tenantId} and `parent_tenant_id` = #{parentTenantId} @@ -822,11 +822,11 @@ - AND co.create_date_times > unix_timestamp(#{startDate}) + AND co.create_date_times > unix_timestamp(#{startDate})*1000 - AND co.create_date_times < unix_timestamp(#{endDate}) + AND co.create_date_times < unix_timestamp(#{endDate})*1000