public string QuerySpxxListByPage([FromBody] SpxxReq req) { Result <ResultData <SpxxRes> > result = new Result <ResultData <SpxxRes> >(); try { DataTable dt = spxxManage.GetListByPage(req, string.Empty, req.rows, req.page); ResultData <SpxxRes> data = new ResultData <SpxxRes>(); data.total = spxxManage.GetRecordCount(req); data.rows = ModelEx.SetListValueFromDB <SpxxRes>(new List <SpxxRes>(), dt); result.status = 1; result.data = data; } catch (Exception ex) { result.status = 0; result.msg = "信息异常!查询商品信息:" + ex.Message; LogHelper.WriteLog(this.GetType(), "查询部门信息列表出错了!错误信息:" + ex.Message, LogHelper.logLevel.ERROR); } return(JsonHelper.ConvertToJosnString(result)); }