✨ 客商档案同步金蝶完善:伙伴类型按客商性质字典解析、推送银行/联系人分录、BFI配置抽取BfiProperties

This commit is contained in:
刘泉佳
2026-09-20 16:05:54 +08:00
parent 3950a3a0b0
commit 719ec4e8f6
18 changed files with 1513 additions and 117 deletions
@@ -70,7 +70,7 @@ public class CustomFeignLogger extends Logger {
bodyStr = new String(body, StandardCharsets.UTF_8);
}
log.info("===> [{}] {} {} | Headers: {} | Body: {}", configKey, method, url, headers, bodyStr);
log.info("===> [{}] {} {} | Headers: {} | Body: {}", configKey, method, url, headers, flattenBody(bodyStr));
}
@Override
@@ -94,11 +94,21 @@ public class CustomFeignLogger extends Logger {
bodyStr = new String(bodyData, StandardCharsets.UTF_8);
}
log.info("<==== [{}] {} | Status: {} | Duration: {}ms | Body: {}", configKey, url, status, millis, bodyStr);
log.info("<==== [{}] {} | Status: {} | Duration: {}ms | Body: {}", configKey, url, status, millis, flattenBody(bodyStr));
return response.toBuilder().body(bodyData).build();
}
/**
* 将报文内容压缩为单行显示(换行、回车、制表符等空白序列替换为单个空格)
*/
private String flattenBody(String bodyStr) {
if (bodyStr == null) {
return null;
}
return bodyStr.replaceAll("\\s+", " ").trim();
}
/**
* 获取Content-Type
*/