liurunyu
2023-11-17 85ce0fa8006e3290447ae0e78783b353f7a3e8f6
查询条件中like语法错误修改
3个文件已修改
12 ■■■■ 已修改文件
pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaBlockMapper.xml 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaClientMapper.xml 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaClientTypeMapper.xml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaBlockMapper.xml
@@ -40,10 +40,10 @@
    from ba_block
      <trim prefix="where " suffixOverrides="and">
        <if test="name != null">
          name like '%#{name,jdbcType=VARCHAR}%' and
          name like concat('%', #{name}, '%') and
        </if>
        <if test="header != null">
          header = '#{header,jdbcType=VARCHAR}' and
          header like concat('%', #{header}, '%') and
        </if>
        <if test="phone != null">
          phone = '#{phone,jdbcType=VARCHAR}' and
@@ -60,7 +60,7 @@
    from ba_block
    <trim prefix="where " suffixOverrides="and">
      <if test="name != null">
        name like '%#{name,jdbcType=VARCHAR}%' and
        name like concat('%', #{name}, '%') and
      </if>
      <if test="header != null">
        header = '#{header,jdbcType=VARCHAR}' and
pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaClientMapper.xml
@@ -65,7 +65,7 @@
                blockId = #{blockId,jdbcType=BIGINT} and
            </if>
            <if test="name != null">
                name like '%#{name,jdbcType=VARCHAR}%' and
                name like concat('%', #{name}, '%') and
            </if>
            <if test="num != null">
                num = '#{num,jdbcType=VARCHAR}' and
@@ -95,7 +95,7 @@
                blockId = #{blockId,jdbcType=BIGINT} and
            </if>
            <if test="name != null">
                name like '%#{name,jdbcType=VARCHAR}%' and
                name like concat('%', #{name}, '%') and
            </if>
            <if test="num != null">
                num = '#{num,jdbcType=VARCHAR}' and
pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaClientTypeMapper.xml
@@ -38,7 +38,7 @@
    from ba_client_type
    <trim prefix="where" suffixOverrides="and">
      <if test="name != null">
        name like concat('%', #{name}, '%')
        name like concat('%', #{name}, '%') and
      </if>
    </trim>
  </select>