| @@ -210,9 +210,20 @@ public class WxOrderController extends BaseController { | |||||
| @ApiOperation("订单详情接口") | @ApiOperation("订单详情接口") | ||||
| @GetMapping("detail") | @GetMapping("detail") | ||||
| public ResultData list(@ModelAttribute WxOrder wxOrder) { | |||||
| @ApiImplicitParams({ | |||||
| @ApiImplicitParam(name="orderId",value="页数",dataType="String", paramType = "query",required=true) | |||||
| }) | |||||
| public ResultData detail(String orderId) { | |||||
| // c端用户应该只能看到自己的订单细节 | // c端用户应该只能看到自己的订单细节 | ||||
| if (wxOrder == null) wxOrder = new WxOrder(); | |||||
| WxOrder wxOrder = new WxOrder(); | |||||
| Long id = 0L; | |||||
| try { | |||||
| id = Long.valueOf(orderId); | |||||
| } catch (NumberFormatException e) { | |||||
| logger.error("parse orderId failed"); | |||||
| return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(), "订单ID转换异常"); | |||||
| } | |||||
| wxOrder.setId(id); | |||||
| wxOrder.setCUserId(getUser().getId()); | wxOrder.setCUserId(getUser().getId()); | ||||
| WxOrderCVo wxOrderCVo = wxOrderService.detailCUserVo(wxOrder); | WxOrderCVo wxOrderCVo = wxOrderService.detailCUserVo(wxOrder); | ||||
| if (wxOrderCVo == null) | if (wxOrderCVo == null) | ||||