liurunyu
2023-11-27 8a9a931d5f8ca0e235e0d263032e386038f917fa
pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaClientMapper.xml
@@ -71,10 +71,10 @@
                bc.name like concat('%', #{name}, '%') and
            </if>
            <if test="num != null">
                bc.num = '#{num,jdbcType=VARCHAR}' and
                bc.num = #{num,jdbcType=VARCHAR} and
            </if>
            <if test="phone != null">
                bc.phone = '#{phone,jdbcType=VARCHAR}' and
                bc.phone = #{phone,jdbcType=VARCHAR} and
            </if>
        </trim>
    </select>
@@ -107,16 +107,16 @@
                bc.name like concat('%', #{name}, '%') and
            </if>
            <if test="num != null">
                bc.num = '#{num,jdbcType=VARCHAR}' and
                bc.num = #{num,jdbcType=VARCHAR} and
            </if>
            <if test="phone != null">
                bc.phone = '#{phone,jdbcType=VARCHAR}' and
                bc.phone = #{phone,jdbcType=VARCHAR} and
            </if>
        </trim>
        order by bc.id DESC
        <trim prefix="limit " >
            <if test="start != null and count != null">
                #{start}, #{count}
                #{start,jdbcType=INTEGER}, #{count,jdbcType=INTEGER}
            </if>
        </trim>
    </select>