hk-cdp 1.0.79__tar.gz → 1.0.81__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.79 → hk_cdp-1.0.81}/PKG-INFO +1 -1
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/libs/customize/asset_base_model.py +8 -5
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/trade/trade_info_model.py +7 -11
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp.egg-info/PKG-INFO +1 -1
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/setup.py +1 -1
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/README.md +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/__init__.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/handler/__init__.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/handler/cdp_base.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/libs/__init__.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/libs/customize/__init__.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/libs/customize/cdp_helper.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/libs/customize/rainbow_helper.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/libs/customize/tiktok_spi_helper.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/libs/customize/work_base_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/__init__.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/cdp_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/__init__.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/analysis/__init__.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/analysis/analysis_report_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/cap/__init__.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/cap/cap_business_info_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/cap/cap_store_info_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/cdp/__init__.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/cdp/cdp_store_info_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/cdp/cdp_work_info_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/member/__init__.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/member/member_asset_log_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/member/member_asset_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/member/member_asset_valid_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/member/member_event_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/member/member_info_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/member/member_level_log_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/prefix/__init__.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/prefix/prefix_info_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/queue/__init__.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/queue/queue_work_log_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/scheme/__init__.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/scheme/scheme_growth_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/scheme/scheme_info_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/scheme/scheme_integral_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/scheme/scheme_level_info_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/scheme/scheme_level_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/store/__init__.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/store/store_base_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/store/store_goods_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/store/store_prefix_log_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/sync/__init__.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/sync/sync_user_data_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/taobao/__init__.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/taobao/taobao_rds_item_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/taobao/taobao_rds_refund_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/taobao/taobao_rds_trade_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/taobao/taobao_source_buyer_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/taobao/taobao_source_history_member_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/trade/__init__.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/trade/trade_give_info_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/trade/trade_order_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/trade/trade_status_info_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/tt/__init__.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/tt/tt_rds_item_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/tt/tt_rds_refund_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/tt/tt_rds_trade_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/tt/tt_source_buyer_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/tt/tt_source_history_member_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/user/__init__.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/user/user_data_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/user/user_info_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/db_models/user/user_trends_model.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp/models/enum.py +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp.egg-info/SOURCES.txt +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp.egg-info/dependency_links.txt +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp.egg-info/requires.txt +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/hk_cdp.egg-info/top_level.txt +0 -0
- {hk_cdp-1.0.79 → hk_cdp-1.0.81}/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-05-29 16:22:19
|
|
6
6
|
@LastEditors: HuangJianYi
|
|
7
7
|
:description:
|
|
8
8
|
"""
|
|
@@ -89,7 +89,8 @@ class AssetBaseModel():
|
|
|
89
89
|
remark='',
|
|
90
90
|
operate_user_id='',
|
|
91
91
|
operate_user_name='',
|
|
92
|
-
valid_end_date=None
|
|
92
|
+
valid_end_date=None,
|
|
93
|
+
scheme_id=0):
|
|
93
94
|
"""
|
|
94
95
|
:description: 变更资产
|
|
95
96
|
:param business_id:商家标识
|
|
@@ -109,13 +110,14 @@ class AssetBaseModel():
|
|
|
109
110
|
:param operate_user_id:操作用户标识
|
|
110
111
|
:param operate_user_name:操作用户名称
|
|
111
112
|
:param valid_end_date:有效期结束时间(时间格式,不传或默认时间,则表示永久有效)
|
|
113
|
+
:param scheme_id:体系标识
|
|
112
114
|
:return: 返回实体InvokeResultData
|
|
113
115
|
:last_editors: HuangJianYi
|
|
114
116
|
"""
|
|
115
117
|
|
|
116
118
|
invoke_result_data = InvokeResultData()
|
|
117
119
|
|
|
118
|
-
if not one_id or not asset_type or not asset_value:
|
|
120
|
+
if not one_id or not asset_type or not asset_value or not scheme_id:
|
|
119
121
|
invoke_result_data.success = False
|
|
120
122
|
invoke_result_data.error_code = "param_error"
|
|
121
123
|
invoke_result_data.error_message = "参数不能为空或等于0"
|
|
@@ -187,6 +189,7 @@ class AssetBaseModel():
|
|
|
187
189
|
|
|
188
190
|
member_asset_log = MemberAssetLog()
|
|
189
191
|
member_asset_log.business_id = business_id
|
|
192
|
+
member_asset_log.scheme_id = scheme_id
|
|
190
193
|
member_asset_log.change_no = SevenHelper.create_order_id() # 18位随机
|
|
191
194
|
member_asset_log.one_id = one_id
|
|
192
195
|
member_asset_log.user_id = user_id
|
|
@@ -212,7 +215,7 @@ class AssetBaseModel():
|
|
|
212
215
|
else:
|
|
213
216
|
member_asset_log.valid_type = 1
|
|
214
217
|
member_asset_log.create_date = now_datetime
|
|
215
|
-
|
|
218
|
+
|
|
216
219
|
|
|
217
220
|
# 开始事务
|
|
218
221
|
db_transaction.begin_transaction()
|
|
@@ -362,7 +365,7 @@ class AssetBaseModel():
|
|
|
362
365
|
params.append(end_date)
|
|
363
366
|
if business_type != -1:
|
|
364
367
|
condition_where.add_condition("business_type=%s")
|
|
365
|
-
params.append(business_type)
|
|
368
|
+
params.append(business_type)
|
|
366
369
|
if source_type:
|
|
367
370
|
if type(source_type) == str:
|
|
368
371
|
condition_where.add_condition(SevenHelper.get_condition_by_int_list("source_type", [int(item) for item in source_type.split(",")]))
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"""
|
|
3
3
|
@Author: HuangJianYi
|
|
4
4
|
@Date: 2024-10-15 18:30:21
|
|
5
|
-
@LastEditTime:
|
|
5
|
+
@LastEditTime: 2025-06-16 17:48:39
|
|
6
6
|
@LastEditors: HuangJianYi
|
|
7
7
|
@Description:
|
|
8
8
|
"""
|
|
@@ -41,6 +41,8 @@ class TradeInfo:
|
|
|
41
41
|
self.postage = 0.0 # 邮费
|
|
42
42
|
self.discount_price = 0.0 # 优惠金额
|
|
43
43
|
self.refund_price = 0.0 # 退款金额
|
|
44
|
+
self.buy_num = 0 # 商品件数
|
|
45
|
+
self.order_num = 0 # 子订单数量
|
|
44
46
|
self.order_status = "" # 订单状态
|
|
45
47
|
self.plat_store_id = "" # 平台店铺标识
|
|
46
48
|
self.receiver = "" # 收货人
|
|
@@ -57,7 +59,7 @@ class TradeInfo:
|
|
|
57
59
|
self.end_date = "1970-01-01 00:00:00.000" # 交易结束时间。交易成功时间(更新交易状态为成功的同时更新)/确认收货时间或者交易关闭时间
|
|
58
60
|
self.source_type = 0 # 来源类型(1-历史备份数据导入 2-天猫会员通 3-抖音会员通)
|
|
59
61
|
self.source_title = "" # 来源说明
|
|
60
|
-
self.modify_date = "1970-01-01 00:00:00.000" # 修改时间(跟rds同步)
|
|
62
|
+
self.modify_date = "1970-01-01 00:00:00.000" # 修改时间(跟rds同步)
|
|
61
63
|
self.is_incr_data = 0 # 是否增量数据(1-是 0-否)
|
|
62
64
|
self.process_date = "1970-01-01 00:00:00.000" # 处理时间
|
|
63
65
|
self.reward_process_status = 0 # 奖励处理状态:0-无需处理1-待处理2-已处理3-延迟处理10-订单异常
|
|
@@ -67,15 +69,9 @@ class TradeInfo:
|
|
|
67
69
|
@classmethod
|
|
68
70
|
def get_field_list(self):
|
|
69
71
|
return [
|
|
70
|
-
'id', 'main_pay_order_no', 'store_id', 'business_id', 'one_id',
|
|
71
|
-
'
|
|
72
|
-
'
|
|
73
|
-
'discount_price', 'refund_price', 'order_status', 'plat_store_id',
|
|
74
|
-
'receiver', 'telephone', 'receiver_province', 'receiver_city',
|
|
75
|
-
'receiver_county', 'receiver_address', 'seller_remark',
|
|
76
|
-
'trade_source_types', 'create_date', 'pay_date', 'consign_date',
|
|
77
|
-
'end_date', 'source_type', 'source_title', 'modify_date',
|
|
78
|
-
'is_incr_data', 'process_date', 'reward_process_status', 'refund_process_status','surplus_refund_price'
|
|
72
|
+
'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',
|
|
73
|
+
'plat_store_id', 'receiver', 'telephone', 'receiver_province', 'receiver_city', 'receiver_county', 'receiver_address', 'seller_remark', 'trade_source_types', 'create_date', 'pay_date', 'consign_date', 'end_date', 'source_type', 'source_title', 'modify_date',
|
|
74
|
+
'is_incr_data', 'process_date', 'reward_process_status', 'refund_process_status', 'surplus_refund_price'
|
|
79
75
|
]
|
|
80
76
|
|
|
81
77
|
@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
|
|
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.79 → hk_cdp-1.0.81}/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
|
{hk_cdp-1.0.79 → hk_cdp-1.0.81}/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
|