longz
2026-07-13 6fc77feef6337bc478423efad5de91fa520b4990
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.ruoyi.order.service;
 
import com.ruoyi.common.core.domain.R;
import com.ruoyi.order.api.vo.TransactionRecordMessageVO;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;
 
import javax.annotation.Resource;
 
/**
 * 通过独立Spring Bean调用结算服务,确保@Transactional代理生效。
 */
@Service
public class ChargingOrderSettlementExecutor {
    @Lazy
    @Resource
    private TChargingOrderService chargingOrderService;
 
    public R settle(TransactionRecordMessageVO record) {
        return chargingOrderService.endChargeBillingCharge(record);
    }
}