Bläddra i källkod

Merge remote-tracking branch 'origin/master'

master
zouhantao 3 dagar sedan
förälder
incheckning
00215af525

+ 2
- 2
zhywpt-service-inss/src/main/java/cn/com/taiji/inss/manager/inst/InstOnlineActiveMananger.java Visa fil

OqsCardQueryResponse oqsCardQueryResponse = jsonPostRepeat(oqsCardQueryRequest, 1); OqsCardQueryResponse oqsCardQueryResponse = jsonPostRepeat(oqsCardQueryRequest, 1);
if (oqsCardQueryResponse.getQtkCardInfo() == null) if (oqsCardQueryResponse.getQtkCardInfo() == null)
logger.error("老发行库数据同步异常,缺少cardId为{}的数据", cardInfoOnVehicle.getCardId()); logger.error("老发行库数据同步异常,缺少cardId为{}的数据", cardInfoOnVehicle.getCardId());
if (!cardInfoOnVehicle.getCardId().equals(vo.getCardId()))
else if (oqsCardQueryResponse.getQtkCardInfo().getCardStatus() == CardStatus.ZC)
throw GlyServiceError.BUSINESS_VALIDATE_ERR.toHandleException("车辆下已存在卡信息"); throw GlyServiceError.BUSINESS_VALIDATE_ERR.toHandleException("车辆下已存在卡信息");
else else
cardInfoRepo.updateCardStatus(oqsCardQueryResponse.getQtkCardInfo().getCardId(), oqsCardQueryResponse.getQtkCardInfo().getCardStatus()); cardInfoRepo.updateCardStatus(oqsCardQueryResponse.getQtkCardInfo().getCardId(), oqsCardQueryResponse.getQtkCardInfo().getCardStatus());
oqsObuQueryRequest.setObuId(vo.getObuId()); oqsObuQueryRequest.setObuId(vo.getObuId());
OqsObuQueryResponse oqsObuQueryResponse = jsonPostRepeat(oqsObuQueryRequest, 1); OqsObuQueryResponse oqsObuQueryResponse = jsonPostRepeat(oqsObuQueryRequest, 1);
if (oqsObuQueryResponse.getQtkObuInfo() != null && oqsObuQueryResponse.getQtkObuInfo().getObuStatus() == ObuStatus.ZC) { if (oqsObuQueryResponse.getQtkObuInfo() != null && oqsObuQueryResponse.getQtkObuInfo().getObuStatus() == ObuStatus.ZC) {
throw GlyServiceError.BUSINESS_VALIDATE_ERR.toHandleException("该卡[" + vo.getCardId() + "]已发行");
throw GlyServiceError.BUSINESS_VALIDATE_ERR.toHandleException("该OBU[" + vo.getObuId() + "]已发行");
} else { } else {
QtkObuInfo obu = obuInfoRepo.findByObuId(vo.getObuId()); QtkObuInfo obu = obuInfoRepo.findByObuId(vo.getObuId());
if (obu != null) { if (obu != null) {

Laddar…
Avbryt
Spara