package com.storlead.sales.service.customer;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.storlead.framework.common.result.Result;
import com.storlead.sales.pojo.dto.customer.CommentQueryDTO;
import com.storlead.sales.pojo.entity.customer.RecordCommentEntity;
import com.storlead.framework.mybatis.service.MyBaseService;
import com.storlead.sales.pojo.vo.customer.RecordCommentVO;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 通用评论表 服务类
 * </p>
 *
 * @author YPZ
 * @since 2024-05-16
 */
public interface RecordCommentService extends MyBaseService<RecordCommentEntity> {

    /***
      * @Description: 评论列表
      * @Param:
      * @return:
      * @Author: YPZ
      * @Date: 2024/5/16 11:54
      */
    Result<IPage<RecordCommentVO>> fillTaskList(CommentQueryDTO dto);

    List<RecordCommentVO> listCommont(Integer type,List<Long> dataIds);

    void removeByParentid(Long id);

    Map<Long, Integer> getRecordNumMap(String type, List<Long> customerFollowUpIdList);
}
