CcCallPhoneMapper.java 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. package com.ruoyi.aicall.mapper;
  2. import com.ruoyi.aicall.domain.CcCallPhone;
  3. import com.ruoyi.aicall.model.CallTaskStatModel;
  4. import com.ruoyi.aicall.model.CommonPhoneModel;
  5. import org.apache.ibatis.annotations.Param;
  6. import java.util.List;
  7. /**
  8. * 外呼号码Mapper接口
  9. *
  10. * @author ruoyi
  11. * @date 2025-05-29
  12. */
  13. public interface CcCallPhoneMapper
  14. {
  15. /**
  16. * 查询外呼号码
  17. *
  18. * @param id 外呼号码主键
  19. * @return 外呼号码
  20. */
  21. public CcCallPhone selectCcCallPhoneById(String id);
  22. /**
  23. * 查询外呼号码列表
  24. *
  25. * @param ccCallPhone 外呼号码
  26. * @return 外呼号码集合
  27. */
  28. public List<CcCallPhone> selectCcCallPhoneList(CcCallPhone ccCallPhone);
  29. /**
  30. * 新增外呼号码
  31. *
  32. * @param ccCallPhone 外呼号码
  33. * @return 结果
  34. */
  35. public int insertCcCallPhone(CcCallPhone ccCallPhone);
  36. /**
  37. * 修改外呼号码
  38. *
  39. * @param ccCallPhone 外呼号码
  40. * @return 结果
  41. */
  42. public int updateCcCallPhone(CcCallPhone ccCallPhone);
  43. /**
  44. * 删除外呼号码
  45. *
  46. * @param id 外呼号码主键
  47. * @return 结果
  48. */
  49. public int deleteCcCallPhoneById(String id);
  50. /**
  51. * 批量删除外呼号码
  52. *
  53. * @param ids 需要删除的数据主键集合
  54. * @return 结果
  55. */
  56. public int deleteCcCallPhoneByIds(String[] ids);
  57. /**
  58. * 根据batchId统计外呼数据
  59. * @param batchId
  60. * @return
  61. */
  62. CallTaskStatModel statByBatchId(Long batchId);
  63. /**
  64. * 批量入库
  65. * @param phoneList
  66. */
  67. void batchInsertCcCallPhone(List<CcCallPhone> phoneList);
  68. /**
  69. * 获取所有的已挂机未跑批客户意向的通话记录
  70. * @return
  71. */
  72. List<CcCallPhone> getCustIntentionList();
  73. int updateIntentionByIds(@Param("intention") String intention, @Param("phoneIds") List<String> phoneIds);
  74. List<CcCallPhone> selectNoHangupCalls(Long batchId);
  75. void bakCallPhoneByBatchId(Long batchId);
  76. void delCallPhoneByBatchId(Long batchId);
  77. List<String> isDuplicateEntry(@Param("batchId") Long batchId,@Param("phoneList") List<CommonPhoneModel> phoneList);
  78. }