Example #1
0
        public IActionResult GetOIList(int page, int limit)
        {
            var resultCountModel = new RespResultCountViewModel();

            try
            {
                int count = 0;
                var data  = _statisticalService.GetOIList(page, limit, ref count);
                if (data.Count != 0)
                {
                    resultCountModel.code  = 0;
                    resultCountModel.msg   = "成功";
                    resultCountModel.count = count;
                    resultCountModel.data  = data;
                }
                else
                {
                    resultCountModel.code = -1;
                    resultCountModel.msg  = "没有检索到数据";
                }
                return(Ok(resultCountModel));
            }
            catch (Exception ex)
            {
                resultCountModel.code = -1;
                resultCountModel.msg  = "操作失败:" + ex.ToString();
                return(Ok(resultCountModel));
            }
        }