add 新增首页查询抽成金额接口

This commit is contained in:
Lemon
2025-11-14 13:57:46 +08:00
parent 776c0279be
commit e30ffa19af
8 changed files with 134 additions and 116 deletions

View File

@@ -8,6 +8,7 @@ import com.jsowell.pile.service.OrderBasicInfoService;
import com.jsowell.pile.service.PileBasicInfoService;
import com.jsowell.pile.vo.web.IndexGeneralSituationVO;
import com.jsowell.pile.vo.web.IndexOrderInfoVO;
import com.jsowell.pile.vo.web.IndexPlatformProfitVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
@@ -67,5 +68,22 @@ public class indexController extends BaseController {
return response;
}
/**
* 查询每天的平台抽成金额
*/
@PostMapping("/getPlatformProfit")
public RestApiResponse<?> getPlatformProfit(@RequestBody IndexQueryDTO dto) {
logger.info("查询每天平台抽成金额");
RestApiResponse<?> response;
try {
List<IndexPlatformProfitVO> indexOrderInfo = orderBasicInfoService.getPlatformProfit(dto);
response = new RestApiResponse<>(indexOrderInfo);
} catch (Exception e) {
logger.error("查询每天平台抽成金额 error{}", e.getMessage());
response = new RestApiResponse<>("00200003", "查询每天平台抽成金额错误");
}
logger.info("查询每天平台抽成金额 result:{}", JSON.toJSONString(response));
return response;
}
}