liurunyu
2023-11-16 437713ee567f25c04f094057a1908b6dc54eeefd
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