微信判断入场出场只需要check 不用加锁

This commit is contained in:
2023-12-14 00:06:38 +08:00
parent c1eef12901
commit c3582c2bac
2 changed files with 3 additions and 3 deletions

View File

@@ -128,7 +128,7 @@ public class VenueController extends BaseApiController {
if (join.getFlg() == 0) {
String barcode = barcodeService.newBarcode(doorSn, EnterEnum.ENTER, venueId, memberId);
join.setBarcode(barcode);
doorLockUtil.lockDoor(doorSn);
// doorLockUtil.lockDoor(doorSn);
}
return ResponseDTO.ok().addAttribute("join", join);
}
@@ -158,7 +158,7 @@ public class VenueController extends BaseApiController {
if (out.getFlg() == 0) {
String barcode = barcodeService.newBarcode(doorSn,EnterEnum.OUT,venueId,memberId);
out.setBarcode(barcode);
doorLockUtil.lockDoor(doorSn);
// doorLockUtil.lockDoor(doorSn);
}
return ResponseDTO.ok().addAttribute("out", out);
}

View File

@@ -10,7 +10,7 @@ public class DoorLockUtil {
private final static String DOOR_LOCK = "DOOR_LOCK_";
private final static String DOOR_BARCODE_LOCK = "DOOR_BARCODE_LOCK_";
private final static Integer LOCK_TIMEOUT = 30;
private final static Integer LOCK_TIMEOUT = 15;
@Resource
RedisCache redisCache;