|  |  |  | 
|---|
|  |  |  | import com.xzx.gc.order.dto.AddJhyOrderDto; | 
|---|
|  |  |  | import com.xzx.gc.order.dto.JhyOrderListDto; | 
|---|
|  |  |  | import com.xzx.gc.order.service.JhyOrderService; | 
|---|
|  |  |  | import com.xzx.gc.order.vo.JhyOrderDetailsVo; | 
|---|
|  |  |  | import com.xzx.gc.order.vo.JhyOrderListVo; | 
|---|
|  |  |  | import io.swagger.annotations.Api; | 
|---|
|  |  |  | import io.swagger.annotations.ApiOperation; | 
|---|
|  |  |  | 
|---|
|  |  |  | import io.swagger.annotations.ApiResponses; | 
|---|
|  |  |  | import lombok.extern.slf4j.Slf4j; | 
|---|
|  |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.PathVariable; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.PostMapping; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.RequestBody; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.RestController; | 
|---|
|  |  |  | 
|---|
|  |  |  | @ApiResponse(code = 200, message = "success", response = JhyOrderListVo.class) | 
|---|
|  |  |  | ) | 
|---|
|  |  |  | @PostMapping(value = "/jhy/order/list") | 
|---|
|  |  |  | public JsonResult<PageInfo<JhyOrderListVo>> orderList(@RequestBody JhyOrderListDto jhyOrderListDto) { | 
|---|
|  |  |  | public JsonResult<PageInfo<JhyOrderListVo>> orderList(@RequestBody JhyOrderListDto jhyOrderListDto, HttpServletRequest request) { | 
|---|
|  |  |  | jhyOrderListDto.setUserId(getUserId(request)); | 
|---|
|  |  |  | PageInfo<JhyOrderListVo> result = jhyOrderService.orderList(jhyOrderListDto); | 
|---|
|  |  |  | return JsonResult.success(result); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("订单明细信息") | 
|---|
|  |  |  | @ApiResponses( | 
|---|
|  |  |  | @ApiResponse(code = 200, message = "success", response = JhyOrderDetailsVo.class) | 
|---|
|  |  |  | ) | 
|---|
|  |  |  | @PostMapping(value = "/jhy/order/details/{orderId}") | 
|---|
|  |  |  | public JsonResult<Object> orderDetail(@PathVariable("orderId") Long orderId, HttpServletRequest request) { | 
|---|
|  |  |  | return JsonResult.success(jhyOrderService.orderDetails(orderId, getUserId(request))); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|