hk-cdp 1.0.117__tar.gz → 1.0.119__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.117 → hk_cdp-1.0.119}/PKG-INFO +1 -1
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/store/store_base_model.py +3 -2
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/trade/__init__.py +1 -1
- hk_cdp-1.0.117/hk_cdp/models/settle/settle_exclude_goods_model.py → hk_cdp-1.0.119/hk_cdp/models/db_models/trade/trade_order_extension_model.py +20 -15
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/trade/trade_order_model.py +2 -1
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/enum.py +2 -1
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp.egg-info/PKG-INFO +1 -1
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp.egg-info/SOURCES.txt +2 -3
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/setup.py +1 -1
- hk_cdp-1.0.117/hk_cdp/models/settle/__init__.py +0 -1
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/README.md +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/__init__.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/handler/__init__.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/handler/cdp_base.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/libs/__init__.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/libs/customize/__init__.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/libs/customize/asset_base_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/libs/customize/cdp_helper.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/libs/customize/rainbow_helper.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/libs/customize/tiktok_spi_helper.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/libs/customize/work_base_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/__init__.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/cdp_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/__init__.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/analysis/__init__.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/analysis/analysis_goods_related_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/analysis/analysis_goods_repurchase_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/analysis/analysis_report_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/cap/__init__.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/cap/cap_business_info_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/cap/cap_store_info_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/cdp/__init__.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/cdp/cdp_store_info_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/cdp/cdp_work_info_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/member/__init__.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/member/member_asset_log_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/member/member_asset_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/member/member_asset_valid_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/member/member_event_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/member/member_info_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/member/member_level_log_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/prefix/__init__.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/prefix/prefix_info_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/queue/__init__.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/queue/queue_work_log_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/scheme/__init__.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/scheme/scheme_growth_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/scheme/scheme_info_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/scheme/scheme_integral_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/scheme/scheme_level_info_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/scheme/scheme_level_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/store/__init__.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/store/store_goods_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/store/store_prefix_log_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/sync/__init__.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/sync/sync_member_mobile_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/sync/sync_user_data_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/taobao/__init__.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/taobao/taobao_rds_item_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/taobao/taobao_rds_refund_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/taobao/taobao_rds_trade_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/taobao/taobao_source_buyer_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/taobao/taobao_source_history_member_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/trade/trade_give_info_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/trade/trade_info_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/trade/trade_status_info_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/tt/__init__.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/tt/tt_rds_item_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/tt/tt_rds_refund_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/tt/tt_rds_trade_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/tt/tt_source_buyer_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/tt/tt_source_history_member_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/user/__init__.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/user/user_data_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/user/user_info_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp/models/db_models/user/user_trends_model.py +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp.egg-info/dependency_links.txt +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp.egg-info/requires.txt +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/hk_cdp.egg-info/top_level.txt +0 -0
- {hk_cdp-1.0.117 → hk_cdp-1.0.119}/setup.cfg +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"""
|
|
3
3
|
@Author: HuangJianYi
|
|
4
4
|
@Date: 2024-11-19 15:01:40
|
|
5
|
-
@LastEditTime: 2025-
|
|
5
|
+
@LastEditTime: 2025-08-22 17:32:54
|
|
6
6
|
@LastEditors: HuangJianYi
|
|
7
7
|
@Description:
|
|
8
8
|
"""
|
|
@@ -38,6 +38,7 @@ class StoreBase:
|
|
|
38
38
|
self.plat_store_id = "" # 平台店铺标识
|
|
39
39
|
self.init_integral_multiple = "" # 初始积分倍数
|
|
40
40
|
self.init_growth_config = {} # 初始成长值配置
|
|
41
|
+
self.init_exclude_goods = {} # 初始排除商品
|
|
41
42
|
self.incr_process_start_date = "1970-01-01 00:00:00.000" # 增量处理时间
|
|
42
43
|
self.is_omid_merge = 0 # 是否走omid合并逻辑(1-是 0-否)
|
|
43
44
|
self.create_date = "1970-01-01 00:00:00.000" # 创建时间
|
|
@@ -46,7 +47,7 @@ class StoreBase:
|
|
|
46
47
|
|
|
47
48
|
@classmethod
|
|
48
49
|
def get_field_list(self):
|
|
49
|
-
return ['id', 'guid', 'business_id', 'scheme_id', 'platform_id', 'store_name', 'seller_nick', 'plat_store_id', 'init_integral_multiple', 'init_growth_config', 'incr_process_start_date', 'is_omid_merge', 'create_date', 'modify_date']
|
|
50
|
+
return ['id', 'guid', 'business_id', 'scheme_id', 'platform_id', 'store_name', 'seller_nick', 'plat_store_id', 'init_integral_multiple', 'init_growth_config', 'init_exclude_goods', 'incr_process_start_date', 'is_omid_merge', 'create_date', 'modify_date']
|
|
50
51
|
|
|
51
52
|
@classmethod
|
|
52
53
|
def get_primary_key(self):
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
@LastEditors: HuangJianYi
|
|
7
7
|
@Description:
|
|
8
8
|
"""
|
|
9
|
-
__all__ = ["trade_info_model","trade_order_model","trade_status_info_model","trade_give_info_model"]
|
|
9
|
+
__all__ = ["trade_info_model","trade_order_model","trade_status_info_model","trade_give_info_model","trade_order_extension_model"]
|
|
@@ -2,18 +2,19 @@
|
|
|
2
2
|
"""
|
|
3
3
|
@Author: HuangJianYi
|
|
4
4
|
@Date: 2024-10-15 18:30:21
|
|
5
|
-
@LastEditTime:
|
|
5
|
+
@LastEditTime: 2025-07-16 18:14:14
|
|
6
6
|
@LastEditors: HuangJianYi
|
|
7
|
-
@Description:
|
|
7
|
+
@Description:
|
|
8
8
|
"""
|
|
9
|
+
|
|
9
10
|
from seven_framework.mysql import MySQLHelper
|
|
10
11
|
from seven_framework.base_model import *
|
|
11
12
|
from seven_cloudapp_frame.models.cache_model import *
|
|
12
13
|
|
|
13
14
|
|
|
14
|
-
class
|
|
15
|
+
class TradeOrderExtensionModel(CacheModel):
|
|
15
16
|
def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None, is_auto=False):
|
|
16
|
-
super(
|
|
17
|
+
super(TradeOrderExtensionModel, self).__init__(TradeOrderExtension, sub_table)
|
|
17
18
|
if not db_config_dict:
|
|
18
19
|
db_config_dict = config.get_value(db_connect_key)
|
|
19
20
|
self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
|
|
@@ -21,27 +22,31 @@ class SettleExcludeGoodsModel(CacheModel):
|
|
|
21
22
|
self.db_transaction = db_transaction
|
|
22
23
|
self.db.context = context
|
|
23
24
|
|
|
24
|
-
# 方法扩展请继承此类
|
|
25
|
-
|
|
26
25
|
|
|
27
|
-
class
|
|
26
|
+
class TradeOrderExtension:
|
|
28
27
|
def __init__(self):
|
|
29
|
-
super(
|
|
30
|
-
self.id = 0
|
|
31
|
-
self.
|
|
28
|
+
super(TradeOrderExtension, self).__init__()
|
|
29
|
+
self.id = 0 # id
|
|
30
|
+
self.user_id = "" # 客户ID
|
|
32
31
|
self.business_id = 0 # 商家标识
|
|
33
32
|
self.store_id = 0 # 店铺标识
|
|
34
|
-
self.
|
|
35
|
-
self.
|
|
36
|
-
self.
|
|
33
|
+
self.main_pay_order_no = "" # 主订单号
|
|
34
|
+
self.sub_pay_order_no = "" # 子订单号
|
|
35
|
+
self.goods_id = "" # 商品标识
|
|
36
|
+
self.is_give_integral = 0 # 是否赠送积分(1-是 0-否)
|
|
37
|
+
self.is_give_growth = 0 # 是否赠送成长值(1-是 0-否)
|
|
38
|
+
self.create_date = '1970-01-01 00:00:00' # 创建时间
|
|
39
|
+
|
|
37
40
|
|
|
38
41
|
@classmethod
|
|
39
42
|
def get_field_list(self):
|
|
40
|
-
return [
|
|
43
|
+
return [
|
|
44
|
+
'id', 'user_id', 'business_id', 'store_id', 'main_pay_order_no', 'sub_pay_order_no', 'goods_id', 'is_give_integral', 'is_give_growth', 'create_date'
|
|
45
|
+
]
|
|
41
46
|
|
|
42
47
|
@classmethod
|
|
43
48
|
def get_primary_key(self):
|
|
44
49
|
return "id"
|
|
45
50
|
|
|
46
51
|
def __str__(self):
|
|
47
|
-
return "
|
|
52
|
+
return "trade_order_extension_tb"
|
|
@@ -47,12 +47,13 @@ class TradeOrder:
|
|
|
47
47
|
self.order_status = "" # 子订单状态
|
|
48
48
|
self.refund_status = "" # 退款状态
|
|
49
49
|
self.refund_id = "" # 退款订单号
|
|
50
|
+
self.refund_price = 0.0 # 退款金额
|
|
50
51
|
|
|
51
52
|
@classmethod
|
|
52
53
|
def get_field_list(self):
|
|
53
54
|
return [
|
|
54
55
|
'id', 'business_id', 'store_id', 'plat_store_id', 'user_id', 'ouid', 'platform_id', 'main_pay_order_no', 'sub_pay_order_no', 'goods_code', 'goods_name', 'goods_pic', 'goods_id', 'sku_id', 'buy_num', 'goods_price', 'order_price', 'pay_price', 'discount_price',
|
|
55
|
-
'divide_order_price', 'order_status', 'refund_status', 'refund_id'
|
|
56
|
+
'divide_order_price', 'order_status', 'refund_status', 'refund_id', 'refund_price'
|
|
56
57
|
]
|
|
57
58
|
|
|
58
59
|
@classmethod
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"""
|
|
3
3
|
:Author: HuangJianYi
|
|
4
4
|
:Date: 2024-11-25 17:06:14
|
|
5
|
-
@LastEditTime:
|
|
5
|
+
@LastEditTime: 2025-08-28 15:39:43
|
|
6
6
|
@LastEditors: HuangJianYi
|
|
7
7
|
:description: 枚举类
|
|
8
8
|
"""
|
|
@@ -93,3 +93,4 @@ class GrowthConfigType(Enum):
|
|
|
93
93
|
base = 2 # 基础设置
|
|
94
94
|
deduct = 3 # 扣减设置
|
|
95
95
|
valid = 4 # 有效期设置
|
|
96
|
+
shield_reward = 5 # 屏蔽/奖励设置
|
|
@@ -62,6 +62,7 @@ hk_cdp/models/db_models/taobao/taobao_source_history_member_model.py
|
|
|
62
62
|
hk_cdp/models/db_models/trade/__init__.py
|
|
63
63
|
hk_cdp/models/db_models/trade/trade_give_info_model.py
|
|
64
64
|
hk_cdp/models/db_models/trade/trade_info_model.py
|
|
65
|
+
hk_cdp/models/db_models/trade/trade_order_extension_model.py
|
|
65
66
|
hk_cdp/models/db_models/trade/trade_order_model.py
|
|
66
67
|
hk_cdp/models/db_models/trade/trade_status_info_model.py
|
|
67
68
|
hk_cdp/models/db_models/tt/__init__.py
|
|
@@ -73,6 +74,4 @@ hk_cdp/models/db_models/tt/tt_source_history_member_model.py
|
|
|
73
74
|
hk_cdp/models/db_models/user/__init__.py
|
|
74
75
|
hk_cdp/models/db_models/user/user_data_model.py
|
|
75
76
|
hk_cdp/models/db_models/user/user_info_model.py
|
|
76
|
-
hk_cdp/models/db_models/user/user_trends_model.py
|
|
77
|
-
hk_cdp/models/settle/__init__.py
|
|
78
|
-
hk_cdp/models/settle/settle_exclude_goods_model.py
|
|
77
|
+
hk_cdp/models/db_models/user/user_trends_model.py
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__all__ = ["settle_exclude_goods_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
|
{hk_cdp-1.0.117 → hk_cdp-1.0.119}/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.117 → hk_cdp-1.0.119}/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.117 → hk_cdp-1.0.119}/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
|
{hk_cdp-1.0.117 → hk_cdp-1.0.119}/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
|