首页报表优化
This commit is contained in:
parent
eebccd5453
commit
6f1b8047cd
|
@ -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());
|
||||
|
||||
// 查询月费收入
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user