fix: 修复 Energy 模块 Feign 客户端配置

This commit is contained in:
kkfluous
2026-03-16 14:05:09 +08:00
parent b40f521c03
commit 02a6c2e5cb
4 changed files with 24 additions and 7 deletions

View File

@@ -86,7 +86,7 @@ public class DetailEventListener {
log.info("[onRecordImported] 生成明细完成count={}", details.size());
// 3. 检查站点配置,决定是否自动扣款
HydrogenStationRespDTO station = hydrogenStationApi.getStation(event.getStationId());
HydrogenStationRespDTO station = hydrogenStationApi.getStation(event.getStationId()).getData();
if (station != null && Boolean.TRUE.equals(station.getAutoDeduct())) {
log.info("[onRecordImported] 站点配置自动扣款,开始扣款流程");
for (EnergyHydrogenDetailDO detail : details) {

View File

@@ -97,7 +97,7 @@ public class HydrogenDetailServiceImpl implements HydrogenDetailService {
// 3. 审核通过 → 检查是否需要扣款
if (approved) {
// 获取站点配置
HydrogenStationRespDTO station = hydrogenStationApi.getStation(detail.getStationId());
HydrogenStationRespDTO station = hydrogenStationApi.getStation(detail.getStationId()).getData();
// 如果配置为审核后扣款autoDeduct=false则执行扣款
if (station != null && !Boolean.TRUE.equals(station.getAutoDeduct())) {