Search in sources :

Example 1 with OrderDetailDto

use of com.paascloud.provider.model.dto.OrderDetailDto in project paascloud-master by paascloud.

the class OmcOrderDetailQueryFeignClient method getListByOrderNoUserId.

@Override
@ApiOperation(httpMethod = "POST", value = "获取用户订单详情")
public Wrapper<List<OrderDetailDto>> getListByOrderNoUserId(@PathVariable("orderNo") String orderNo, @PathVariable("userId") Long userId) {
    logger.info("getListByOrderNoUserId - 获取用户订单详情. orderNo={}, userId={}", orderNo, userId);
    List<OmcOrderDetail> list = omcOrderDetailService.getListByOrderNoUserId(orderNo, userId);
    List<OrderDetailDto> orderDetailDtoList = Lists.newArrayList();
    for (OmcOrderDetail orderDetail : list) {
        OrderDetailDto orderDetailDto = new OrderDetailDto();
        BeanUtils.copyProperties(orderDetail, orderDetailDto);
        orderDetailDtoList.add(orderDetailDto);
    }
    return WrapMapper.ok(orderDetailDtoList);
}
Also used : OrderDetailDto(com.paascloud.provider.model.dto.OrderDetailDto) OmcOrderDetail(com.paascloud.provider.model.domain.OmcOrderDetail) ApiOperation(io.swagger.annotations.ApiOperation)

Aggregations

OmcOrderDetail (com.paascloud.provider.model.domain.OmcOrderDetail)1 OrderDetailDto (com.paascloud.provider.model.dto.OrderDetailDto)1 ApiOperation (io.swagger.annotations.ApiOperation)1