Search in sources :

Example 1 with OrderInfoVO

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);
}
Also used : OrderInfoEntity(com.fp.mall.order.model.entity.OrderInfoEntity) ArrayList(java.util.ArrayList) OrderInfoVO(com.fp.mall.order.model.vo.OrderInfoVO) GetMapping(org.springframework.web.bind.annotation.GetMapping)

Aggregations

OrderInfoEntity (com.fp.mall.order.model.entity.OrderInfoEntity)1 OrderInfoVO (com.fp.mall.order.model.vo.OrderInfoVO)1 ArrayList (java.util.ArrayList)1 GetMapping (org.springframework.web.bind.annotation.GetMapping)1