CustomerEnrichService.java 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. package com.malk.service.customer;
  2. import com.malk.server.customer.CustomerEnrichRequest;
  3. import com.malk.server.customer.CustomerEnrichResult;
  4. import com.malk.server.customer.CustomerSearchResult;
  5. /**
  6. * 客户档案工商信息查询与字段映射服务。
  7. */
  8. public interface CustomerEnrichService {
  9. /**
  10. * 搜索工商候选企业,不自动选择候选。
  11. *
  12. * @param customerName 客户名称关键词
  13. * @param pageNum 页码
  14. * @param pageSize 每页数量
  15. * @return 候选列表
  16. */
  17. CustomerSearchResult search(String customerName, Integer pageNum, Integer pageSize);
  18. /**
  19. * 按天眼查企业 ID 查询详情并生成回填字段。
  20. *
  21. * @param companyId 天眼查企业 ID
  22. * @param existingValues 宜搭现有字段值
  23. * @return 工商详情及回填计划
  24. */
  25. CustomerEnrichResult detail(Long companyId, java.util.Map<String, Object> existingValues);
  26. /**
  27. * 兼容旧回填入口,按 ID、信用代码或严格一致的企业名称查询。
  28. *
  29. * @param request 回填请求
  30. * @return 工商详情及回填计划
  31. */
  32. CustomerEnrichResult enrich(CustomerEnrichRequest request);
  33. }