|
|
|
@@ -267,6 +267,43 @@ |
|
|
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="notRentListMapAsPage" parameterType="com.iformall.domain.po.WxShop" resultType="hashmap"> |
|
|
|
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,s.manager,s.manager_phone managerPhone, |
|
|
|
s.type,s.point_type pointType,s.addr,DATEDIFF(now(),s.create_date) freeDay |
|
|
|
from wx_shop s |
|
|
|
left join wx_mall_building b on s.building=b.id |
|
|
|
left join wx_mall_floor f on s.floor=f.id |
|
|
|
where s.is_del=0 |
|
|
|
|
|
|
|
<if test=" null != id "> |
|
|
|
and s.`id` = #{id} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != tenantId "> |
|
|
|
and s.`tenant_id`= #{tenantId} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != shopNumber and ''!=shopNumber"> |
|
|
|
and s.`shop_number` like concat('%', #{shopNumber},'%') |
|
|
|
</if> |
|
|
|
<if test=" null != status"> |
|
|
|
and s.`status` = #{status} |
|
|
|
</if> |
|
|
|
<if test=" null != type "> |
|
|
|
and s.`type` = #{type} |
|
|
|
</if> |
|
|
|
<if test=" null != pointType "> |
|
|
|
and s.`point_type` = #{pointType} |
|
|
|
</if> |
|
|
|
<if test="null != sortColumn"> |
|
|
|
order by s.${sortColumn} ${sortOrder} |
|
|
|
</if> |
|
|
|
<if test="null == sortColumn"> |
|
|
|
<if test=" null != sortColumns">order by s.${sortColumns}</if> |
|
|
|
</if> |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
<resultMap id="VoResultMap" type="com.iformall.domain.vo.WxShopVo"> |
|
|
|
|