huminghao 2 weeks ago
parent
commit
4d9a15be5e

+ 4
- 0
zhywpt-service-ias/src/main/java/cn/com/taiji/ias/manager/order/OrderInitManager.java View File

@@ -83,6 +83,10 @@ public class OrderInitManager extends AbstractOrderManager<OrderInitRequest> {
@Override
protected void businessValidateInternal(ErrorMsgBuilder builder, OrderInitRequest request, ServiceLogEvent event,
Map<String, Object> dataStream) throws ServiceHandleException {
//黄牌车暂不办理
if (PlateColorType.YELLOW.getCode() == request.getVehiclePlateColor()){
throw newBusinessException("黄牌车辆暂不可办理,敬请期待");
}

String lockKey = MyFinals.VEHICLE_LOCK_KEY + request.getVehiclePlate();
lock = redissonClient.getLock(lockKey);

Loading…
Cancel
Save