|
@@ -1,11 +1,14 @@
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import org.dromara.system.domain.SysDept;
|
|
import org.dromara.system.domain.SysDept;
|
|
|
|
+import org.dromara.system.domain.SysUser;
|
|
|
|
+import org.dromara.system.mapper.SysUserMapper;
|
|
import org.example.DromaraApplication;
|
|
import org.example.DromaraApplication;
|
|
import org.example.join.domain.QueryColumn;
|
|
import org.example.join.domain.QueryColumn;
|
|
import org.example.join.domain.Table;
|
|
import org.example.join.domain.Table;
|
|
import org.example.join.sql.Sql;
|
|
import org.example.join.sql.Sql;
|
|
import org.junit.Test;
|
|
import org.junit.Test;
|
|
import org.junit.runner.RunWith;
|
|
import org.junit.runner.RunWith;
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.boot.test.context.SpringBootTest;
|
|
import org.springframework.boot.test.context.SpringBootTest;
|
|
import org.springframework.test.context.junit4.SpringRunner;
|
|
import org.springframework.test.context.junit4.SpringRunner;
|
|
|
|
|
|
@@ -32,9 +35,14 @@ public class MySpringBootTest {
|
|
public final QueryColumn sex = new QueryColumn(sys_user, "sex");
|
|
public final QueryColumn sex = new QueryColumn(sys_user, "sex");
|
|
public final QueryColumn create_by = new QueryColumn(sys_user, "create_by");
|
|
public final QueryColumn create_by = new QueryColumn(sys_user, "create_by");
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private SysUserMapper sysUserMapper;
|
|
|
|
+
|
|
@Test
|
|
@Test
|
|
public void testCache() {
|
|
public void testCache() {
|
|
|
|
|
|
|
|
+ List<SysUser> sysUsers = sysUserMapper.selectList();
|
|
|
|
+
|
|
List<SysDept> list = Sql.create(SysDept.class)
|
|
List<SysDept> list = Sql.create(SysDept.class)
|
|
//.logic()
|
|
//.logic()
|
|
.select(
|
|
.select(
|