mirror of https://github.com/jeecgboot/jeecg-boot
fix: null error /completeFeesEstimation
parent
42e49b3ed4
commit
333c278317
|
@ -106,7 +106,7 @@ public class ShiroRealm extends AuthorizingRealm {
|
|||
loginUser = this.checkUserTokenIsEffect(token);
|
||||
} catch (AuthenticationException e) {
|
||||
JwtUtil.responseError(SpringContextUtils.getHttpServletResponse(),401,e.getMessage());
|
||||
e.printStackTrace();
|
||||
//e.printStackTrace();
|
||||
return null;
|
||||
}
|
||||
return new SimpleAuthenticationInfo(loginUser, token, getName());
|
||||
|
|
|
@ -911,7 +911,7 @@ public class InvoiceController {
|
|||
// only calculate purchase estimation if products are not available and purchaseInvoiceNumber is null, else it's already been paid
|
||||
List<String> orderIdsWithProductUnavailable = entry.getValue().stream()
|
||||
.filter(
|
||||
order -> order.getProductAvailable().equals("0")
|
||||
order -> (order.getProductAvailable() == null || order.getProductAvailable().equals("0"))
|
||||
&& order.getPurchaseInvoiceNumber() == null
|
||||
&& order.getVirtualProductAvailable().equals("0"))
|
||||
.map(PlatformOrder::getId).collect(Collectors.toList());
|
||||
|
|
Loading…
Reference in New Issue