hk-cdp 1.0.83__tar.gz → 1.0.84__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.
Files changed (75) hide show
  1. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/PKG-INFO +1 -1
  2. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/analysis/analysis_report_model.py +11 -3
  3. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/cap/cap_business_info_model.py +4 -6
  4. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/cap/cap_store_info_model.py +4 -6
  5. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/cdp/cdp_store_info_model.py +4 -4
  6. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/member/member_asset_log_model.py +3 -3
  7. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/member/member_asset_model.py +3 -3
  8. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/member/member_asset_valid_model.py +4 -4
  9. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/member/member_event_model.py +3 -3
  10. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/member/member_info_model.py +2 -2
  11. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/member/member_level_log_model.py +2 -2
  12. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/scheme/scheme_growth_model.py +3 -3
  13. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/scheme/scheme_info_model.py +2 -2
  14. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/scheme/scheme_integral_model.py +3 -3
  15. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/scheme/scheme_level_info_model.py +2 -2
  16. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/scheme/scheme_level_model.py +4 -4
  17. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/store/store_base_model.py +4 -5
  18. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/store/store_goods_model.py +6 -6
  19. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/store/store_prefix_log_model.py +5 -7
  20. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/sync/sync_user_data_model.py +2 -2
  21. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/taobao/taobao_rds_item_model.py +14 -3
  22. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/taobao/taobao_rds_refund_model.py +2 -2
  23. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/taobao/taobao_rds_trade_model.py +2 -2
  24. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/taobao/taobao_source_buyer_model.py +2 -2
  25. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/taobao/taobao_source_history_member_model.py +2 -2
  26. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/trade/trade_give_info_model.py +3 -3
  27. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/trade/trade_info_model.py +2 -2
  28. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/trade/trade_order_model.py +2 -2
  29. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/trade/trade_status_info_model.py +10 -2
  30. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/tt/tt_rds_item_model.py +7 -3
  31. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/tt/tt_rds_refund_model.py +5 -3
  32. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/tt/tt_rds_trade_model.py +2 -2
  33. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/tt/tt_source_buyer_model.py +2 -2
  34. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/tt/tt_source_history_member_model.py +3 -3
  35. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/user/user_data_model.py +3 -3
  36. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/user/user_info_model.py +10 -10
  37. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/user/user_trends_model.py +2 -2
  38. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp.egg-info/PKG-INFO +1 -1
  39. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/setup.py +1 -1
  40. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/README.md +0 -0
  41. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/__init__.py +0 -0
  42. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/handler/__init__.py +0 -0
  43. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/handler/cdp_base.py +0 -0
  44. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/libs/__init__.py +0 -0
  45. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/libs/customize/__init__.py +0 -0
  46. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/libs/customize/asset_base_model.py +0 -0
  47. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/libs/customize/cdp_helper.py +0 -0
  48. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/libs/customize/rainbow_helper.py +0 -0
  49. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/libs/customize/tiktok_spi_helper.py +0 -0
  50. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/libs/customize/work_base_model.py +0 -0
  51. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/__init__.py +0 -0
  52. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/cdp_model.py +0 -0
  53. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/__init__.py +0 -0
  54. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/analysis/__init__.py +0 -0
  55. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/cap/__init__.py +0 -0
  56. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/cdp/__init__.py +0 -0
  57. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/cdp/cdp_work_info_model.py +0 -0
  58. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/member/__init__.py +0 -0
  59. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/prefix/__init__.py +0 -0
  60. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/prefix/prefix_info_model.py +0 -0
  61. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/queue/__init__.py +0 -0
  62. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/queue/queue_work_log_model.py +0 -0
  63. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/scheme/__init__.py +0 -0
  64. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/store/__init__.py +0 -0
  65. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/sync/__init__.py +0 -0
  66. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/taobao/__init__.py +0 -0
  67. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/trade/__init__.py +0 -0
  68. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/tt/__init__.py +0 -0
  69. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/db_models/user/__init__.py +0 -0
  70. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp/models/enum.py +0 -0
  71. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp.egg-info/SOURCES.txt +0 -0
  72. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp.egg-info/dependency_links.txt +0 -0
  73. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp.egg-info/requires.txt +0 -0
  74. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/hk_cdp.egg-info/top_level.txt +0 -0
  75. {hk_cdp-1.0.83 → hk_cdp-1.0.84}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hk_cdp
3
- Version: 1.0.83
3
+ Version: 1.0.84
4
4
  Summary: hk cdp
5
5
  Home-page: http://gitlab.tdtech.gao7.com/newfire/hk_cap/hk_cdp/server/hk_cdp.git
6
6
  Author: seven
@@ -1,8 +1,16 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  """
3
3
  @Author: HuangJianYi
4
+ @Date: 2024-12-31 11:25:23
5
+ @LastEditTime: 2025-07-11 10:32:22
6
+ @LastEditors: HuangJianYi
7
+ @Description:
8
+ """
9
+ # -*- coding: utf-8 -*-
10
+ """
11
+ @Author: HuangJianYi
4
12
  @Date: 2024-10-15 18:30:21
5
- @LastEditTime: 2025-01-06 10:51:42
13
+ @LastEditTime: 2025-07-11 10:31:39
6
14
  @LastEditors: HuangJianYi
7
15
  @Description:
8
16
  """
@@ -11,11 +19,11 @@ from seven_framework.base_model import *
11
19
  from seven_cloudapp_frame.models.cache_model import *
12
20
 
13
21
  class AnalysisReportModel(CacheModel):
14
- def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None):
22
+ def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None, is_auto=False):
15
23
  super(AnalysisReportModel, self).__init__(AnalysisReport, sub_table)
16
24
  if not db_config_dict:
17
25
  db_config_dict = config.get_value(db_connect_key)
18
- self.db = MySQLHelper(db_config_dict)
26
+ self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
19
27
  self.db_connect_key = db_connect_key
20
28
  self.db_transaction = db_transaction
21
29
  self.db.context = context
@@ -1,19 +1,18 @@
1
-
2
1
  #此文件由rigger自动生成
3
2
  from seven_framework.mysql import MySQLHelper
4
3
  from seven_framework.base_model import *
5
4
  from seven_cloudapp_frame.models.cache_model import *
6
5
 
7
6
  class CapBusinessInfoModel(CacheModel):
8
- def __init__(self, db_connect_key='db_cloudapp', sub_table=None, db_transaction=None, context=None):
7
+ def __init__(self, db_connect_key='db_cloudapp', sub_table=None, db_transaction=None, context=None, is_auto=False):
9
8
  super(CapBusinessInfoModel, self).__init__(CapBusinessInfo, sub_table)
10
- self.db = MySQLHelper(config.get_value(db_connect_key))
9
+ self.db = MySQLHelper(self.convert_db_config(db_connect_key, is_auto))
11
10
  self.db_connect_key = db_connect_key
12
11
  self.db_transaction = db_transaction
13
12
  self.db.context = context
14
13
 
15
14
  #方法扩展请继承此类
16
-
15
+
17
16
  class CapBusinessInfo:
18
17
 
19
18
  def __init__(self):
@@ -33,11 +32,10 @@ class CapBusinessInfo:
33
32
  @classmethod
34
33
  def get_field_list(self):
35
34
  return ['id', 'guid', 'business_name','phone', 'business_desc', 'business_code', 'product_ids', 'extend_info', 'is_release', 'create_date', 'modify_date']
36
-
35
+
37
36
  @classmethod
38
37
  def get_primary_key(self):
39
38
  return "id"
40
39
 
41
40
  def __str__(self):
42
41
  return "cap_business_info_tb"
43
-
@@ -1,19 +1,18 @@
1
-
2
1
  #此文件由rigger自动生成
3
2
  from seven_framework.mysql import MySQLHelper
4
3
  from seven_framework.base_model import *
5
4
  from seven_cloudapp_frame.models.cache_model import *
6
5
 
7
6
  class CapStoreInfoModel(CacheModel):
8
- def __init__(self, db_connect_key='db_cloudapp', sub_table=None, db_transaction=None, context=None):
7
+ def __init__(self, db_connect_key='db_cloudapp', sub_table=None, db_transaction=None, context=None, is_auto=False):
9
8
  super(CapStoreInfoModel, self).__init__(CapStoreInfo, sub_table)
10
- self.db = MySQLHelper(config.get_value(db_connect_key))
9
+ self.db = MySQLHelper(self.convert_db_config(db_connect_key, is_auto))
11
10
  self.db_connect_key = db_connect_key
12
11
  self.db_transaction = db_transaction
13
12
  self.db.context = context
14
13
 
15
14
  #方法扩展请继承此类
16
-
15
+
17
16
  class CapStoreInfo:
18
17
 
19
18
  def __init__(self):
@@ -35,11 +34,10 @@ class CapStoreInfo:
35
34
  @classmethod
36
35
  def get_field_list(self):
37
36
  return ['id', 'guid', 'business_id','platform_id', 'store_name', 'seller_nick', 'seller_id', 'plat_store_id', 'product_id', 'extend_info', 'is_release', 'create_date', 'modify_date']
38
-
37
+
39
38
  @classmethod
40
39
  def get_primary_key(self):
41
40
  return "id"
42
41
 
43
42
  def __str__(self):
44
43
  return "cap_store_info_tb"
45
-
@@ -2,7 +2,7 @@
2
2
  """
3
3
  @Author: HuangJianYi
4
4
  @Date: 2024-11-06 09:39:45
5
- @LastEditTime: 2025-03-04 15:09:23
5
+ @LastEditTime: 2025-07-11 10:34:43
6
6
  @LastEditors: HuangJianYi
7
7
  @Description:
8
8
  """
@@ -13,9 +13,9 @@ from seven_framework.base_model import *
13
13
  from seven_cloudapp_frame.models.cache_model import *
14
14
 
15
15
  class CdpStoreInfoModel(CacheModel):
16
- def __init__(self, db_connect_key='db_cloudapp', sub_table=None, db_transaction=None, context=None):
16
+ def __init__(self, db_connect_key='db_cloudapp', sub_table=None, db_transaction=None, context=None, is_auto=False):
17
17
  super(CdpStoreInfoModel, self).__init__(CdpStoreInfo, sub_table)
18
- self.db = MySQLHelper(config.get_value(db_connect_key))
18
+ self.db = MySQLHelper(self.convert_db_config(db_connect_key, is_auto))
19
19
  self.db_connect_key = db_connect_key
20
20
  self.db_transaction = db_transaction
21
21
  self.db.context = context
@@ -55,7 +55,7 @@ class CdpStoreInfo:
55
55
  return [
56
56
  'id', 'guid', 'store_name', 'store_icon', 'plat_store_id', 'store_status', 'create_date', 'modify_date', 'plat_telephone_key', 'prefix_status', 'prefix_path', 'business_id', 'seller_nick', 'seller_id', 'platform_id', 'overdue_date', 'access_token', 'extend_info', 'description', 'cdp_rawdata_sync_status', 'history_data_clean_status', 'history_member_init_status'
57
57
  ]
58
-
58
+
59
59
  @classmethod
60
60
  def get_primary_key(self):
61
61
  return "id"
@@ -2,7 +2,7 @@
2
2
  """
3
3
  @Author: HuangJianYi
4
4
  @Date: 2024-10-15 18:30:21
5
- @LastEditTime: 2024-11-14 15:22:28
5
+ @LastEditTime: 2025-07-11 10:35:57
6
6
  @LastEditors: HuangJianYi
7
7
  @Description:
8
8
  """
@@ -11,11 +11,11 @@ from seven_framework.base_model import *
11
11
  from seven_cloudapp_frame.models.cache_model import *
12
12
 
13
13
  class MemberAssetLogModel(CacheModel):
14
- def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None):
14
+ def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None, is_auto=False):
15
15
  super(MemberAssetLogModel, self).__init__(MemberAssetLog, sub_table)
16
16
  if not db_config_dict:
17
17
  db_config_dict = config.get_value(db_connect_key)
18
- self.db = MySQLHelper(db_config_dict)
18
+ self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
19
19
  self.db_connect_key = db_connect_key
20
20
  self.db_transaction = db_transaction
21
21
  self.db.context = context
@@ -11,11 +11,11 @@ from seven_framework.base_model import *
11
11
  from seven_cloudapp_frame.models.cache_model import *
12
12
 
13
13
  class MemberAssetModel(CacheModel):
14
- def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None):
14
+ def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None, is_auto=False):
15
15
  super(MemberAssetModel, self).__init__(MemberAsset, sub_table)
16
16
  if not db_config_dict:
17
17
  db_config_dict = config.get_value(db_connect_key)
18
- self.db = MySQLHelper(db_config_dict)
18
+ self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
19
19
  self.db_connect_key = db_connect_key
20
20
  self.db_transaction = db_transaction
21
21
  self.db.context = context
@@ -50,4 +50,4 @@ class MemberAsset:
50
50
  return "id"
51
51
 
52
52
  def __str__(self):
53
- return "member_asset_tb"
53
+ return "member_asset_tb"
@@ -2,7 +2,7 @@
2
2
  """
3
3
  @Author: HuangJianYi
4
4
  @Date: 2024-10-15 18:30:21
5
- @LastEditTime: 2024-11-14 15:22:28
5
+ @LastEditTime: 2025-07-11 10:36:20
6
6
  @LastEditors: HuangJianYi
7
7
  @Description:
8
8
  """
@@ -11,11 +11,11 @@ from seven_framework.base_model import *
11
11
  from seven_cloudapp_frame.models.cache_model import *
12
12
 
13
13
  class MemberAssetValidModel(CacheModel):
14
- def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None):
14
+ def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None, is_auto=False):
15
15
  super(MemberAssetValidModel, self).__init__(MemberAssetValid, sub_table)
16
16
  if not db_config_dict:
17
17
  db_config_dict = config.get_value(db_connect_key)
18
- self.db = MySQLHelper(db_config_dict)
18
+ self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
19
19
  self.db_connect_key = db_connect_key
20
20
  self.db_transaction = db_transaction
21
21
  self.db.context = context
@@ -44,4 +44,4 @@ class MemberAssetValid:
44
44
  return "id"
45
45
 
46
46
  def __str__(self):
47
- return "member_asset_valid_tb"
47
+ return "member_asset_valid_tb"
@@ -11,11 +11,11 @@ from seven_framework.base_model import *
11
11
  from seven_cloudapp_frame.models.cache_model import *
12
12
 
13
13
  class MemberEventModel(CacheModel):
14
- def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None):
14
+ def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None, is_auto=False):
15
15
  super(MemberEventModel, self).__init__(MemberEvent, sub_table)
16
16
  if not db_config_dict:
17
17
  db_config_dict = config.get_value(db_connect_key)
18
- self.db = MySQLHelper(db_config_dict)
18
+ self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
19
19
  self.db_connect_key = db_connect_key
20
20
  self.db_transaction = db_transaction
21
21
  self.db.context = context
@@ -42,4 +42,4 @@ class MemberEvent:
42
42
  return "id"
43
43
 
44
44
  def __str__(self):
45
- return "member_event_tb"
45
+ return "member_event_tb"
@@ -11,11 +11,11 @@ from seven_framework.base_model import *
11
11
  from seven_cloudapp_frame.models.cache_model import *
12
12
 
13
13
  class MemberInfoModel(CacheModel):
14
- def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None):
14
+ def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None, is_auto=False):
15
15
  super(MemberInfoModel, self).__init__(MemberInfo, sub_table)
16
16
  if not db_config_dict:
17
17
  db_config_dict = config.get_value(db_connect_key)
18
- self.db = MySQLHelper(db_config_dict)
18
+ self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
19
19
  self.db_connect_key = db_connect_key
20
20
  self.db_transaction = db_transaction
21
21
  self.db.context = context
@@ -11,11 +11,11 @@ from seven_framework.base_model import *
11
11
  from seven_cloudapp_frame.models.cache_model import *
12
12
 
13
13
  class MemberLevelLogModel(CacheModel):
14
- def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None):
14
+ def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None, is_auto=False):
15
15
  super(MemberLevelLogModel, self).__init__(MemberLevelLog, sub_table)
16
16
  if not db_config_dict:
17
17
  db_config_dict = config.get_value(db_connect_key)
18
- self.db = MySQLHelper(db_config_dict)
18
+ self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
19
19
  self.db_connect_key = db_connect_key
20
20
  self.db_transaction = db_transaction
21
21
  self.db.context = context
@@ -2,7 +2,7 @@
2
2
  """
3
3
  @Author: HuangJianYi
4
4
  @Date: 2024-10-15 18:30:21
5
- @LastEditTime: 2024-11-14 15:10:45
5
+ @LastEditTime: 2025-07-11 10:38:04
6
6
  @LastEditors: HuangJianYi
7
7
  @Description:
8
8
  """
@@ -11,11 +11,11 @@ from seven_framework.base_model import *
11
11
  from seven_cloudapp_frame.models.cache_model import *
12
12
 
13
13
  class SchemeGrowthModel(CacheModel):
14
- def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None):
14
+ def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None, is_auto=False):
15
15
  super(SchemeGrowthModel, self).__init__(SchemeGrowth, sub_table)
16
16
  if not db_config_dict:
17
17
  db_config_dict = config.get_value(db_connect_key)
18
- self.db = MySQLHelper(db_config_dict)
18
+ self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
19
19
  self.db_connect_key = db_connect_key
20
20
  self.db_transaction = db_transaction
21
21
  self.db.context = context
@@ -12,11 +12,11 @@ from seven_framework.base_model import *
12
12
  from seven_cloudapp_frame.models.cache_model import *
13
13
 
14
14
  class SchemeInfoModel(CacheModel):
15
- def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None):
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
16
  super(SchemeInfoModel, self).__init__(SchemeInfo, sub_table)
17
17
  if not db_config_dict:
18
18
  db_config_dict = config.get_value(db_connect_key)
19
- self.db = MySQLHelper(db_config_dict)
19
+ self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
20
20
  self.db_connect_key = db_connect_key
21
21
  self.db_transaction = db_transaction
22
22
  self.db.context = context
@@ -2,7 +2,7 @@
2
2
  """
3
3
  @Author: HuangJianYi
4
4
  @Date: 2024-10-15 18:30:21
5
- @LastEditTime: 2024-12-05 16:49:45
5
+ @LastEditTime: 2025-07-11 10:39:24
6
6
  @LastEditors: HuangJianYi
7
7
  @Description:
8
8
  """
@@ -11,11 +11,11 @@ from seven_framework.base_model import *
11
11
  from seven_cloudapp_frame.models.cache_model import *
12
12
 
13
13
  class SchemeIntegralModel(CacheModel):
14
- def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None):
14
+ def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None, is_auto=False):
15
15
  super(SchemeIntegralModel, self).__init__(SchemeIntegral, sub_table)
16
16
  if not db_config_dict:
17
17
  db_config_dict = config.get_value(db_connect_key)
18
- self.db = MySQLHelper(db_config_dict)
18
+ self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
19
19
  self.db_connect_key = db_connect_key
20
20
  self.db_transaction = db_transaction
21
21
  self.db.context = context
@@ -11,11 +11,11 @@ from seven_framework.base_model import *
11
11
  from seven_cloudapp_frame.models.cache_model import *
12
12
 
13
13
  class SchemeLevelInfoModel(CacheModel):
14
- def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None):
14
+ def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None, is_auto=False):
15
15
  super(SchemeLevelInfoModel, self).__init__(SchemeLevelInfo, sub_table)
16
16
  if not db_config_dict:
17
17
  db_config_dict = config.get_value(db_connect_key)
18
- self.db = MySQLHelper(db_config_dict)
18
+ self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
19
19
  self.db_connect_key = db_connect_key
20
20
  self.db_transaction = db_transaction
21
21
  self.db.context = context
@@ -11,11 +11,11 @@ from seven_framework.base_model import *
11
11
  from seven_cloudapp_frame.models.cache_model import *
12
12
 
13
13
  class SchemeLevelModel(CacheModel):
14
- def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None):
14
+ def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None, is_auto=False):
15
15
  super(SchemeLevelModel, self).__init__(SchemeLevel, sub_table)
16
16
  if not db_config_dict:
17
17
  db_config_dict = config.get_value(db_connect_key)
18
- self.db = MySQLHelper(db_config_dict)
18
+ self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
19
19
  self.db_connect_key = db_connect_key
20
20
  self.db_transaction = db_transaction
21
21
  self.db.context = context
@@ -28,8 +28,8 @@ class SchemeLevel:
28
28
  self.id = 0
29
29
  self.guid = "" # guid
30
30
  self.scheme_id = 0 # 会员体系标识
31
- self.is_unify_valid = 0 # 是否统一有效期(1-是 0-差异化)
32
- self.valid_type = 0 # 有效期类型(1-永久有效 2-过期时间)
31
+ self.is_unify_valid = 0 # 是否统一有效期(1-是 0-差异化)
32
+ self.valid_type = 0 # 有效期类型(1-永久有效 2-过期时间)
33
33
  self.expire_type = 0 # 过期类型(1-指定天 2-指定具体时间)
34
34
  self.expire_year = 0 # 过期年
35
35
  self.expire_month = 0 # 过期月
@@ -13,17 +13,17 @@ from seven_framework.base_model import *
13
13
  from seven_cloudapp_frame.models.cache_model import *
14
14
 
15
15
  class StoreBaseModel(CacheModel):
16
- def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None):
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
17
  super(StoreBaseModel, self).__init__(StoreBase, sub_table)
18
18
  if not db_config_dict:
19
19
  db_config_dict = config.get_value(db_connect_key)
20
- self.db = MySQLHelper(db_config_dict)
20
+ self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
21
21
  self.db_connect_key = db_connect_key
22
22
  self.db_transaction = db_transaction
23
23
  self.db.context = context
24
24
 
25
25
  #方法扩展请继承此类
26
-
26
+
27
27
  class StoreBase:
28
28
 
29
29
  def __init__(self):
@@ -47,11 +47,10 @@ class StoreBase:
47
47
  @classmethod
48
48
  def get_field_list(self):
49
49
  return ['id', 'guid', 'business_id', 'scheme_id', 'platform_id', 'store_name', 'seller_nick', 'plat_store_id', 'init_integral_multiple', 'init_growth_config', 'incr_process_start_date', 'is_omid_merge', 'create_date', 'modify_date']
50
-
50
+
51
51
  @classmethod
52
52
  def get_primary_key(self):
53
53
  return "id"
54
54
 
55
55
  def __str__(self):
56
56
  return "store_base_tb"
57
-
@@ -3,11 +3,11 @@ from seven_framework.base_model import *
3
3
  from seven_cloudapp_frame.models.cache_model import *
4
4
 
5
5
  class StoreGoodsModel(CacheModel):
6
- def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None):
6
+ def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None, is_auto=False):
7
7
  super(StoreGoodsModel, self).__init__(StoreGoods, sub_table)
8
8
  if not db_config_dict:
9
9
  db_config_dict = config.get_value(db_connect_key)
10
- self.db = MySQLHelper(db_config_dict)
10
+ self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
11
11
  self.db_connect_key = db_connect_key
12
12
  self.db_transaction = db_transaction
13
13
  self.db.context = context
@@ -36,9 +36,9 @@ class StoreGoods:
36
36
  @classmethod
37
37
  def get_field_list(self):
38
38
  return [
39
- 'id', 'guid', 'business_id', 'store_id', 'platform_id',
40
- 'cid', 'goods_id', 'goods_code', 'goods_name',
41
- 'goods_pic', 'approve_status', 'price',
39
+ 'id', 'guid', 'business_id', 'store_id', 'platform_id',
40
+ 'cid', 'goods_id', 'goods_code', 'goods_name',
41
+ 'goods_pic', 'approve_status', 'price',
42
42
  'create_date', 'modify_date', 'is_delete'
43
43
  ]
44
44
 
@@ -47,4 +47,4 @@ class StoreGoods:
47
47
  return "id"
48
48
 
49
49
  def __str__(self):
50
- return "store_goods_tb"
50
+ return "store_goods_tb"
@@ -1,19 +1,18 @@
1
-
2
1
  #此文件由rigger自动生成
3
2
  from seven_framework.mysql import MySQLHelper
4
3
  from seven_framework.base_model import *
5
4
 
6
5
 
7
6
  class StorePrefixLogModel(BaseModel):
8
- def __init__(self, db_connect_key='db_cloudapp', sub_table=None, db_transaction=None, context=None):
7
+ def __init__(self, db_connect_key='db_cloudapp', sub_table=None, db_transaction=None, context=None, is_auto=False):
9
8
  super(StorePrefixLogModel, self).__init__(StorePrefixLog, sub_table)
10
- self.db = MySQLHelper(config.get_value(db_connect_key))
9
+ self.db = MySQLHelper(self.convert_db_config(db_connect_key, is_auto))
11
10
  self.db_connect_key = db_connect_key
12
11
  self.db_transaction = db_transaction
13
12
  self.db.context = context
14
13
 
15
14
  #方法扩展请继承此类
16
-
15
+
17
16
  class StorePrefixLog:
18
17
 
19
18
  def __init__(self):
@@ -22,17 +21,16 @@ class StorePrefixLog:
22
21
  self.store = "" # 店铺guid
23
22
  self.prefix = "" # 号段
24
23
  self.status = 0 # 状态(0-未生成 1已生成)
25
- self.created_at = "1900-01-01 00:00:00" #
24
+ self.created_at = "1900-01-01 00:00:00" #
26
25
  self.create_date = "1900-01-01 00:00:00" # 创建时间
27
26
 
28
27
  @classmethod
29
28
  def get_field_list(self):
30
29
  return ['id', 'store', 'prefix', 'status', 'created_at', 'create_date']
31
-
30
+
32
31
  @classmethod
33
32
  def get_primary_key(self):
34
33
  return "id"
35
34
 
36
35
  def __str__(self):
37
36
  return "store_prefix_log_tb"
38
-
@@ -11,11 +11,11 @@ from seven_framework.base_model import *
11
11
  from seven_cloudapp_frame.models.cache_model import *
12
12
 
13
13
  class SyncUserDataModel(CacheModel):
14
- def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None):
14
+ def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None, is_auto=False):
15
15
  super(SyncUserDataModel, self).__init__(SyncUserDataM, sub_table)
16
16
  if not db_config_dict:
17
17
  db_config_dict = config.get_value(db_connect_key)
18
- self.db = MySQLHelper(db_config_dict)
18
+ self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
19
19
  self.db_connect_key = db_connect_key
20
20
  self.db_transaction = db_transaction
21
21
  self.db.context = context
@@ -1,12 +1,23 @@
1
+ # -*- coding: utf-8 -*-
2
+ """
3
+ @Author: HuangJianYi
4
+ @Date: 2024-11-22 17:10:05
5
+ @LastEditTime: 2025-07-11 10:42:49
6
+ @LastEditors: HuangJianYi
7
+ @Description:
8
+ """
1
9
  #此文件由rigger自动生成
2
10
  from seven_framework.mysql import MySQLHelper
3
11
  from seven_framework.base_model import *
12
+ from seven_cloudapp_frame.models.cache_model import *
4
13
 
5
14
 
6
- class TaoBaoRdsItemModel(BaseModel):
7
- def __init__(self, db_connect_key='db_cloudapp', sub_table=None, db_transaction=None, context=None):
15
+ class TaoBaoRdsItemModel(CacheModel):
16
+ def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None, is_auto=False):
8
17
  super(TaoBaoRdsItemModel, self).__init__(TaoBaoRdsItem, sub_table)
9
- self.db = MySQLHelper(config.get_value(db_connect_key))
18
+ if not db_config_dict:
19
+ db_config_dict = config.get_value(db_connect_key)
20
+ self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
10
21
  self.db_connect_key = db_connect_key
11
22
  self.db_transaction = db_transaction
12
23
  self.db.context = context
@@ -4,11 +4,11 @@ from seven_framework.base_model import *
4
4
 
5
5
 
6
6
  class TaoBaoRdsRefundModel(BaseModel):
7
- def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None):
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
8
  super(TaoBaoRdsRefundModel, self).__init__(TaoBaoRdsRefund, sub_table)
9
9
  if not db_config_dict:
10
10
  db_config_dict = config.get_value(db_connect_key)
11
- self.db = MySQLHelper(db_config_dict)
11
+ self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
12
12
  self.db_connect_key = db_connect_key
13
13
  self.db_transaction = db_transaction
14
14
  self.db.context = context
@@ -4,11 +4,11 @@ from seven_framework.base_model import *
4
4
 
5
5
 
6
6
  class TaoBaoRdsTradeModel(BaseModel):
7
- def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None):
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
8
  super(TaoBaoRdsTradeModel, self).__init__(TaoBaoRdsTrade, sub_table)
9
9
  if not db_config_dict:
10
10
  db_config_dict = config.get_value(db_connect_key)
11
- self.db = MySQLHelper(db_config_dict)
11
+ self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
12
12
  self.db_connect_key = db_connect_key
13
13
  self.db_transaction = db_transaction
14
14
  self.db.context = context
@@ -11,11 +11,11 @@ from seven_framework.base_model import *
11
11
  from seven_cloudapp_frame.models.cache_model import *
12
12
 
13
13
  class TaobaoSourceBuyerModel(CacheModel):
14
- def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None):
14
+ def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None, is_auto=False):
15
15
  super(TaobaoSourceBuyerModel, self).__init__(TaobaoSourceBuyer, sub_table)
16
16
  if not db_config_dict:
17
17
  db_config_dict = config.get_value(db_connect_key)
18
- self.db = MySQLHelper(db_config_dict)
18
+ self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
19
19
  self.db_connect_key = db_connect_key
20
20
  self.db_transaction = db_transaction
21
21
  self.db.context = context
@@ -11,11 +11,11 @@ from seven_framework.base_model import *
11
11
  from seven_cloudapp_frame.models.cache_model import *
12
12
 
13
13
  class TaobaoSourceHistoryMemberModel(CacheModel):
14
- def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None):
14
+ def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None, is_auto=False):
15
15
  super(TaobaoSourceHistoryMemberModel, self).__init__(TaobaoSourceHistoryMember, sub_table)
16
16
  if not db_config_dict:
17
17
  db_config_dict = config.get_value(db_connect_key)
18
- self.db = MySQLHelper(db_config_dict)
18
+ self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
19
19
  self.db_connect_key = db_connect_key
20
20
  self.db_transaction = db_transaction
21
21
  self.db.context = context
@@ -12,11 +12,11 @@ from seven_framework.base_model import *
12
12
 
13
13
 
14
14
  class TradeGiveInfoModel(BaseModel):
15
- def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None):
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
16
  super(TradeGiveInfoModel, self).__init__(TradeGiveInfo, sub_table)
17
17
  if not db_config_dict:
18
18
  db_config_dict = config.get_value(db_connect_key)
19
- self.db = MySQLHelper(db_config_dict)
19
+ self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
20
20
  self.db_connect_key = db_connect_key
21
21
  self.db_transaction = db_transaction
22
22
  self.db.context = context
@@ -29,7 +29,7 @@ class TradeGiveInfo:
29
29
  super(TradeGiveInfo, self).__init__()
30
30
  self.id = 0 # id
31
31
  self.main_pay_order_no = "" # 主订单号
32
- self.process_type = 0 # 处理类型(1-奖励 2-扣减)
32
+ self.process_type = 0 # 处理类型(1-奖励 2-扣减)
33
33
  self.source_type = "" # 来源类型(1-初始化 2-增量订单)
34
34
  self.store_id = 0 # 店铺标识
35
35
  self.business_id = 0 # 商家标识
@@ -11,11 +11,11 @@ from seven_framework.base_model import *
11
11
  from seven_cloudapp_frame.models.cache_model import *
12
12
 
13
13
  class TradeInfoModel(CacheModel):
14
- def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None):
14
+ def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None, is_auto=False):
15
15
  super(TradeInfoModel, self).__init__(TradeInfo, sub_table)
16
16
  if not db_config_dict:
17
17
  db_config_dict = config.get_value(db_connect_key)
18
- self.db = MySQLHelper(db_config_dict)
18
+ self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
19
19
  self.db_connect_key = db_connect_key
20
20
  self.db_transaction = db_transaction
21
21
  self.db.context = context
@@ -12,11 +12,11 @@ from seven_framework.base_model import *
12
12
  from seven_cloudapp_frame.models.cache_model import *
13
13
 
14
14
  class TradeOrderModel(CacheModel):
15
- def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None):
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
16
  super(TradeOrderModel, self).__init__(TradeOrder, sub_table)
17
17
  if not db_config_dict:
18
18
  db_config_dict = config.get_value(db_connect_key)
19
- self.db = MySQLHelper(db_config_dict)
19
+ self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
20
20
  self.db_connect_key = db_connect_key
21
21
  self.db_transaction = db_transaction
22
22
  self.db.context = context
@@ -1,6 +1,14 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  """
3
3
  @Author: HuangJianYi
4
+ @Date: 2024-11-22 17:10:05
5
+ @LastEditTime: 2025-07-11 11:42:16
6
+ @LastEditors: HuangJianYi
7
+ @Description:
8
+ """
9
+ # -*- coding: utf-8 -*-
10
+ """
11
+ @Author: HuangJianYi
4
12
  @Date: 2024-11-06 18:48:03
5
13
  @LastEditTime: 2024-11-08 17:49:47
6
14
  @LastEditors: HuangJianYi
@@ -12,11 +20,11 @@ from seven_framework.base_model import *
12
20
 
13
21
 
14
22
  class TradeStatusInfoModel(BaseModel):
15
- def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None):
23
+ def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None, is_auto=False):
16
24
  super(TradeStatusInfoModel, self).__init__(TradeStatusInfo, sub_table)
17
25
  if not db_config_dict:
18
26
  db_config_dict = config.get_value(db_connect_key)
19
- self.db = MySQLHelper(db_config_dict)
27
+ self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
20
28
  self.db_connect_key = db_connect_key
21
29
  self.db_transaction = db_transaction
22
30
  self.db.context = context
@@ -1,11 +1,15 @@
1
1
  #此文件由rigger自动生成
2
2
  from seven_framework.mysql import MySQLHelper
3
3
  from seven_framework.base_model import *
4
+ from seven_cloudapp_frame.models.cache_model import *
4
5
 
5
- class TtRdsItemModel(BaseModel):
6
- def __init__(self, db_connect_key='db_cloudapp', sub_table=None, db_transaction=None, context=None):
6
+
7
+ class TtRdsItemModel(CacheModel):
8
+ def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None, is_auto=False):
7
9
  super(TtRdsItemModel, self).__init__(TtRdsItem, sub_table)
8
- self.db = MySQLHelper(config.get_value(db_connect_key))
10
+ if not db_config_dict:
11
+ db_config_dict = config.get_value(db_connect_key)
12
+ self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
9
13
  self.db_connect_key = db_connect_key
10
14
  self.db_transaction = db_transaction
11
15
  self.db.context = context
@@ -1,13 +1,15 @@
1
1
  #此文件由rigger自动生成
2
2
  from seven_framework.mysql import MySQLHelper
3
3
  from seven_framework.base_model import *
4
+ from seven_cloudapp_frame.models.cache_model import *
4
5
 
5
- class TtRdsRefundModel(BaseModel):
6
- def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None):
6
+
7
+ class TtRdsRefundModel(CacheModel):
8
+ def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None, is_auto=False):
7
9
  super(TtRdsRefundModel, self).__init__(TtRdsRefund, sub_table)
8
10
  if not db_config_dict:
9
11
  db_config_dict = config.get_value(db_connect_key)
10
- self.db = MySQLHelper(db_config_dict)
12
+ self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
11
13
  self.db_connect_key = db_connect_key
12
14
  self.db_transaction = db_transaction
13
15
  self.db.context = context
@@ -3,11 +3,11 @@ from seven_framework.mysql import MySQLHelper
3
3
  from seven_framework.base_model import *
4
4
 
5
5
  class TtRdsTradeModel(BaseModel):
6
- def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None):
6
+ def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None, is_auto=False):
7
7
  super(TtRdsTradeModel, self).__init__(TtRdsTrade, sub_table)
8
8
  if not db_config_dict:
9
9
  db_config_dict = config.get_value(db_connect_key)
10
- self.db = MySQLHelper(db_config_dict)
10
+ self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
11
11
  self.db_connect_key = db_connect_key
12
12
  self.db_transaction = db_transaction
13
13
  self.db.context = context
@@ -3,11 +3,11 @@ from seven_framework.mysql import MySQLHelper
3
3
  from seven_framework.base_model import *
4
4
 
5
5
  class TtSourceBuyerModel(BaseModel):
6
- def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None):
6
+ def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None, is_auto=False):
7
7
  super(TtSourceBuyerModel, self).__init__(TtSourceBuyer, sub_table)
8
8
  if not db_config_dict:
9
9
  db_config_dict = config.get_value(db_connect_key)
10
- self.db = MySQLHelper(db_config_dict)
10
+ self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
11
11
  self.db_connect_key = db_connect_key
12
12
  self.db_transaction = db_transaction
13
13
  self.db.context = context
@@ -11,11 +11,11 @@ from seven_framework.base_model import *
11
11
  from seven_cloudapp_frame.models.cache_model import *
12
12
 
13
13
  class TtSourceHistoryMemberModel(CacheModel):
14
- def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None):
14
+ def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None, is_auto=False):
15
15
  super(TtSourceHistoryMemberModel, self).__init__(TtSourceHistoryMember, sub_table)
16
16
  if not db_config_dict:
17
17
  db_config_dict = config.get_value(db_connect_key)
18
- self.db = MySQLHelper(db_config_dict)
18
+ self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
19
19
  self.db_connect_key = db_connect_key
20
20
  self.db_transaction = db_transaction
21
21
  self.db.context = context
@@ -41,7 +41,7 @@ class TtSourceHistoryMember:
41
41
  @classmethod
42
42
  def get_field_list(self):
43
43
  return [
44
- 'doudian_open_id', 'union_id', 'store_id', 'current_points', 'level', 'mobile', 'mask_mobile',
44
+ 'doudian_open_id', 'union_id', 'store_id', 'current_points', 'level', 'mobile', 'mask_mobile',
45
45
  'apply_time', 'order_total_amount', 'order_count', 'modify_time', 'create_time'
46
46
  ]
47
47
 
@@ -11,11 +11,11 @@ from seven_framework.base_model import *
11
11
  from seven_cloudapp_frame.models.cache_model import *
12
12
 
13
13
  class UserDataModel(CacheModel):
14
- def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None):
14
+ def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None, is_auto=False):
15
15
  super(UserDataModel, self).__init__(UserData, sub_table)
16
16
  if not db_config_dict:
17
17
  db_config_dict = config.get_value(db_connect_key)
18
- self.db = MySQLHelper(db_config_dict)
18
+ self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
19
19
  self.db_connect_key = db_connect_key
20
20
  self.db_transaction = db_transaction
21
21
  self.db.context = context
@@ -29,7 +29,7 @@ class UserData:
29
29
  self.user_id = "" # 客户ID
30
30
  self.ouid = "" # ouid
31
31
  self.business_id = 0 # 商家标识
32
- self.platform_id = 0 # 平台标识(1-淘宝 2-抖音 3-京东)
32
+ self.platform_id = 0 # 平台标识(1-淘宝 2-抖音 3-京东)
33
33
  self.store_id = 0 # 店铺标识
34
34
  self.plat_store_id = "" # 平台店铺标识
35
35
  self.first_order_date = "1970-01-01 00:00:00.000" # 首次下单时间
@@ -11,11 +11,11 @@ from seven_framework.base_model import *
11
11
  from seven_cloudapp_frame.models.cache_model import *
12
12
 
13
13
  class UserInfoModel(CacheModel):
14
- def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None):
14
+ def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None, is_auto=False):
15
15
  super(UserInfoModel, self).__init__(UserInfo, sub_table)
16
16
  if not db_config_dict:
17
17
  db_config_dict = config.get_value(db_connect_key)
18
- self.db = MySQLHelper(db_config_dict)
18
+ self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
19
19
  self.db_connect_key = db_connect_key
20
20
  self.db_transaction = db_transaction
21
21
  self.db.context = context
@@ -31,7 +31,7 @@ class UserInfo:
31
31
  self.avatar = "" # 头像
32
32
  self.business_id = 0 # 商家标识
33
33
  self.store_id = 0 # 店铺标识
34
- self.platform_id = 0 # 平台标识(1-淘宝 2-抖音 3-京东)
34
+ self.platform_id = 0 # 平台标识(1-淘宝 2-抖音 3-京东)
35
35
  self.scheme_id = 0 # 会员体系标识
36
36
  self.one_id = "" # 会员id
37
37
  self.omid = "" # 品牌用户标识(淘宝-omid 抖音-unionID)
@@ -50,17 +50,17 @@ class UserInfo:
50
50
  self.career = "" # 职业
51
51
  self.marital_status = 0 # 婚姻状态(0-未知 1-已婚 2-未婚)
52
52
  self.init_one_id = "" # 初始one_id
53
- self.behavior_type = 0 # 最近入会行为类型(1-注册 2-绑定 3-激活)
54
- self.plat_store_id = "" # 平台店铺标识
55
- self.active_status = 0 # 会员激活状态(1-激活 0-未激活)
56
- self.active_date = "1970-01-01 00:00:00.000" # 会员激活时间
53
+ self.behavior_type = 0 # 最近入会行为类型(1-注册 2-绑定 3-激活)
54
+ self.plat_store_id = "" # 平台店铺标识
55
+ self.active_status = 0 # 会员激活状态(1-激活 0-未激活)
56
+ self.active_date = "1970-01-01 00:00:00.000" # 会员激活时间
57
57
  self.join_source_type = 0 # 入会来源类型(1-会员历史备份数据导入 2-天猫会员通 3-抖音会员通)
58
58
  self.join_source_title = "" # 入会来源说明
59
59
  self.first_join_date = "1970-01-01 00:00:00.000" # 首次入会时间
60
60
  self.last_join_date = "1970-01-01 00:00:00.000" # 最近入会时间
61
- self.extend_info = {} # 扩展信息json("real_name":"姓名","birthday":"生日","sex":"性别","email":"邮箱","address":"所在地址","career":"职业","marital_status":"婚姻状态")
62
- self.user_status = 1 # 用户状态(0-删除 1-正常)
63
- self.member_status = 2 # 会员状态(1-会员 2-非会员)
61
+ self.extend_info = {} # 扩展信息json("real_name":"姓名","birthday":"生日","sex":"性别","email":"邮箱","address":"所在地址","career":"职业","marital_status":"婚姻状态")
62
+ self.user_status = 1 # 用户状态(0-删除 1-正常)
63
+ self.member_status = 2 # 会员状态(1-会员 2-非会员)
64
64
  self.is_join_settled = 0 # 是否入会结算过(1-是 0-否)
65
65
  self.settled_date = "1970-01-01 00:00:00.000" # 结算时间
66
66
  self.create_date = "1970-01-01 00:00:00.000" # 创建时间
@@ -11,11 +11,11 @@ from seven_framework.base_model import *
11
11
  from seven_cloudapp_frame.models.cache_model import *
12
12
 
13
13
  class UserTrendsModel(CacheModel):
14
- def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None):
14
+ def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None, is_auto=False):
15
15
  super(UserTrendsModel, self).__init__(UserTrends, sub_table)
16
16
  if not db_config_dict:
17
17
  db_config_dict = config.get_value(db_connect_key)
18
- self.db = MySQLHelper(db_config_dict)
18
+ self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
19
19
  self.db_connect_key = db_connect_key
20
20
  self.db_transaction = db_transaction
21
21
  self.db.context = context
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hk-cdp
3
- Version: 1.0.83
3
+ Version: 1.0.84
4
4
  Summary: hk cdp
5
5
  Home-page: http://gitlab.tdtech.gao7.com/newfire/hk_cap/hk_cdp/server/hk_cdp.git
6
6
  Author: seven
@@ -14,7 +14,7 @@ with open("README.md", "r", encoding='utf-8') as fh:
14
14
 
15
15
  setup(
16
16
  name="hk_cdp",
17
- version="1.0.83",
17
+ version="1.0.84",
18
18
  author="seven",
19
19
  author_email="tech@gao7.com",
20
20
  description="hk cdp",
File without changes
File without changes
File without changes
File without changes
File without changes