云
8 小时以前 d17024670efca145ff97bc26913bfd9b0fef2cd0
yudao-module-crm/src/main/java/cn/iocoder/yudao/module/crm/api/customer/CrmCustomerApi.java
@@ -11,12 +11,14 @@
 *
 * 提供给其它模块(如 ERP)调用
 *
 * @author 芋道源码
 * @author 超级管理员
 */
public interface CrmCustomerApi {
    /**
     * 获得客户信息
     *
     * 供其它业务模块访问关联客户,拥有跨模块访问权限,不受 CRM 客户负责人权限限制。
     *
     * @param id 客户编号
     * @return 客户信息
@@ -26,6 +28,8 @@
    /**
     * 获得客户信息列表
     *
     * 供其它业务模块访问关联客户,拥有跨模块访问权限,不受 CRM 客户负责人权限限制。
     *
     * @param ids 客户编号列表
     * @return 客户信息列表
     */
@@ -34,6 +38,8 @@
    /**
     * 获得客户信息 Map
     *
     * 供其它业务模块访问关联客户,拥有跨模块访问权限,不受 CRM 客户负责人权限限制。
     *
     * @param ids 客户编号列表
     * @return 客户信息 Map
     */
@@ -41,6 +47,8 @@
    /**
     * 校验客户是否存在
     *
     * 供其它业务模块校验业务单据中的客户,拥有跨模块访问权限。
     *
     * @param id 客户编号
     * @return 客户信息(校验通过)
@@ -56,4 +64,13 @@
     */
    List<Long> getPermittedCustomerIds();
}
    /**
     * 获得客户简单列表(编号 + 名称)
     *
     * 用于其它模块(如 ERP 销售订单导入)按客户名称匹配客户编号
     *
     * @return 客户简单列表
     */
    List<CrmCustomerRespDTO> getCustomerSimpleList();
}