Przeglądaj źródła

[统计][修改][调整业态分析列表精度]

release_toaliyun_real
luozukai 7 lat temu
rodzic
commit
6827b2d303
2 zmienionych plików z 6 dodań i 3 usunięć
  1. +5
    -3
      mallinkService/src/main/resources/mapper/WxBusinessMapper.xml
  2. +1
    -0
      mallinkService/src/main/resources/mapper/WxMerchantMapper.xml

+ 5
- 3
mallinkService/src/main/resources/mapper/WxBusinessMapper.xml Wyświetl plik

@@ -115,7 +115,8 @@
left join wx_shop ws on(mtd.shop_id = ws.id) left join wx_shop ws on(mtd.shop_id = ws.id)
where m.business_id = b.id and m.tenant_id=#{tenantId} ) where m.business_id = b.id and m.tenant_id=#{tenantId} )
/100,2) rent, /100,2) rent,

round(
round( round(
(select sum(mtd.trade_amt) (select sum(mtd.trade_amt)
from wx_merchant m from wx_merchant m
@@ -141,7 +142,9 @@
left join wx_merchant_shop mtd on mtd.merchant_id = m.id left join wx_merchant_shop mtd on mtd.merchant_id = m.id
left join wx_shop ws on(mtd.shop_id = ws.id) left join wx_shop ws on(mtd.shop_id = ws.id)
where m.business_id = b.id) where m.business_id = b.id)
/100,2) rentSaleRate,
/100,2)
,4)
rentSaleRate,
round( round(
(select sum(mtd.trade_amt) (select sum(mtd.trade_amt)
@@ -153,7 +156,6 @@
/100,2) comPrice /100,2) comPrice
from wx_business b from wx_business b
limit 20
</select> </select>


<select id="devoteList" parameterType="com.iformall.domain.po.WxBusiness" resultType="hashmap"> <select id="devoteList" parameterType="com.iformall.domain.po.WxBusiness" resultType="hashmap">


+ 1
- 0
mallinkService/src/main/resources/mapper/WxMerchantMapper.xml Wyświetl plik

@@ -245,6 +245,7 @@
where f.id = #{id} where f.id = #{id}
and m.tenant_id = #{tenantId} and m.tenant_id = #{tenantId}
and s.is_del = 0 and s.is_del = 0
and ms.is_del = 0
group by m.business_id group by m.business_id
</select> </select>


Ładowanie…
Anuluj
Zapisz