mirror of
https://gitee.com/y_project/RuoYi-Cloud.git
synced 2026-01-29 13:01:57 +08:00
分页问题优化
This commit is contained in:
@@ -77,7 +77,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
ORDER BY distance LIMIT 20
|
||||
</select>
|
||||
<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 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}
|
||||
</if>
|
||||
</select>
|
||||
<select id="getAuditPage" parameterType="WxBuildingInfo" resultMap="WxBuildingInfoResult">
|
||||
SELECT * FROM building_info where 1=1
|
||||
<select id="getAuditPage" resultType="com.ruoyi.system.domain.WxBuildingInfo">
|
||||
select info.* from building_info info where info.is_deleted=0
|
||||
<if test="status != null and status != ''">
|
||||
AND status=#{status}
|
||||
AND info.status=#{status}
|
||||
</if>
|
||||
<if test="buildingName != null and buildingName != ''">
|
||||
AND building_name like CONCAT('%',#{buildingName},'%')
|
||||
AND info.building_name like CONCAT('%',#{buildingName},'%')
|
||||
</if>
|
||||
<if test="createdBy != null and createdBy != ''">
|
||||
AND created_by=#{createdBy}
|
||||
<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}
|
||||
AND info.created_id=#{createdId}
|
||||
</if>
|
||||
<if test="createdBy != null and createdBy != ''">
|
||||
AND info.created_by=#{createdBy}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user