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

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

import org.apache.ibatis.annotations.Param;

import com.ym.mec.biz.dal.entity.OrganizationCourseUnitPriceSettings;
import com.ym.mec.biz.dal.entity.CourseSchedule.CourseScheduleType;
import com.ym.mec.common.dal.BaseDAO;

public interface OrganizationCourseUnitPriceSettingsDao extends BaseDAO<Integer, OrganizationCourseUnitPriceSettings> {

	/**
	 * 根据分部编号以及课程类型查询对象
	 * @param organId 分部编号
	 * @param courseType 课程类型
	 * @param chargeTypeId 收费类型编号
	 * @return
	 */
	OrganizationCourseUnitPriceSettings queryByOrganIdAndCourseTypeAndChargeType(@Param("organId") Integer organId,
			@Param("courseScheduleType") CourseScheduleType courseType, @Param("chargeTypeId") Integer chargeTypeId);

	/**
	 * 批量新增
	 * @param organizationCourseUnitPriceSettingsList
	 * @return
	 */
	int batchInsert(List<OrganizationCourseUnitPriceSettings> organizationCourseUnitPriceSettingsList);

	/**
	 * 根据分部和收费类型获取课程类型，单价map
	 * @author zouxuan
	 * @param chargeTypeId
	 * @param organId
	 * @return
	 */
    List<Map<String, Integer>> queryMapByOrganIdAndChargeTypeId(@Param("chargeTypeId") Integer chargeTypeId, @Param("organId") Integer organId);
}