mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
新增 后管引流抽成页面汇总数据接口
This commit is contained in:
@@ -6,15 +6,13 @@ import com.jsowell.common.core.page.PageResponse;
|
||||
import com.jsowell.common.response.RestApiResponse;
|
||||
import com.jsowell.pile.dto.QueryOrderSplitRecordDTO;
|
||||
import com.jsowell.pile.service.OrderSplitRecordService;
|
||||
import com.jsowell.pile.vo.web.OrderSplitRecordVO;
|
||||
import com.jsowell.pile.vo.web.OrderCommissionSummaryVO;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 订单分账记录Controller
|
||||
*
|
||||
@@ -45,4 +43,22 @@ public class OrderSplitRecordController extends BaseController {
|
||||
}
|
||||
return response;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询某站点引流抽成总数据
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/getOrderSummaryCommission")
|
||||
public RestApiResponse<?> getOrderSummaryCommission(@RequestBody QueryOrderSplitRecordDTO dto) {
|
||||
RestApiResponse<?> response = null;
|
||||
try {
|
||||
OrderCommissionSummaryVO vo = orderSplitRecordService.getOrderSummaryCommission(dto);
|
||||
response = new RestApiResponse<>(ImmutableMap.of("OrderCommissionSummaryVO", vo));
|
||||
} catch (Exception e) {
|
||||
logger.error("查询某站点引流抽成总数据 error", e);
|
||||
response = new RestApiResponse<>(e);
|
||||
}
|
||||
return response;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user