package com.unis.crk.common.mapper;

import com.unis.crk.common.entity.Bizflowtrail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

import java.util.Map;

/**
 * <p>
 * 数据流程节点轨迹记录表 Mapper 接口
 * </p>
 *
 * @author TangSong
 * @since 2021-09-28
 */
public interface BizflowtrailMapper extends BaseMapper<Bizflowtrail> {
    /**
     * 根据方向查询单位，品种，车牌号及业务日期
     * @param bizNo
     * @param direction
     * @return
     */
    Map<String,Object> getCrkPzInfo(@Param("bizNo") String bizNo, @Param("direction") Integer direction);

    /**
     * 得到转圈粮信息
     * @param unitId
     * @param lspz
     * @param beginDay
     * @param endDay
     * @param cph
     * @param direction
     * @return
     */
    Map<String,Object> getCircleBusinessInfo(@Param("unitId")String unitId,
                                             @Param("lspz")String lspz,
                                             @Param("beginDay")String beginDay,
                                             @Param("endDay")String endDay,
                                             @Param("cph")String cph,
                                             @Param("direction") Integer direction);
}
