fix - 优化入场出场锁逻辑。
This commit is contained in:
@@ -253,11 +253,12 @@ public class VenueController extends BaseApiController {
|
||||
if (byDevice == null) {
|
||||
throw new ServiceException("门禁通讯异常");
|
||||
}
|
||||
String doorSn = byDevice.getName();
|
||||
boolean lockStat = doorLockUtil.checkDoorLock(doorSn);
|
||||
if (lockStat) {
|
||||
throw new ServiceException("有人正在使用门禁,请稍后再试");
|
||||
}
|
||||
// 支付和进场出场是一回事情,不能进行加锁
|
||||
// String doorSn = byDevice.getName();
|
||||
// boolean lockStat = doorLockUtil.checkDoorLock(doorSn);
|
||||
// if (lockStat) {
|
||||
// throw new ServiceException("有人正在使用门禁,请稍后再试");
|
||||
// }
|
||||
BasketballPayResult result = orderService.createEnterVenueOrder(venueId, memberId, enterFlag, PayTypeEnum.WEI_XIN, new BigDecimal(payMoney));
|
||||
if (result.getPaidFlag()) {
|
||||
logger.info("[篮球下单] 支付成功 memberId={}, orderSn={}", memberId, result.getOrderSn());
|
||||
|
||||
Reference in New Issue
Block a user