Exemple #1
0
        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);
        }
Exemple #2
0
 public static List <ProductVehicleTypeConfigOpLog> GetAllLogByPid(string pid)
 {
     return(DALLogger.GetAllLogByPid(pid));
 }
Exemple #3
0
 public static List <ProductVehicleTypeConfigOpLog> GetAllLog()
 {
     return(DALLogger.GetAllLog());
 }
Exemple #4
0
 /// <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));
 }
Exemple #5
0
 /// <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));
 }
Exemple #6
0
 public static List <ConfigHistory> SelectConfigHistory(string objectID, string objectType)
 {
     return(DALLogger.SelectConfigHistory(objectID, objectType));
 }
Exemple #7
0
 public static FlashSaleProductOprLog SelectFlashSaleHistoryDetailByLogId(int pkid)
 {
     return(DALLogger.SelectFlashSaleHistoryDetailByLogId(pkid));
 }
Exemple #8
0
 public static List <ProductVehicleTypeConfigOpLog> GetAllLogByTime(string timeS, string timeE)
 {
     return(DALLogger.GetAllLogByTime(timeS, timeE));
 }
Exemple #9
0
 public static List <QiangGouProductModel> SelectFlashSaleProductsLog(string hashKey)
 {
     return(DALLogger.SelectFlashSaleProductsLog(hashKey));
 }
Exemple #10
0
 public static FlashSaleProductOprLog GetFlashSaleHistoryByPkid(int pkid)
 {
     return(DALLogger.GetFlashSaleHistoryByPkid(pkid));
 }
Exemple #11
0
 public static ConfigHistory GetConfigHistory(string objectID)
 {
     return(DALLogger.GetConfigHistory(objectID));
 }
Exemple #12
0
 /// <summary>
 /// 获取操作日志列表信息
 /// </summary>
 /// <param name="objectType"></param>
 /// <returns></returns>
 public List <ConfigHistory> GetList(string objectType, string startDT, string endDT)
 {
     return(DALLogger.SelectOprLog(objectType, startDT, endDT));
 }