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
ab4225e3
Commit
ab4225e3
authored
Dec 17, 2021
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加筛选条件
parent
eae3956e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
0 deletions
+16
-0
FireTeamListDto.java
...join/amos/boot/module/common/api/dto/FireTeamListDto.java
+7
-0
FireStationMapper.java
...amos/boot/module/common/api/mapper/FireStationMapper.java
+2
-0
FireTeamMapper.xml
...e-common-api/src/main/resources/mapper/FireTeamMapper.xml
+2
-0
FirefightersMapper.xml
...mmon-api/src/main/resources/mapper/FirefightersMapper.xml
+2
-0
OrgUsrMapper.xml
...ule-common-api/src/main/resources/mapper/OrgUsrMapper.xml
+3
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/dto/FireTeamListDto.java
View file @
ab4225e3
...
@@ -32,4 +32,11 @@ public class FireTeamListDto {
...
@@ -32,4 +32,11 @@ public class FireTeamListDto {
@ApiModelProperty
(
value
=
"树节点子节点id集合"
)
@ApiModelProperty
(
value
=
"树节点子节点id集合"
)
private
List
<
String
>
nodeIds
;
private
List
<
String
>
nodeIds
;
@ApiModelProperty
(
value
=
"地址"
)
private
String
address
;
@ApiModelProperty
(
value
=
"所属单位"
)
private
String
company
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/mapper/FireStationMapper.java
View file @
ab4225e3
...
@@ -27,6 +27,7 @@ public interface FireStationMapper extends BaseMapper<FireStation> {
...
@@ -27,6 +27,7 @@ public interface FireStationMapper extends BaseMapper<FireStation> {
+
"<if test='par.name!=null'> and a.name like CONCAT('%',#{par.name},'%') </if>"
+
"<if test='par.name!=null'> and a.name like CONCAT('%',#{par.name},'%') </if>"
+
"<if test='par.bizCompanyId!=null'> and a.biz_company_id = #{par.bizCompanyId} </if>"
+
"<if test='par.bizCompanyId!=null'> and a.biz_company_id = #{par.bizCompanyId} </if>"
+
"<if test='par.bizCompanyCode!=null'> and a.biz_company_code like CONCAT('',#{par.bizCompanyCode},'%') </if>"
+
"<if test='par.bizCompanyCode!=null'> and a.biz_company_code like CONCAT('',#{par.bizCompanyCode},'%') </if>"
+
"<if test='par.address!=null'> and a.address like CONCAT('',#{par.address},'%') </if>"
+
" order by a.rec_date desc limit #{pageNum},#{pageSize}"
+
" order by a.rec_date desc limit #{pageNum},#{pageSize}"
+
"</script>"
)
+
"</script>"
)
List
<
FireStationDto
>
getFireStation
(
@Param
(
"pageNum"
)
int
pageNum
,
@Param
(
"pageSize"
)
int
pageSize
,
@Param
(
"par"
)
FireStationDto
par
);
List
<
FireStationDto
>
getFireStation
(
@Param
(
"pageNum"
)
int
pageNum
,
@Param
(
"pageSize"
)
int
pageSize
,
@Param
(
"par"
)
FireStationDto
par
);
...
@@ -35,6 +36,7 @@ public interface FireStationMapper extends BaseMapper<FireStation> {
...
@@ -35,6 +36,7 @@ public interface FireStationMapper extends BaseMapper<FireStation> {
+
"<if test='par.name!=null'> and cb_fire_station.name like CONCAT('%',#{par.name},'%') </if>"
+
"<if test='par.name!=null'> and cb_fire_station.name like CONCAT('%',#{par.name},'%') </if>"
+
"<if test='par.bizCompanyId!=null'> and cb_fire_station.biz_company_id = #{par.bizCompanyId} </if>"
+
"<if test='par.bizCompanyId!=null'> and cb_fire_station.biz_company_id = #{par.bizCompanyId} </if>"
+
"<if test='par.bizCompanyCode!=null'> and cb_fire_station.biz_company_code like CONCAT('',#{par.bizCompanyCode},'%') </if>"
+
"<if test='par.bizCompanyCode!=null'> and cb_fire_station.biz_company_code like CONCAT('',#{par.bizCompanyCode},'%') </if>"
+
"<if test='par.address!=null'> and cb_fire_station.address like CONCAT('',#{par.address},'%') </if>"
+
"</script>"
)
+
"</script>"
)
Map
<
String
,
Long
>
getFireStationCount
(
@Param
(
"par"
)
FireStationDto
par
);
Map
<
String
,
Long
>
getFireStationCount
(
@Param
(
"par"
)
FireStationDto
par
);
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/FireTeamMapper.xml
View file @
ab4225e3
...
@@ -44,7 +44,9 @@
...
@@ -44,7 +44,9 @@
<if
test=
'par.parent != null'
>
and a.parent = #{par.parent}
</if>
<if
test=
'par.parent != null'
>
and a.parent = #{par.parent}
</if>
<if
test=
'par.typeCode != null'
>
and a.type_code = #{par.typeCode}
</if>
<if
test=
'par.typeCode != null'
>
and a.type_code = #{par.typeCode}
</if>
<if
test=
'par.companyCode != null'
>
and a.company_code = #{par.companyCode}
</if>
<if
test=
'par.companyCode != null'
>
and a.company_code = #{par.companyCode}
</if>
<if
test=
'par.company != null and par.company != -1'
>
and a.company = #{par.company}
</if>
<if
test=
'par.name != null'
>
and a.name like concat('%', #{par.name}, '%')
</if>
<if
test=
'par.name != null'
>
and a.name like concat('%', #{par.name}, '%')
</if>
<if
test=
'par.address != null'
>
and a.address like concat('%', #{par.address}, '%')
</if>
<if
test=
'par.nodeType != null and par.nodeType == "1" and par.nodeIds != null'
>
<if
test=
'par.nodeType != null and par.nodeType == "1" and par.nodeIds != null'
>
and a.company in
and a.company in
<foreach
collection=
"par.nodeIds"
separator=
","
open=
"("
item=
"nodeId"
close=
")"
>
<foreach
collection=
"par.nodeIds"
separator=
","
open=
"("
item=
"nodeId"
close=
")"
>
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/FirefightersMapper.xml
View file @
ab4225e3
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
<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 like concat ('%',#{par.name},'%')
</if>
<if
test=
'par.name!=null'
>
and a.name like concat ('%',#{par.name},'%')
</if>
<if
test=
'par.state!=null'
>
and a.state_code= #{par.state}
</if>
<if
test=
'par.state!=null'
>
and a.state_code= #{par.state}
</if>
<if
test=
'par.company!=null and par.company!= -1'
>
and a.company= #{par.company}
</if>
<if
test=
'par.fireTeamId!=null'
>
and a.fire_team_id= #{par.fireTeamId}
</if>
<if
test=
'par.fireTeamId!=null'
>
and a.fire_team_id= #{par.fireTeamId}
</if>
<if
test=
'par.jobTitle!=null'
>
and a.job_title_code =#{par.jobTitle}
</if>
<if
test=
'par.jobTitle!=null'
>
and a.job_title_code =#{par.jobTitle}
</if>
<if
<if
...
@@ -43,6 +44,7 @@
...
@@ -43,6 +44,7 @@
<if
test=
'par.name!=null'
>
and a.name like concat ('%',#{par.name},'%')
</if>
<if
test=
'par.name!=null'
>
and a.name like concat ('%',#{par.name},'%')
</if>
<if
test=
'par.state!=null'
>
and a.state_code= #{par.state}
</if>
<if
test=
'par.state!=null'
>
and a.state_code= #{par.state}
</if>
<if
test=
'par.fireTeamId!=null'
>
and a.fire_team_id= #{par.fireTeamId}
</if>
<if
test=
'par.fireTeamId!=null'
>
and a.fire_team_id= #{par.fireTeamId}
</if>
<if
test=
'par.company!=null and par.company!= -1'
>
and a.company= #{par.company}
</if>
<if
test=
'par.jobTitle!=null'
>
and a.job_title_code =#{par.jobTitle}
</if>
<if
test=
'par.jobTitle!=null'
>
and a.job_title_code =#{par.jobTitle}
</if>
<if
<if
test=
'par.areasExpertiseCode!=null and par.areasExpertiseCode!="0"'
>
and b.areas_expertise_code
test=
'par.areasExpertiseCode!=null and par.areasExpertiseCode!="0"'
>
and b.areas_expertise_code
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/OrgUsrMapper.xml
View file @
ab4225e3
...
@@ -140,6 +140,9 @@
...
@@ -140,6 +140,9 @@
<if
test=
"map.amosOrgCode != null and map.amosOrgCode != '-1'"
>
<if
test=
"map.amosOrgCode != null and map.amosOrgCode != '-1'"
>
AND u.amos_org_code like concat('%',#{map.amosOrgCode}, '%')
AND u.amos_org_code like concat('%',#{map.amosOrgCode}, '%')
</if>
</if>
<if
test=
"map.company != null and map.company != '-1'"
>
AND u.parent_id = #{company}
</if>
GROUP BY
GROUP BY
u.sequence_nbr ,
u.sequence_nbr ,
u.biz_org_name ,
u.biz_org_name ,
...
...
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