|
@@ -323,7 +323,7 @@ public class HealthCodeServiceImpl implements HealthCodeService {
|
|
|
final PlaceInfoVO finalPlaceInfoVO = placeInfoVO;
|
|
|
final HealtCodeUserVO finalUserVO = userVO;
|
|
|
executor.execute(() -> {
|
|
|
- if (finalPlaceInfoVO.getScenicFlag() && finalUserVO.getIsOpen().equals(HealthOpenEnum.RELEASE.getCode())) {
|
|
|
+ if (finalPlaceInfoVO != null && finalPlaceInfoVO.getScenicFlag() && finalUserVO.getIsOpen().equals(HealthOpenEnum.RELEASE.getCode())) {
|
|
|
scenicServer.consume(new ScenicConsumeDTO().setIdNumber(shortTermDTO.getIdNumber()).setReservationCode(NumberUtil.isNumber(shortTermDTO.getHealthCode()) ? shortTermDTO.getHealthCode() : StrUtil.EMPTY));
|
|
|
}
|
|
|
});
|