yuan
2026-06-06 bfe2eb20746ba63fe7fc86b1b2ad5dc3095cc9b3
src/main/resources/mapper/basic/CustomerMapper.xml
@@ -33,11 +33,11 @@
                and customer_type = #{c.customerType}
            </if>
            <!-- 公海查询:type = 1(公海客户)-->
            <if test="c.type != null and c.type == 1">
            <!--<if test="c.type != null and c.type == 1">
                and type = #{c.type}
            </if>
            </if>-->
            <!-- 私海查询:type = 0(私海客户)或者 type = 1(公海客户)且已被分配,并且是自己领用、自己创建或者共享给自己的客户 -->
            <if test="c.type != null and c.type == 0">
            <!--<if test="c.type != null and c.type == 0">
                and (
                    (type = #{c.type} or (type = 1 and is_assigned = 1))
                    and (
@@ -50,7 +50,7 @@
                        )
                    )
                )
            </if>
            </if>-->
        </where>
    </select>
@@ -87,11 +87,11 @@
                and customer_type = #{c.customerType}
            </if>
            <!-- 公海查询:type = 1(公海客户)-->
            <if test="c.type != null and c.type == 1">
            <!--<if test="c.type != null and c.type == 1">
                and type = #{c.type}
            </if>
            </if>-->
            <!-- 私海查询:type = 0(私海客户)或者 type = 1(公海客户)且已被分配,并且是自己领用、自己创建或者共享给自己的客户 -->
            <if test="c.type != null and c.type == 0">
            <!--<if test="c.type != null and c.type == 0">
                and (
                    (type = #{c.type} or (type = 1 and is_assigned = 1))
                    and (
@@ -104,7 +104,7 @@
                        )
                    )
                )
            </if>
            </if>-->
        </where>
    </select>