|
@@ -7,6 +7,8 @@ import org.slf4j.Logger;
|
7
|
7
|
import org.slf4j.LoggerFactory;
|
8
|
8
|
import org.springframework.beans.factory.annotation.Autowired;
|
9
|
9
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
10
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
11
|
+import org.springframework.web.bind.annotation.ResponseBody;
|
10
|
12
|
import org.springframework.web.bind.annotation.RestController;
|
11
|
13
|
|
12
|
14
|
|
|
@@ -23,9 +25,9 @@ public class DataController {
|
23
|
25
|
}
|
24
|
26
|
|
25
|
27
|
@PostMapping("/equipmentTestingEnd")
|
26
|
|
- public String equipmentTesting(TeData teData) {
|
|
28
|
+ public String equipmentTesting(@RequestBody TeData teData) {
|
27
|
29
|
logger.info("{}", teData);
|
28
|
30
|
int dbi = teDataMapper.insert(teData);
|
29
|
|
- return dbi + " success";
|
|
31
|
+ return dbi+" success";
|
30
|
32
|
}
|
31
|
33
|
}
|