Пример #1
0
        public IEnumerable <DrpLog> GetTWLDrpLogInterfaces(string coNum, string whNum, string ruleCode, int batchsize = 0, string fldlist = "")
        {
            var getTWLAutoDropLogsApi = new GetTWLAutoDropLogsApi()
            {
                coNum     = coNum,
                whNum     = whNum,
                ruleCode  = ruleCode,
                batchsize = batchsize,
                fldlist   = fldlist
            };

            return(this.drpLogService.GetTWLAutoDropLogs(getTWLAutoDropLogsApi));
        }
Пример #2
0
        public IEnumerable <DrpLog> GetTWLAutoDropLogs(GetTWLAutoDropLogsApi getTWLAutoDropLogsApi)
        {
            var sb = new StringBuilder();

            if (!string.IsNullOrWhiteSpace(getTWLAutoDropLogsApi.coNum))
            {
                sb.AppendFormatWithEscape("drp_log.co_num = '{0}'", getTWLAutoDropLogsApi.coNum);
                if (!string.IsNullOrWhiteSpace(getTWLAutoDropLogsApi.whNum))
                {
                    sb.AppendFormatWithEscape(" AND drp_log.wh_num = '{0}'", getTWLAutoDropLogsApi.whNum);
                }
                if (!string.IsNullOrWhiteSpace(getTWLAutoDropLogsApi.ruleCode))
                {
                    sb.AppendFormatWithEscape(" AND drp_log.rule_code = '{0}'", getTWLAutoDropLogsApi.ruleCode);
                }
            }
            var where = sb.ToString();
            return(this.drplogRepository.GetList(where, getTWLAutoDropLogsApi.batchsize, getTWLAutoDropLogsApi.fldlist));
        }
Пример #3
0
 public IEnumerable <DrpLog> GetTWLAutoDropLogs(GetTWLAutoDropLogsApi getTWLAutoDropLogsApi)
 {
     return(this.drpLogService.GetTWLAutoDropLogs(getTWLAutoDropLogsApi));
 }