package com.bonus.material.expectations.mapper;

import com.bonus.material.expectations.domain.ExpectationsEntity;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

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

@Mapper
public interface ExpectationsMapper {
    /**
     * 在库，在用列表
     *
     * @param entity 条件
     * @return 集合
     */
    List<ExpectationsEntity> getExpectationsList(ExpectationsEntity entity);


    /**
     * 获取数量
     */
    @MapKey("name")
    Map<String, Objects> getCountExpectations(ExpectationsEntity entity);


    List<ExpectationsEntity> getListDetails(ExpectationsEntity entity);
}
