feat:增加统计模块年份选择功能
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user