public IEnumerable <Slsn> GetSlsnListByKeys(GetSlsnListByKeysRequestApi getGetSlsnListByKeysRequestApi) { var where = new StringBuilder(); where.Append($"slsn.cono = {this.slsnRepository.Cono}"); if (!string.IsNullOrEmpty(getGetSlsnListByKeysRequestApi.imptype)) { where.AppendFormatWithEscape(" AND slsn.imptype = '{0}'", getGetSlsnListByKeysRequestApi.imptype); } if (!string.IsNullOrEmpty(getGetSlsnListByKeysRequestApi.vendcd)) { where.AppendFormatWithEscape(" AND slsn.vendcd = '{0}'", getGetSlsnListByKeysRequestApi.vendcd); } if (!string.IsNullOrEmpty(getGetSlsnListByKeysRequestApi.linecd)) { where.AppendFormatWithEscape(" AND slsn.linecd = '{0}'", getGetSlsnListByKeysRequestApi.linecd); } return(this.slsnRepository.GetList( where.ToString(), getGetSlsnListByKeysRequestApi.batchsize, getGetSlsnListByKeysRequestApi.fldlist)); }
public IEnumerable <Slsn> GetSlsnListByKeys(GetSlsnListByKeysRequestApi GetSlsnListByKeysRequestApi) { return(this.slsnService.GetSlsnListByKeys(GetSlsnListByKeysRequestApi)); }