package com.fjhx.stock.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fjhx.entity.scheduling.Scheduling;
import com.fjhx.entity.stock.StockBackPlan;
import org.apache.ibatis.annotations.Param;
import org.springblade.core.tenant.annotation.TenantIgnore;

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

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2022-09-02
 */
public interface StockBackPlanMapper extends BaseMapper<StockBackPlan> {

    @InterceptorIgnore(tenantLine = "1")
    @TenantIgnore
    List<Map<String, Object>> getList(@Param("ew") LambdaQueryWrapper<Scheduling> wrapper);

    @TenantIgnore
    List<Map<String, Object>> getWater(@Param("ew") QueryWrapper<Object> wrapper);

    @TenantIgnore
    List<Map<String, Object>> getCorrect(@Param("ew") QueryWrapper<Object> wrapper);

    @TenantIgnore
    List<Map<String, Object>> getTransferBackList(@Param("ew") QueryWrapper<Object> wrapper);

    @TenantIgnore
    List<Map<String, Object>> getTransferPickingList(@Param("ew") QueryWrapper<Object> wrapper);

    @TenantIgnore
    List<Map<String, Object>> getReturnWarehouse(@Param("ew") QueryWrapper<Object> wrapper);

    List<Map<String, Object>> getHeadTailCorrectList(@Param("ew") QueryWrapper<Object> wrapper);

}
