Beispiel #1
0
        public IEnumerable <PvUser> GetPvUserListByKeys(GetPvUserListByKeysRequestApi criteria)
        {
            var where = new StringBuilder();

            where.Append($"cono = {criteria.cono}");
            if (!string.IsNullOrEmpty(criteria.oper2))
            {
                where.AppendFormatWithEscape(" AND pv_user.oper2 BEGINS '{0}'", criteria.oper2);
            }
            if (!string.IsNullOrEmpty(criteria.userName))
            {
                where.AppendFormatWithEscape(" AND pv_user._User-Name BEGINS '{0}'", criteria.userName);
            }
            if (!string.IsNullOrEmpty(criteria.dept))
            {
                where.AppendFormatWithEscape(" AND pv_user.Dept BEGINS '{0}'", criteria.dept);
            }

            return(this.pvUserRepository.GetList(where.ToString(), criteria.batchsize, criteria.fldlist));
        }
Beispiel #2
0
 public IEnumerable <PvUser> GetListByKeys(GetPvUserListByKeysRequestApi criteria)
 {
     return(this.pvUserServiceService.GetPvUserListByKeys(criteria));
 }