package com.mortals.xhx.module.feedback.dao;

import com.mortals.framework.dao.ICRUDDao;
import com.mortals.framework.model.PageInfo;
import com.mortals.framework.model.Result;
import com.mortals.xhx.module.feedback.model.FeedbackEntity;
import com.mortals.xhx.module.feedback.model.vo.FeedbackStaffInfoVo;
import com.mortals.xhx.module.feedback.model.vo.OptionSummaryVo;
import com.mortals.xhx.module.feedback.model.vo.QuestionAnswerVo;

import java.util.List;
/**
* 绩效反馈记录信息Dao
* 绩效反馈记录信息 DAO接口
*
* @author zxfei
* @date 2023-07-05
*/

public interface  FeedbackDao extends ICRUDDao<FeedbackEntity,Long>{

    /***
     * 问卷反馈人员列表
     * @param query
     * @return
     */
    Result<FeedbackStaffInfoVo> getFeedbackStaffList(FeedbackEntity query,PageInfo pageInfo);

    /**
     * 问卷单选多选反馈统计
     * @param feedbackId
     * @return
     */
    List<OptionSummaryVo> getOptionSummaryList(Long feedbackId);

    /**
     * 问卷问题反馈详情
     * @param questionId
     * @param pageInfo
     * @return
     */
    Result<QuestionAnswerVo> getQuestionAnswerList(Long questionId, PageInfo pageInfo);
}
