|
|
|
@@ -10,6 +10,8 @@ |
|
|
|
<result column="operation_area" jdbcType="VARCHAR" property="operationArea"/> |
|
|
|
<result column="building" jdbcType="BIGINT" property="building"/> |
|
|
|
<result column="floor" jdbcType="BIGINT" property="floor"/> |
|
|
|
<result column="building_name" jdbcType="VARCHAR" property="buildingName"/> |
|
|
|
<result column="floor_name" jdbcType="VARCHAR" property="floorName"/> |
|
|
|
<result column="status" jdbcType="INTEGER" property="status"/> |
|
|
|
<result column="x" jdbcType="DECIMAL" property="x"/> |
|
|
|
<result column="y" jdbcType="DECIMAL" property="y"/> |
|
|
|
@@ -139,22 +141,22 @@ |
|
|
|
<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="selectBatchByIds" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
|
s.`id`,s.`tenant_id`,s.`parent_tenant_id`,s.`shop_number`,s.`build_area`,s.`operation_area`,s.building,b.building_name building_name,s.floor,f.floor_name floor_name,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, |
|
|
|
|