package com.yeejoin.amos.boot.module.tzs.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yeejoin.amos.boot.module.tzs.api.dto.WechatMyTaskDto;
import com.yeejoin.amos.boot.module.tzs.api.dto.WechatMyTaskListDto;
import com.yeejoin.amos.boot.module.tzs.api.entity.DispatchTask;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 派遣任务 Mapper 接口
 *
 * @author kongfm
 * @date 2021-08-03
 */
public interface DispatchTaskMapper extends BaseMapper<DispatchTask> {

    String returnDistanceByTaskId(@Param("taskId") Long taskId, @Param("lon")String lon, @Param("lat")String lat);

    WechatMyTaskDto getTaskInfoByTaskId(@Param("taskId") Long taskId);

    List<WechatMyTaskListDto> getTaskListByPhonePager(@Param("phone") String phone,@Param("typeCode") String typeCode, @Param("current") Long current);
}
