不是三方订单不推送

This commit is contained in:
ZZ 2021-11-24 15:58:29 +08:00
parent 4403368565
commit 72aece098f

View File

@ -8,6 +8,7 @@ import com.xhpc.evcs.dto.CommonRequest;
import com.xhpc.evcs.dto.DTOJsonHelper;
import com.xhpc.evcs.jpa.AuthSecretTokenRepository;
import com.xhpc.evcs.utils.JSONUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
@ -18,6 +19,7 @@ import java.util.Map;
import static com.xhpc.common.data.redis.StaticBeanUtil.REDIS;
import static com.xhpc.evcs.domain.AuthSecretToken.SECRET_TOKEN_TYPE_OUT;
@Slf4j
@Component
public class NotificationStopChargeResultTask extends CoreDispatcher {
@ -55,7 +57,9 @@ public class NotificationStopChargeResultTask extends CoreDispatcher {
Boolean isStopNotified = (Boolean) pushOrder.get("isStopNotified");
if (isStopNotified == null || !isStopNotified) {
String internetSerialNumber = (String) pushOrder.get("internetSerialNumber");
if (internetSerialNumber != null) {
if (internetSerialNumber == null) {
log.error("null isn: {}", pushOrderKey);
}
String operatorId3rdpty = internetSerialNumber.substring(0, 9);
AuthSecretToken authSecretTokenOut =
authSecretTokenRepository.findByOperatorId3irdptyAndSecretTokenType(operatorId3rdpty,
@ -80,5 +84,4 @@ public class NotificationStopChargeResultTask extends CoreDispatcher {
}
}
}
}
}