瀏覽代碼

[运营][修复]:运营数据排序问题

release_toaliyun_real
hupeng 7 年之前
父節點
當前提交
40f542e8ae
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. +3
    -3
      mallinkService/src/main/resources/mapper/WxDateAmountRecordMapper.xml

+ 3
- 3
mallinkService/src/main/resources/mapper/WxDateAmountRecordMapper.xml 查看文件

@@ -98,9 +98,9 @@
</update>

<select id="queryprice" resultType="hashmap">
select date,sum(pay_price) price from wx_date_amount_record
where tenant_id=#{value} and type=0
group by date
select record.date,sum(record.pay_price) price
from (select * from wx_date_amount_record where tenant_id=#{value} and type=0 and date > date_sub(now(),INTERVAL 30 day)) record
group by record.date
limit 30
</select>



Loading…
取消
儲存