|
|
@@ -6,7 +6,7 @@ import { PaymentStatus } from '../entities/payment.types.js';
|
|
|
import { PaymentCreateResponse } from '../entities/payment.types.js';
|
|
|
import { GenericCrudService } from '@d8d/shared-crud';
|
|
|
import { SystemConfigServiceMt } from '@d8d/core-module-mt/system-config-module-mt';
|
|
|
-import { OrderMtService } from '@d8d/orders-module-mt';
|
|
|
+import { OrderMtService, OrderMt } from '@d8d/orders-module-mt';
|
|
|
|
|
|
/**
|
|
|
* 微信支付服务 - 多租户版本
|
|
|
@@ -404,8 +404,8 @@ export class PaymentMtService extends GenericCrudService<PaymentMtEntity> {
|
|
|
console.debug(`[租户${tenantId}] 开始更新订单支付状态,订单ID: ${externalOrderId}, 状态: ${payState}`);
|
|
|
|
|
|
try {
|
|
|
- // 通过订单服务更新订单支付状态
|
|
|
- const orderRepository = this.orderMtService.getRepository();
|
|
|
+ // 直接使用数据源更新订单支付状态
|
|
|
+ const orderRepository = this.dataSource.getRepository(OrderMt);
|
|
|
|
|
|
const updateResult = await orderRepository.update(
|
|
|
{ id: externalOrderId, tenantId },
|