|
|
@@ -642,9 +642,12 @@ |
|
|
<if test=" null == sortColumns"> order by totalOwe desc </if> |
|
|
<if test=" null == sortColumns"> order by totalOwe desc </if> |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
<!--union all |
|
|
|
|
|
select pay_amount money,mm.id from wx_profit_sharing_order pso |
|
|
|
|
|
left join wx_merchant mm on pso.merchant_id=mm.id |
|
|
|
|
|
where pso.sharing_status !=5 |
|
|
|
|
|
--> |
|
|
<select id="getReceiveAndPayBillAsPage" parameterType="com.iformall.domain.vo.WxBillAll" resultType="hashmap"> |
|
|
<select id="getReceiveAndPayBillAsPage" parameterType="com.iformall.domain.vo.WxBillAll" resultType="hashmap"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
select m.id,m.name,ws.shop_number shopNumber,ws.type,m.link_person linkPerson,m.link_phone linkPhone, |
|
|
select 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, |
|
|
xb.title business,rc.rental_start_date rentalStartDate,rc.rental_end_date rentalEndDate, |
|
|
|
|
|
|
|
|
@@ -676,19 +679,6 @@ |
|
|
left join wx_c_user cu on cu.id = cs.owner_id |
|
|
left join wx_c_user cu on cu.id = cs.owner_id |
|
|
where ms.order_type in(3,0) and ms.status = 0 |
|
|
where ms.order_type in(3,0) and ms.status = 0 |
|
|
union all |
|
|
union all |
|
|
select ms.subsidy money,mm.id |
|
|
|
|
|
from wx_merchant_subsidy ms |
|
|
|
|
|
left join wx_coupon_order co on co.id = ms.coupon_order_id |
|
|
|
|
|
left join wx_coupon c on c.id = co.coupon_id |
|
|
|
|
|
left join wx_merchant mm on mm.id = ms.merchant_id |
|
|
|
|
|
left join wx_card_spend cs on cs.order_id = ms.order_id |
|
|
|
|
|
left join wx_c_user cu on cu.id = cs.owner_id |
|
|
|
|
|
where ms.order_type in(3,0) and ms.status = 0 |
|
|
|
|
|
union all |
|
|
|
|
|
select pay_amount money,mm.id from wx_profit_sharing_order pso |
|
|
|
|
|
left join wx_merchant mm on pso.merchant_id=mm.id |
|
|
|
|
|
where pso.sharing_status !=5 |
|
|
|
|
|
union all |
|
|
|
|
|
select merchant_id id,receive_pay money from wx_bill_rent_deposit where status = 3 |
|
|
select merchant_id id,receive_pay money from wx_bill_rent_deposit where status = 3 |
|
|
union all |
|
|
union all |
|
|
select merchant_id id,receive_pay money from wx_bill_property_deposit where status = 3 |
|
|
select merchant_id id,receive_pay money from wx_bill_property_deposit where status = 3 |
|
|
@@ -725,19 +715,6 @@ |
|
|
left join wx_c_user cu on cu.id = cs.owner_id |
|
|
left join wx_c_user cu on cu.id = cs.owner_id |
|
|
where ms.order_type in(3,0) and ms.status = 0 |
|
|
where ms.order_type in(3,0) and ms.status = 0 |
|
|
union all |
|
|
union all |
|
|
select ms.subsidy money,mm.id |
|
|
|
|
|
from wx_merchant_subsidy ms |
|
|
|
|
|
left join wx_coupon_order co on co.id = ms.coupon_order_id |
|
|
|
|
|
left join wx_coupon c on c.id = co.coupon_id |
|
|
|
|
|
left join wx_merchant mm on mm.id = ms.merchant_id |
|
|
|
|
|
left join wx_card_spend cs on cs.order_id = ms.order_id |
|
|
|
|
|
left join wx_c_user cu on cu.id = cs.owner_id |
|
|
|
|
|
where ms.order_type in(3,0) and ms.status = 0 |
|
|
|
|
|
union all |
|
|
|
|
|
select pay_amount money,mm.id from wx_profit_sharing_order pso |
|
|
|
|
|
left join wx_merchant mm on pso.merchant_id=mm.id |
|
|
|
|
|
where pso.sharing_status !=5 |
|
|
|
|
|
union all |
|
|
|
|
|
select merchant_id id,receive_pay money from wx_bill_rent_deposit where status = 3 |
|
|
select merchant_id id,receive_pay money from wx_bill_rent_deposit where status = 3 |
|
|
union all |
|
|
union all |
|
|
select merchant_id id,receive_pay money from wx_bill_property_deposit where status = 3 |
|
|
select merchant_id id,receive_pay money from wx_bill_property_deposit where status = 3 |
|
|
|