package com.ltgk.crew.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ltgk.crew.domain.dto.GetCrewGoSeaReq;
import com.ltgk.crew.domain.entity.DsCrewOutCheck;
import com.ltgk.crew.domain.vo.CrewGoSeaVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

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

/**
 * 出港船员报备信息Mapper接口
 *
 * @author Qi ChengBin
 * @date 2024-12-07
 */
@Mapper
public interface DsCrewOutCheckMapper extends BaseMapper<DsCrewOutCheck> {
    Long selectCount(@Param("date") Date date);

    List<CrewGoSeaVo> selectCrewGoSea(GetCrewGoSeaReq getCrewGoSeaReq);

    /**
     * 根据渔船出港审核主键，修改其中绑定的船员的id 的字段
     *
     * @param dsOutPortMap:
     * @return boolean
     * @author Qi ChengBin
     * @date 2025/4/16
     */
    boolean updateDsOutPort(@Param("dsOutPortMap") Map<String, Object> dsOutPortMap);
}
