hjl
2024-07-16 ec6d43aa07ee0e8faf34498057ebcfbb446aa015
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package com.ruoyi.order.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.order.entity.Evaluate;
import com.ruoyi.order.vo.EvaluatePageVO;
import com.ruoyi.order.vo.OrderEvaluateVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
/**
 * <p>
 * 用户评价表 Mapper 接口
 * </p>
 *
 * @author hjl
 * @since 2024-07-08
 */
@Mapper
public interface EvaluateMapper extends BaseMapper<Evaluate> {
 
    /**
     * 订单评价分页列表
     *
     * @param userName    评价用户
     * @param orderNumber 订单编号
     * @param workerName  师傅姓名
     * @param page        分页
     * @return 分页
     */
    Page<EvaluatePageVO> queryPageList(@Param("userName") String userName, @Param("orderNumber") String orderNumber,
                                       @Param("workerName") String workerName, Page<EvaluatePageVO> page);
 
    /**
     * 用户所关联评价记录分页列表
     *
     * @param userId 用户id
     * @param page   分页
     * @return 分页列表
     */
    Page<EvaluatePageVO> evaluateList(@Param("userId") Integer userId, Page<EvaluatePageVO> page);
 
    /**
     * 订单与评价列表
     *
     * @param userId 用户id
     * @param state  状态
     * @param page   分页
     * @return 列表数据
     */
    Page<OrderEvaluateVO> evaluateListByUser(@Param("userId") Integer userId,
                                             @Param("state") Integer state, Page<OrderEvaluateVO> page);
}