|
@@ -1,6 +1,9 @@
|
1
|
1
|
package com.example.springbootdemo.controller;
|
2
|
2
|
|
3
|
3
|
import com.example.springbootdemo.entity.FootScanEntity;
|
|
4
|
+import com.example.springbootdemo.entity.FootScanGroup;
|
|
5
|
+import com.example.springbootdemo.mapper.FootScanGroupMapper;
|
|
6
|
+import com.example.springbootdemo.service.FootScanGroupService;
|
4
|
7
|
import com.example.springbootdemo.service.FootScanService;
|
5
|
8
|
import com.example.springbootdemo.zxyTeST.sql.dao.ArmGrabRepository;
|
6
|
9
|
import com.example.springbootdemo.zxyTeST.sql.dao.ColorRepository;
|
|
@@ -25,6 +28,8 @@ public class HelloController {
|
25
|
28
|
JdbcTemplate jdbcTemplate;
|
26
|
29
|
@Autowired
|
27
|
30
|
FootScanService footScanService;
|
|
31
|
+ @Autowired
|
|
32
|
+ FootScanGroupService footScanGroupService;
|
28
|
33
|
@RequestMapping("/hello")
|
29
|
34
|
public void hello() {
|
30
|
35
|
List<Color> listColors = colorRepository.findByColorId(2314);
|
|
@@ -53,7 +58,12 @@ public class HelloController {
|
53
|
58
|
return footScanService.getFootScanById(foot_scan_id);
|
54
|
59
|
|
55
|
60
|
}
|
|
61
|
+ @RequestMapping("mybatis1")
|
|
62
|
+ public List<FootScanGroup> getFootScanGroup(@RequestParam("foot_scan_group_id") Long foot_scan_group_id) {
|
|
63
|
+ List <FootScanGroup> ff = footScanGroupService.findByFootScanGroupId(foot_scan_group_id);
|
|
64
|
+ return ff;
|
56
|
65
|
|
|
66
|
+ }
|
57
|
67
|
|
58
|
68
|
}
|
59
|
69
|
|