/// <summary> /// 订单反结结账 /// </summary> /// <returns>JSON</returns> public JsonResult ReCheckout(WholeOrPartialCheckoutDto req) { try { var currentUser = OperatorProvider.Provider.GetCurrent(); var user = _userService.GetUserInfo(new VerifyUserDTO() { UserId = currentUser.UserId }); var discount = user.MinDiscountValue; req.OrderTableStatus = OrderTableStatus.已结; req.CompanyId = currentUser.CompanyId.ToInt(); req.OperateUser = currentUser.UserId; req.CurrentMarketId = currentUser.LoginMarketId; req.AuthPermissionDiscount = discount; req.OperateUserCode = currentUser.UserCode; _checkOutService.ReCheckout(req); return(Json(new { Result = true, Info = "操作成功 " })); } catch (Exception e) { return(Json(new { Result = false, Info = "结账操作失败 - " + e.Message })); } }