Browse Source

自检接口添加

lmstack 3 years ago
parent
commit
838bdbaf24

+ 1 - 1
src/main/java/cn/fastfun/controller/api/ApiAppDeviceController.java

@@ -116,7 +116,7 @@ public class ApiAppDeviceController {
     }
 
     @ApiOperation(value = "电池自检")
-    @GetMapping("selfCheck")
+    @RequestMapping(value = "selfCheck", method = RequestMethod.POST)
     public ApiDTO selfCheck(@RequestBody BenchQueryDetailParam param) {
         AppDevice appDevice = appDeviceService.getOne(QueryParamExp.eq("sn", param.getSn()));
         if (!(appDevice.getCheckStatus().equals(1))){