|
@@ -295,6 +295,24 @@ public class LabXxpInspectionController extends BaseController
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
|
+ * 新增巡查
|
|
|
|
|
+ */
|
|
|
|
|
+ @ApiOperation(value = "Ai检测判断是否已签到")
|
|
|
|
|
+ @PostMapping("/isSignInspection")
|
|
|
|
|
+ public ResultData isSignInspection(Long labId,Long userId) {
|
|
|
|
|
+ int num=xxpInspectionService.selectNoSignOut(labId,userId);
|
|
|
|
|
+ if(num>0){
|
|
|
|
|
+ return ResultData.fail("当前用户已经签到成功,不能重复签到!");
|
|
|
|
|
+ }
|
|
|
|
|
+ int numAccess=iLabSubjectAccessRecordService.getSignOutRecordNoOut(labId,userId);
|
|
|
|
|
+ if(numAccess>0){
|
|
|
|
|
+ return ResultData.fail("当前用户已经签到成功,不能重复签到!");
|
|
|
|
|
+ }
|
|
|
|
|
+ return ResultData.success();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
* 修改巡查
|
|
* 修改巡查
|
|
|
*/
|
|
*/
|
|
|
@ApiOperation(value = "巡查签出")
|
|
@ApiOperation(value = "巡查签出")
|