fix: 修复 Energy 模块 Feign 客户端配置
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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())) {
|
||||
|
||||
Reference in New Issue
Block a user