package com.sqx.modules.errand.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sqx.modules.errand.entity.ErrandEvaluate;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface ErrandEvaluateDao extends BaseMapper<ErrandEvaluate> {

    void userEvaluate(Long userId, Long riderUserId, String indentNumber, String evaluateMessage, Integer satisfactionFlag, String format);

    Double selectEvaluateScoreByShopIdAndTime(Long shopId,String startTime,String endTime);

    IPage<ErrandEvaluate> selectEvaluateList(Page<ErrandEvaluate> page, String nickName, String riderName, Long userId, Long riderUserId, String satisfactionFlag, String indentNumber);

}
