|
@@ -301,7 +301,11 @@ public class LabXxpInspectionController extends BaseController
|
|
|
@PostMapping("/updateInspection")
|
|
@PostMapping("/updateInspection")
|
|
|
public ResultData updateInspection(@RequestParam("labId") Long labId,@RequestParam("userId") Long userId) {
|
|
public ResultData updateInspection(@RequestParam("labId") Long labId,@RequestParam("userId") Long userId) {
|
|
|
logger.info("labId:"+labId+"userId:"+userId);
|
|
logger.info("labId:"+labId+"userId:"+userId);
|
|
|
- return ResultData.result(xxpInspectionService.updateXxpInspectionSignOut(labId,userId));
|
|
|
|
|
|
|
+ Integer num=xxpInspectionService.updateXxpInspectionSignOut(labId,userId);
|
|
|
|
|
+ if(num>0){
|
|
|
|
|
+ return ResultData.success();
|
|
|
|
|
+ }
|
|
|
|
|
+ return ResultData.fail("未查到签到记录!");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@@ -321,7 +325,7 @@ public class LabXxpInspectionController extends BaseController
|
|
|
type=2;
|
|
type=2;
|
|
|
}
|
|
}
|
|
|
if(type==0){
|
|
if(type==0){
|
|
|
- return ResultData.fail("未查到签到签到记录");
|
|
|
|
|
|
|
+ return ResultData.fail("未查到签到记录!");
|
|
|
}
|
|
}
|
|
|
return ResultData.success(type);
|
|
return ResultData.success(type);
|
|
|
}
|
|
}
|