ICcCallPhoneService.java 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. package com.ruoyi.aicall.service;
  2. import com.ruoyi.aicall.domain.CcCallPhone;
  3. import com.ruoyi.aicall.domain.CcLlmAgentAccount;
  4. import com.ruoyi.aicall.model.CallPhoneExportVo;
  5. import com.ruoyi.aicall.model.CallTaskStatModel;
  6. import java.util.List;
  7. import java.util.Map;
  8. /**
  9. * 外呼号码Service接口
  10. *
  11. * @author ruoyi
  12. * @date 2025-05-29
  13. */
  14. public interface ICcCallPhoneService
  15. {
  16. /**
  17. * 查询外呼号码
  18. *
  19. * @param id 外呼号码主键
  20. * @return 外呼号码
  21. */
  22. public CcCallPhone selectCcCallPhoneById(String id);
  23. /**
  24. * 查询外呼号码列表
  25. *
  26. * @param ccCallPhone 外呼号码
  27. * @return 外呼号码集合
  28. */
  29. public List<CcCallPhone> selectCcCallPhoneList(CcCallPhone ccCallPhone);
  30. /**
  31. * 列表加速:仅查询符合条件的主键(供分页/COUNT)
  32. */
  33. List<String> selectCcCallPhoneIds(CcCallPhone ccCallPhone);
  34. /**
  35. * 列表加速:按主键批量回表轻量字段(不含 dialogue/biz_json/tts_text)
  36. */
  37. List<CcCallPhone> selectCcCallPhoneLiteByIds(List<String> ids);
  38. /**
  39. * 新增外呼号码
  40. *
  41. * @param ccCallPhone 外呼号码
  42. * @return 结果
  43. */
  44. public int insertCcCallPhone(CcCallPhone ccCallPhone);
  45. /**
  46. * 修改外呼号码
  47. *
  48. * @param ccCallPhone 外呼号码
  49. * @return 结果
  50. */
  51. public int updateCcCallPhone(CcCallPhone ccCallPhone);
  52. /**
  53. * 批量删除外呼号码
  54. *
  55. * @param ids 需要删除的外呼号码主键集合
  56. * @return 结果
  57. */
  58. public int deleteCcCallPhoneByIds(String ids);
  59. /**
  60. * 删除外呼号码信息
  61. *
  62. * @param id 外呼号码主键
  63. * @return 结果
  64. */
  65. public int deleteCcCallPhoneById(String id);
  66. /**
  67. * 根据batchId统计外呼数据
  68. * @param batchId
  69. * @return
  70. */
  71. public CallTaskStatModel statByBatchId(Long batchId);
  72. /**
  73. * 根据多个batchId批量统计外呼数据
  74. * @param batchIds
  75. * @return key=batchId
  76. */
  77. Map<Long, CallTaskStatModel> statByBatchIds(List<Long> batchIds);
  78. /**
  79. * 批量入库
  80. * @param phoneList
  81. */
  82. public void batchInsertCcCallPhone(List<CcCallPhone> phoneList);
  83. List<CcCallPhone> getCustIntentionList();
  84. void updateIntentionByIds(String intention, List<String> phoneIds);
  85. String getIntenetionByDialogue(CcLlmAgentAccount ccLlmAgentAccount, String dialogue);
  86. List<CcCallPhone> selectNoHangupCalls(Long batchId);
  87. void bakCallPhoneByBatchId(Long batchId);
  88. void delCallPhoneByBatchId(Long batchId);
  89. List<CcCallPhone> selectCcCallPhoneYlrzList(CcCallPhone ccCallPhone);
  90. List<CcCallPhone> selectCcCallPhoneListByIds(List<String> callPhoneIds);
  91. String selectCcCallPhoneDialogueByUuid(String uuid);
  92. }