Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
项目统一框架
amos-boot-biz
Commits
02030aa0
Commit
02030aa0
authored
Jul 12, 2021
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
ef095857
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
FirefightersMapper.xml
...mmon-api/src/main/resources/mapper/FirefightersMapper.xml
+2
-2
FirefightersController.java
...oot/module/jcs/biz/controller/FirefightersController.java
+1
-1
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/FirefightersMapper.xml
View file @
02030aa0
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<select
id=
"getFirefighters"
<select
id=
"getFirefighters"
resultType=
"com.yeejoin.amos.boot.module.common.api.entity.Firefighters"
>
resultType=
"com.yeejoin.amos.boot.module.common.api.entity.Firefighters"
>
select a.* from cb_firefighters a LEFT JOIN cb_firefighters_post b on
select a.* from cb_firefighters a LEFT JOIN cb_firefighters_post b on
a.sequence_nbr=b.firefighters_id where a.is_delete=0 ORDER BY a.rec_date
DESC
a.sequence_nbr=b.firefighters_id where a.is_delete=0 ORDER BY a.rec_date
<if
test=
'par.postQualification!=null'
>
and b.post_qualification_code = #{par.postQualification}
</if>
<if
test=
'par.postQualification!=null'
>
and b.post_qualification_code = #{par.postQualification}
</if>
<if
test=
'par.areasExpertise!=null'
>
and b.areas_expertise_code= #{par.areasExpertise}"
</if>
<if
test=
'par.areasExpertise!=null'
>
and b.areas_expertise_code= #{par.areasExpertise}"
</if>
<if
test=
'par.name!=null'
>
and a.name= #{par.name}
</if>
<if
test=
'par.name!=null'
>
and a.name= #{par.name}
</if>
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<select
id=
"getFirefightersCount"
resultType=
"Map"
>
<select
id=
"getFirefightersCount"
resultType=
"Map"
>
select COUNT(a.sequence_nbr) num from cb_firefighters a LEFT JOIN
select COUNT(a.sequence_nbr) num from cb_firefighters a LEFT JOIN
cb_firefighters_post b on a.sequence_nbr=b.firefighters_id where
cb_firefighters_post b on a.sequence_nbr=b.firefighters_id where
a.is_delete=0 ORDER BY a.rec_date
DESC
a.is_delete=0 ORDER BY a.rec_date
<if
test=
'par.postQualification!=null'
>
and b.post_qualification_code = #{par.postQualification}
</if>
<if
test=
'par.postQualification!=null'
>
and b.post_qualification_code = #{par.postQualification}
</if>
<if
test=
'par.areasExpertise!=null'
>
and b.areas_expertise_code= #{par.areasExpertise}"
</if>
<if
test=
'par.areasExpertise!=null'
>
and b.areas_expertise_code= #{par.areasExpertise}"
</if>
<if
test=
'par.name!=null'
>
and a.name= #{par.name}
</if>
<if
test=
'par.name!=null'
>
and a.name= #{par.name}
</if>
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/FirefightersController.java
View file @
02030aa0
...
@@ -118,7 +118,7 @@ public class FirefightersController extends BaseController {
...
@@ -118,7 +118,7 @@ public class FirefightersController extends BaseController {
queryWrapper
.
eq
(
"firefighters_id"
,
id
);
queryWrapper
.
eq
(
"firefighters_id"
,
id
);
queryWrapper
.
eq
(
"is_delete"
,
0
);
queryWrapper
.
eq
(
"is_delete"
,
0
);
List
<
FirefightersJacket
>
firefightersJacket
=
iFirefightersJacketService
.
list
(
queryWrapper
);
List
<
FirefightersJacket
>
firefightersJacket
=
iFirefightersJacketService
.
list
(
queryWrapper
);
if
(
firefightersJacket
!=
null
)
{
if
(
firefightersJacket
!=
null
&&
firefightersJacket
.
size
()>
0
)
{
throw
new
RuntimeException
(
"该消防还有在装装备!"
);
throw
new
RuntimeException
(
"该消防还有在装装备!"
);
}
}
try
{
try
{
...
...
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