hk-cdp 1.0.76__tar.gz → 1.0.77__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/PKG-INFO +1 -1
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/cdp/cdp_work_info_model.py +5 -4
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp.egg-info/PKG-INFO +1 -1
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/setup.py +1 -1
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/README.md +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/__init__.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/handler/__init__.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/handler/cdp_base.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/libs/__init__.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/libs/customize/__init__.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/libs/customize/asset_base_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/libs/customize/cdp_helper.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/libs/customize/rainbow_helper.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/libs/customize/tiktok_spi_helper.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/libs/customize/work_base_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/__init__.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/cdp_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/__init__.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/analysis/__init__.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/analysis/analysis_report_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/cap/__init__.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/cap/cap_business_info_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/cap/cap_store_info_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/cdp/__init__.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/cdp/cdp_store_info_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/member/__init__.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/member/member_asset_log_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/member/member_asset_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/member/member_asset_valid_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/member/member_event_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/member/member_info_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/member/member_level_log_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/prefix/__init__.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/prefix/prefix_info_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/queue/__init__.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/queue/queue_work_log_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/scheme/__init__.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/scheme/scheme_growth_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/scheme/scheme_info_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/scheme/scheme_integral_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/scheme/scheme_level_info_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/scheme/scheme_level_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/store/__init__.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/store/store_base_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/store/store_goods_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/store/store_prefix_log_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/sync/__init__.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/sync/sync_user_data_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/taobao/__init__.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/taobao/taobao_rds_item_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/taobao/taobao_rds_refund_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/taobao/taobao_rds_trade_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/taobao/taobao_source_buyer_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/taobao/taobao_source_history_member_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/trade/__init__.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/trade/trade_give_info_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/trade/trade_info_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/trade/trade_order_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/trade/trade_status_info_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/tt/__init__.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/tt/tt_rds_item_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/tt/tt_rds_refund_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/tt/tt_rds_trade_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/tt/tt_source_buyer_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/tt/tt_source_history_member_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/user/__init__.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/user/user_data_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/user/user_info_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/user/user_trends_model.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/enum.py +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp.egg-info/SOURCES.txt +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp.egg-info/dependency_links.txt +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp.egg-info/requires.txt +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp.egg-info/top_level.txt +0 -0
- {hk_cdp-1.0.76 → hk_cdp-1.0.77}/setup.cfg +0 -0
|
@@ -21,7 +21,7 @@ class CdpWorkInfoModel(CacheModel):
|
|
|
21
21
|
self.db.context = context
|
|
22
22
|
|
|
23
23
|
# 方法扩展请继承此类
|
|
24
|
-
|
|
24
|
+
|
|
25
25
|
def start_work(self, store_id, work_name, progress_type=0, dependency_key=''):
|
|
26
26
|
"""
|
|
27
27
|
开始作业
|
|
@@ -34,7 +34,7 @@ class CdpWorkInfoModel(CacheModel):
|
|
|
34
34
|
if progress_type == 0:
|
|
35
35
|
self.update_table("run_start_date=%s,progress_type=1", "store_id=%s and work_name=%s", params=[TimeHelper.get_now_format_time(), store_id, work_name])
|
|
36
36
|
self.delete_dependency_key(dependency_key)
|
|
37
|
-
|
|
37
|
+
|
|
38
38
|
def end_work(self, store_id, work_name, run_desc='处理结束', dependency_key=''):
|
|
39
39
|
"""
|
|
40
40
|
结束作业
|
|
@@ -46,7 +46,7 @@ class CdpWorkInfoModel(CacheModel):
|
|
|
46
46
|
"""
|
|
47
47
|
self.update_table("run_desc=%s,run_end_date=%s,progress_type=2", "store_id=%s and work_name=%s", params=[run_desc, TimeHelper.get_now_format_time(), store_id, work_name])
|
|
48
48
|
self.delete_dependency_key(dependency_key)
|
|
49
|
-
|
|
49
|
+
|
|
50
50
|
def run_work(self, store_id, work_name):
|
|
51
51
|
"""
|
|
52
52
|
运行作业
|
|
@@ -63,6 +63,7 @@ class CdpWorkInfo:
|
|
|
63
63
|
super(CdpWorkInfo, self).__init__()
|
|
64
64
|
self.id = 0 # id
|
|
65
65
|
self.business_id = 0 # 商家标识
|
|
66
|
+
self.scheme_id = 0 # 体系标识
|
|
66
67
|
self.store_id = 0 # 店铺标识
|
|
67
68
|
self.work_name = "" # 作业名称(对应函数名)
|
|
68
69
|
self.work_desc = "" # 作业描述
|
|
@@ -78,7 +79,7 @@ class CdpWorkInfo:
|
|
|
78
79
|
@classmethod
|
|
79
80
|
def get_field_list(self):
|
|
80
81
|
return [
|
|
81
|
-
'id', 'business_id', 'store_id', 'work_name', 'work_desc',
|
|
82
|
+
'id', 'business_id', 'scheme_id', 'store_id', 'work_name', 'work_desc',
|
|
82
83
|
'is_open', 'progress_type', 'step_value', 'run_desc',
|
|
83
84
|
'run_start_date', 'run_end_date', 'run_last_date', 'create_date'
|
|
84
85
|
]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/taobao/taobao_source_history_member_model.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hk_cdp-1.0.76 → hk_cdp-1.0.77}/hk_cdp/models/db_models/tt/tt_source_history_member_model.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|