/// <summary>
        /// 获取通用日志列表
        /// </summary>
        /// <param name="objectType"></param>
        /// <param name="startTime"></param>
        /// <param name="endTime"></param>
        /// <returns></returns>
        public ActionResult GetCommonConfigLogList(Pagination pagination, string objectType, string objectId = "", string startTime = "", string endTime = "")
        {
            var      manager = new CommonConfigLogManager();
            DateTime dtStartTime;
            DateTime dtEndTime;

            if (!string.IsNullOrEmpty(startTime))
            {
                dtStartTime = Convert.ToDateTime(startTime);
            }
            else
            {
                dtStartTime = DateTime.Now.Date.AddDays(-30);
            }
            if (!string.IsNullOrEmpty(endTime))
            {
                dtEndTime = Convert.ToDateTime(endTime);
            }
            else
            {
                dtEndTime = DateTime.Now.Date.AddDays(1);
            }

            var commonConfigLogList = manager.GetCommonConfigLogList(pagination, objectId, objectType, dtStartTime, dtEndTime);

            return(Content(JsonConvert.SerializeObject(new
            {
                rows = commonConfigLogList,
                total = pagination.total,
                page = pagination.page,
                records = pagination.records
            })));
        }
        /// <summary>
        /// 获取通用日志列表
        /// </summary>
        /// <param name="objectType"></param>
        /// <param name="startTime"></param>
        /// <param name="endTime"></param>
        /// <returns></returns>
        public JsonResult GetCommonConfigLogs(string objectType, string objectId = "")
        {
            var        manager    = new CommonConfigLogManager();
            Pagination pagination = new Pagination();

            pagination.page = 1;
            pagination.rows = 10000;
            var commonConfigLogList = manager.GetCommonConfigLogList(pagination, objectId, objectType);

            return(Json(commonConfigLogList, JsonRequestBehavior.AllowGet));
        }
        /// <summary>
        /// 获取通用日志列表
        /// </summary>
        /// <param name="category"></param>
        /// <param name="level"></param>
        /// <returns></returns>
        public JsonResult GetCommonConfigLogs(string category, int level)
        {
            var model = _manager.GetCategoryLimitCount(
                new ProductLimitCountEntity {
                CategoryCode = category, CategoryLevel = level
            });

            if (model != null && model.PKID > 0)
            {
                var manager    = new CommonConfigLogManager();
                var pagination = new Pagination
                {
                    page = 1,
                    rows = 10000
                };
                var commonConfigLogList = manager.GetCommonConfigLogList(pagination, model.PKID.ToString(), "CategoryLimitCount");
                return(Json(commonConfigLogList, JsonRequestBehavior.AllowGet));
            }
            return(Json(null, JsonRequestBehavior.AllowGet));
        }