hk-cdp 1.0.122__tar.gz → 1.0.124__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.
Potentially problematic release.
This version of hk-cdp might be problematic. Click here for more details.
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/PKG-INFO +1 -1
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/store/__init__.py +1 -1
- hk_cdp-1.0.124/hk_cdp/models/db_models/store/store_goods_sku_model.py +48 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/trade/__init__.py +1 -1
- hk_cdp-1.0.124/hk_cdp/models/db_models/trade/trade_info_ex_model.py +46 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp.egg-info/PKG-INFO +1 -1
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp.egg-info/SOURCES.txt +2 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/setup.py +1 -1
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/README.md +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/__init__.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/handler/__init__.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/handler/cdp_base.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/libs/__init__.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/libs/customize/__init__.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/libs/customize/asset_base_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/libs/customize/cdp_helper.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/libs/customize/rainbow_helper.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/libs/customize/tiktok_spi_helper.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/libs/customize/work_base_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/__init__.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/cdp_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/__init__.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/analysis/__init__.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/analysis/analysis_goods_related_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/analysis/analysis_goods_repurchase_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/analysis/analysis_report_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/cap/__init__.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/cap/cap_business_info_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/cap/cap_store_info_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/cdp/__init__.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/cdp/cdp_store_info_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/cdp/cdp_work_info_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/member/__init__.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/member/member_asset_log_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/member/member_asset_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/member/member_asset_valid_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/member/member_event_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/member/member_info_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/member/member_level_log_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/prefix/__init__.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/prefix/prefix_info_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/queue/__init__.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/queue/queue_work_log_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/scheme/__init__.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/scheme/scheme_growth_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/scheme/scheme_info_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/scheme/scheme_integral_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/scheme/scheme_level_info_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/scheme/scheme_level_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/store/store_base_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/store/store_goods_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/store/store_prefix_log_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/sync/__init__.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/sync/sync_member_mobile_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/sync/sync_user_data_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/taobao/__init__.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/taobao/taobao_rds_item_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/taobao/taobao_rds_refund_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/taobao/taobao_rds_trade_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/taobao/taobao_source_buyer_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/taobao/taobao_source_history_member_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/trade/trade_give_info_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/trade/trade_info_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/trade/trade_order_exclude_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/trade/trade_order_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/trade/trade_status_info_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/tt/__init__.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/tt/tt_rds_item_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/tt/tt_rds_refund_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/tt/tt_rds_trade_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/tt/tt_source_buyer_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/tt/tt_source_history_member_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/user/__init__.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/user/user_data_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/user/user_info_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/user/user_trends_model.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/enum.py +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp.egg-info/dependency_links.txt +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp.egg-info/requires.txt +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp.egg-info/top_level.txt +0 -0
- {hk_cdp-1.0.122 → hk_cdp-1.0.124}/setup.cfg +0 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
from seven_framework.mysql import MySQLHelper
|
|
2
|
+
from seven_framework.base_model import *
|
|
3
|
+
from seven_cloudapp_frame.models.cache_model import *
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class StoreGoodsSkuModel(CacheModel):
|
|
7
|
+
def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None, is_auto=False):
|
|
8
|
+
super(StoreGoodsSkuModel, self).__init__(StoreGoodsSku, sub_table)
|
|
9
|
+
if not db_config_dict:
|
|
10
|
+
db_config_dict = config.get_value(db_connect_key)
|
|
11
|
+
self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
|
|
12
|
+
self.db_connect_key = db_connect_key
|
|
13
|
+
self.db_transaction = db_transaction
|
|
14
|
+
self.db.context = context
|
|
15
|
+
|
|
16
|
+
# 方法扩展请继承此类
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class StoreGoodsSku:
|
|
20
|
+
def __init__(self):
|
|
21
|
+
super(StoreGoodsSku, self).__init__()
|
|
22
|
+
self.id = 0 # ID
|
|
23
|
+
self.business_id = 0 # 商家标识
|
|
24
|
+
self.store_id = 0 # 店铺标识
|
|
25
|
+
self.platform_id = 0 # 平台标识
|
|
26
|
+
self.plat_store_id = "" # 平台店铺标识
|
|
27
|
+
self.goods_id = "" # 商品ID
|
|
28
|
+
self.sku_id = "" # sku_id
|
|
29
|
+
self.goods_code = "" # 商家编码
|
|
30
|
+
self.properties = "" # 属性
|
|
31
|
+
self.properties_name = "" # 属性名称
|
|
32
|
+
self.price = 0.0000 # 价格
|
|
33
|
+
self.quantity = 0 # 数量
|
|
34
|
+
self.status = '' # sku状态
|
|
35
|
+
self.sku_pic = '' # 图片
|
|
36
|
+
self.create_date = "1970-01-01 00:00:00.000" # 创建时间
|
|
37
|
+
self.modify_date = "1970-01-01 00:00:00.000" # 修改时间
|
|
38
|
+
|
|
39
|
+
@classmethod
|
|
40
|
+
def get_field_list(self):
|
|
41
|
+
return ['id', 'business_id', 'store_id', 'platform_id', 'plat_store_id', 'goods_id', 'sku_id', 'goods_code', 'properties', 'properties_name', 'price', 'quantity', 'status', 'sku_pic', 'create_date', 'modify_date']
|
|
42
|
+
|
|
43
|
+
@classmethod
|
|
44
|
+
def get_primary_key(self):
|
|
45
|
+
return "id"
|
|
46
|
+
|
|
47
|
+
def __str__(self):
|
|
48
|
+
return "store_goods_sku_tb"
|
|
@@ -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", "trade_order_exclude_model"]
|
|
9
|
+
__all__ = ["trade_info_model", "trade_info_ex_model", "trade_order_model", "trade_status_info_model", "trade_give_info_model", "trade_order_exclude_model"]
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
"""
|
|
3
|
+
@Author: HuangJianYi
|
|
4
|
+
@Date: 2024-10-15 18:30:21
|
|
5
|
+
@LastEditTime: 2025-10-22 14:48:07
|
|
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
|
+
class TradeInfoExModel(CacheModel):
|
|
15
|
+
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(TradeInfoExModel, self).__init__(TradeInfoEx, sub_table)
|
|
17
|
+
if not db_config_dict:
|
|
18
|
+
db_config_dict = config.get_value(db_connect_key)
|
|
19
|
+
self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
|
|
20
|
+
self.db_connect_key = db_connect_key
|
|
21
|
+
self.db_transaction = db_transaction
|
|
22
|
+
self.db.context = context
|
|
23
|
+
|
|
24
|
+
class TradeInfoEx:
|
|
25
|
+
def __init__(self):
|
|
26
|
+
super(TradeInfoEx, self).__init__()
|
|
27
|
+
self.id = 0 # id
|
|
28
|
+
self.business_id = 0 # 商家标识
|
|
29
|
+
self.store_id = 0 # 店铺标识
|
|
30
|
+
self.plat_store_id = "" # 平台店铺标识
|
|
31
|
+
self.main_pay_order_no = "" # 主订单号
|
|
32
|
+
self.received_payment = 0.0 # 卖家实收金额
|
|
33
|
+
self.expand_card_basic_price_used = 0.0 # 购物金本金支付金额
|
|
34
|
+
self.expand_card_expand_price_used = 0.0 # 购物金权益金支付金额
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
@classmethod
|
|
38
|
+
def get_field_list(self):
|
|
39
|
+
return ['id', 'business_id', 'store_id', 'plat_store_id', 'main_pay_order_no', 'received_payment', 'expand_card_basic_price_used', 'expand_card_expand_price_used']
|
|
40
|
+
|
|
41
|
+
@classmethod
|
|
42
|
+
def get_primary_key(self):
|
|
43
|
+
return "id"
|
|
44
|
+
|
|
45
|
+
def __str__(self):
|
|
46
|
+
return "trade_info_ex_tb"
|
|
@@ -49,6 +49,7 @@ hk_cdp/models/db_models/scheme/scheme_level_model.py
|
|
|
49
49
|
hk_cdp/models/db_models/store/__init__.py
|
|
50
50
|
hk_cdp/models/db_models/store/store_base_model.py
|
|
51
51
|
hk_cdp/models/db_models/store/store_goods_model.py
|
|
52
|
+
hk_cdp/models/db_models/store/store_goods_sku_model.py
|
|
52
53
|
hk_cdp/models/db_models/store/store_prefix_log_model.py
|
|
53
54
|
hk_cdp/models/db_models/sync/__init__.py
|
|
54
55
|
hk_cdp/models/db_models/sync/sync_member_mobile_model.py
|
|
@@ -61,6 +62,7 @@ hk_cdp/models/db_models/taobao/taobao_source_buyer_model.py
|
|
|
61
62
|
hk_cdp/models/db_models/taobao/taobao_source_history_member_model.py
|
|
62
63
|
hk_cdp/models/db_models/trade/__init__.py
|
|
63
64
|
hk_cdp/models/db_models/trade/trade_give_info_model.py
|
|
65
|
+
hk_cdp/models/db_models/trade/trade_info_ex_model.py
|
|
64
66
|
hk_cdp/models/db_models/trade/trade_info_model.py
|
|
65
67
|
hk_cdp/models/db_models/trade/trade_order_exclude_model.py
|
|
66
68
|
hk_cdp/models/db_models/trade/trade_order_model.py
|
|
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.122 → hk_cdp-1.0.124}/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.122 → hk_cdp-1.0.124}/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.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/taobao/taobao_source_buyer_model.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hk_cdp-1.0.122 → hk_cdp-1.0.124}/hk_cdp/models/db_models/trade/trade_order_exclude_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
|
{hk_cdp-1.0.122 → hk_cdp-1.0.124}/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
|