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)); }
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)); }
public IEnumerable <DrpLog> GetTWLAutoDropLogs(GetTWLAutoDropLogsApi getTWLAutoDropLogsApi) { return(this.drpLogService.GetTWLAutoDropLogs(getTWLAutoDropLogsApi)); }