package com.fjhx.material.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fjhx.entity.material.Material;
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-07-20
 */
public interface MaterialSMapper extends BaseMapper<Material> {

    /**
     * 下拉列表
     *
     * @param condition
     * @return
     */
    @TenantIgnore
    List<Material> selectMaList(Map<String, Object> condition);

    List<Map<String, Object>> getMaterialPrice(@Param("materialCode") String materialCode);

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

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

}
