Commit c7ebd19d authored by 王向伟's avatar 王向伟

还款计划返回空值处理

parent 713df3ed
...@@ -629,7 +629,9 @@ public class OrderServiceImpl implements OrderService { ...@@ -629,7 +629,9 @@ public class OrderServiceImpl implements OrderService {
} }
RepaymentPlansResultModel repaymentPlansVo = serviceResult.getData(); RepaymentPlansResultModel repaymentPlansVo = serviceResult.getData();
repaymentPlansVo.setLoanId(loanId); if(Objects.nonNull(repaymentPlansVo)){
repaymentPlansVo.setLoanId(loanId);
}
log.info("[findRepaymentPlan] 查询还款计划,返回信息 channelOrderNumber={},loanId={},repaymentPlansVo={}", channelOrderNumber, loanId, repaymentPlansVo); log.info("[findRepaymentPlan] 查询还款计划,返回信息 channelOrderNumber={},loanId={},repaymentPlansVo={}", channelOrderNumber, loanId, repaymentPlansVo);
return repaymentPlansVo; return repaymentPlansVo;
} }
......
...@@ -65,7 +65,7 @@ public class ApplicationSecurityHandler implements SecurityHandler { ...@@ -65,7 +65,7 @@ public class ApplicationSecurityHandler implements SecurityHandler {
if (hasPrivilege) { if (hasPrivilege) {
return new Tuple<>(Boolean.TRUE, null); return new Tuple<>(Boolean.TRUE, null);
} else { } else {
log.info("权限不足,userName={},authorityId={}" + principal.getUserInfo().getUsername(), authorityId); log.info("权限不足,userName={},authorityId={}" ,principal.getUserInfo().getUsername(), authorityId);
return new Tuple<>(Boolean.FALSE, ApplicationStatus.INVALID_AUTHORITY); return new Tuple<>(Boolean.FALSE, ApplicationStatus.INVALID_AUTHORITY);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment