Esempio n. 1
0
        public IEnumerable <Oedc> GetOedcListAllByConoAndKey(
            GetOedcListAllByConoAndKeyRequestApi getGetOedcListAllByConoAndKeyRequestApi)
        {
            var where = new StringBuilder();
            where.Append($"oedc.cono = {this.oedcRepository.Cono}");

            if (!string.IsNullOrEmpty(getGetOedcListAllByConoAndKeyRequestApi.typecd))
            {
                where.AppendFormatWithEscape(" AND oedc.typecd = '{0}'", getGetOedcListAllByConoAndKeyRequestApi.typecd);
            }
            if (!string.IsNullOrEmpty(getGetOedcListAllByConoAndKeyRequestApi.key1))
            {
                where.AppendFormatWithEscape(" AND oedc.key1 begins '{0}'", getGetOedcListAllByConoAndKeyRequestApi.key1);
            }
            if (!string.IsNullOrEmpty(getGetOedcListAllByConoAndKeyRequestApi.key2))
            {
                where.AppendFormatWithEscape(" AND oedc.key2 begins '{0}'", getGetOedcListAllByConoAndKeyRequestApi.key2);
            }

            return(this.oedcRepository.GetList(
                       where.ToString(),
                       getGetOedcListAllByConoAndKeyRequestApi.batchsize,
                       getGetOedcListAllByConoAndKeyRequestApi.fldlist));
        }
Esempio n. 2
0
 public IEnumerable <Oedc> GetOedcListAllByConoAndKey(GetOedcListAllByConoAndKeyRequestApi getOedcListAllByConoAndKeyRequestApi)
 {
     return(this.oedcService.GetOedcListAllByConoAndKey(getOedcListAllByConoAndKeyRequestApi));
 }