hk-cdp 1.0.118__py3-none-any.whl → 1.0.119__py3-none-any.whl
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/models/db_models/trade/__init__.py +1 -1
- hk_cdp/models/db_models/trade/trade_order_extension_model.py +52 -0
- hk_cdp/models/enum.py +2 -1
- {hk_cdp-1.0.118.dist-info → hk_cdp-1.0.119.dist-info}/METADATA +1 -1
- {hk_cdp-1.0.118.dist-info → hk_cdp-1.0.119.dist-info}/RECORD +8 -7
- {hk_cdp-1.0.118.dist-info → hk_cdp-1.0.119.dist-info}/LICENSE +0 -0
- {hk_cdp-1.0.118.dist-info → hk_cdp-1.0.119.dist-info}/WHEEL +0 -0
- {hk_cdp-1.0.118.dist-info → hk_cdp-1.0.119.dist-info}/top_level.txt +0 -0
|
@@ -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"]
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
"""
|
|
3
|
+
@Author: HuangJianYi
|
|
4
|
+
@Date: 2024-10-15 18:30:21
|
|
5
|
+
@LastEditTime: 2025-07-16 18:14:14
|
|
6
|
+
@LastEditors: HuangJianYi
|
|
7
|
+
@Description:
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
from seven_framework.mysql import MySQLHelper
|
|
11
|
+
from seven_framework.base_model import *
|
|
12
|
+
from seven_cloudapp_frame.models.cache_model import *
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class TradeOrderExtensionModel(CacheModel):
|
|
16
|
+
def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None, is_auto=False):
|
|
17
|
+
super(TradeOrderExtensionModel, self).__init__(TradeOrderExtension, sub_table)
|
|
18
|
+
if not db_config_dict:
|
|
19
|
+
db_config_dict = config.get_value(db_connect_key)
|
|
20
|
+
self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
|
|
21
|
+
self.db_connect_key = db_connect_key
|
|
22
|
+
self.db_transaction = db_transaction
|
|
23
|
+
self.db.context = context
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class TradeOrderExtension:
|
|
27
|
+
def __init__(self):
|
|
28
|
+
super(TradeOrderExtension, self).__init__()
|
|
29
|
+
self.id = 0 # id
|
|
30
|
+
self.user_id = "" # 客户ID
|
|
31
|
+
self.business_id = 0 # 商家标识
|
|
32
|
+
self.store_id = 0 # 店铺标识
|
|
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
|
+
|
|
40
|
+
|
|
41
|
+
@classmethod
|
|
42
|
+
def get_field_list(self):
|
|
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
|
+
]
|
|
46
|
+
|
|
47
|
+
@classmethod
|
|
48
|
+
def get_primary_key(self):
|
|
49
|
+
return "id"
|
|
50
|
+
|
|
51
|
+
def __str__(self):
|
|
52
|
+
return "trade_order_extension_tb"
|
hk_cdp/models/enum.py
CHANGED
|
@@ -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 # 屏蔽/奖励设置
|
|
@@ -10,7 +10,7 @@ hk_cdp/libs/customize/tiktok_spi_helper.py,sha256=ZGx0PBK4eSXCLlqqyfn8uxd3EAAOxU
|
|
|
10
10
|
hk_cdp/libs/customize/work_base_model.py,sha256=0-oDyhcUQchj4L-AvWogBUYyhh8MUevaV6jmL94yQ5A,1931
|
|
11
11
|
hk_cdp/models/__init__.py,sha256=iwhKnzeBJLKxpRVjvzwiRE63_zNpIBfaKLITauVph-0,24
|
|
12
12
|
hk_cdp/models/cdp_model.py,sha256=GxC3zXZ0po2iFkaFeTYcnq8S7hGXQ-vUb9rYoka-BMI,5948
|
|
13
|
-
hk_cdp/models/enum.py,sha256=
|
|
13
|
+
hk_cdp/models/enum.py,sha256=CVcImTOLw9nuRXUiOSL1RZUIGfDxX3ChUusX8qRppH4,2426
|
|
14
14
|
hk_cdp/models/db_models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
15
|
hk_cdp/models/db_models/analysis/__init__.py,sha256=IpZEFGpkWi_f826jxDE3qsGHtRi4bBQpAL_Vmi5FSWY,259
|
|
16
16
|
hk_cdp/models/db_models/analysis/analysis_goods_related_model.py,sha256=xG-eOeloVsFVZdn2TDyqiHHd2nZummVyUFmkqayIKAY,2116
|
|
@@ -52,9 +52,10 @@ hk_cdp/models/db_models/taobao/taobao_rds_refund_model.py,sha256=1hCIIaIz3Ud_2Hs
|
|
|
52
52
|
hk_cdp/models/db_models/taobao/taobao_rds_trade_model.py,sha256=zmZzunkuVdZ9l9FxgYfQyP-XNqJyedT415pRWnRpRCI,1659
|
|
53
53
|
hk_cdp/models/db_models/taobao/taobao_source_buyer_model.py,sha256=i5s2BryvepkV12EC7TdGTLb4hlLEaDsAhOp7RCMe9WY,2255
|
|
54
54
|
hk_cdp/models/db_models/taobao/taobao_source_history_member_model.py,sha256=m2_YzlpoPL6jhZv4pYW4Vg4LXMGqDFLpj6g9erX3yMw,2199
|
|
55
|
-
hk_cdp/models/db_models/trade/__init__.py,sha256=
|
|
55
|
+
hk_cdp/models/db_models/trade/__init__.py,sha256=FiKB9Gtjp-oCCFn0qTl-QtLvkzSHVGngbGJFUswqDZQ,287
|
|
56
56
|
hk_cdp/models/db_models/trade/trade_give_info_model.py,sha256=l70K-aiyOkNRy2NPLGDOG-vUnM6Vw0NqAdbwW7cxT0k,1868
|
|
57
57
|
hk_cdp/models/db_models/trade/trade_info_model.py,sha256=bvfNmJsLivvgOhgnsqdhR2vRjLseT5QD_bdjIl4SVzg,4904
|
|
58
|
+
hk_cdp/models/db_models/trade/trade_order_extension_model.py,sha256=Ezrhv85crOBB2bWYf-lVcfwjifLWQL9MD2DUXDCcC5E,1839
|
|
58
59
|
hk_cdp/models/db_models/trade/trade_order_model.py,sha256=Ux6hJZrDybYXyc_8MKADcS8UoL9_-XKc7kStq6Gg5Wo,2566
|
|
59
60
|
hk_cdp/models/db_models/trade/trade_status_info_model.py,sha256=R8HaCRRmXIa76ZWajW6YcdAxbPZPKiDDPLszUkD2azc,1946
|
|
60
61
|
hk_cdp/models/db_models/tt/__init__.py,sha256=udhmTaFhq9P2bisJyTJiIwebDMEzc-HqBZdGmARZIEQ,136
|
|
@@ -67,8 +68,8 @@ hk_cdp/models/db_models/user/__init__.py,sha256=O_F1_TiR_075ATAHcahxTKJwUdYeY-Qz
|
|
|
67
68
|
hk_cdp/models/db_models/user/user_data_model.py,sha256=hswh3ELJtBilEgzr7W6MfmaWsnSr93oO0nizbbPeRAk,2757
|
|
68
69
|
hk_cdp/models/db_models/user/user_info_model.py,sha256=TywpvlFGkch9hO_szyhin-ed4xfTWBM7L59IU96SfxU,4138
|
|
69
70
|
hk_cdp/models/db_models/user/user_trends_model.py,sha256=oxJCBnJQEvFr1_heV_cxRrPIic6_oSoLqARc6ldp2LM,1592
|
|
70
|
-
hk_cdp-1.0.
|
|
71
|
-
hk_cdp-1.0.
|
|
72
|
-
hk_cdp-1.0.
|
|
73
|
-
hk_cdp-1.0.
|
|
74
|
-
hk_cdp-1.0.
|
|
71
|
+
hk_cdp-1.0.119.dist-info/LICENSE,sha256=hKHSuDoDoyOk6vOrpkYnOXZ640PvhUa-BTQbRRtFsUk,1061
|
|
72
|
+
hk_cdp-1.0.119.dist-info/METADATA,sha256=lSDR58Avd62mePB634kIwAYTk27kzuHEQqDRUbbtrPY,7102
|
|
73
|
+
hk_cdp-1.0.119.dist-info/WHEEL,sha256=g4nMs7d-Xl9-xC9XovUrsDHGXt-FT0E17Yqo92DEfvY,92
|
|
74
|
+
hk_cdp-1.0.119.dist-info/top_level.txt,sha256=omzIr_m5qnzhfcdscOVr4P4JUB49wlP6KztqvlqDntw,7
|
|
75
|
+
hk_cdp-1.0.119.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|