fix: 锁单失败提示区分金蝶请求回显场景(应答缺少updateCount字段)
This commit is contained in:
+2
-1
@@ -388,7 +388,8 @@ public class BfiServiceImpl implements IBfiService {
|
||||
return true;
|
||||
}
|
||||
log.error("调用BFI接口单据锁定异常响应参数:{}", JSONUtil.toJsonStr(result));
|
||||
throw new BfiException("调用BFI接口单据锁定异常 " + (result == null ? "响应为空或解析失败" : "updateCount=" + result.getUpdateCount()));
|
||||
throw new BfiException("调用BFI接口单据锁定异常,应答缺少updateCount字段(金蝶侧可能返回了请求回显、未实际处理锁定) updateCount="
|
||||
+ (result == null ? "无响应" : result.getUpdateCount()));
|
||||
} catch (BfiException e) {
|
||||
log.error("调用BFI接口单据锁定,BfiException异常", e);
|
||||
throw e;
|
||||
|
||||
Reference in New Issue
Block a user