update 新增重新分账接口

This commit is contained in:
Lemon
2025-10-10 11:54:35 +08:00
parent f5a58a70ea
commit 28a712637f
8 changed files with 123 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ import com.jsowell.common.response.RestApiResponse;
import com.jsowell.pile.dto.QueryOrderSplitRecordDTO;
import com.jsowell.pile.service.OrderSplitRecordService;
import com.jsowell.pile.vo.web.OrderCommissionSummaryVO;
import com.jsowell.service.SplitBillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
@@ -26,6 +27,9 @@ public class OrderSplitRecordController extends BaseController {
@Autowired
private OrderSplitRecordService orderSplitRecordService;
@Autowired
private SplitBillService splitBillService;
/**
* 后管查询引流抽成订单列表
* @param dto
@@ -61,4 +65,19 @@ public class OrderSplitRecordController extends BaseController {
}
return response;
}
/**
* 重试运营商分账
*/
public RestApiResponse<?> retryMerchantSplit(@RequestBody QueryOrderSplitRecordDTO dto) {
RestApiResponse<?> response = null;
try {
splitBillService.retryMerchantSplit(dto);
response = new RestApiResponse<>();
} catch (Exception e) {
logger.error("重试运营商分账 error", e);
response = new RestApiResponse<>(e);
}
return response;
}
}