Просмотр исходного кода

/. 报表

release_toaliyun_real
xhxu 4 лет назад
Родитель
Сommit
4438583bb8
3 измененных файлов: 5 добавлений и 5 удалений
  1. +1
    -1
      mallinkService/src/main/resources/mapper/TtCUserMapper.xml
  2. +1
    -1
      mallinkService/src/main/resources/mapper/WxCUserMapper.xml
  3. +3
    -3
      mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml

+ 1
- 1
mallinkService/src/main/resources/mapper/TtCUserMapper.xml Просмотреть файл

@@ -326,7 +326,7 @@
</select>

<select id="findCountData" parameterType="com.iformall.domain.dto.WxCUserBasicInfoDto" resultType="com.iformall.domain.vo.UserStructureVo">
select DATE_FORMAT(create_date,'%m-%d') as name,count(id) count
select DATE_FORMAT(create_date,'%m/%d') as name,count(id) count
from tt_c_user
where `tenant_id` = #{tenantId}
<if test=" null != parentTenantId and '' != parentTenantId">


+ 1
- 1
mallinkService/src/main/resources/mapper/WxCUserMapper.xml Просмотреть файл

@@ -328,7 +328,7 @@
</select>

<select id="findCountData" parameterType="com.iformall.domain.dto.WxCUserBasicInfoDto" resultType="com.iformall.domain.vo.UserStructureVo">
select DATE_FORMAT(create_date,'%m-%d') as name,count(id) count
select DATE_FORMAT(create_date,'%m/%d') as name,count(id) count
from wx_c_user
where `tenant_id` = #{tenantId}
<if test=" null != parentTenantId and '' != parentTenantId">


+ 3
- 3
mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml Просмотреть файл

@@ -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 &gt;= unix_timestamp(#{startTime}) and create_date_times &lt; unix_timestamp(#{endTime})
where create_date_times &gt;= unix_timestamp(#{startTime})*1000 and create_date_times &lt; 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 &gt; unix_timestamp(#{startDate})
AND co.create_date_times &gt; unix_timestamp(#{startDate})*1000
</if>

<if test="endDate != null">
AND co.create_date_times &lt; unix_timestamp(#{endDate})
AND co.create_date_times &lt; unix_timestamp(#{endDate})*1000
</if>

<if test="verifyStartDate != null">


Загрузка…
Отмена
Сохранить