hk-cdp 1.0.124__py3-none-any.whl → 1.0.126__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/libs/customize/cdp_helper.py +1 -2
- hk_cdp/models/db_models/store/store_goods_model.py +10 -6
- hk_cdp/models/db_models/store/store_goods_sku_model.py +1 -1
- {hk_cdp-1.0.124.dist-info → hk_cdp-1.0.126.dist-info}/METADATA +1 -1
- {hk_cdp-1.0.124.dist-info → hk_cdp-1.0.126.dist-info}/RECORD +8 -8
- {hk_cdp-1.0.124.dist-info → hk_cdp-1.0.126.dist-info}/LICENSE +0 -0
- {hk_cdp-1.0.124.dist-info → hk_cdp-1.0.126.dist-info}/WHEEL +0 -0
- {hk_cdp-1.0.124.dist-info → hk_cdp-1.0.126.dist-info}/top_level.txt +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"""
|
|
3
3
|
@Author: HuangJianYi
|
|
4
4
|
@Date: 2024-11-18 18:57:33
|
|
5
|
-
@LastEditTime: 2025-05
|
|
5
|
+
@LastEditTime: 2025-11-05 11:57:12
|
|
6
6
|
@LastEditors: HuangJianYi
|
|
7
7
|
@Description: 帮助类
|
|
8
8
|
"""
|
|
@@ -51,7 +51,6 @@ class CdpHelper:
|
|
|
51
51
|
"""
|
|
52
52
|
cdp_db_config = SevenHelper.json_loads(cdp_db_config)
|
|
53
53
|
cdp_db_config = deepcopy(cdp_db_config)
|
|
54
|
-
cdp_db_config["db"] = f"hk_{business_code}_cdp"
|
|
55
54
|
return cdp_db_config
|
|
56
55
|
|
|
57
56
|
@classmethod
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
"""
|
|
3
|
+
@Author: HuangJianYi
|
|
4
|
+
@Date: 2024-12-26 19:49:36
|
|
5
|
+
@LastEditTime: 2025-10-27 18:07:24
|
|
6
|
+
@LastEditors: HuangJianYi
|
|
7
|
+
@Description:
|
|
8
|
+
"""
|
|
1
9
|
from seven_framework.mysql import MySQLHelper
|
|
2
10
|
from seven_framework.base_model import *
|
|
3
11
|
from seven_cloudapp_frame.models.cache_model import *
|
|
@@ -30,18 +38,14 @@ class StoreGoods:
|
|
|
30
38
|
self.goods_pic = "" # 商品主图片
|
|
31
39
|
self.approve_status = "" # 商品状态
|
|
32
40
|
self.price = 0.0000 # 商品价格
|
|
41
|
+
self.goods_num = 0 # 商品件数
|
|
33
42
|
self.create_date = "1970-01-01 00:00:00.000" # 创建时间
|
|
34
43
|
self.modify_date = "1970-01-01 00:00:00.000" # 修改时间
|
|
35
44
|
self.is_delete = 0 # 是否删除
|
|
36
45
|
|
|
37
46
|
@classmethod
|
|
38
47
|
def get_field_list(self):
|
|
39
|
-
return [
|
|
40
|
-
'id', 'guid', 'business_id', 'store_id', 'platform_id', 'plat_store_id',
|
|
41
|
-
'cid', 'goods_id', 'goods_code', 'goods_name',
|
|
42
|
-
'goods_pic', 'approve_status', 'price',
|
|
43
|
-
'create_date', 'modify_date', 'is_delete'
|
|
44
|
-
]
|
|
48
|
+
return ['id', 'guid', 'business_id', 'store_id', 'platform_id', 'plat_store_id', 'cid', 'goods_id', 'goods_code', 'goods_name', 'goods_pic', 'approve_status', 'price', 'goods_num', 'create_date', 'modify_date', 'is_delete']
|
|
45
49
|
|
|
46
50
|
@classmethod
|
|
47
51
|
def get_primary_key(self):
|
|
@@ -31,7 +31,7 @@ class StoreGoodsSku:
|
|
|
31
31
|
self.properties_name = "" # 属性名称
|
|
32
32
|
self.price = 0.0000 # 价格
|
|
33
33
|
self.quantity = 0 # 数量
|
|
34
|
-
self.status = '' # sku状态
|
|
34
|
+
self.status = '' # sku状态(0-下架 1-上架)
|
|
35
35
|
self.sku_pic = '' # 图片
|
|
36
36
|
self.create_date = "1970-01-01 00:00:00.000" # 创建时间
|
|
37
37
|
self.modify_date = "1970-01-01 00:00:00.000" # 修改时间
|
|
@@ -4,7 +4,7 @@ hk_cdp/handler/cdp_base.py,sha256=CgLnJPuxRzpfIZvxk9-7Tu1qfcsFm-xKLYkOaWw9gp0,26
|
|
|
4
4
|
hk_cdp/libs/__init__.py,sha256=iwhKnzeBJLKxpRVjvzwiRE63_zNpIBfaKLITauVph-0,24
|
|
5
5
|
hk_cdp/libs/customize/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
hk_cdp/libs/customize/asset_base_model.py,sha256=eRExBgVfURH2YYElDCEJwarhG0yAw0aLGyuZZTqYiaI,24862
|
|
7
|
-
hk_cdp/libs/customize/cdp_helper.py,sha256=
|
|
7
|
+
hk_cdp/libs/customize/cdp_helper.py,sha256=aOe7CIhrp7DhR6d9hCZLtDzD6GMD_SvvI34FtKRjJro,11754
|
|
8
8
|
hk_cdp/libs/customize/rainbow_helper.py,sha256=M9gb3MyHf8SHGtX27GC8llivvAZxV_fb1CqJK_crfZ4,2372
|
|
9
9
|
hk_cdp/libs/customize/tiktok_spi_helper.py,sha256=ZGx0PBK4eSXCLlqqyfn8uxd3EAAOxUt-jvgOsl1724E,3580
|
|
10
10
|
hk_cdp/libs/customize/work_base_model.py,sha256=0-oDyhcUQchj4L-AvWogBUYyhh8MUevaV6jmL94yQ5A,1931
|
|
@@ -41,8 +41,8 @@ hk_cdp/models/db_models/scheme/scheme_level_info_model.py,sha256=5wx2JFwvXYBmeSn
|
|
|
41
41
|
hk_cdp/models/db_models/scheme/scheme_level_model.py,sha256=_t1VsZ1-iFNLRt9TDilJO4U3twHeX8KDrUkeD9Bt9dc,2170
|
|
42
42
|
hk_cdp/models/db_models/store/__init__.py,sha256=Vr-HFdxK4GkNob9Rv44sfotR0RY6cRSi6VEcWQTkths,259
|
|
43
43
|
hk_cdp/models/db_models/store/store_base_model.py,sha256=nIzMw2W_LpnqJhBFy-9UjEgycWKqHo0ajhXTejqqTtE,2243
|
|
44
|
-
hk_cdp/models/db_models/store/store_goods_model.py,sha256=
|
|
45
|
-
hk_cdp/models/db_models/store/store_goods_sku_model.py,sha256=
|
|
44
|
+
hk_cdp/models/db_models/store/store_goods_model.py,sha256=i02RToDrSye9kuym7s8tejL371jXWPIngwcF0xVsboc,2135
|
|
45
|
+
hk_cdp/models/db_models/store/store_goods_sku_model.py,sha256=P4QUSBSB2kJx5foCkCqm7Z8yItwZ4gMcQwe35PwIrJs,1945
|
|
46
46
|
hk_cdp/models/db_models/store/store_prefix_log_model.py,sha256=lJgN9S2_azswzUkrC8zpfV-uT_Mo3gOg1PvEtValVK8,1225
|
|
47
47
|
hk_cdp/models/db_models/sync/__init__.py,sha256=3yNTLEqN1lJDHTVXsvic3Yf7Io-jFDGkwDQKUAKYh-Q,63
|
|
48
48
|
hk_cdp/models/db_models/sync/sync_member_mobile_model.py,sha256=rTLRUu-sO5I5fsVO-MBNJnz9cVzyoU5PKyawf4VURiM,1945
|
|
@@ -70,8 +70,8 @@ hk_cdp/models/db_models/user/__init__.py,sha256=O_F1_TiR_075ATAHcahxTKJwUdYeY-Qz
|
|
|
70
70
|
hk_cdp/models/db_models/user/user_data_model.py,sha256=eH-fMdbxpo_l9Ci7TwlPbxREYq3DSSgr2hT0j_Nwwr4,2874
|
|
71
71
|
hk_cdp/models/db_models/user/user_info_model.py,sha256=TywpvlFGkch9hO_szyhin-ed4xfTWBM7L59IU96SfxU,4138
|
|
72
72
|
hk_cdp/models/db_models/user/user_trends_model.py,sha256=oxJCBnJQEvFr1_heV_cxRrPIic6_oSoLqARc6ldp2LM,1592
|
|
73
|
-
hk_cdp-1.0.
|
|
74
|
-
hk_cdp-1.0.
|
|
75
|
-
hk_cdp-1.0.
|
|
76
|
-
hk_cdp-1.0.
|
|
77
|
-
hk_cdp-1.0.
|
|
73
|
+
hk_cdp-1.0.126.dist-info/LICENSE,sha256=hKHSuDoDoyOk6vOrpkYnOXZ640PvhUa-BTQbRRtFsUk,1061
|
|
74
|
+
hk_cdp-1.0.126.dist-info/METADATA,sha256=mV7c3SbWTygUEuj3WP4WpCGhDvw_J7EaeNIYduRK3Pw,7102
|
|
75
|
+
hk_cdp-1.0.126.dist-info/WHEEL,sha256=g4nMs7d-Xl9-xC9XovUrsDHGXt-FT0E17Yqo92DEfvY,92
|
|
76
|
+
hk_cdp-1.0.126.dist-info/top_level.txt,sha256=omzIr_m5qnzhfcdscOVr4P4JUB49wlP6KztqvlqDntw,7
|
|
77
|
+
hk_cdp-1.0.126.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|