feat 分账更新

This commit is contained in:
bootx
2024-04-15 23:11:48 +08:00
parent e0c495d94b
commit 22d1dd5bf3
6 changed files with 38 additions and 5 deletions

View File

@@ -7,6 +7,7 @@ import cn.bootx.platform.common.core.rest.dto.LabelValue;
import cn.bootx.platform.common.core.rest.param.PageParam;
import cn.bootx.platform.daxpay.param.pay.AllocationSyncParam;
import cn.bootx.platform.daxpay.param.pay.allocation.AllocationFinishParam;
import cn.bootx.platform.daxpay.param.pay.allocation.AllocationResetParam;
import cn.bootx.platform.daxpay.service.core.order.allocation.service.AllocationOrderService;
import cn.bootx.platform.daxpay.service.core.payment.allocation.service.AllocationService;
import cn.bootx.platform.daxpay.service.core.payment.allocation.service.AllocationSyncService;
@@ -87,4 +88,13 @@ public class AllocationOrderController {
allocationService.finish(param);
return Res.ok();
}
@Operation(summary = "分账重试")
@PostMapping("/retry")
public ResResult<Void> retryAllocation(Long id){
AllocationResetParam param = new AllocationResetParam();
param.setOrderId(id);
allocationService.retryAllocation(param);
return Res.ok();
}
}