fix:副屏数据传输修改
This commit is contained in:
1 parent
8be476c9f4
commit
1a144d1860
14 files changed
+55
-42
No files matched your search
@@ -167,7 +167,7 @@ abstract class SyncProductTool {
|
||||
while (true) {
|
||||
final pa = {
|
||||
"current": currentPage,
|
||||
"size": 100,
|
||||
"size": 50,
|
||||
};
|
||||
final supermarket = await ProductApi.supermarketSpu(
|
||||
pa,
|
||||
@@ -259,12 +259,16 @@ abstract class SyncProductTool {
|
||||
createTime: DateTime.now(),
|
||||
updateTime: DateTime.now(),
|
||||
hourType: ProductHourType.values.fromCode(v.hourType),
|
||||
saleDate: v.saleDate,
|
||||
saleDate: v.saleDate ?? DateTime.now(),
|
||||
isDefault: false,
|
||||
delFlag: false,
|
||||
);
|
||||
if (isUpdate) {
|
||||
final detail = await productDao.getByCode(item.serviceUniqueCode);
|
||||
final saleDateStr = DateUtil.formatDate(item.saleDate);
|
||||
final detail = await productDao.getByCode(
|
||||
item.serviceUniqueCode,
|
||||
saleDateStr,
|
||||
);
|
||||
if (ObjectUtil.isEmpty(detail)) continue;
|
||||
if (detail == item) continue;
|
||||
item.id = detail?.id;
|
||||
|
||||
Reference in new issue
Block a user