public static IEnumerable <ConfigHistory> SelectOprLogByObjectTypeAndAftervalue(string objectType, string afterValue) { IEnumerable <ConfigHistory> result = null; switch (objectType) { case "TireTJ": case "T-ListAct": result = DALLogger.SelectOprLogByObjectTypeAndAftervalue(objectType, afterValue); break; default: using (var client = new OprLogClient()) { var oprlist = client.SelectOrderOprLog(0, objectType); if (oprlist != null && oprlist.Result.Count() > 0) { var tempList = oprlist.Result.Where(t => t.AfterValue.Equals(afterValue) || t.AfterValue.Equals(afterValue + ",")).ToList(); //AutoMapper初始化配置文件 var config = new MapperConfiguration(cfg => cfg.CreateMap <OprLogModel, ConfigHistory>()); var mapper = config.CreateMapper(); //集合类型转换 result = mapper.Map <IEnumerable <ConfigHistory> >(tempList); } } break; } return(result); }
public static List <ProductVehicleTypeConfigOpLog> GetAllLogByPid(string pid) { return(DALLogger.GetAllLogByPid(pid)); }
public static List <ProductVehicleTypeConfigOpLog> GetAllLog() { return(DALLogger.GetAllLog()); }
/// <summary> /// 查询城市失效log /// </summary> /// <param name="logId"></param> /// <param name="logType"></param> /// <returns></returns> public static List <FlashSaleProductOprLog> SelectCityAgingHistoryByLogId(string logId, string logType) { return(DALLogger.SelectCityAgingHistoryByLogId(logId, logType)); }
/// <summary> /// 通用日志查询方法 /// </summary> /// <param name="logId"></param> /// <param name="logType"></param> /// <returns></returns> public static List <CommonOprLog> SelectOpLogHistoryByLogId(string tableName, string logId, string logType) { return(DALLogger.SelectOpLogHistoryByLogId(tableName, logId, logType)); }
public static List <ConfigHistory> SelectConfigHistory(string objectID, string objectType) { return(DALLogger.SelectConfigHistory(objectID, objectType)); }
public static FlashSaleProductOprLog SelectFlashSaleHistoryDetailByLogId(int pkid) { return(DALLogger.SelectFlashSaleHistoryDetailByLogId(pkid)); }
public static List <ProductVehicleTypeConfigOpLog> GetAllLogByTime(string timeS, string timeE) { return(DALLogger.GetAllLogByTime(timeS, timeE)); }
public static List <QiangGouProductModel> SelectFlashSaleProductsLog(string hashKey) { return(DALLogger.SelectFlashSaleProductsLog(hashKey)); }
public static FlashSaleProductOprLog GetFlashSaleHistoryByPkid(int pkid) { return(DALLogger.GetFlashSaleHistoryByPkid(pkid)); }
public static ConfigHistory GetConfigHistory(string objectID) { return(DALLogger.GetConfigHistory(objectID)); }
/// <summary> /// 获取操作日志列表信息 /// </summary> /// <param name="objectType"></param> /// <returns></returns> public List <ConfigHistory> GetList(string objectType, string startDT, string endDT) { return(DALLogger.SelectOprLog(objectType, startDT, endDT)); }