hk-cdp 1.0.101__tar.gz → 1.0.104__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.101 → hk_cdp-1.0.104}/PKG-INFO +1 -1
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/libs/customize/asset_base_model.py +2 -3
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/trade/trade_info_model.py +2 -1
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/user/user_data_model.py +3 -5
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp.egg-info/PKG-INFO +1 -1
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/setup.py +1 -1
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/README.md +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/__init__.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/handler/__init__.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/handler/cdp_base.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/libs/__init__.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/libs/customize/__init__.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/libs/customize/cdp_helper.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/libs/customize/rainbow_helper.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/libs/customize/tiktok_spi_helper.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/libs/customize/work_base_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/__init__.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/cdp_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/__init__.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/analysis/__init__.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/analysis/analysis_goods_related_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/analysis/analysis_goods_repurchase_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/analysis/analysis_report_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/cap/__init__.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/cap/cap_business_info_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/cap/cap_store_info_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/cdp/__init__.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/cdp/cdp_store_info_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/cdp/cdp_work_info_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/member/__init__.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/member/member_asset_log_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/member/member_asset_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/member/member_asset_valid_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/member/member_event_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/member/member_info_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/member/member_level_log_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/prefix/__init__.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/prefix/prefix_info_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/queue/__init__.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/queue/queue_work_log_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/scheme/__init__.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/scheme/scheme_growth_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/scheme/scheme_info_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/scheme/scheme_integral_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/scheme/scheme_level_info_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/scheme/scheme_level_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/store/__init__.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/store/store_base_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/store/store_goods_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/store/store_prefix_log_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/sync/__init__.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/sync/sync_user_data_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/taobao/__init__.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/taobao/taobao_rds_item_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/taobao/taobao_rds_refund_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/taobao/taobao_rds_trade_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/taobao/taobao_source_buyer_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/taobao/taobao_source_history_member_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/trade/__init__.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/trade/trade_give_info_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/trade/trade_order_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/trade/trade_status_info_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/tt/__init__.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/tt/tt_rds_item_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/tt/tt_rds_refund_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/tt/tt_rds_trade_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/tt/tt_source_buyer_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/tt/tt_source_history_member_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/user/__init__.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/user/user_info_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/user/user_trends_model.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/enum.py +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp.egg-info/SOURCES.txt +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp.egg-info/dependency_links.txt +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp.egg-info/requires.txt +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp.egg-info/top_level.txt +0 -0
- {hk_cdp-1.0.101 → hk_cdp-1.0.104}/setup.cfg +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"""
|
|
3
3
|
:Author: HuangJianYi
|
|
4
4
|
:Date: 2020-05-12 20:11:48
|
|
5
|
-
@LastEditTime: 2025-
|
|
5
|
+
@LastEditTime: 2025-07-24 21:51:42
|
|
6
6
|
@LastEditors: HuangJianYi
|
|
7
7
|
:description:
|
|
8
8
|
"""
|
|
@@ -208,9 +208,8 @@ class AssetBaseModel():
|
|
|
208
208
|
member_asset_log.remark = remark
|
|
209
209
|
member_asset_log.operate_user_id = operate_user_id
|
|
210
210
|
member_asset_log.operate_user_name = operate_user_name
|
|
211
|
-
|
|
211
|
+
member_asset_log.valid_end_date = valid_end_date
|
|
212
212
|
if valid_end_date and valid_end_date not in ["2900-01-01 00:00:00", "2900-01-01 00:00:00.000"]:
|
|
213
|
-
member_asset_log.valid_end_date = valid_end_date
|
|
214
213
|
member_asset_log.valid_type = 2
|
|
215
214
|
else:
|
|
216
215
|
member_asset_log.valid_type = 1
|
|
@@ -65,6 +65,7 @@ class TradeInfo:
|
|
|
65
65
|
self.source_type = 0 # 来源类型(1-历史备份数据导入 2-天猫会员通 3-抖音会员通)
|
|
66
66
|
self.source_title = "" # 来源说明
|
|
67
67
|
self.modify_date = "1970-01-01 00:00:00.000" # 修改时间(跟rds同步)
|
|
68
|
+
self.inside_date = "1970-01-01 00:00:00.000" # 内部修改时间(用于触发订单变动相关业务)
|
|
68
69
|
self.is_incr_data = 0 # 是否增量数据(1-是 0-否)
|
|
69
70
|
self.process_date = "1970-01-01 00:00:00.000" # 处理时间
|
|
70
71
|
self.reward_process_status = 0 # 奖励处理状态:0-无需处理1-待处理2-已处理3-延迟处理10-订单异常
|
|
@@ -76,7 +77,7 @@ class TradeInfo:
|
|
|
76
77
|
return [
|
|
77
78
|
'id', 'main_pay_order_no', 'store_id', 'business_id', 'one_id', 'user_id', 'ouid', 'platform_id', 'seller_nick', 'trade_type', 'step_trade_status', 'order_price', 'pay_price', 'postage', 'discount_price', 'refund_price', 'buy_num', 'order_num', 'order_status',
|
|
78
79
|
'plat_store_id', 'receiver', 'telephone', 'receiver_province', 'receiver_city', 'receiver_county', 'receiver_address', 'buyer_remark', 'seller_remark', 'seller_flag', 'buyer_rate', 'seller_rate', 'expand_card_basic_price', 'trade_source_types', 'create_date',
|
|
79
|
-
'pay_date', 'consign_date', 'end_date', 'source_type', 'source_title', 'modify_date', 'is_incr_data', 'process_date', 'reward_process_status', 'refund_process_status', 'surplus_refund_price'
|
|
80
|
+
'pay_date', 'consign_date', 'end_date', 'source_type', 'source_title', 'modify_date', 'inside_date', 'is_incr_data', 'process_date', 'reward_process_status', 'refund_process_status', 'surplus_refund_price'
|
|
80
81
|
]
|
|
81
82
|
|
|
82
83
|
@classmethod
|
|
@@ -39,6 +39,7 @@ class UserData:
|
|
|
39
39
|
self.last_trade_date = "1970-01-01 00:00:00.000" # 最近交易时间
|
|
40
40
|
self.trade_success_price = 0.0000 # 交易成功金额
|
|
41
41
|
self.trade_success_num = 0 # 交易成功笔数
|
|
42
|
+
self.buy_num = 0 # 购买件数
|
|
42
43
|
self.refund_price = 0.0000 # 退款金额
|
|
43
44
|
self.refund_num = 0 # 退款笔数
|
|
44
45
|
self.presell_order_num = 0 # 预售下单笔数
|
|
@@ -50,11 +51,8 @@ class UserData:
|
|
|
50
51
|
@classmethod
|
|
51
52
|
def get_field_list(self):
|
|
52
53
|
return [
|
|
53
|
-
'id', 'user_id', 'ouid', 'business_id', 'platform_id', 'store_id', 'plat_store_id', 'first_order_date',
|
|
54
|
-
'
|
|
55
|
-
'trade_success_price', 'trade_success_num', 'refund_price', 'refund_num',
|
|
56
|
-
'presell_order_num', 'presell_pay_num', 'presell_order_price',
|
|
57
|
-
'presell_pay_price', 'buy_back_day'
|
|
54
|
+
'id', 'user_id', 'ouid', 'business_id', 'platform_id', 'store_id', 'plat_store_id', 'first_order_date', 'first_pay_date', 'last_order_date', 'last_pay_date', 'last_trade_date', 'trade_success_price', 'trade_success_num', 'buy_num', 'refund_price', 'refund_num',
|
|
55
|
+
'presell_order_num', 'presell_pay_num', 'presell_order_price', 'presell_pay_price', 'buy_back_day'
|
|
58
56
|
]
|
|
59
57
|
|
|
60
58
|
@classmethod
|
|
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.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/analysis/analysis_goods_related_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
|
|
File without changes
|
{hk_cdp-1.0.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/member/member_asset_valid_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
|
|
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.101 → hk_cdp-1.0.104}/hk_cdp/models/db_models/taobao/taobao_source_buyer_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.101 → hk_cdp-1.0.104}/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
|