hk-cdp 1.0.77__tar.gz → 1.0.78__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.77 → hk_cdp-1.0.78}/PKG-INFO +1 -1
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/cdp/cdp_work_info_model.py +9 -6
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp.egg-info/PKG-INFO +1 -1
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/setup.py +1 -1
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/README.md +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/__init__.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/handler/__init__.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/handler/cdp_base.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/libs/__init__.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/libs/customize/__init__.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/libs/customize/asset_base_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/libs/customize/cdp_helper.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/libs/customize/rainbow_helper.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/libs/customize/tiktok_spi_helper.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/libs/customize/work_base_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/__init__.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/cdp_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/__init__.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/analysis/__init__.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/analysis/analysis_report_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/cap/__init__.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/cap/cap_business_info_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/cap/cap_store_info_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/cdp/__init__.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/cdp/cdp_store_info_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/member/__init__.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/member/member_asset_log_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/member/member_asset_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/member/member_asset_valid_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/member/member_event_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/member/member_info_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/member/member_level_log_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/prefix/__init__.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/prefix/prefix_info_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/queue/__init__.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/queue/queue_work_log_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/scheme/__init__.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/scheme/scheme_growth_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/scheme/scheme_info_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/scheme/scheme_integral_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/scheme/scheme_level_info_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/scheme/scheme_level_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/store/__init__.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/store/store_base_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/store/store_goods_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/store/store_prefix_log_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/sync/__init__.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/sync/sync_user_data_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/taobao/__init__.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/taobao/taobao_rds_item_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/taobao/taobao_rds_refund_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/taobao/taobao_rds_trade_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/taobao/taobao_source_buyer_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/taobao/taobao_source_history_member_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/trade/__init__.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/trade/trade_give_info_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/trade/trade_info_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/trade/trade_order_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/trade/trade_status_info_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/tt/__init__.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/tt/tt_rds_item_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/tt/tt_rds_refund_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/tt/tt_rds_trade_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/tt/tt_source_buyer_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/tt/tt_source_history_member_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/user/__init__.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/user/user_data_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/user/user_info_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/db_models/user/user_trends_model.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp/models/enum.py +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp.egg-info/SOURCES.txt +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp.egg-info/dependency_links.txt +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp.egg-info/requires.txt +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/hk_cdp.egg-info/top_level.txt +0 -0
- {hk_cdp-1.0.77 → hk_cdp-1.0.78}/setup.cfg +0 -0
|
@@ -22,39 +22,42 @@ class CdpWorkInfoModel(CacheModel):
|
|
|
22
22
|
|
|
23
23
|
# 方法扩展请继承此类
|
|
24
24
|
|
|
25
|
-
def start_work(self, store_id, work_name, progress_type=0, dependency_key=''):
|
|
25
|
+
def start_work(self, store_id, work_name, progress_type=0, dependency_key='', scheme_id=0):
|
|
26
26
|
"""
|
|
27
27
|
开始作业
|
|
28
28
|
:param store_id: 店铺标识
|
|
29
29
|
:param work_name: 作业名称
|
|
30
30
|
:param progress_type: 当前进度值
|
|
31
31
|
:param dependency_key: 依赖建
|
|
32
|
+
:param scheme_id: 体系标识
|
|
32
33
|
:return:
|
|
33
34
|
"""
|
|
34
35
|
if progress_type == 0:
|
|
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
|
+
self.update_table("run_start_date=%s,progress_type=1", "scheme_id=%s and store_id=%s and work_name=%s", params=[TimeHelper.get_now_format_time(), scheme_id, store_id, work_name])
|
|
36
37
|
self.delete_dependency_key(dependency_key)
|
|
37
38
|
|
|
38
|
-
def end_work(self, store_id, work_name, run_desc='处理结束', dependency_key=''):
|
|
39
|
+
def end_work(self, store_id, work_name, run_desc='处理结束', dependency_key='', scheme_id=0):
|
|
39
40
|
"""
|
|
40
41
|
结束作业
|
|
41
42
|
:param store_id: 店铺标识
|
|
42
43
|
:param work_name: 作业名称
|
|
43
44
|
:param run_desc: 运行描述
|
|
44
45
|
:param dependency_key: 依赖建
|
|
46
|
+
:param scheme_id: 体系标识
|
|
45
47
|
:return:
|
|
46
48
|
"""
|
|
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])
|
|
49
|
+
self.update_table("run_desc=%s,run_end_date=%s,progress_type=2", "scheme_id=%s and store_id=%s and work_name=%s", params=[run_desc, TimeHelper.get_now_format_time(), scheme_id, store_id, work_name])
|
|
48
50
|
self.delete_dependency_key(dependency_key)
|
|
49
51
|
|
|
50
|
-
def run_work(self, store_id, work_name):
|
|
52
|
+
def run_work(self, store_id, work_name, scheme_id=0):
|
|
51
53
|
"""
|
|
52
54
|
运行作业
|
|
53
55
|
:param store_id: 店铺标识
|
|
54
56
|
:param work_name: 作业名称
|
|
57
|
+
:param scheme_id: 体系标识
|
|
55
58
|
:return:
|
|
56
59
|
"""
|
|
57
|
-
return self.update_table("run_last_date=%s", "store_id=%s and work_name=%s", params=[TimeHelper.get_now_format_time(), store_id, work_name])
|
|
60
|
+
return self.update_table("run_last_date=%s", "scheme_id=%s and store_id=%s and work_name=%s", params=[TimeHelper.get_now_format_time(), scheme_id, store_id, work_name])
|
|
58
61
|
|
|
59
62
|
|
|
60
63
|
class CdpWorkInfo:
|
|
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.77 → hk_cdp-1.0.78}/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.77 → hk_cdp-1.0.78}/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
|