|
@@ -2,6 +2,7 @@ package com.example.springbootdemo.controller;
|
2
|
2
|
|
3
|
3
|
import com.example.springbootdemo.zxyTeST.sql.dao.FootScanCommonRepository;
|
4
|
4
|
import com.example.springbootdemo.zxyTeST.sql.entity.FootScanCommonEntity;
|
|
5
|
+import com.example.springbootdemo.zxyTeST.ymlConfig.SemsxUser;
|
5
|
6
|
import org.springframework.beans.factory.annotation.Autowired;
|
6
|
7
|
import org.springframework.web.bind.annotation.*;
|
7
|
8
|
|
|
@@ -12,16 +13,24 @@ import java.util.Map;
|
12
|
13
|
public class TrainJavaController {
|
13
|
14
|
@Autowired
|
14
|
15
|
FootScanCommonRepository footScanCommonRepository;
|
|
16
|
+ @Autowired
|
|
17
|
+ SemsxUser semsxUser;
|
15
|
18
|
@RequestMapping("/footScan")
|
16
|
19
|
public String getFootScanInfo() {
|
17
|
20
|
FootScanCommonEntity footScanCommonInfo = footScanCommonRepository.findByFootScanId(14815);
|
18
|
21
|
return footScanCommonInfo.getFootScanSign();
|
19
|
22
|
}
|
20
|
|
- @PostMapping("/postTest")
|
21
|
|
- public List<FootScanCommonEntity> getFootScanList(@RequestParam Map<Integer,Object> params) {
|
22
|
|
- return footScanCommonRepository.findByFootScanCommonId(2241);
|
|
23
|
+ @RequestMapping("/postTest")
|
|
24
|
+ public void getFootScanList(@RequestParam Map<Integer,Object> params) {
|
|
25
|
+ List<FootScanCommonEntity> a = footScanCommonRepository.findByFootScanCommonId(2242);
|
|
26
|
+ for(FootScanCommonEntity b:a) {
|
|
27
|
+ System.out.println(b.getFootScanId());
|
|
28
|
+ }
|
|
29
|
+ }
|
|
30
|
+ @RequestMapping("/ymlTest")
|
|
31
|
+ public SemsxUser ymlTest() {
|
|
32
|
+ System.out.println(semsxUser.getUserName());
|
|
33
|
+ return semsxUser;
|
23
|
34
|
}
|
24
|
|
-
|
25
|
|
-
|
26
|
35
|
|
27
|
36
|
}
|