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

[商户账单][修改][显示结余金额]

release_toaliyun_real
gongbiao 6 лет назад
Родитель
Сommit
e30b69cb8c
1 измененных файлов: 9 добавлений и 9 удалений
  1. +9
    -9
      mallinkService/src/main/resources/mapper/WxBillAllMapper.xml

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

@@ -731,7 +731,7 @@
select tt.* from (
select m.tenant_id,m.id,m.name,ws.shop_number shopNumber,ws.type,m.link_person linkPerson,m.link_phone linkPhone,
xb.title business,rc.rental_start_date rentalStartDate,rc.rental_end_date rentalEndDate,rc.rent_shop_type,
round(
ifnull(round(
(select sum(bill.receive_pay) from (
select merchant_id,receive_pay from wx_bill_rent where is_preview = 0 and status not in(3,6)
union all
@@ -747,8 +747,8 @@
union all
select merchant_id,receive_pay from wx_bill_other_deposit where status not in(3,6)
) bill where bill.merchant_id = m.id
)/100,2) receivePay,
round(
)/100,2),0) receivePay,
ifnull(round(
(select sum(ss.money) from (
select ms.subsidy money,mm.id
from wx_merchant_subsidy ms
@@ -765,9 +765,9 @@
union all
select receive_pay money,merchant_id id from wx_bill_other_deposit where status = 3
)ss where ss.id = m.id
)/100,2) payOut,
(round(
)/100,2),0) payOut,
(ifnull(round(
(select sum(bill.receive_pay) from (
select merchant_id,receive_pay from wx_bill_rent where is_preview = 0 and status not in(3,6)
union all
@@ -783,8 +783,8 @@
union all
select merchant_id,receive_pay from wx_bill_other_deposit where status not in(3,6)
) bill where bill.merchant_id = m.id
)/100,2)-
round(
)/100,2),0)-
ifnull(round(
(select sum(ss.money) from (
select ms.subsidy money,mm.id
from wx_merchant_subsidy ms
@@ -801,7 +801,7 @@
union all
select receive_pay money,merchant_id id from wx_bill_other_deposit where status = 3
)ss where ss.id = m.id
)/100,2)) balance
)/100,2),0)) balance
from wx_merchant m
left join (select ms.merchant_id,s.type,GROUP_CONCAT(s.shop_number) as shop_number


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