hk-cdp 1.0.72__tar.gz → 1.0.74__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.
Potentially problematic release.
This version of hk-cdp might be problematic. Click here for more details.
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/PKG-INFO +1 -1
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/cdp_model.py +15 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/member/member_event_model.py +2 -2
- hk_cdp-1.0.74/hk_cdp/models/db_models/taobao/__init__.py +1 -0
- hk_cdp-1.0.74/hk_cdp/models/db_models/taobao/taobao_source_history_member_model.py +51 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp.egg-info/PKG-INFO +1 -1
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp.egg-info/SOURCES.txt +1 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/setup.py +1 -1
- hk_cdp-1.0.72/hk_cdp/models/db_models/taobao/__init__.py +0 -1
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/README.md +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/__init__.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/handler/__init__.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/handler/cdp_base.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/libs/__init__.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/libs/customize/__init__.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/libs/customize/asset_base_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/libs/customize/cdp_helper.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/libs/customize/tiktok_spi_helper.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/libs/customize/work_base_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/__init__.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/__init__.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/analysis/__init__.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/analysis/analysis_report_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/cap/__init__.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/cap/cap_business_info_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/cap/cap_store_info_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/cdp/__init__.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/cdp/cdp_store_info_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/cdp/cdp_work_info_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/member/__init__.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/member/member_asset_log_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/member/member_asset_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/member/member_asset_valid_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/member/member_info_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/member/member_level_log_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/prefix/__init__.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/prefix/prefix_info_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/queue/__init__.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/queue/queue_work_log_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/scheme/__init__.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/scheme/scheme_growth_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/scheme/scheme_info_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/scheme/scheme_integral_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/scheme/scheme_level_info_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/scheme/scheme_level_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/store/__init__.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/store/store_base_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/store/store_goods_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/store/store_prefix_log_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/sync/__init__.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/sync/sync_user_data_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/taobao/taobao_rds_item_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/taobao/taobao_rds_refund_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/taobao/taobao_rds_trade_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/taobao/taobao_source_buyer_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/trade/__init__.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/trade/trade_give_info_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/trade/trade_info_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/trade/trade_order_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/trade/trade_status_info_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/tt/__init__.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/tt/tt_rds_item_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/tt/tt_rds_refund_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/tt/tt_rds_trade_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/tt/tt_source_buyer_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/tt/tt_source_history_member_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/user/__init__.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/user/user_data_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/user/user_info_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/db_models/user/user_trends_model.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp/models/enum.py +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp.egg-info/dependency_links.txt +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp.egg-info/requires.txt +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/hk_cdp.egg-info/top_level.txt +0 -0
- {hk_cdp-1.0.72 → hk_cdp-1.0.74}/setup.cfg +0 -0
|
@@ -54,6 +54,21 @@ class ListKey():
|
|
|
54
54
|
if is_check == True:
|
|
55
55
|
return f"{prefix}:check:{store_id}"
|
|
56
56
|
return f"{prefix}:{store_id}"
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
@classmethod
|
|
60
|
+
def history_member_settle_list(self, store_id, is_check = False):
|
|
61
|
+
"""
|
|
62
|
+
:description: 注册会员进行初始化计算队列
|
|
63
|
+
:param store_id: 店铺标识
|
|
64
|
+
:param is_check: is_check
|
|
65
|
+
:return str
|
|
66
|
+
:last_editors: HuangJianYi
|
|
67
|
+
"""
|
|
68
|
+
prefix = "history_member_settle_list"
|
|
69
|
+
if is_check == True:
|
|
70
|
+
return f"{prefix}:check:{store_id}"
|
|
71
|
+
return f"{prefix}:{store_id}"
|
|
57
72
|
|
|
58
73
|
|
|
59
74
|
@classmethod
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"""
|
|
3
3
|
@Author: HuangJianYi
|
|
4
4
|
@Date: 2024-10-15 18:30:21
|
|
5
|
-
@LastEditTime:
|
|
5
|
+
@LastEditTime: 2025-03-14 18:28:56
|
|
6
6
|
@LastEditors: HuangJianYi
|
|
7
7
|
@Description:
|
|
8
8
|
"""
|
|
@@ -28,7 +28,7 @@ class MemberEvent:
|
|
|
28
28
|
self.id = 0
|
|
29
29
|
self.business_id = 0 # 商家标识
|
|
30
30
|
self.one_id = "" # one_id
|
|
31
|
-
self.event_type = 0 # 事件类型(1
|
|
31
|
+
self.event_type = 0 # 事件类型(1-初始化 2-激活 3-绑定 4-注册 5-退会 6-合并 7-获取手机号)
|
|
32
32
|
self.event_reason = "" # 事件原因
|
|
33
33
|
self.event_desc = {} # 事件描述
|
|
34
34
|
self.create_date = '1970-01-01 00:00:00.000' # 创建时间
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__all__ = ["taobao_rds_item_model", "taobao_rds_refund_model", "taobao_rds_trade_model", "taobao_source_buyer_model", "taobao_source_history_member_model"]
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
"""
|
|
3
|
+
@Author: HuangJianYi
|
|
4
|
+
@Date: 2024-10-15 18:30:21
|
|
5
|
+
@LastEditTime: 2025-04-17 11:01:05
|
|
6
|
+
@LastEditors: HuangJianYi
|
|
7
|
+
@Description:
|
|
8
|
+
"""
|
|
9
|
+
from seven_framework.mysql import MySQLHelper
|
|
10
|
+
from seven_framework.base_model import *
|
|
11
|
+
from seven_cloudapp_frame.models.cache_model import *
|
|
12
|
+
|
|
13
|
+
class TaobaoSourceHistoryMemberModel(CacheModel):
|
|
14
|
+
def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None):
|
|
15
|
+
super(TaobaoSourceHistoryMemberModel, self).__init__(TaobaoSourceHistoryMember, sub_table)
|
|
16
|
+
if not db_config_dict:
|
|
17
|
+
db_config_dict = config.get_value(db_connect_key)
|
|
18
|
+
self.db = MySQLHelper(db_config_dict)
|
|
19
|
+
self.db_connect_key = db_connect_key
|
|
20
|
+
self.db_transaction = db_transaction
|
|
21
|
+
self.db.context = context
|
|
22
|
+
|
|
23
|
+
# 方法扩展请继承此类
|
|
24
|
+
|
|
25
|
+
class TaobaoSourceHistoryMember:
|
|
26
|
+
def __init__(self):
|
|
27
|
+
super(TaobaoSourceHistoryMember, self).__init__()
|
|
28
|
+
self.ouid = "" # 外部用户ID
|
|
29
|
+
self.store_id = "" # 店铺id
|
|
30
|
+
self.grade = 0 # 等级编码
|
|
31
|
+
self.grade_name = "" # 等级名称
|
|
32
|
+
self.snapshot_info = "" # 版本拓展信息
|
|
33
|
+
self.gmt_modified = '1900-01-01 00:00:00.000' # 记录最后修改时间
|
|
34
|
+
self.points = "" # 消费者积分余额
|
|
35
|
+
self.mix_mobile = "" # 加密手机号
|
|
36
|
+
self.mobile = "" # 手机号
|
|
37
|
+
self.first_entry_time = "1900-01-01 00:00:00" # 首次入会时间
|
|
38
|
+
self.last_entry_time = "1900-01-01 00:00:00" # 首次入会时间
|
|
39
|
+
self.modify_time = "1900-01-01 00:00:00.000"
|
|
40
|
+
self.create_time = "1900-01-01 00:00:00.000"
|
|
41
|
+
|
|
42
|
+
@classmethod
|
|
43
|
+
def get_field_list(self):
|
|
44
|
+
return ["ouid", "store_id", "grade", "grade_name", "snapshot_info", "gmt_modified", "points", "mix_mobile", "mobile", "first_entry_time", "last_entry_time", "modify_time", "create_time"]
|
|
45
|
+
|
|
46
|
+
@classmethod
|
|
47
|
+
def get_primary_key(self):
|
|
48
|
+
return "ouid"
|
|
49
|
+
|
|
50
|
+
def __str__(self):
|
|
51
|
+
return "taobao_source_history_member_tb"
|
|
@@ -54,6 +54,7 @@ hk_cdp/models/db_models/taobao/taobao_rds_item_model.py
|
|
|
54
54
|
hk_cdp/models/db_models/taobao/taobao_rds_refund_model.py
|
|
55
55
|
hk_cdp/models/db_models/taobao/taobao_rds_trade_model.py
|
|
56
56
|
hk_cdp/models/db_models/taobao/taobao_source_buyer_model.py
|
|
57
|
+
hk_cdp/models/db_models/taobao/taobao_source_history_member_model.py
|
|
57
58
|
hk_cdp/models/db_models/trade/__init__.py
|
|
58
59
|
hk_cdp/models/db_models/trade/trade_give_info_model.py
|
|
59
60
|
hk_cdp/models/db_models/trade/trade_info_model.py
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__all__ = ["taobao_rds_item_model", "taobao_rds_refund_model", "taobao_rds_trade_model", "taobao_source_buyer_model"]
|
|
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
|
|
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.72 → hk_cdp-1.0.74}/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
|