Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xzxt-app-report
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
Administrator
xzxt-app-report
Commits
bd3fb096
Commit
bd3fb096
authored
Jul 29, 2021
by
lilei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提取之前切换数据源查询案件
parent
74106a68
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
8 deletions
+22
-8
src/main/java/org/springblade/founder/asj/mapper/AjDetailMapper.java
+4
-0
src/main/java/org/springblade/founder/asj/mapper/AjDetailMapper.xml
+9
-0
src/main/java/org/springblade/founder/asj/service/StAsjXxtqService.java
+9
-8
No files found.
src/main/java/org/springblade/founder/asj/mapper/AjDetailMapper.java
View file @
bd3fb096
package
org
.
springblade
.
founder
.
asj
.
mapper
;
import
com.baomidou.dynamic.datasource.annotation.DS
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springblade.founder.asj.entity.*
;
import
org.springblade.founder.flwsfj.entity.TbStAsjFlws
;
...
...
@@ -14,7 +15,10 @@ import java.util.Map;
@Component
@Mapper
public
interface
AjDetailMapper
{
public
TbStAsj
getTbStAsjByAsjbh
(
String
asjbh
);
@DS
(
"db1"
)
public
TbStAsj
getAsjByAsjbh
(
String
asjbh
);
public
List
<
TbXwZbfzxyr
>
getFzxyrxxByAsjbh
(
Map
map
);
public
Integer
getFzxyrxxByAsjbhTotalCount
(
String
asjbh
);
...
...
src/main/java/org/springblade/founder/asj/mapper/AjDetailMapper.xml
View file @
bd3fb096
...
...
@@ -204,8 +204,17 @@
from TB_ST_ASJ asj LEFT JOIN tb_xw_asjcz asjcz on asj.asjbh=asjcz.asjbh
WHERE asj.asjbh=#{asjbh,jdbcType=VARCHAR}
and asj.xxsc_pdbz='0'
</select>
<select
id=
"getAsjByAsjbh"
resultType=
"org.springblade.founder.asj.entity.TbStAsj"
parameterType=
"java.lang.String"
>
select
asj.xxrsksj as xxrsksj,
asj.asjbh as asjbh
from TB_ST_ASJ asj LEFT JOIN tb_xw_asjcz asjcz on asj.asjbh=asjcz.asjbh
WHERE asj.asjbh=#{asjbh,jdbcType=VARCHAR}
and asj.xxsc_pdbz='0'
</select>
<select
id=
"getFzxyrxxByAsjbh"
parameterType=
"java.util.Map"
resultType=
"org.springblade.founder.asj.entity.TbXwZbfzxyr"
>
select
xyr.XXZJBH,
...
...
src/main/java/org/springblade/founder/asj/service/StAsjXxtqService.java
View file @
bd3fb096
...
...
@@ -190,8 +190,8 @@ public class StAsjXxtqService {
query
.
setXxscPdbz
(
"0"
);
StAsj
data
=
stAsjService
.
getOne
(
Condition
.
getQueryWrapper
(
query
));
String
token
=
getToken
();
TbStAsj
tbStAsj
ByAsjbh
=
ajDetailMapper
.
getTbStAsjByAsjbh
(
asjbh
);
if
(
tbStAsj
ByAsjbh
==
null
){
TbStAsj
tbStAsj
=
getTbStAsj
(
asjbh
);
if
(
tbStAsj
==
null
){
getSysjjcUrl
(
asjbh
,
token
);
}
if
(
data
!=
null
){
...
...
@@ -220,8 +220,8 @@ public class StAsjXxtqService {
List
<
XwZbfzxyr
>
finalData
=
new
ArrayList
<>();
String
errorMsg
=
""
;
String
token
=
getToken
();
TbStAsj
tbStAsj
ByAsjbh
=
ajDetailMapper
.
getTbStAsjByAsjbh
(
asjbh
);
if
(
tbStAsj
ByAsjbh
!
=
null
){
TbStAsj
tbStAsj
=
getTbStAsj
(
asjbh
);
if
(
tbStAsj
=
=
null
){
getSysjjcUrl
(
asjbh
,
token
);
}
if
(
data
!=
null
&&
!
data
.
isEmpty
()){
...
...
@@ -307,8 +307,8 @@ public class StAsjXxtqService {
List
<
XwRybh
>
finalData
=
new
ArrayList
<>();
String
errorMsg
=
""
;
String
token
=
getToken
();
TbStAsj
tbStAsj
ByAsjbh
=
ajDetailMapper
.
getTbStAsjByAsjbh
(
asjbh
);
if
(
tbStAsj
ByAsjbh
!
=
null
){
TbStAsj
tbStAsj
=
getTbStAsj
(
asjbh
);
if
(
tbStAsj
=
=
null
){
getSysjjcUrl
(
asjbh
,
token
);
}
if
(
data
!=
null
&&
!
data
.
isEmpty
()){
...
...
@@ -569,11 +569,12 @@ public class StAsjXxtqService {
lxr
=
"<br/>请联系赵跃 :18781955078"
;
break
;
}
return
lxr
;
}
private
TbStAsj
getTbStAsj
(
String
asjbh
){
return
ajDetailMapper
.
getTbStAsjByAsjbh
(
asjbh
);
}
}
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