feat:医院支付,选择支付钱包支付
This commit is contained in:
1 parent
c2707899db
commit
3a7ca1e5be
17 files changed
+441
-117
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import 'package:common_utils/common_utils.dart';
|
||||
import 'package:flutter_easyloading/flutter_easyloading.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:pinyin/pinyin.dart';
|
||||
|
||||
@@ -167,6 +168,33 @@ abstract class SyncProductTool {
|
||||
// 同步商品分类 spu end
|
||||
// **************************************************************************
|
||||
|
||||
/// 同步超市所有数据
|
||||
/// 1-删除所有商品分类
|
||||
/// 2-删除所有商品
|
||||
/// 3-同步商品分类
|
||||
/// 4-同步商品
|
||||
static Future<void> syncSupermarket() async {
|
||||
final stopwatch = Stopwatch()..start();
|
||||
EasyLoading.show(
|
||||
status: '原创同步数据中...',
|
||||
maskType: EasyLoadingMaskType.black,
|
||||
);
|
||||
try {
|
||||
// 删除
|
||||
await delDatabase();
|
||||
// 同步
|
||||
await syncClassify();
|
||||
await syncProduct();
|
||||
} catch (error, stack) {
|
||||
logger.e(
|
||||
"|$_tag|同步|${SysType.SUPERMARKET.title}|商品信息意外的错误error:|$error|,stack:|$stack|");
|
||||
} finally {
|
||||
stopwatch.stop();
|
||||
logger.i('|$_tag|同步超市数据总耗时: ${stopwatch.elapsedMilliseconds}ms');
|
||||
EasyLoading.dismiss();
|
||||
}
|
||||
}
|
||||
|
||||
/// 同步商品
|
||||
static Future<void> syncProduct() async {
|
||||
final sysSetting = await AppSettingTool.getSysSetting();
|
||||
|
||||
Reference in new issue
Block a user