add 新增 首页查询每天的保险收入金额接口

This commit is contained in:
Lemon
2025-11-26 14:52:07 +08:00
parent f55f6ec006
commit 23ce26a441
6 changed files with 62 additions and 1 deletions

View File

@@ -73,7 +73,7 @@ public class indexController extends BaseController {
*/
@PostMapping("/getPlatformProfit")
public RestApiResponse<?> getPlatformProfit(@RequestBody IndexQueryDTO dto) {
logger.info("查询每天平台抽成金额");
logger.info("查询每天平台抽成金额 param:{}", JSON.toJSONString(dto));
RestApiResponse<?> response;
try {
List<IndexPlatformProfitVO> indexOrderInfo = orderBasicInfoService.getPlatformProfit(dto);
@@ -86,4 +86,23 @@ public class indexController extends BaseController {
return response;
}
/**
* 查询每天的保险费用
* @return
*/
@PostMapping("/getInsuranceAmount")
public RestApiResponse<?> getInsuranceAmount(@RequestBody IndexQueryDTO dto) {
logger.info("查询每天的保险费用 param:{}", JSON.toJSONString(dto));
RestApiResponse<?> response = null;
try {
List<IndexPlatformProfitVO> indexOrderInfo = orderBasicInfoService.getInsuranceAmount(dto);
response = new RestApiResponse<>(indexOrderInfo);
} catch (Exception e) {
logger.error("查询每天的保险费用 error{}", e.getMessage());
response = new RestApiResponse<>("00200004", "查询每天的保险费用错误");
}
logger.info("查询每天的保险费用 result:{}", JSON.toJSONString(response));
return response;
}
}