|
|
@ -77,7 +77,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
ORDER BY distance LIMIT 20
|
|
|
|
ORDER BY distance LIMIT 20
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
<select id="getBuildingByCity" resultType="com.ruoyi.system.domain.WxBuildingInfo">
|
|
|
|
<select id="getBuildingByCity" resultType="com.ruoyi.system.domain.WxBuildingInfo">
|
|
|
|
|
|
|
|
select info.* from building_info info where info.is_deleted=0
|
|
|
|
|
|
|
|
<if test="status != null and status != ''">
|
|
|
|
|
|
|
|
AND info.status=#{status}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="buildingName != null and buildingName != ''">
|
|
|
|
|
|
|
|
AND info.building_name like CONCAT('%',#{buildingName},'%')
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="cityCode != null and cityCode != ''">
|
|
|
|
|
|
|
|
AND info.city_code=#{cityCode}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="isSupportlive != null and isSupportlive != ''">
|
|
|
|
|
|
|
|
AND info.is_supportlive=#{isSupportlive}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="createdId != null">
|
|
|
|
|
|
|
|
AND created_id=#{createdId}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
<select id="getAllBuildingByCondition" resultType="com.ruoyi.system.domain.vo.BuildingInfoResponse">
|
|
|
|
<select id="getAllBuildingByCondition" resultType="com.ruoyi.system.domain.vo.BuildingInfoResponse">
|
|
|
@ -98,19 +113,25 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
AND created_id=#{createdId}
|
|
|
|
AND created_id=#{createdId}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
<select id="getAuditPage" parameterType="WxBuildingInfo" resultMap="WxBuildingInfoResult">
|
|
|
|
<select id="getAuditPage" resultType="com.ruoyi.system.domain.WxBuildingInfo">
|
|
|
|
SELECT * FROM building_info where 1=1
|
|
|
|
select info.* from building_info info where info.is_deleted=0
|
|
|
|
<if test="status != null and status != ''">
|
|
|
|
<if test="status != null and status != ''">
|
|
|
|
AND status=#{status}
|
|
|
|
AND info.status=#{status}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="buildingName != null and buildingName != ''">
|
|
|
|
<if test="buildingName != null and buildingName != ''">
|
|
|
|
AND building_name like CONCAT('%',#{buildingName},'%')
|
|
|
|
AND info.building_name like CONCAT('%',#{buildingName},'%')
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="createdBy != null and createdBy != ''">
|
|
|
|
<if test="cityCode != null and cityCode != ''">
|
|
|
|
AND created_by=#{createdBy}
|
|
|
|
AND info.city_code=#{cityCode}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="isSupportlive != null and isSupportlive != ''">
|
|
|
|
|
|
|
|
AND info.is_supportlive=#{isSupportlive}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="createdId != null">
|
|
|
|
<if test="createdId != null">
|
|
|
|
AND created_id=#{createdId}
|
|
|
|
AND info.created_id=#{createdId}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="createdBy != null and createdBy != ''">
|
|
|
|
|
|
|
|
AND info.created_by=#{createdBy}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|