feat:交易记录、日期组建
This commit is contained in:
1 parent
08ad1c2d81
commit
88e73ad950
32 files changed
+672
-279
No files matched your search
@@ -146,6 +146,7 @@ abstract class SyncProductTool {
|
||||
DateTime.now(),
|
||||
format: DateFormats.y_mo_d,
|
||||
);
|
||||
final dayStr = DateUtil.getDateTime(day);
|
||||
final pa = {
|
||||
"day": day,
|
||||
"hourType": null,
|
||||
@@ -153,6 +154,9 @@ abstract class SyncProductTool {
|
||||
"merchantId": sysSetting.serviceMerchantId,
|
||||
};
|
||||
apiList = await ProductApi.canteenProduct(pa);
|
||||
if (!ObjectUtil.isEmptyList(apiList)) {
|
||||
apiList?.forEach((v) => v.saleDate = dayStr);
|
||||
}
|
||||
} else if (sysType == SysType.supermarket) {
|
||||
apiList = await ProductApi.supermarketProduct(null);
|
||||
}
|
||||
@@ -246,6 +250,7 @@ abstract class SyncProductTool {
|
||||
createTime: DateTime.now(),
|
||||
updateTime: DateTime.now(),
|
||||
hourType: ProductHourType.values.fromCode(v.hourType),
|
||||
saleDate: v.saleDate,
|
||||
isDefault: false,
|
||||
delFlag: false,
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user