55import javax .servlet .http .HttpSession ;
66
77import org .neil .domain .ActivityGiftProductVO ;
8+ import org .neil .domain .PC ;
89import org .neil .domain .TestDomain ;
910import org .neil .domain .TestDomainWapper ;
1011import org .neil .domain .UpdateChildLevelVO ;
1112import org .neil .manager .TestManager ;
13+ import org .neil .service .PCService ;
1214import org .slf4j .Logger ;
1315import org .slf4j .LoggerFactory ;
1416import org .springframework .beans .factory .annotation .Autowired ;
2022import org .springframework .web .bind .annotation .RequestMethod ;
2123import org .springframework .web .bind .annotation .RestController ;
2224import org .springframework .web .multipart .MultipartFile ;
25+ import com .github .pagehelper .Page ;
2326
2427
2528/**
@@ -41,6 +44,9 @@ public class TestController {
4144 @ Autowired
4245 private TestDomain testDomain ;
4346
47+ @ Autowired
48+ private PCService pcService ;
49+
4450
4551 public void setTestDomainWapper (TestDomainWapper testDomainWapper ) {
4652 this .testDomainWapper = testDomainWapper ;
@@ -164,6 +170,16 @@ public Object circulationTest() throws Exception {
164170 return testDomain ;
165171 }
166172
173+
174+ @ GetMapping (value = "querypc" )
175+ public Object querypc () throws Exception {
176+ Page <PC > pcs = pcService .pageQueryPCList ();
177+ return pcs ;
178+ }
179+
180+
181+
182+
167183 private void circulation (byte [] bytes , int i ) {
168184 try {
169185 Thread .sleep (1000 );
0 commit comments