Explorar o código

1、修改数据库链接

周兴 %!s(int64=3) %!d(string=hai) anos
pai
achega
58593be38e

+ 1 - 1
src/main/java/com/dk/oauth/entity/AuthAccessToken.java

@@ -18,7 +18,7 @@ import java.util.Date;
  */
  */
 @Data
 @Data
 @Accessors(chain = true)
 @Accessors(chain = true)
-@TableName("auth_access_token")
+@TableName(value = "auth_access_token",schema="core")
 @ApiModel(value = "auth_access_token对象", description = "${tableInfo.comment}")
 @ApiModel(value = "auth_access_token对象", description = "${tableInfo.comment}")
 public class AuthAccessToken {
 public class AuthAccessToken {
     private static final long serialVersionUID = 609728602009854139L;
     private static final long serialVersionUID = 609728602009854139L;

+ 1 - 1
src/main/java/com/dk/oauth/entity/AuthClient.java

@@ -19,7 +19,7 @@ import java.util.Date;
  */
  */
 @Data
 @Data
 @Accessors(chain = true)
 @Accessors(chain = true)
-@TableName("auth_client")
+@TableName(value = "auth_client",schema="core")
 @ApiModel(value = "auth_client对象", description = "${tableInfo.comment}")
 @ApiModel(value = "auth_client对象", description = "${tableInfo.comment}")
 public class AuthClient implements Serializable {
 public class AuthClient implements Serializable {
     private static final long serialVersionUID = 797527324359363898L;
     private static final long serialVersionUID = 797527324359363898L;

+ 1 - 1
src/main/java/com/dk/oauth/entity/AuthCode.java

@@ -19,7 +19,7 @@ import java.util.Date;
  */
  */
 @Data
 @Data
 @Accessors(chain = true)
 @Accessors(chain = true)
-@TableName("auth_code")
+@TableName(value = "auth_code",schema="core")
 @ApiModel(value = "auth_code对象", description = "${tableInfo.comment}")
 @ApiModel(value = "auth_code对象", description = "${tableInfo.comment}")
 public class AuthCode {
 public class AuthCode {
     private static final long serialVersionUID = 530532860710429881L;
     private static final long serialVersionUID = 530532860710429881L;

+ 1 - 1
src/main/java/com/dk/oauth/entity/AuthUserLoginLog.java

@@ -19,7 +19,7 @@ import java.util.Date;
  */
  */
 @Data
 @Data
 @Accessors(chain = true)
 @Accessors(chain = true)
-@TableName("auth_user_login_log")
+@TableName(value = "auth_user_login_log",schema="core")
 @ApiModel(value = "auth_user_login_log对象", description = "${tableInfo.comment}")
 @ApiModel(value = "auth_user_login_log对象", description = "${tableInfo.comment}")
 public class AuthUserLoginLog {
 public class AuthUserLoginLog {
     private static final long serialVersionUID = -92351792239110203L;
     private static final long serialVersionUID = -92351792239110203L;

+ 1 - 1
src/main/resources/dev/bootstrap.yml

@@ -12,7 +12,7 @@ spring:
         namespace: mes-dev
         namespace: mes-dev
   datasource:
   datasource:
     driver-class-name: org.postgresql.Driver
     driver-class-name: org.postgresql.Driver
-    url: jdbc:postgresql://s.dev01.dkiboss.com:15000/dkmes3?currentSchema=core
+    url: jdbc:postgresql://s.dev01.dkiboss.com:15000/dkmes3
     username: mes_dev
     username: mes_dev
     password: dk
     password: dk
     type: com.alibaba.druid.pool.DruidDataSource
     type: com.alibaba.druid.pool.DruidDataSource

+ 1 - 1
src/main/resources/mapper/AuthAccessTokenMapper.xml

@@ -23,7 +23,7 @@
     <select id="pageQuery" resultMap="AuthAccessTokenMap">
     <select id="pageQuery" resultMap="AuthAccessTokenMap">
         SELECT
         SELECT
           id, client_id, token_id, token_expired_seconds, authentication_id, user_id, fty_id, token_type, refresh_token, refresh_token_expired_seconds, create_date, creater, last_update_by, last_update_date
           id, client_id, token_id, token_expired_seconds, authentication_id, user_id, fty_id, token_type, refresh_token, refresh_token_expired_seconds, create_date, creater, last_update_by, last_update_date
-        FROM auth_access_token
+        FROM core.auth_access_token
         <where>
         <where>
             <if test="authAccessTokenDto.id != null and authAccessTokenDto.id != ''">
             <if test="authAccessTokenDto.id != null and authAccessTokenDto.id != ''">
                 AND id = #{authAccessTokenDto.id}
                 AND id = #{authAccessTokenDto.id}

+ 1 - 1
src/main/resources/mapper/AuthClientMapper.xml

@@ -26,7 +26,7 @@
     <select id="pageQuery" resultMap="AuthClientMap">
     <select id="pageQuery" resultMap="AuthClientMap">
         SELECT
         SELECT
           id, client_name, client_id, client_secret, client_uri, client_icon_uri, resource_ids, scope, grant_types, redirect_uri, state, description, creater, create_date, create_org, last_update_by, last_update_date
           id, client_name, client_id, client_secret, client_uri, client_icon_uri, resource_ids, scope, grant_types, redirect_uri, state, description, creater, create_date, create_org, last_update_by, last_update_date
-        FROM auth_client
+        FROM core.auth_client
         <where>
         <where>
             <if test="authClientDto.id != null and authClientDto.id != ''">
             <if test="authClientDto.id != null and authClientDto.id != ''">
                 AND id = #{authClientDto.id}
                 AND id = #{authClientDto.id}

+ 1 - 1
src/main/resources/mapper/AuthCodeMapper.xml

@@ -17,7 +17,7 @@
     <select id="pageQuery" resultMap="AuthCodeMap">
     <select id="pageQuery" resultMap="AuthCodeMap">
         SELECT
         SELECT
           code, user_id, client_id, create_date, state, creater, last_update_by, last_update_date
           code, user_id, client_id, create_date, state, creater, last_update_by, last_update_date
-        FROM auth_code
+        FROM core.auth_code
         <where>
         <where>
             <if test="authCodeDto.code != null and authCodeDto.code != ''">
             <if test="authCodeDto.code != null and authCodeDto.code != ''">
                 AND code = #{authCodeDto.code}
                 AND code = #{authCodeDto.code}

+ 1 - 1
src/main/resources/mapper/AuthUserLoginLogMapper.xml

@@ -24,7 +24,7 @@
     <select id="pageQuery" resultMap="AuthUserLoginLogMap">
     <select id="pageQuery" resultMap="AuthUserLoginLogMap">
         SELECT
         SELECT
           id, user_id, login_type, command, version, client, device_id, last_ip, login_os, osver, creater, create_date, create_org, last_update_by, last_update_date
           id, user_id, login_type, command, version, client, device_id, last_ip, login_os, osver, creater, create_date, create_org, last_update_by, last_update_date
-        FROM auth_user_login_log
+        FROM core.auth_user_login_log
         <where>
         <where>
             <if test="authUserLoginLogDto.id != null and authUserLoginLogDto.id != ''">
             <if test="authUserLoginLogDto.id != null and authUserLoginLogDto.id != ''">
                 AND id = #{authUserLoginLogDto.id}
                 AND id = #{authUserLoginLogDto.id}

+ 1 - 1
src/main/resources/test/bootstrap.yml

@@ -13,7 +13,7 @@ spring:
         namespace: mes-dev
         namespace: mes-dev
   datasource:
   datasource:
     driver-class-name: org.postgresql.Driver
     driver-class-name: org.postgresql.Driver
-    url: jdbc:postgresql://s.dev01.dkiboss.com:15000/dkmes3?currentSchema=core
+    url: jdbc:postgresql://s.dev01.dkiboss.com:15000/dkmes3
     username: mes_dev
     username: mes_dev
     password: dk
     password: dk
     type: com.alibaba.druid.pool.DruidDataSource
     type: com.alibaba.druid.pool.DruidDataSource