From c606a7210097ca126fcf9fdb123cebf2a964f51d Mon Sep 17 00:00:00 2001
From: xiejun <xiejun@vci-tech.com>
Date: 星期四, 26 十二月 2024 16:51:44 +0800
Subject: [PATCH] 集成获取mdm分发通用数据格式接口集成 日志输出到日志文件中
---
Source/BladeX-Tool/blade-starter-tenant/src/main/java/org/springblade/core/tenant/constant/TenantBaseConstant.java | 76 ++++++++++++++++++++++++++++++++++++++
1 files changed, 76 insertions(+), 0 deletions(-)
diff --git a/Source/BladeX-Tool/blade-starter-tenant/src/main/java/org/springblade/core/tenant/constant/TenantBaseConstant.java b/Source/BladeX-Tool/blade-starter-tenant/src/main/java/org/springblade/core/tenant/constant/TenantBaseConstant.java
new file mode 100644
index 0000000..a1a40da
--- /dev/null
+++ b/Source/BladeX-Tool/blade-starter-tenant/src/main/java/org/springblade/core/tenant/constant/TenantBaseConstant.java
@@ -0,0 +1,76 @@
+/*
+ * Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * Neither the name of the dreamlu.net developer nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ * Author: Chill 搴勯獮 (smallchill@163.com)
+ */
+package org.springblade.core.tenant.constant;
+
+/**
+ * 绉熸埛甯搁噺.
+ *
+ * @author Chill
+ */
+public interface TenantBaseConstant {
+
+ /**
+ * 绉熸埛鏁版嵁婧愮紦瀛樺悕
+ */
+ String TENANT_DATASOURCE_CACHE = "blade:datasource";
+
+ /**
+ * 绉熸埛鏁版嵁婧愮紦瀛橀敭
+ */
+ String TENANT_DATASOURCE_KEY = "tenant:id:";
+
+ /**
+ * 绉熸埛鏁版嵁婧愮紦瀛橀敭
+ */
+ String TENANT_DATASOURCE_EXIST_KEY = "tenant:exist:";
+
+ /**
+ * 绉熸埛鍔ㄦ�佹暟鎹簮閿�
+ */
+ String TENANT_DYNAMIC_DATASOURCE_PROP = "blade.tenant.dynamic-datasource";
+
+ /**
+ * 绉熸埛鍏ㄥ眬鍔ㄦ�佹暟鎹簮鍒囬潰閿�
+ */
+ String TENANT_DYNAMIC_GLOBAL_PROP = "blade.tenant.dynamic-global";
+
+ /**
+ * 绉熸埛鏄惁瀛樺湪鏁版嵁婧�
+ */
+ String TENANT_DATASOURCE_EXIST_STATEMENT = "select datasource_id from blade_tenant WHERE is_deleted = 0 AND tenant_id = ?";
+
+ /**
+ * 绉熸埛鏁版嵁婧愬熀纭�SQL
+ */
+ String TENANT_DATASOURCE_BASE_STATEMENT = "SELECT tenant_id as tenantId, driver_class as driverClass, url, username, password from blade_tenant tenant LEFT JOIN blade_datasource datasource ON tenant.datasource_id = datasource.id ";
+
+ /**
+ * 绉熸埛鍗曟暟鎹簮SQL
+ */
+ String TENANT_DATASOURCE_SINGLE_STATEMENT = TENANT_DATASOURCE_BASE_STATEMENT + "WHERE tenant.is_deleted = 0 AND tenant.tenant_id = ?";
+
+ /**
+ * 绉熸埛闆嗗姩鎬佹暟鎹簮SQL
+ */
+ String TENANT_DATASOURCE_GROUP_STATEMENT = TENANT_DATASOURCE_BASE_STATEMENT + "WHERE tenant.is_deleted = 0";
+
+ /**
+ * 绉熸埛鏈壘鍒拌繑鍥炰俊鎭�
+ */
+ String TENANT_DATASOURCE_NOT_FOUND = "鏈壘鍒扮鎴蜂俊鎭�,鏁版嵁婧愬姞杞藉け璐�!";
+
+}
--
Gitblit v1.9.3