|
@@ -1,16 +1,44 @@
|
1
|
1
|
package com.community.huiju;
|
2
|
2
|
|
|
3
|
+import com.community.huiju.dao.TaUserMapper;
|
|
4
|
+import com.community.huiju.dao.ToCommunitiesMapper;
|
|
5
|
+import com.community.huiju.dao.TpTicketMapper;
|
|
6
|
+import com.community.huiju.model.TaUser;
|
|
7
|
+import com.community.huiju.model.ToCommunities;
|
|
8
|
+import com.community.huiju.model.TpTicket;
|
3
|
9
|
import org.junit.Test;
|
4
|
10
|
import org.junit.runner.RunWith;
|
|
11
|
+import org.springframework.beans.factory.annotation.Autowired;
|
5
|
12
|
import org.springframework.boot.test.context.SpringBootTest;
|
6
|
13
|
import org.springframework.test.context.junit4.SpringRunner;
|
7
|
14
|
|
|
15
|
+import java.util.List;
|
|
16
|
+
|
8
|
17
|
@RunWith(SpringRunner.class)
|
9
|
18
|
@SpringBootTest
|
10
|
19
|
public class DemoApplicationTests {
|
11
|
20
|
|
|
21
|
+
|
|
22
|
+ @Autowired
|
|
23
|
+ private TaUserMapper mapper;
|
|
24
|
+
|
|
25
|
+ @Autowired
|
|
26
|
+ private TpTicketMapper tpTicketMapper;
|
|
27
|
+
|
|
28
|
+ @Autowired
|
|
29
|
+ private ToCommunitiesMapper toCommunitiesMapper;
|
|
30
|
+
|
12
|
31
|
@Test
|
13
|
32
|
public void contextLoads() {
|
|
33
|
+
|
|
34
|
+ List<ToCommunities> list = toCommunitiesMapper.selectByCommunityName("小区");
|
|
35
|
+ System.out.println(list);
|
|
36
|
+
|
|
37
|
+// TpTicket tpTicket = tpTicketMapper.selectByPrimaryKey(1);
|
|
38
|
+// System.out.println(tpTicket);
|
|
39
|
+
|
|
40
|
+// TaUser user = mapper.selectByPrimaryKey(1);
|
|
41
|
+// System.out.println(user);
|
14
|
42
|
}
|
15
|
43
|
|
16
|
44
|
}
|