package com.rongwei.trainingcommon.sys.dao;

import com.rongwei.rwadmincommon.system.vo.SysUserVo;
import com.rongwei.training.vo.DemandUserVo;
import com.rongwei.training.vo.WordEmpInfoVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

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

/**
 * CommonDao class
 *
 * @author XH
 * @date 2020/12/18
 */
public interface TraningCommonDao {
    @Select("SELECT * FROM sys_config WHERE DELETED = '0' AND CONFIGCODE LIKE '%${configCode}%'")
    List<Map<String, Object>> getSubjectByCourseId(@Param("configCode") String configCode);

    List<WordEmpInfoVo> getEmpInfo(@Param("empIds") List<String> empId);

    Set<String> getAllUserIdAndNameByOrgId(@Param("orgIds") List<String> orgIds);


    List<DemandUserVo> getDemandUserInfo(@Param("userIds") List<String> userIds);
}
