hk-cdp 1.0.79__py3-none-any.whl → 1.0.80__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/asset_base_model.py +8 -5
- {hk_cdp-1.0.79.dist-info → hk_cdp-1.0.80.dist-info}/METADATA +1 -1
- {hk_cdp-1.0.79.dist-info → hk_cdp-1.0.80.dist-info}/RECORD +6 -6
- {hk_cdp-1.0.79.dist-info → hk_cdp-1.0.80.dist-info}/LICENSE +0 -0
- {hk_cdp-1.0.79.dist-info → hk_cdp-1.0.80.dist-info}/WHEEL +0 -0
- {hk_cdp-1.0.79.dist-info → hk_cdp-1.0.80.dist-info}/top_level.txt +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"""
|
|
3
3
|
:Author: HuangJianYi
|
|
4
4
|
:Date: 2020-05-12 20:11:48
|
|
5
|
-
@LastEditTime: 2025-
|
|
5
|
+
@LastEditTime: 2025-05-29 16:22:19
|
|
6
6
|
@LastEditors: HuangJianYi
|
|
7
7
|
:description:
|
|
8
8
|
"""
|
|
@@ -89,7 +89,8 @@ class AssetBaseModel():
|
|
|
89
89
|
remark='',
|
|
90
90
|
operate_user_id='',
|
|
91
91
|
operate_user_name='',
|
|
92
|
-
valid_end_date=None
|
|
92
|
+
valid_end_date=None,
|
|
93
|
+
scheme_id=0):
|
|
93
94
|
"""
|
|
94
95
|
:description: 变更资产
|
|
95
96
|
:param business_id:商家标识
|
|
@@ -109,13 +110,14 @@ class AssetBaseModel():
|
|
|
109
110
|
:param operate_user_id:操作用户标识
|
|
110
111
|
:param operate_user_name:操作用户名称
|
|
111
112
|
:param valid_end_date:有效期结束时间(时间格式,不传或默认时间,则表示永久有效)
|
|
113
|
+
:param scheme_id:体系标识
|
|
112
114
|
:return: 返回实体InvokeResultData
|
|
113
115
|
:last_editors: HuangJianYi
|
|
114
116
|
"""
|
|
115
117
|
|
|
116
118
|
invoke_result_data = InvokeResultData()
|
|
117
119
|
|
|
118
|
-
if not one_id or not asset_type or not asset_value:
|
|
120
|
+
if not one_id or not asset_type or not asset_value or not scheme_id:
|
|
119
121
|
invoke_result_data.success = False
|
|
120
122
|
invoke_result_data.error_code = "param_error"
|
|
121
123
|
invoke_result_data.error_message = "参数不能为空或等于0"
|
|
@@ -187,6 +189,7 @@ class AssetBaseModel():
|
|
|
187
189
|
|
|
188
190
|
member_asset_log = MemberAssetLog()
|
|
189
191
|
member_asset_log.business_id = business_id
|
|
192
|
+
member_asset_log.scheme_id = scheme_id
|
|
190
193
|
member_asset_log.change_no = SevenHelper.create_order_id() # 18位随机
|
|
191
194
|
member_asset_log.one_id = one_id
|
|
192
195
|
member_asset_log.user_id = user_id
|
|
@@ -212,7 +215,7 @@ class AssetBaseModel():
|
|
|
212
215
|
else:
|
|
213
216
|
member_asset_log.valid_type = 1
|
|
214
217
|
member_asset_log.create_date = now_datetime
|
|
215
|
-
|
|
218
|
+
|
|
216
219
|
|
|
217
220
|
# 开始事务
|
|
218
221
|
db_transaction.begin_transaction()
|
|
@@ -362,7 +365,7 @@ class AssetBaseModel():
|
|
|
362
365
|
params.append(end_date)
|
|
363
366
|
if business_type != -1:
|
|
364
367
|
condition_where.add_condition("business_type=%s")
|
|
365
|
-
params.append(business_type)
|
|
368
|
+
params.append(business_type)
|
|
366
369
|
if source_type:
|
|
367
370
|
if type(source_type) == str:
|
|
368
371
|
condition_where.add_condition(SevenHelper.get_condition_by_int_list("source_type", [int(item) for item in source_type.split(",")]))
|
|
@@ -3,7 +3,7 @@ hk_cdp/handler/__init__.py,sha256=iwhKnzeBJLKxpRVjvzwiRE63_zNpIBfaKLITauVph-0,24
|
|
|
3
3
|
hk_cdp/handler/cdp_base.py,sha256=CgLnJPuxRzpfIZvxk9-7Tu1qfcsFm-xKLYkOaWw9gp0,2605
|
|
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
|
-
hk_cdp/libs/customize/asset_base_model.py,sha256=
|
|
6
|
+
hk_cdp/libs/customize/asset_base_model.py,sha256=EWAXOzXIvyJOHJEz1prfD_9a-UjpACG9UEQ2tJGIHDw,23594
|
|
7
7
|
hk_cdp/libs/customize/cdp_helper.py,sha256=st4NOYbFBT4WIOJ3j7bcAyml503z2ayiU78hbrNisGM,11810
|
|
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=CBzZOZlwcJdI22HOewIPTvAPWOHYdyvq7OAZhijTlFA,3575
|
|
@@ -64,8 +64,8 @@ hk_cdp/models/db_models/user/__init__.py,sha256=O_F1_TiR_075ATAHcahxTKJwUdYeY-Qz
|
|
|
64
64
|
hk_cdp/models/db_models/user/user_data_model.py,sha256=_0PbEsUf5e2JY2PL3LLj09cGAtAmS0dhnJnLCDNdkNc,2696
|
|
65
65
|
hk_cdp/models/db_models/user/user_info_model.py,sha256=60Rwfn-N-M3zpp1zipxyXrHDyftkTU5J3lhIrAiFavY,4104
|
|
66
66
|
hk_cdp/models/db_models/user/user_trends_model.py,sha256=CjlIbFFkTdTGIHYQ-cHkg9xUz92QC-sxmMBGPzcUvc4,1544
|
|
67
|
-
hk_cdp-1.0.
|
|
68
|
-
hk_cdp-1.0.
|
|
69
|
-
hk_cdp-1.0.
|
|
70
|
-
hk_cdp-1.0.
|
|
71
|
-
hk_cdp-1.0.
|
|
67
|
+
hk_cdp-1.0.80.dist-info/LICENSE,sha256=hKHSuDoDoyOk6vOrpkYnOXZ640PvhUa-BTQbRRtFsUk,1061
|
|
68
|
+
hk_cdp-1.0.80.dist-info/METADATA,sha256=b14avdQcN1WmHX7kajCJuv9SFdczFXvVGD8o80FzZSc,7101
|
|
69
|
+
hk_cdp-1.0.80.dist-info/WHEEL,sha256=g4nMs7d-Xl9-xC9XovUrsDHGXt-FT0E17Yqo92DEfvY,92
|
|
70
|
+
hk_cdp-1.0.80.dist-info/top_level.txt,sha256=omzIr_m5qnzhfcdscOVr4P4JUB49wlP6KztqvlqDntw,7
|
|
71
|
+
hk_cdp-1.0.80.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|