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);
}
Aggregations