hk-cdp 1.0.119__py3-none-any.whl → 1.0.121__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.
- hk_cdp/models/db_models/trade/__init__.py +1 -1
- hk_cdp/models/db_models/trade/{trade_order_extension_model.py → trade_order_exclude_model.py} +5 -5
- hk_cdp/models/db_models/user/user_data_model.py +3 -2
- {hk_cdp-1.0.119.dist-info → hk_cdp-1.0.121.dist-info}/METADATA +1 -1
- {hk_cdp-1.0.119.dist-info → hk_cdp-1.0.121.dist-info}/RECORD +8 -8
- {hk_cdp-1.0.119.dist-info → hk_cdp-1.0.121.dist-info}/LICENSE +0 -0
- {hk_cdp-1.0.119.dist-info → hk_cdp-1.0.121.dist-info}/WHEEL +0 -0
- {hk_cdp-1.0.119.dist-info → hk_cdp-1.0.121.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_exclude_model"]
|
hk_cdp/models/db_models/trade/{trade_order_extension_model.py → trade_order_exclude_model.py}
RENAMED
|
@@ -12,9 +12,9 @@ from seven_framework.base_model import *
|
|
|
12
12
|
from seven_cloudapp_frame.models.cache_model import *
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
class
|
|
15
|
+
class TradeOrderExcludeModel(CacheModel):
|
|
16
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(
|
|
17
|
+
super(TradeOrderExcludeModel, self).__init__(TradeOrderExclude, sub_table)
|
|
18
18
|
if not db_config_dict:
|
|
19
19
|
db_config_dict = config.get_value(db_connect_key)
|
|
20
20
|
self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
|
|
@@ -23,9 +23,9 @@ class TradeOrderExtensionModel(CacheModel):
|
|
|
23
23
|
self.db.context = context
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
class
|
|
26
|
+
class TradeOrderExclude:
|
|
27
27
|
def __init__(self):
|
|
28
|
-
super(
|
|
28
|
+
super(TradeOrderExclude, self).__init__()
|
|
29
29
|
self.id = 0 # id
|
|
30
30
|
self.user_id = "" # 客户ID
|
|
31
31
|
self.business_id = 0 # 商家标识
|
|
@@ -49,4 +49,4 @@ class TradeOrderExtension:
|
|
|
49
49
|
return "id"
|
|
50
50
|
|
|
51
51
|
def __str__(self):
|
|
52
|
-
return "
|
|
52
|
+
return "trade_order_exclude_tb"
|
|
@@ -36,6 +36,7 @@ class UserData:
|
|
|
36
36
|
self.first_pay_date = "1970-01-01 00:00:00.000" # 首次付款时间
|
|
37
37
|
self.last_order_date = "1970-01-01 00:00:00.000" # 最近下单时间
|
|
38
38
|
self.last_pay_date = "1970-01-01 00:00:00.000" # 最近付款时间
|
|
39
|
+
self.last_second_pay_date = "1970-01-01 00:00:00.000" # 倒数第二次付款时间
|
|
39
40
|
self.last_trade_date = "1970-01-01 00:00:00.000" # 最近交易时间
|
|
40
41
|
self.trade_success_price = 0.0000 # 交易成功金额
|
|
41
42
|
self.trade_success_num = 0 # 交易成功笔数
|
|
@@ -51,8 +52,8 @@ class UserData:
|
|
|
51
52
|
@classmethod
|
|
52
53
|
def get_field_list(self):
|
|
53
54
|
return [
|
|
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',
|
|
55
|
-
'presell_order_num', 'presell_pay_num', 'presell_order_price', 'presell_pay_price', 'buy_back_day'
|
|
55
|
+
'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_second_pay_date', 'last_trade_date', 'trade_success_price', 'trade_success_num', 'buy_num',
|
|
56
|
+
'refund_price', 'refund_num', 'presell_order_num', 'presell_pay_num', 'presell_order_price', 'presell_pay_price', 'buy_back_day'
|
|
56
57
|
]
|
|
57
58
|
|
|
58
59
|
@classmethod
|
|
@@ -52,10 +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=FhUjCX2LSg636wVo99svhw07qSNg0OYljMKIxbuRLws,289
|
|
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/
|
|
58
|
+
hk_cdp/models/db_models/trade/trade_order_exclude_model.py,sha256=FOBdk6HLFw_qArQZ_f7qfarkTvAdM00XYc6eQCrH0-A,1827
|
|
59
59
|
hk_cdp/models/db_models/trade/trade_order_model.py,sha256=Ux6hJZrDybYXyc_8MKADcS8UoL9_-XKc7kStq6Gg5Wo,2566
|
|
60
60
|
hk_cdp/models/db_models/trade/trade_status_info_model.py,sha256=R8HaCRRmXIa76ZWajW6YcdAxbPZPKiDDPLszUkD2azc,1946
|
|
61
61
|
hk_cdp/models/db_models/tt/__init__.py,sha256=udhmTaFhq9P2bisJyTJiIwebDMEzc-HqBZdGmARZIEQ,136
|
|
@@ -65,11 +65,11 @@ hk_cdp/models/db_models/tt/tt_rds_trade_model.py,sha256=BBc0uHI7VDRWRcCGZHniWtkk
|
|
|
65
65
|
hk_cdp/models/db_models/tt/tt_source_buyer_model.py,sha256=xftM1m2DMIQVyw6y1vJgNlVqqL63k8iMgdLpg5GiI9w,1779
|
|
66
66
|
hk_cdp/models/db_models/tt/tt_source_history_member_model.py,sha256=aCm-m8qGyrzNDpYMXjvFfdKh501WEX6ClAqcd11KXg8,2179
|
|
67
67
|
hk_cdp/models/db_models/user/__init__.py,sha256=O_F1_TiR_075ATAHcahxTKJwUdYeY-QzJqzO0EbsaCM,68
|
|
68
|
-
hk_cdp/models/db_models/user/user_data_model.py,sha256=
|
|
68
|
+
hk_cdp/models/db_models/user/user_data_model.py,sha256=eH-fMdbxpo_l9Ci7TwlPbxREYq3DSSgr2hT0j_Nwwr4,2874
|
|
69
69
|
hk_cdp/models/db_models/user/user_info_model.py,sha256=TywpvlFGkch9hO_szyhin-ed4xfTWBM7L59IU96SfxU,4138
|
|
70
70
|
hk_cdp/models/db_models/user/user_trends_model.py,sha256=oxJCBnJQEvFr1_heV_cxRrPIic6_oSoLqARc6ldp2LM,1592
|
|
71
|
-
hk_cdp-1.0.
|
|
72
|
-
hk_cdp-1.0.
|
|
73
|
-
hk_cdp-1.0.
|
|
74
|
-
hk_cdp-1.0.
|
|
75
|
-
hk_cdp-1.0.
|
|
71
|
+
hk_cdp-1.0.121.dist-info/LICENSE,sha256=hKHSuDoDoyOk6vOrpkYnOXZ640PvhUa-BTQbRRtFsUk,1061
|
|
72
|
+
hk_cdp-1.0.121.dist-info/METADATA,sha256=SqYqXeJKu92E49FmPZKi6xFgQuAvG-DzlBaBpOtSY6E,7102
|
|
73
|
+
hk_cdp-1.0.121.dist-info/WHEEL,sha256=g4nMs7d-Xl9-xC9XovUrsDHGXt-FT0E17Yqo92DEfvY,92
|
|
74
|
+
hk_cdp-1.0.121.dist-info/top_level.txt,sha256=omzIr_m5qnzhfcdscOVr4P4JUB49wlP6KztqvlqDntw,7
|
|
75
|
+
hk_cdp-1.0.121.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|