RiderWithdrawApplyMapper.java 1.94 KB
package com.diligrp.rider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.diligrp.rider.entity.Rider;
import com.diligrp.rider.entity.RiderWithdrawApply;
import com.diligrp.rider.vo.RiderWithdrawApplyVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RiderWithdrawApplyMapper extends BaseMapper<RiderWithdrawApply> {
    Rider selectRiderForUpdate(@Param("riderId") Long riderId);

    RiderWithdrawApply selectApplyForUpdate(@Param("id") Long id);

    long countRiderList(@Param("riderId") Long riderId,
                        @Param("status") Integer status);

    List<RiderWithdrawApplyVO> selectRiderList(@Param("riderId") Long riderId,
                                               @Param("status") Integer status,
                                               @Param("offset") int offset,
                                               @Param("pageSize") int pageSize);

    long countAdminList(@Param("cityId") Long cityId,
                        @Param("status") Integer status,
                        @Param("keyword") String keyword,
                        @Param("startTime") Long startTime,
                        @Param("endTime") Long endTime);

    List<RiderWithdrawApplyVO> selectAdminList(@Param("cityId") Long cityId,
                                               @Param("status") Integer status,
                                               @Param("keyword") String keyword,
                                               @Param("startTime") Long startTime,
                                               @Param("endTime") Long endTime,
                                               @Param("offset") int offset,
                                               @Param("pageSize") int pageSize);

    RiderWithdrawApplyVO selectAdminDetail(@Param("id") Long id,
                                           @Param("cityId") Long cityId);
}