敏捷工具
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
726 B

2 years ago
  1. package com.whn.hellospring;
  2. import com.whn.hellospring.model.CoffeeOrderDO;
  3. import com.whn.hellospring.model.CoffeeOrderDTO;
  4. import com.whn.hellospring.service.CoffeeOrderService;
  5. import lombok.extern.slf4j.Slf4j;
  6. import org.junit.jupiter.api.Test;
  7. import org.springframework.beans.factory.annotation.Autowired;
  8. import org.springframework.boot.test.context.SpringBootTest;
  9. import java.util.List;
  10. @SpringBootTest
  11. @Slf4j
  12. public class OrderTest {
  13. @Autowired
  14. CoffeeOrderService orderService;
  15. /**
  16. * 根据客户获取订单列表
  17. */
  18. @Test
  19. void getOrderListByCustomer(){
  20. List<CoffeeOrderDTO> list = orderService.getOrderListByCustomerId("1");
  21. log.info("list{}",list);
  22. }
  23. }