use of com.fp.mall.order.model.vo.OrderInfoVO in project FCLProject by FlowingCloudL.
the class TestController method test1.
@GetMapping("/t1")
public ResponseVO<List<OrderInfoVO>> test1() {
List<OrderInfoEntity> entityList = orderInfoMapper.selectList(new QueryWrapper<>());
List<OrderInfoVO> voList = new ArrayList<>(entityList.size());
for (OrderInfoEntity entity : entityList) {
OrderInfoVO vo = new OrderInfoVO();
BeanUtils.copyProperties(entity, vo);
voList.add(vo);
}
return ResponseVO.success(voList);
}
Aggregations