hk-cdp 1.0.116__tar.gz → 1.0.117__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.116 → hk_cdp-1.0.117}/PKG-INFO +1 -1
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/trade/trade_info_model.py +4 -3
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/trade/trade_order_model.py +4 -3
- hk_cdp-1.0.117/hk_cdp/models/settle/__init__.py +1 -0
- hk_cdp-1.0.117/hk_cdp/models/settle/settle_exclude_goods_model.py +47 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp.egg-info/PKG-INFO +1 -1
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp.egg-info/SOURCES.txt +3 -1
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/setup.py +1 -1
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/README.md +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/__init__.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/handler/__init__.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/handler/cdp_base.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/libs/__init__.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/libs/customize/__init__.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/libs/customize/asset_base_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/libs/customize/cdp_helper.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/libs/customize/rainbow_helper.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/libs/customize/tiktok_spi_helper.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/libs/customize/work_base_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/__init__.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/cdp_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/__init__.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/analysis/__init__.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/analysis/analysis_goods_related_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/analysis/analysis_goods_repurchase_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/analysis/analysis_report_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/cap/__init__.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/cap/cap_business_info_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/cap/cap_store_info_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/cdp/__init__.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/cdp/cdp_store_info_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/cdp/cdp_work_info_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/member/__init__.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/member/member_asset_log_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/member/member_asset_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/member/member_asset_valid_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/member/member_event_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/member/member_info_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/member/member_level_log_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/prefix/__init__.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/prefix/prefix_info_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/queue/__init__.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/queue/queue_work_log_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/scheme/__init__.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/scheme/scheme_growth_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/scheme/scheme_info_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/scheme/scheme_integral_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/scheme/scheme_level_info_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/scheme/scheme_level_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/store/__init__.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/store/store_base_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/store/store_goods_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/store/store_prefix_log_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/sync/__init__.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/sync/sync_member_mobile_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/sync/sync_user_data_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/taobao/__init__.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/taobao/taobao_rds_item_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/taobao/taobao_rds_refund_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/taobao/taobao_rds_trade_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/taobao/taobao_source_buyer_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/taobao/taobao_source_history_member_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/trade/__init__.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/trade/trade_give_info_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/trade/trade_status_info_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/tt/__init__.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/tt/tt_rds_item_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/tt/tt_rds_refund_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/tt/tt_rds_trade_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/tt/tt_source_buyer_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/tt/tt_source_history_member_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/user/__init__.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/user/user_data_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/user/user_info_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/db_models/user/user_trends_model.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp/models/enum.py +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp.egg-info/dependency_links.txt +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp.egg-info/requires.txt +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/hk_cdp.egg-info/top_level.txt +0 -0
- {hk_cdp-1.0.116 → hk_cdp-1.0.117}/setup.cfg +0 -0
|
@@ -41,6 +41,7 @@ class TradeInfo:
|
|
|
41
41
|
self.postage = 0.0 # 邮费
|
|
42
42
|
self.discount_price = 0.0 # 优惠金额
|
|
43
43
|
self.refund_price = 0.0 # 退款金额
|
|
44
|
+
self.settle_price = 0.0 # 结算金额
|
|
44
45
|
self.buy_num = 0 # 商品件数
|
|
45
46
|
self.order_num = 0 # 子订单数量
|
|
46
47
|
self.order_status = "" # 订单状态
|
|
@@ -75,9 +76,9 @@ class TradeInfo:
|
|
|
75
76
|
@classmethod
|
|
76
77
|
def get_field_list(self):
|
|
77
78
|
return [
|
|
78
|
-
'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', '
|
|
79
|
-
'plat_store_id', 'receiver', 'telephone', 'receiver_province', 'receiver_city', 'receiver_county', 'receiver_address', 'buyer_remark', 'seller_remark', 'seller_flag', 'buyer_rate', 'seller_rate', 'expand_card_basic_price', 'trade_source_types',
|
|
80
|
-
'pay_date', 'consign_date', 'end_date', 'source_type', 'source_title', 'modify_date', 'inside_date', 'is_incr_data', 'process_date', 'reward_process_status', 'refund_process_status', 'surplus_refund_price'
|
|
79
|
+
'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', 'settle_price', 'buy_num', 'order_num',
|
|
80
|
+
'order_status', 'plat_store_id', 'receiver', 'telephone', 'receiver_province', 'receiver_city', 'receiver_county', 'receiver_address', 'buyer_remark', 'seller_remark', 'seller_flag', 'buyer_rate', 'seller_rate', 'expand_card_basic_price', 'trade_source_types',
|
|
81
|
+
'create_date', 'pay_date', 'consign_date', 'end_date', 'source_type', 'source_title', 'modify_date', 'inside_date', 'is_incr_data', 'process_date', 'reward_process_status', 'refund_process_status', 'surplus_refund_price'
|
|
81
82
|
]
|
|
82
83
|
|
|
83
84
|
@classmethod
|
|
@@ -43,6 +43,7 @@ class TradeOrder:
|
|
|
43
43
|
self.order_price = 0.0 # 子订单金额
|
|
44
44
|
self.pay_price = 0.0 # 子支付金额
|
|
45
45
|
self.discount_price = 0.0 # 优惠金额
|
|
46
|
+
self.divide_order_price = 0.0 # 分摊后子订单实付金额
|
|
46
47
|
self.order_status = "" # 子订单状态
|
|
47
48
|
self.refund_status = "" # 退款状态
|
|
48
49
|
self.refund_id = "" # 退款订单号
|
|
@@ -50,9 +51,9 @@ class TradeOrder:
|
|
|
50
51
|
@classmethod
|
|
51
52
|
def get_field_list(self):
|
|
52
53
|
return [
|
|
53
|
-
'id', 'business_id', 'store_id', 'plat_store_id', 'user_id', 'ouid', 'platform_id', 'main_pay_order_no', 'sub_pay_order_no',
|
|
54
|
-
'
|
|
55
|
-
|
|
54
|
+
'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
|
+
]
|
|
56
57
|
|
|
57
58
|
@classmethod
|
|
58
59
|
def get_primary_key(self):
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__all__ = ["settle_exclude_goods_model"]
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
"""
|
|
3
|
+
@Author: HuangJianYi
|
|
4
|
+
@Date: 2024-10-15 18:30:21
|
|
5
|
+
@LastEditTime: 2024-12-31 10:54:55
|
|
6
|
+
@LastEditors: HuangJianYi
|
|
7
|
+
@Description:
|
|
8
|
+
"""
|
|
9
|
+
from seven_framework.mysql import MySQLHelper
|
|
10
|
+
from seven_framework.base_model import *
|
|
11
|
+
from seven_cloudapp_frame.models.cache_model import *
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class SettleExcludeGoodsModel(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(SettleExcludeGoodsModel, self).__init__(SettleExcludeGoods, 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
|
+
# 方法扩展请继承此类
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class SettleExcludeGoods:
|
|
28
|
+
def __init__(self):
|
|
29
|
+
super(SettleExcludeGoods, self).__init__()
|
|
30
|
+
self.id = 0 # id
|
|
31
|
+
self.guid = 0 # guid
|
|
32
|
+
self.business_id = 0 # 商家标识
|
|
33
|
+
self.store_id = 0 # 店铺标识
|
|
34
|
+
self.platform_id = 0 # 平台标识
|
|
35
|
+
self.goods_id = '' # 商品ID
|
|
36
|
+
self.create_date = '' # 创建时间
|
|
37
|
+
|
|
38
|
+
@classmethod
|
|
39
|
+
def get_field_list(self):
|
|
40
|
+
return ['id', 'guid', 'business_id', 'store_id', 'platform_id', 'goods_id', 'create_date']
|
|
41
|
+
|
|
42
|
+
@classmethod
|
|
43
|
+
def get_primary_key(self):
|
|
44
|
+
return "id"
|
|
45
|
+
|
|
46
|
+
def __str__(self):
|
|
47
|
+
return "settle_exclude_goods_tb"
|
|
@@ -73,4 +73,6 @@ hk_cdp/models/db_models/tt/tt_source_history_member_model.py
|
|
|
73
73
|
hk_cdp/models/db_models/user/__init__.py
|
|
74
74
|
hk_cdp/models/db_models/user/user_data_model.py
|
|
75
75
|
hk_cdp/models/db_models/user/user_info_model.py
|
|
76
|
-
hk_cdp/models/db_models/user/user_trends_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
|
|
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.116 → hk_cdp-1.0.117}/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.116 → hk_cdp-1.0.117}/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
|
|
File without changes
|
{hk_cdp-1.0.116 → hk_cdp-1.0.117}/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.116 → hk_cdp-1.0.117}/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
|