This commit is contained in:
parent
75e4754ecd
commit
bb6df411c7
|
|
@ -15,11 +15,7 @@ import com.bonus.common.security.annotation.RequiresPermissions;
|
|||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
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 org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
|
|
@ -117,7 +113,7 @@ public class OrderDetailController extends BaseController
|
|||
@SysLog(title = "订单详情", module = "订单-订单详情", businessType = OperaType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(List<Long> ids)
|
||||
public AjaxResult remove(@RequestBody List<Long> ids)
|
||||
{
|
||||
return toAjax(orderDetailService.deleteOrderDetailByDetailIds(ids));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,11 +15,7 @@ import com.bonus.common.security.annotation.RequiresPermissions;
|
|||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
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 org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
|
|
@ -117,7 +113,7 @@ public class OrderInfoController extends BaseController
|
|||
@SysLog(title = "订单", module = "订单", businessType = OperaType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(List<Long> ids)
|
||||
public AjaxResult remove(@RequestBody List<Long> ids)
|
||||
{
|
||||
return toAjax(orderInfoService.deleteOrderInfoByOrderIds(ids));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,11 +15,7 @@ import com.bonus.common.security.annotation.RequiresPermissions;
|
|||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
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 org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
|
|
@ -117,7 +113,7 @@ public class OrderShoppingCartController extends BaseController
|
|||
@SysLog(title = "订单购物车", module = "订单-订单详情", businessType = OperaType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(List<Long> ids)
|
||||
public AjaxResult remove(@RequestBody List<Long> ids)
|
||||
{
|
||||
return toAjax(orderShoppingCartService.deleteOrderShoppingCartByShoppingCartIds(ids));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue