|
|
|
@ -127,6 +127,7 @@ public class OrderController { |
|
|
|
|
@ResponseBody |
|
|
|
|
@ApiOperation(value = "查询用户订单") |
|
|
|
|
public ResponseData queryUserOrder(@RequestParam(value = "orderNo" , required = false) String orderNo, |
|
|
|
|
@RequestParam(value = "orderStatus" , required = false) Integer orderStatus, |
|
|
|
|
@RequestParam(value = "pageNum" , required = true) Integer pageNum, |
|
|
|
|
@RequestParam(value = "pageSize" , required = true) Integer pageSize) { |
|
|
|
|
try { |
|
|
|
@ -138,9 +139,10 @@ public class OrderController { |
|
|
|
|
Map<String,Object> param = new HashMap<>(); |
|
|
|
|
param.put("userId", userSession.getUser().getId()); |
|
|
|
|
param.put("orderNo", orderNo); |
|
|
|
|
param.put("orderStatus", orderStatus); |
|
|
|
|
|
|
|
|
|
PageHelper.startPage(pageNum, pageSize); |
|
|
|
|
return ResponseMsgUtil.success(new PageInfo<>(orderService.getOrderList(param))); |
|
|
|
|
return ResponseMsgUtil.success(new PageInfo<>(orderService.getUserOrderList(param))); |
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.error("error!",e); |
|
|
|
|