列表SQL添加网格(grid_id)搜索条件

This commit is contained in:
Renpc-kilig 2021-12-16 16:50:41 +08:00
parent b85deea268
commit 83891cec12
9 changed files with 27 additions and 0 deletions

View File

@ -193,6 +193,9 @@
<if test="areaCodeLike != null and areaCodeLike != ''"> <if test="areaCodeLike != null and areaCodeLike != ''">
AND t1.area_code LIKE CONCAT(#{areaCodeLike}, '%') AND t1.area_code LIKE CONCAT(#{areaCodeLike}, '%')
</if> </if>
<if test="gridId != null and gridId != ''">
AND t1.grid_id = #{gridId}
</if>
ORDER BY t1.gmt_create DESC ORDER BY t1.gmt_create DESC
</select> </select>

View File

@ -187,6 +187,9 @@
<if test="areaCodeLike != null and areaCodeLike != ''"> <if test="areaCodeLike != null and areaCodeLike != ''">
AND t1.area_code LIKE CONCAT(#{areaCodeLike}, '%') AND t1.area_code LIKE CONCAT(#{areaCodeLike}, '%')
</if> </if>
<if test="gridId != null and gridId != ''">
AND t1.grid_id = #{gridId}
</if>
ORDER BY t1.gmt_create DESC ORDER BY t1.gmt_create DESC
</select> </select>

View File

@ -308,6 +308,9 @@
<if test="areaCodeLike != null and areaCodeLike != ''"> <if test="areaCodeLike != null and areaCodeLike != ''">
AND t1.area_code LIKE CONCAT(#{areaCodeLike}, '%') AND t1.area_code LIKE CONCAT(#{areaCodeLike}, '%')
</if> </if>
<if test="gridId != null and gridId != ''">
AND t1.grid_id = #{gridId}
</if>
ORDER BY t1.gmt_create DESC ORDER BY t1.gmt_create DESC
</select> </select>

View File

@ -177,6 +177,9 @@
<if test="areaCodeLike != null and areaCodeLike != ''"> <if test="areaCodeLike != null and areaCodeLike != ''">
AND t1.area_code LIKE CONCAT(#{areaCodeLike}, '%') AND t1.area_code LIKE CONCAT(#{areaCodeLike}, '%')
</if> </if>
<if test="gridId != null and gridId != ''">
AND t1.grid_id = #{gridId}
</if>
ORDER BY gmt_create DESC ORDER BY gmt_create DESC
</select> </select>

View File

@ -214,6 +214,9 @@
<if test="areaCodeLike != null and areaCodeLike != ''"> <if test="areaCodeLike != null and areaCodeLike != ''">
AND t1.area_code LIKE CONCAT(#{areaCodeLike}, '%') AND t1.area_code LIKE CONCAT(#{areaCodeLike}, '%')
</if> </if>
<if test="gridId != null and gridId != ''">
AND t1.grid_id = #{gridId}
</if>
ORDER BY gmt_create DESC ORDER BY gmt_create DESC
</select> </select>

View File

@ -218,6 +218,9 @@
<if test="areaCodeLike != null and areaCodeLike != ''"> <if test="areaCodeLike != null and areaCodeLike != ''">
AND t1.area_code LIKE CONCAT(#{areaCodeLike}, '%') AND t1.area_code LIKE CONCAT(#{areaCodeLike}, '%')
</if> </if>
<if test="gridId != null and gridId != ''">
AND t1.grid_id = #{gridId}
</if>
ORDER BY t1.gmt_create DESC ORDER BY t1.gmt_create DESC
</select> </select>

View File

@ -231,6 +231,9 @@
<if test="areaCodeLike != null and areaCodeLike != ''"> <if test="areaCodeLike != null and areaCodeLike != ''">
AND t1.area_code LIKE CONCAT(#{areaCodeLike}, '%') AND t1.area_code LIKE CONCAT(#{areaCodeLike}, '%')
</if> </if>
<if test="gridId != null and gridId != ''">
AND t1.grid_id = #{gridId}
</if>
ORDER BY t1.gmt_create DESC ORDER BY t1.gmt_create DESC
</select> </select>

View File

@ -245,6 +245,9 @@
<if test="areaCodeLike != null and areaCodeLike != ''"> <if test="areaCodeLike != null and areaCodeLike != ''">
AND t1.area_code LIKE CONCAT(#{areaCodeLike}, '%') AND t1.area_code LIKE CONCAT(#{areaCodeLike}, '%')
</if> </if>
<if test="gridId != null and gridId != ''">
AND t1.grid_id = #{gridId}
</if>
ORDER BY gmt_create DESC ORDER BY gmt_create DESC
</select> </select>

View File

@ -214,6 +214,9 @@
<if test="areaCodeLike != null and areaCodeLike != ''"> <if test="areaCodeLike != null and areaCodeLike != ''">
AND t1.area_code LIKE CONCAT(#{areaCodeLike}, '%') AND t1.area_code LIKE CONCAT(#{areaCodeLike}, '%')
</if> </if>
<if test="gridId != null and gridId != ''">
AND t1.grid_id = #{gridId}
</if>
ORDER BY gmt_create DESC ORDER BY gmt_create DESC
</select> </select>