示例#1
0
        public IEnumerable <Sasz> GetSaszListAllByConoWhseShipVia(GetSaszListAllByConoWhseShipViaRequestApi getGetSaszListAllByConoWhseShipViaRequestApi)
        {
            var where = new StringBuilder();
            where.Append($"sasz.cono = {this.saszRepository.Cono}");

            if (!string.IsNullOrEmpty(getGetSaszListAllByConoWhseShipViaRequestApi.whse))
            {
                where.AppendFormatWithEscape(" AND sasz.whse = '{0}'", getGetSaszListAllByConoWhseShipViaRequestApi.whse);
            }
            else
            {
                where.AppendFormat(" AND sasz.whse = ''");
            }

            if (!string.IsNullOrEmpty(getGetSaszListAllByConoWhseShipViaRequestApi.shipVia))
            {
                where.AppendFormatWithEscape(" AND sasz.shipvia = '{0}'", getGetSaszListAllByConoWhseShipViaRequestApi.shipVia);
            }

            return(this.saszRepository.GetList(
                       where.ToString(),
                       getGetSaszListAllByConoWhseShipViaRequestApi.batchsize,
                       getGetSaszListAllByConoWhseShipViaRequestApi.fldlist));
        }
示例#2
0
 public IEnumerable <Sasz> GetSaszListAllByConoWhseShipVia(GetSaszListAllByConoWhseShipViaRequestApi GetSaszListAllByConoWhseShipViaRequestApi)
 {
     return(this.saszService.GetSaszListAllByConoWhseShipVia(GetSaszListAllByConoWhseShipViaRequestApi));
 }