首页报表优化

This commit is contained in:
墨大叔 2024-09-07 17:40:12 +08:00
parent eebccd5453
commit 6f1b8047cd
3 changed files with 9 additions and 2 deletions

View File

@ -106,7 +106,7 @@ public class DashboardService {
TransactionBillQuery billQuery = new TransactionBillQuery();
billQuery.setStartDate(query.getStartDate());
billQuery.setEndDate(query.getEndDate());
billQuery.setStatusList(TransactionBillStatus.payedOrder());
billQuery.setStatusList(TransactionBillStatus.serviceIncome());
List<TransactionAmountVO<Date>> amountList = transactionBillService.selectCommonSumOfMoney(billQuery, TransactionBillGroupBy.create_date.name());
// 查询月费收入

View File

@ -78,4 +78,11 @@ public enum TransactionBillStatus {
public static List<String> payedOrder() {
return asList(SUCCESS, REFUNDED, REFUNDING);
}
/**
* 已收取服务费的状态
*/
public static List<String> serviceIncome() {
return asList(SUCCESS, REFUNDED, REFUNDING, WITHDRAW_SUCCESS);
}
}

View File

@ -70,7 +70,7 @@ public class SmDashboardController extends BaseController {
@GetMapping("/hourBillCount")
public AjaxResult hourBillCount(@Validated(ValidGroup.Query.class) TransactionBillQuery dto) {
dto.setGroupBy(TransactionBillGroupBy.create_hour.name());
dto.setStatus(TransactionBillStatus.SUCCESS.getStatus());
dto.setStatusList(TransactionBillStatus.serviceIncome());
return AjaxResult.success(transactionBillService.selectCount(dto));
}