|
@@ -73,6 +73,7 @@ public class SignInCheckController {
|
|
|
@ApiOperation(value = "进入项验证")
|
|
@ApiOperation(value = "进入项验证")
|
|
|
@PostMapping("/{code}/{id}")
|
|
@PostMapping("/{code}/{id}")
|
|
|
public R checkIn(@ApiParam("进出记录ID") @PathVariable("id") Long id, @ApiParam("验证类型编码") @PathVariable("code") String code, @RequestParam("file") MultipartFile file) {
|
|
public R checkIn(@ApiParam("进出记录ID") @PathVariable("id") Long id, @ApiParam("验证类型编码") @PathVariable("code") String code, @RequestParam("file") MultipartFile file) {
|
|
|
|
|
+ logger.info("【算法服务】 进入项验证");
|
|
|
return checkService.checkAndCommit(code, file, id);
|
|
return checkService.checkAndCommit(code, file, id);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -87,6 +88,7 @@ public class SignInCheckController {
|
|
|
public R checkInAll(@ApiParam("进出记录ID") @RequestParam("id") Long id,
|
|
public R checkInAll(@ApiParam("进出记录ID") @RequestParam("id") Long id,
|
|
|
@ApiParam("图片文件") @RequestParam("file") MultipartFile file,
|
|
@ApiParam("图片文件") @RequestParam("file") MultipartFile file,
|
|
|
@ApiParam("实验室ID") @RequestParam("subId") Long subId) {
|
|
@ApiParam("实验室ID") @RequestParam("subId") Long subId) {
|
|
|
|
|
+ logger.info("【算法服务】 三合一验证");
|
|
|
return checkService.checkAndCommit(id, file, subId);
|
|
return checkService.checkAndCommit(id, file, subId);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -100,6 +102,7 @@ public class SignInCheckController {
|
|
|
@ApiOperation(value = "进入项验证:mock方法")
|
|
@ApiOperation(value = "进入项验证:mock方法")
|
|
|
@PostMapping("/mock/{code}/{id}")
|
|
@PostMapping("/mock/{code}/{id}")
|
|
|
public R checkInMock(@ApiParam("进出记录ID") @PathVariable("id") Long id, @ApiParam("验证类型编码") @PathVariable("code") String code, @RequestParam("file") MultipartFile file) {
|
|
public R checkInMock(@ApiParam("进出记录ID") @PathVariable("id") Long id, @ApiParam("验证类型编码") @PathVariable("code") String code, @RequestParam("file") MultipartFile file) {
|
|
|
|
|
+ logger.info("【算法服务】 进入项验证:mock方法");
|
|
|
return checkService.mockTest(code, file, id);
|
|
return checkService.mockTest(code, file, id);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -169,12 +172,11 @@ public class SignInCheckController {
|
|
|
public R checkFire(@ApiParam("图片文件") @RequestParam("file") MultipartFile file) {
|
|
public R checkFire(@ApiParam("图片文件") @RequestParam("file") MultipartFile file) {
|
|
|
return R.ok(fireImageService.catchImage(file));
|
|
return R.ok(fireImageService.catchImage(file));
|
|
|
}
|
|
}
|
|
|
-/*
|
|
|
|
|
- @PostMapping("/testXXF")
|
|
|
|
|
|
|
+ @GetMapping("/testXXF")
|
|
|
public R testXXF() {
|
|
public R testXXF() {
|
|
|
//TODO 添加一条请求记录到数据库,
|
|
//TODO 添加一条请求记录到数据库,
|
|
|
Algorithm algorithmFirst = new Algorithm();
|
|
Algorithm algorithmFirst = new Algorithm();
|
|
|
- R alg= laboratoryService.saveAlgorithmData(algorithmFirst);
|
|
|
|
|
|
|
+ R<Long> alg= laboratoryService.saveAlgorithmData(algorithmFirst);
|
|
|
System.out.println(alg.getData());
|
|
System.out.println(alg.getData());
|
|
|
Map<String,String> map = new HashMap<>();
|
|
Map<String,String> map = new HashMap<>();
|
|
|
map.put("type", "image");
|
|
map.put("type", "image");
|
|
@@ -193,5 +195,5 @@ public class SignInCheckController {
|
|
|
algorithmFirst.setUpdateTime(new Date());
|
|
algorithmFirst.setUpdateTime(new Date());
|
|
|
R f = laboratoryService.update(algorithmFirst);
|
|
R f = laboratoryService.update(algorithmFirst);
|
|
|
return R.ok(f);
|
|
return R.ok(f);
|
|
|
- }*/
|
|
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|