public IActionResult GetPlanList() { var resultCountModel = new RespResultCountViewModel(); try { var data = _statisticalService.PlanStatistical(); if (data == null) { resultCountModel.data = new Array[0]; } else { resultCountModel.data = data; } resultCountModel.code = 0; resultCountModel.msg = "成功"; return(Ok(resultCountModel)); } catch (Exception ex) { resultCountModel.code = -1; resultCountModel.msg = "操作失败:" + ex.ToString(); return(Ok(resultCountModel)); } }