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

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

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);

    List<MainPersonDto> todayTaskPerson();
}
