This commit is contained in:
parent
bb6df411c7
commit
dd1a88b704
|
|
@ -29,17 +29,9 @@ import javax.servlet.http.HttpServletResponse;
|
||||||
@RequestMapping("/system/detail")
|
@RequestMapping("/system/detail")
|
||||||
public class OrderDetailController extends BaseController
|
public class OrderDetailController extends BaseController
|
||||||
{
|
{
|
||||||
private String prefix = "system/detail";
|
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private IOrderDetailService orderDetailService;
|
private IOrderDetailService orderDetailService;
|
||||||
|
|
||||||
@GetMapping()
|
|
||||||
public String detail()
|
|
||||||
{
|
|
||||||
return prefix + "/detail";
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询订单详情列表
|
* 查询订单详情列表
|
||||||
*/
|
*/
|
||||||
|
|
@ -65,15 +57,6 @@ public class OrderDetailController extends BaseController
|
||||||
util.exportExcel(response, list, "订单详情数据");
|
util.exportExcel(response, list, "订单详情数据");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增订单详情
|
|
||||||
*/
|
|
||||||
@GetMapping("/add")
|
|
||||||
public String add()
|
|
||||||
{
|
|
||||||
return prefix + "/add";
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增保存订单详情
|
* 新增保存订单详情
|
||||||
*/
|
*/
|
||||||
|
|
@ -89,11 +72,11 @@ public class OrderDetailController extends BaseController
|
||||||
* 修改订单详情
|
* 修改订单详情
|
||||||
*/
|
*/
|
||||||
@GetMapping("/edit/{detailId}")
|
@GetMapping("/edit/{detailId}")
|
||||||
public String edit(@PathVariable("detailId") Long detailId, ModelMap mmap)
|
public OrderDetail edit(@PathVariable("detailId") Long detailId, ModelMap mmap)
|
||||||
{
|
{
|
||||||
OrderDetail orderDetail = orderDetailService.selectOrderDetailByDetailId(detailId);
|
OrderDetail orderDetail = orderDetailService.selectOrderDetailByDetailId(detailId);
|
||||||
mmap.put("orderDetail", orderDetail);
|
mmap.put("orderDetail", orderDetail);
|
||||||
return prefix + "/edit";
|
return orderDetail;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -29,17 +29,9 @@ import javax.servlet.http.HttpServletResponse;
|
||||||
@RequestMapping("/system/info")
|
@RequestMapping("/system/info")
|
||||||
public class OrderInfoController extends BaseController
|
public class OrderInfoController extends BaseController
|
||||||
{
|
{
|
||||||
private String prefix = "system/info";
|
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private IOrderInfoService orderInfoService;
|
private IOrderInfoService orderInfoService;
|
||||||
|
|
||||||
@GetMapping()
|
|
||||||
public String info()
|
|
||||||
{
|
|
||||||
return prefix + "/info";
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询订单列表
|
* 查询订单列表
|
||||||
*/
|
*/
|
||||||
|
|
@ -65,15 +57,6 @@ public class OrderInfoController extends BaseController
|
||||||
util.exportExcel(response, list, "订单数据");
|
util.exportExcel(response, list, "订单数据");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增订单
|
|
||||||
*/
|
|
||||||
@GetMapping("/add")
|
|
||||||
public String add()
|
|
||||||
{
|
|
||||||
return prefix + "/add";
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增保存订单
|
* 新增保存订单
|
||||||
*/
|
*/
|
||||||
|
|
@ -89,11 +72,11 @@ public class OrderInfoController extends BaseController
|
||||||
* 修改订单
|
* 修改订单
|
||||||
*/
|
*/
|
||||||
@GetMapping("/edit/{orderId}")
|
@GetMapping("/edit/{orderId}")
|
||||||
public String edit(@PathVariable("orderId") Long orderId, ModelMap mmap)
|
public OrderInfo edit(@PathVariable("orderId") Long orderId, ModelMap mmap)
|
||||||
{
|
{
|
||||||
OrderInfo orderInfo = orderInfoService.selectOrderInfoByOrderId(orderId);
|
OrderInfo orderInfo = orderInfoService.selectOrderInfoByOrderId(orderId);
|
||||||
mmap.put("orderInfo", orderInfo);
|
mmap.put("orderInfo", orderInfo);
|
||||||
return prefix + "/edit";
|
return orderInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -29,17 +29,9 @@ import javax.servlet.http.HttpServletResponse;
|
||||||
@RequestMapping("/system/cart")
|
@RequestMapping("/system/cart")
|
||||||
public class OrderShoppingCartController extends BaseController
|
public class OrderShoppingCartController extends BaseController
|
||||||
{
|
{
|
||||||
private String prefix = "system/cart";
|
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private IOrderShoppingCartService orderShoppingCartService;
|
private IOrderShoppingCartService orderShoppingCartService;
|
||||||
|
|
||||||
@GetMapping()
|
|
||||||
public String cart()
|
|
||||||
{
|
|
||||||
return prefix + "/cart";
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询订单购物车列表
|
* 查询订单购物车列表
|
||||||
*/
|
*/
|
||||||
|
|
@ -65,15 +57,6 @@ public class OrderShoppingCartController extends BaseController
|
||||||
util.exportExcel(response, list, "订单购物车数据");
|
util.exportExcel(response, list, "订单购物车数据");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增订单购物车
|
|
||||||
*/
|
|
||||||
@GetMapping("/add")
|
|
||||||
public String add()
|
|
||||||
{
|
|
||||||
return prefix + "/add";
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增保存订单购物车
|
* 新增保存订单购物车
|
||||||
*/
|
*/
|
||||||
|
|
@ -89,11 +72,11 @@ public class OrderShoppingCartController extends BaseController
|
||||||
* 修改订单购物车
|
* 修改订单购物车
|
||||||
*/
|
*/
|
||||||
@GetMapping("/edit/{shoppingCartId}")
|
@GetMapping("/edit/{shoppingCartId}")
|
||||||
public String edit(@PathVariable("shoppingCartId") Long shoppingCartId, ModelMap mmap)
|
public OrderShoppingCart edit(@PathVariable("shoppingCartId") Long shoppingCartId, ModelMap mmap)
|
||||||
{
|
{
|
||||||
OrderShoppingCart orderShoppingCart = orderShoppingCartService.selectOrderShoppingCartByShoppingCartId(shoppingCartId);
|
OrderShoppingCart orderShoppingCart = orderShoppingCartService.selectOrderShoppingCartByShoppingCartId(shoppingCartId);
|
||||||
mmap.put("orderShoppingCart", orderShoppingCart);
|
mmap.put("orderShoppingCart", orderShoppingCart);
|
||||||
return prefix + "/edit";
|
return orderShoppingCart;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue