From 437713ee567f25c04f094057a1908b6dc54eeefd Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期四, 16 十一月 2023 16:57:29 +0800 Subject: [PATCH] 1、农户类型管理 2、农户管理 --- pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaBlockMapper.xml | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaBlockMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaBlockMapper.xml index 46df3bd..28fb02a 100644 --- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaBlockMapper.xml +++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaBlockMapper.xml @@ -27,7 +27,7 @@ select count(*) from ba_block - <trim prefix="where "> + <trim prefix="where " suffixOverrides="and"> <if test="name != null"> name like '%#{name,jdbcType=VARCHAR}%' and </if> @@ -38,7 +38,7 @@ phone = '#{phone,jdbcType=VARCHAR}' and </if> <if test="area != null"> - area = #{area,jdbcType=INTEGER} + area = #{area,jdbcType=INTEGER} and </if> </trim> </select> @@ -47,7 +47,7 @@ select <include refid="Base_Column_List" /> from ba_block - <trim prefix="where "> + <trim prefix="where " suffixOverrides="and"> <if test="name != null"> name like '%#{name,jdbcType=VARCHAR}%' and </if> @@ -58,7 +58,7 @@ phone = '#{phone,jdbcType=VARCHAR}' and </if> <if test="area != null"> - area = #{area,jdbcType=INTEGER} + area = #{area,jdbcType=INTEGER} and </if> </trim> order by id DESC -- Gitblit v1.8.0