mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-28 06:55:09 +08:00
update 新增重新分账接口
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user