Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-office-web-sit
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴迪
gs1-office-web-sit
Commits
c3b2ec39
Commit
c3b2ec39
authored
Feb 27, 2024
by
吴迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【新增】修改bug
parent
9ca496c0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
ShortCodeDao.java
src/main/java/io/office/modules/manage/dao/ShortCodeDao.java
+2
-1
application-prod.yml
src/main/resources/application-prod.yml
+1
-1
ShortCodeDao.xml
src/main/resources/mapper/manage/ShortCodeDao.xml
+1
-1
No files found.
src/main/java/io/office/modules/manage/dao/ShortCodeDao.java
View file @
c3b2ec39
...
@@ -2,6 +2,7 @@ package io.office.modules.manage.dao;
...
@@ -2,6 +2,7 @@ package io.office.modules.manage.dao;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
io.office.datasource.annotation.DataSource
;
import
io.office.modules.manage.entity.ShortCodeEntity
;
import
io.office.modules.manage.entity.ShortCodeEntity
;
import
io.office.modules.manage.vo.request.ShortCodeVo
;
import
io.office.modules.manage.vo.request.ShortCodeVo
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
...
@@ -18,6 +19,6 @@ import java.util.List;
...
@@ -18,6 +19,6 @@ import java.util.List;
@Mapper
@Mapper
public
interface
ShortCodeDao
extends
BaseMapper
<
ShortCodeEntity
>
{
public
interface
ShortCodeDao
extends
BaseMapper
<
ShortCodeEntity
>
{
@DataSource
(
"slave2"
)
List
<
ShortCodeVo
>
getList
(
ShortCodeVo
shortCodeVo
);
List
<
ShortCodeVo
>
getList
(
ShortCodeVo
shortCodeVo
);
}
}
src/main/resources/application-prod.yml
View file @
c3b2ec39
...
@@ -57,7 +57,7 @@ dynamic:
...
@@ -57,7 +57,7 @@ dynamic:
password
:
ryr@3647we
password
:
ryr@3647we
slave2
:
slave2
:
driver-class-name
:
com.microsoft.sqlserver.jdbc.SQLServerDriver
driver-class-name
:
com.microsoft.sqlserver.jdbc.SQLServerDriver
url
:
jdbc:sqlserver://192.168.0.85:1433;DatabaseName=
gs108
url
:
jdbc:sqlserver://192.168.0.85:1433;DatabaseName=
center_outer
username
:
test2
username
:
test2
password
:
test2
password
:
test2
##多数据源的配置
##多数据源的配置
...
...
src/main/resources/mapper/manage/ShortCodeDao.xml
View file @
c3b2ec39
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
<select
id=
"getList"
parameterType=
"io.office.modules.manage.vo.request.ShortCodeVo"
resultType=
"io.office.modules.manage.vo.request.ShortCodeVo"
>
<select
id=
"getList"
parameterType=
"io.office.modules.manage.vo.request.ShortCodeVo"
resultType=
"io.office.modules.manage.vo.request.ShortCodeVo"
>
select top 300 * from
center_outer.
short_code a left join firm b on a.f_id=b.f_id
select top 300 * from short_code a left join firm b on a.f_id=b.f_id
<where>
<where>
<if
test=
"shortCode!=null and shortCode!=''"
>
<if
test=
"shortCode!=null and shortCode!=''"
>
a.short_code = #{shortCode}
a.short_code = #{shortCode}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment