public ActionResult DeleteMenus(string[] ids) { if (ids.Length <= 0) { return(Json(new { code = 999, msg = "参数有误" })); } SystemMenuService service = new SystemMenuService(); object[] obj = new object[ids.Length]; string parms = SqlParameterHelper.GetParameters(ids, ref obj); string sql = $"delete from SystemMenu where id in({parms})"; int n = service.ExcuteSqlParm(sql, obj); return(Json(new { code = 0, msg = "success" })); }