微信判断入场出场只需要check 不用加锁
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user