|
@@ -3,10 +3,10 @@ package com.example.springbootdemo.controller;
|
3
|
3
|
import com.example.springbootdemo.zxyTeST.sql.dao.FootScanCommonRepository;
|
4
|
4
|
import com.example.springbootdemo.zxyTeST.sql.entity.FootScanCommonEntity;
|
5
|
5
|
import org.springframework.beans.factory.annotation.Autowired;
|
6
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
7
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
6
|
+import org.springframework.web.bind.annotation.*;
|
8
|
7
|
|
9
|
8
|
import java.util.List;
|
|
9
|
+import java.util.Map;
|
10
|
10
|
|
11
|
11
|
@RestController
|
12
|
12
|
public class TrainJavaController {
|
|
@@ -15,11 +15,13 @@ public class TrainJavaController {
|
15
|
15
|
@RequestMapping("/footScan")
|
16
|
16
|
public String getFootScanInfo() {
|
17
|
17
|
FootScanCommonEntity footScanCommonInfo = footScanCommonRepository.findByFootScanId(14815);
|
18
|
|
- List<FootScanCommonEntity> listFootScanList = this.getFootScanList();
|
19
|
18
|
return footScanCommonInfo.getFootScanSign();
|
20
|
19
|
}
|
21
|
|
- public List<FootScanCommonEntity> getFootScanList() {
|
|
20
|
+ @PostMapping("/postTest")
|
|
21
|
+ public List<FootScanCommonEntity> getFootScanList(@RequestParam Map<Integer,Object> params) {
|
22
|
22
|
return footScanCommonRepository.findByFootScanCommonId(2241);
|
23
|
23
|
}
|
24
|
24
|
|
|
25
|
+
|
|
26
|
+
|
25
|
27
|
}
|