feat:超市数据库

This commit is contained in:
dzc committed 2025-03-17 12:07:11 +08:00
1 parent 9a98ac8e1c
commit fa4bb78f8b
25 files changed
+307 -185

No files matched your search

+2 -3
View File
@@ -227,13 +227,12 @@ abstract class SyncProductTool {
final app = Get.find<AppControl>();
final dataBase = app.dataBase;
final productDao = dataBase.getProductDao;
List<ProductEntity> changeList = [];
List<CanteenSpuEntity> changeList = [];
for (final v in list) {
ProductEntity item = ProductEntity(
CanteenSpuEntity item = CanteenSpuEntity(
serviceUniqueCode: sysType == SysType.CANTEEN
? v.spuId.toString()
: v.spuId.toString(),
sysType: sysType,
classifyServiceUniqueCode:
v.categoryId != null ? v.categoryId.toString() : "-1",
name: v.name!,