123
This commit is contained in:
@@ -20,6 +20,7 @@ import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.time.LocalDate;
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
@@ -42,7 +43,8 @@ public class DayIncomeStatisticsController extends BaseController {
|
||||
@SaCheckPermission("cai:dayIncomeStatistics:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<DayIncomeStatistics> list(DayIncomeStatistics bo, PageQuery pageQuery) {
|
||||
Page<DayIncomeStatistics> page = dayIncomeStatisticsService.page(pageQuery.build(), Wrappers.lambdaQuery(bo));
|
||||
Page<DayIncomeStatistics> page = dayIncomeStatisticsService.page(pageQuery.build(),
|
||||
Wrappers.lambdaQuery(bo).orderByDesc(DayIncomeStatistics::getDate));
|
||||
return TableDataInfo.build(page);
|
||||
}
|
||||
|
||||
@@ -58,6 +60,22 @@ public class DayIncomeStatisticsController extends BaseController {
|
||||
return R.ok(dayIncomeStatisticsService.getById(id));
|
||||
}
|
||||
|
||||
@Log(title = "刷新单天统计", businessType = BusinessType.INSERT)
|
||||
@RepeatSubmit()
|
||||
@PostMapping("/refreshToday")
|
||||
public R<Void> refreshToday() {
|
||||
dayIncomeStatisticsService.refreshByDate(LocalDate.now());
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@Log(title = "刷新昨日统计", businessType = BusinessType.INSERT)
|
||||
@RepeatSubmit()
|
||||
@PostMapping("/refreshLastDay")
|
||||
public R<Void> refreshLastDay() {
|
||||
dayIncomeStatisticsService.refreshByDate(LocalDate.now().plusDays(-1));
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增每日账单统计
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user