buhuazhen
7 天以前 8348d3137b49317f20105e7e45cc30d43866b450
fix(customer): 限制未领用的公海客户不被其他模块引用

通过在客户查询Mapper中添加usage_status = 1的条件,确保只有状态正常的客户(usage_status = 1)才能被查询和引用,解决了未领用的公海客户被其他模块引用的问题。
已修改1个文件
1 ■■■■ 文件已修改
src/main/resources/mapper/basic/CustomerMapper.xml 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/basic/CustomerMapper.xml
@@ -26,6 +26,7 @@
        from customer c
        left join sys_user u on c.usage_user = u.user_id
        <where>
            and c.usage_status = 1
            <if test="c.customerName != null and c.customerName != ''">
                and customer_name like concat('%', #{c.customerName}, '%')
            </if>