feat: 分库分表
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package com.yupi.project.service;
|
||||
|
||||
import com.yupi.project.mapper.OrderConfigMapper;
|
||||
import com.yupi.project.model.entity.OrderConfigDO;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest
|
||||
public class OrderConfigMapperTest {
|
||||
|
||||
@Autowired
|
||||
private OrderConfigMapper orderConfigMapper;
|
||||
|
||||
@Test
|
||||
public void testSelectById() {
|
||||
OrderConfigDO orderConfig = orderConfigMapper.selectById(1);
|
||||
System.out.println(orderConfig);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user