| | |
| | | package com.kidgrow.order.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.kidgrow.common.context.DynamicTableContextHolder; |
| | | import com.kidgrow.order.entity.OrderInfo; |
| | | import com.kidgrow.order.service.IOrderDetailService; |
| | | import org.junit.Test; |
| | | import org.junit.runner.RunWith; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | import org.springframework.test.context.junit4.SpringRunner; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | |
| | | public class OrderInfoMapperTest { |
| | | @Autowired |
| | | private OrderInfoMapper orderInfoMapper; |
| | | @Autowired |
| | | private IOrderDetailService orderDetailService; |
| | | |
| | | @Test |
| | | public void getOrderInfo(){ |
| | |
| | | |
| | | |
| | | } |
| | | |
| | | @Test |
| | | public void orderDetail(){ |
| | | Map<String, Object> params=null; |
| | | params.put("page",1); |
| | | params.put("limit",10); |
| | | DynamicTableContextHolder.setDynamicTable("order_detail_2020"); |
| | | DynamicTableContextHolder.setDynamicTable("order_info_2020"); |
| | | orderDetailService.findList(params,""); |
| | | |
| | | System.out.println(orderDetailService.findList(params,"")); |
| | | |
| | | |
| | | } |
| | | } |