feat:增加统计模块年份选择功能

This commit is contained in:
2025-11-14 15:49:33 +08:00
parent b4cda27e64
commit a582ebb3e4
5 changed files with 191 additions and 13 deletions

View File

@@ -19,6 +19,13 @@ class FlispService {
return box.values.toList();
}
List<Flisp> getAllFlispsByYear(int year) {
return box.values
.toList()
.where((flisp) => flisp.createTime.year == year)
.toList();
}
Future<bool> updateFlisp(Flisp flisp) async {
try {
await flisp.save();