fix(bpm): 修复预支款单详情页面的收款账号信息获取逻辑
- 在获取预支款单详情时,增加了对 bankId 的非空检查 -仅当 imprest 对象不为空且 bankId 不为空时,才调用银行 API 获取收款账号信息
This commit is contained in:
parent
cb568fb746
commit
d5892c92d7
@ -52,7 +52,7 @@ public class BpmOAImprestController {
|
|||||||
|
|
||||||
BpmOAImprestDO imprest = imprestService.getImprest(id);
|
BpmOAImprestDO imprest = imprestService.getImprest(id);
|
||||||
BpmOAImprestRespVO respVO = BpmOAImprestConvert.INSTANCE.convert(imprest);
|
BpmOAImprestRespVO respVO = BpmOAImprestConvert.INSTANCE.convert(imprest);
|
||||||
if (respVO != null) {
|
if (respVO != null && imprest.getBankId() != null) {
|
||||||
// 获取收款账号信息
|
// 获取收款账号信息
|
||||||
BankRespDTO bankRespDTO = bankApi.getBank(imprest.getBankId()).getCheckedData();
|
BankRespDTO bankRespDTO = bankApi.getBank(imprest.getBankId()).getCheckedData();
|
||||||
if (bankRespDTO != null) {
|
if (bankRespDTO != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user