|
|
@@ -2,6 +2,7 @@ package cn.com.taiji.ias.manager.order; |
|
|
|
|
|
|
|
import cn.com.taiji.common.manager.net.http.ServiceHandleException; |
|
|
|
import cn.com.taiji.common.pub.TimeTools; |
|
|
|
import cn.com.taiji.core.entity.ass.AssAgencyConfig; |
|
|
|
import cn.com.taiji.core.entity.basic.QtkAgency; |
|
|
|
import cn.com.taiji.core.entity.basic.QtkCardInfo; |
|
|
|
import cn.com.taiji.core.entity.basic.QtkServiceHall; |
|
|
@@ -21,6 +22,7 @@ import cn.com.taiji.core.model.comm.protocol.ods.oqs.issue.OqsCardQueryResponse; |
|
|
|
import cn.com.taiji.core.model.comm.protocol.ods.oqs.issue.OqsIssueOrderQueryRequest; |
|
|
|
import cn.com.taiji.core.model.comm.protocol.ods.oqs.issue.OqsIssueOrderQueryResponse; |
|
|
|
import cn.com.taiji.core.model.comm.protocol.valid.ErrorMsgBuilder; |
|
|
|
import cn.com.taiji.core.repo.jpa.ass.AssAgencyConfigRepo; |
|
|
|
import cn.com.taiji.core.repo.jpa.basic.QtkAgencyRepo; |
|
|
|
import cn.com.taiji.core.repo.jpa.issue.IssueProductPayRepo; |
|
|
|
import cn.com.taiji.core.repo.jpa.issue.IssueProductPromotionRepo; |
|
|
@@ -50,6 +52,8 @@ public class OrderInitManager extends AbstractOrderManager<OrderInitRequest> { |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private QtkAgencyRepo qtkAgencyRepo; |
|
|
|
@Autowired |
|
|
|
private AssAgencyConfigRepo assAgencyConfigRepo; |
|
|
|
|
|
|
|
public OrderInitManager() { |
|
|
|
super(DataType.ORDER_INIT); |
|
|
@@ -79,9 +83,12 @@ public class OrderInitManager extends AbstractOrderManager<OrderInitRequest> { |
|
|
|
protected void businessValidateInternal(ErrorMsgBuilder builder, OrderInitRequest request, ServiceLogEvent event, |
|
|
|
Map<String, Object> dataStream) throws ServiceHandleException { |
|
|
|
//黄牌车暂不办理 |
|
|
|
// if (PlateColorType.YELLOW.getCode() == request.getVehiclePlateColor()){ |
|
|
|
// throw newBusinessException("黄牌车辆暂不可办理,敬请期待"); |
|
|
|
// } |
|
|
|
if (PlateColorType.YELLOW.getCode() == request.getVehiclePlateColor()){ |
|
|
|
AssAgencyConfig agencyConfig = assAgencyConfigRepo.findByAgencyId(request.getAgentId()); |
|
|
|
if (agencyConfig != null && agencyConfig.getQtSign()) { |
|
|
|
throw newBusinessException("黄牌车辆暂不可办理,敬请期待"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
String lockKey = MyFinals.VEHICLE_LOCK_KEY + request.getVehiclePlate(); |
|
|
|
lock = redissonClient.getLock(lockKey); |