Authored by wujiexiang

解决Null异常

... ... @@ -143,8 +143,8 @@ public abstract class AbsOrderViewService {
.orderStatus(orderStatus).createTime(createTime).oa(oa).build();
TimeoutWrapper tw = orderTimeoutFactory.create(otctx);
Integer leftTime = null;
if (Objects.nonNull(tw)) {
timeoutBo = tw.calculateLeftTime();
//特殊场景 orders_pay无记录时,timeoutBo = null
if (Objects.nonNull(tw) && (timeoutBo = tw.calculateLeftTime()) != null) {
leftTime = timeoutBo.getLeftTime();
}
if (leftTime != null && leftTime<0){
... ...