CcCallPhoneMapper.java 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. package com.ruoyi.aicall.mapper;
  2. import com.ruoyi.aicall.domain.CcCallPhone;
  3. import com.ruoyi.aicall.model.CallTaskStatModel;
  4. import org.apache.ibatis.annotations.Param;
  5. import org.apache.ibatis.annotations.Select;
  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<CcCallPhone> selectCcCallPhoneYlrzList(CcCallPhone ccCallPhone);
  78. List<CcCallPhone> selectCcCallPhoneListByIds(List<String> callPhoneIds);
  79. String selectCcCallPhoneDialogueByUuid(@Param("uuid") String uuid);
  80. }