|
|
|
@@ -139,6 +139,23 @@ |
|
|
|
<include refid="dynamicWhereConditions"/> |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="selectBatchByIds" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
|
s.`id`,s.`tenant_id`,s.`parent_tenant_id`,s.`shop_number`,s.`build_area`,s.`operation_area`,b.building_name building,f.floor_name floor,s.`status`,s.`x`,s.`y`,s.`addr`, |
|
|
|
s.`baidu_poi`,s.`longitude`,s.`latitude`,s.`create_date`,s.`update_date`,s.`img_url`,s.`manager`,s.`manager_phone`, |
|
|
|
s.`type`,s.`point_type`,s.`comments`,s.`is_del`,DATEDIFF(now(),s.create_date) freeDay,s.rent,s.rent_unit,s.business_id |
|
|
|
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 != ids "> |
|
|
|
and s.id in |
|
|
|
<foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> |
|
|
|
#{idItem} |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="findListMap" parameterType="com.iformall.domain.po.WxShop" resultType="hashmap"> |
|
|
|
select s.id id, s.tenant_id tenantId, s.parent_tenant_id parentTenantId, s.shop_number shopNumber,CONVERT(s.build_area,DECIMAL(10,2)) buildArea, |
|
|
|
s.img_url imgUrl,CONVERT(s.operation_area,DECIMAL(10,2)) operationArea, |
|
|
|
|