package com.zhyc.module.dairyProducts.mapper;

import com.zhyc.module.dairyProducts.domain.NpMilkInOutStore;
import org.apache.ibatis.annotations.Param;

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

public interface NpMilkInOutStoreMapper {
    List<Map<String,Object>> selectWithColumns(
            @Param("start") Date start, @Param("end") Date end,
            @Param("feedSources") List<String> feedSources,
            @Param("saleDestinations") List<String> saleDestinations
    );
    int insertStore(NpMilkInOutStore store);
    void insertFeedRecord(@Param("storeId") Integer storeId, @Param("source") String source, @Param("amount") java.math.BigDecimal amount);
    void insertSaleRecord(@Param("storeId") Integer storeId, @Param("destination") String dest, @Param("amount") java.math.BigDecimal amount);

    List<String> selectFeedSources();
    List<String> selectSaleDestinations();
}

