/// <summary> /// 获取商品分类列表 /// </summary> /// <param name="json"></param> /// <param name="proc"></param> /// <param name="userId"></param> /// <param name="entId"></param> /// <returns></returns> protected string GetGoodsCategory(string json, string proc, string userId, string entId) { SqlParameter[] param = (JsonMethod.ListParameter(json, userId, entId)).ToArray();//动态解析json参数 SqlRun sql = new SqlRun(SqlRun.sqlstr); DataTable dt = sql.RunProcedureDR(proc, param); string r_json; if (dt.Rows.Count > 0) { r_json = JsonMethod.GoodsCategory(dt); } else { string error = "无数据"; r_json = JsonMethod.GetError(1, error); } return(r_json); }