|
|
|
@@ -249,8 +249,7 @@ |
|
|
|
</update> |
|
|
|
|
|
|
|
<select id="getRentContractList" parameterType="com.iformall.domain.po.WxRentContract" resultType="com.iformall.domain.po.WxRentContract"> |
|
|
|
select s.shop_id,s.shop_number,s.building_name building, s.floor_name floor,s.build_area,s.floor as floor_id, |
|
|
|
s.building as building_id,rc.* from ( |
|
|
|
select s.shop_id,s.shop_number,s.building_name building, s.floor_name floor,s.build_area,rc.* from ( |
|
|
|
select s.id shop_id,ms.merchant_id,s.shop_number,b.building_name,f.floor_name,s.build_area,s.floor,s.building |
|
|
|
from wx_shop s |
|
|
|
left join wx_mall_building b on s.building=b.id |
|
|
|
@@ -263,10 +262,10 @@ |
|
|
|
and s.shop_number like concat('%', #{shopNumber},'%') |
|
|
|
</if> |
|
|
|
<if test=" null != floor "> |
|
|
|
and s.floor_id = #{floor} |
|
|
|
and s.floor = #{floor} |
|
|
|
</if> |
|
|
|
<if test=" null != building "> |
|
|
|
and s.building_id = #{building} |
|
|
|
and s.building = #{building} |
|
|
|
|
|
|
|
</if> |
|
|
|
order by rc.id desc |
|
|
|
|