|
|
|
@@ -670,7 +670,7 @@ |
|
|
|
<select id="queryPriceTotalGroup" resultType="com.iformall.domain.vo.CUserDateAmountVo" > |
|
|
|
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} |
|
|
|
<if test=" null != parentTenantId and '' != parentTenantId"> |
|
|
|
and `parent_tenant_id` = #{parentTenantId} |
|
|
|
@@ -822,11 +822,11 @@ |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="startDate != null"> |
|
|
|
AND co.create_date_times > unix_timestamp(#{startDate}) |
|
|
|
AND co.create_date_times > unix_timestamp(#{startDate})*1000 |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="endDate != null"> |
|
|
|
AND co.create_date_times < unix_timestamp(#{endDate}) |
|
|
|
AND co.create_date_times < unix_timestamp(#{endDate})*1000 |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="verifyStartDate != null"> |
|
|
|
|