Пример #1
0
        public IEnumerable <Smsm> GetSmsmes(GetSmsmesRequestApi getGetSmsmesRequestApi)
        {
            var where = new StringBuilder();
            where.Append($"smsm.cono = {this.smsmRepository.Cono}");

            if (!string.IsNullOrEmpty(getGetSmsmesRequestApi.commtype))
            {
                where.AppendFormatWithEscape(" AND smsm.commtype BEGINS '{0}'", getGetSmsmesRequestApi.commtype);
            }


            if (!string.IsNullOrEmpty(getGetSmsmesRequestApi.slsrep))
            {
                where.AppendFormatWithEscape(" AND (smsm.slsrep = '{0}'", getGetSmsmesRequestApi.slsrep);
                where.AppendFormatWithEscape(" OR smsm.slsrep = '')", getGetSmsmesRequestApi.slsrep);
            }

            return(this.smsmRepository.GetList(
                       where.ToString(),
                       getGetSmsmesRequestApi.batchsize,
                       getGetSmsmesRequestApi.fldlist));
        }
Пример #2
0
 public IEnumerable <Smsm> GetSmsmes(GetSmsmesRequestApi GetSmsmesRequestApi)
 {
     return(this.smsmService.GetSmsmes(GetSmsmesRequestApi));
 }