fix:设备查询菜品频繁问题

fix:退看流水对账问题
This commit is contained in:
dzc committed 2026-09-02 12:52:54 +08:00
1 parent 917e7b4e83
commit 4d7bc5ed33
12 files changed
+137 -32

No files matched your search

+15 -1
View File
@@ -15,7 +15,7 @@ abstract class ProductApi {
.toList();
}
/// 菜品商品
/// 查询指定单日的食堂菜谱商品。
static Future<List<ServiceProduct>?> canteenProduct(
dynamic pa,
) async {
@@ -29,6 +29,20 @@ abstract class ProductApi {
.toList();
}
/// 按闭区间查询多日食堂菜谱商品,响应结构与单日接口保持一致。
static Future<List<ServiceProduct>?> canteenProductsByDateRange(
Map<String, dynamic> requestBody,
) async {
final res = await HttpManage().dio.post(
"/canteen/canteenDailyMenu/ad/getCanteenListByDateRange",
data: requestBody,
);
if (res.data == null) return null;
return res.data
?.map<ServiceProduct>((e) => ServiceProduct.fromJson(e))
.toList();
}
/// 超市分类
static Future<List<ServiceClassify>?> supermarketClassify(
dynamic pa,