コード例 #1
0
        /// <summary>
        /// 根据部门id集合得到对应人员
        /// </summary>
        /// <param name="departids"></param>
        /// <returns></returns>
        public static IList <LoginInfo> getLoginInfoBydepatids(string departids)
        {
            string sql = "select * from LoginInfo where DepartId in (" + departids + ")";

            return(LoginInfoService.getLoginInfosBySql(sql));
        }
コード例 #2
0
        public static IList <LoginInfo> getLoginInfoByDeptId(int departid)
        {
            string sql = "select * from LoginInfo where DepartId=" + departid + "";

            return(LoginInfoService.getLoginInfosBySql(sql));
        }