|
|
|
@@ -127,14 +127,11 @@ |
|
|
|
|
|
|
|
select s.id,s.shop_number shopNumber,s.build_area buildArea, |
|
|
|
s.img_url imgUrl,s.operation_area operationArea, |
|
|
|
s.status,b.building_name building,f.floor_name floor,m.`name` merchantName,m.id merchantId, |
|
|
|
rc.id rentContractId,rc.link_person linkPerson,rc.link_phone linkPhone |
|
|
|
s.status,b.building_name building,f.floor_name floor,m.`name` merchantName,m.id merchantId |
|
|
|
from wx_shop s left join wx_merchant_shop ms on ms.shop_id=s.id and ms.is_del=0 |
|
|
|
left join wx_merchant m on ms.merchant_id=m.id |
|
|
|
left join wx_mall_building b |
|
|
|
on s.building=b.id |
|
|
|
left join wx_mall_building b on s.building=b.id |
|
|
|
left join wx_mall_floor f on s.floor=f.id |
|
|
|
left join wx_rent_contract rc on s.id=rc.shop_id |
|
|
|
where 1 = 1 |
|
|
|
|
|
|
|
<if test=" null != id "> |
|
|
|
|