This commit is contained in:
gaowdong 2025-04-14 09:52:56 +08:00
parent 75e4754ecd
commit bb6df411c7
3 changed files with 6 additions and 18 deletions

View File

@ -15,11 +15,7 @@ import com.bonus.common.security.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap; import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
@ -117,7 +113,7 @@ public class OrderDetailController extends BaseController
@SysLog(title = "订单详情", module = "订单-订单详情", businessType = OperaType.DELETE) @SysLog(title = "订单详情", module = "订单-订单详情", businessType = OperaType.DELETE)
@PostMapping( "/remove") @PostMapping( "/remove")
@ResponseBody @ResponseBody
public AjaxResult remove(List<Long> ids) public AjaxResult remove(@RequestBody List<Long> ids)
{ {
return toAjax(orderDetailService.deleteOrderDetailByDetailIds(ids)); return toAjax(orderDetailService.deleteOrderDetailByDetailIds(ids));
} }

View File

@ -15,11 +15,7 @@ import com.bonus.common.security.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap; import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
@ -117,7 +113,7 @@ public class OrderInfoController extends BaseController
@SysLog(title = "订单", module = "订单", businessType = OperaType.DELETE) @SysLog(title = "订单", module = "订单", businessType = OperaType.DELETE)
@PostMapping( "/remove") @PostMapping( "/remove")
@ResponseBody @ResponseBody
public AjaxResult remove(List<Long> ids) public AjaxResult remove(@RequestBody List<Long> ids)
{ {
return toAjax(orderInfoService.deleteOrderInfoByOrderIds(ids)); return toAjax(orderInfoService.deleteOrderInfoByOrderIds(ids));
} }

View File

@ -15,11 +15,7 @@ import com.bonus.common.security.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap; import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
@ -117,7 +113,7 @@ public class OrderShoppingCartController extends BaseController
@SysLog(title = "订单购物车", module = "订单-订单详情", businessType = OperaType.DELETE) @SysLog(title = "订单购物车", module = "订单-订单详情", businessType = OperaType.DELETE)
@PostMapping( "/remove") @PostMapping( "/remove")
@ResponseBody @ResponseBody
public AjaxResult remove(List<Long> ids) public AjaxResult remove(@RequestBody List<Long> ids)
{ {
return toAjax(orderShoppingCartService.deleteOrderShoppingCartByShoppingCartIds(ids)); return toAjax(orderShoppingCartService.deleteOrderShoppingCartByShoppingCartIds(ids));
} }