package com.sqx.modules.artificer.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.artificer.entity.Artificer;
import com.sqx.modules.artificer.entity.CollectArtificer;
import com.sqx.modules.artificer.entity.Orders;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


@Mapper
public interface CollectArtificerDao extends BaseMapper<CollectArtificer> {

    IPage<Artificer> selectArtificerListByCollectUserId(Page<Artificer> page,Long userId,@Param("longitude")String longitude,@Param("latitude")String latitude);

    int selectCountByUserId(@Param("artificerId") Long artificerId,@Param("startTime") String startTime,@Param("endTime") String endTime);

}