package com.ym.mec.biz.dal.dao;

import com.ym.mec.biz.dal.dto.SubjectGoodsDto;
import com.ym.mec.biz.dal.entity.SubjectGoodsMapper;
import com.ym.mec.common.dal.BaseDAO;
import org.apache.ibatis.annotations.Param;

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

public interface SubjectGoodsMapperDao extends BaseDAO<Long, SubjectGoodsMapper> {

    /**
     * 批量新增
     * @param goodsCategoryId
     * @param subjectIds
     */
    void batchAdd(@Param("goodsCategoryId") Integer goodsCategoryId, @Param("subjectIds") List<Integer> subjectIds);

    /**
     * 删除科目与商品类型关联
     * @param goodsCategoryId
     */
    void delByGoodsCategoryId(Integer goodsCategoryId);

    /**
     * COUNT声部关联的商品列表
     * @param params
     * @return
     */
    int countSubjectGoods(Map<String, Object> params);

    /**
     * 声部关联的商品列表
     * @param params
     * @return
     */
    List<SubjectGoodsDto> querySubjectGoods(Map<String, Object> params);
}