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
6b8a1fab
Commit
6b8a1fab
authored
Nov 16, 2021
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
573b95c2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
5 deletions
+14
-5
FireTeamMapper.xml
...e-common-api/src/main/resources/mapper/FireTeamMapper.xml
+6
-1
CommandController.java
...boot/module/command/biz/controller/CommandController.java
+3
-3
FireTeamServiceImpl.java
...boot/module/jcs/biz/service/impl/FireTeamServiceImpl.java
+5
-1
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/FireTeamMapper.xml
View file @
6b8a1fab
...
...
@@ -133,6 +133,9 @@
Round(st_distance(point(a.longitude,a.latitude),point(#{par.longitude},#{par.latitude}))*111195,1) AS distance
FROM cb_fire_team a
where a.is_delete=0 and a.longitude is not null and a.latitude is not null
<if
test=
'par.typeCode==null'
>
and a.type_code in (116,830)
</if>
<if
test=
'par.typeCode!=null and par.typeCode!=""'
>
and a.type_code in (#{par.typeCode})
</if>
...
...
@@ -147,7 +150,9 @@
COUNT(a.sequence_nbr) num
FROM cb_fire_team a
where a.is_delete=0 and a.longitude is not null and a.latitude is not null
<if
test=
'par.typeCode==null'
>
and a.type_code in (116,830)
</if>
<if
test=
'par.typeCode!=null and par.typeCode!=""'
>
and a.type_code in (#{par.typeCode})
</if>
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-command-biz/src/main/java/com/yeejoin/amos/boot/module/command/biz/controller/CommandController.java
View file @
6b8a1fab
...
...
@@ -496,9 +496,9 @@ public class CommandController extends BaseController {
@GetMapping
(
value
=
"ZQ/list"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"执勤实力列表分页查询"
,
notes
=
"执勤实力列表分页查询"
)
public
ResponseModel
<
IPage
<
FireTeamZhDto
>>
ZQlistPage
(
Integer
pageNum
,
Integer
pageSize
,
RequestData
par
)
{
if
(
par
.
getTypeCode
()==
null
){
par
.
setTypeCode
(
AlertStageEnums
.
ZZZD
.
getCode
()+
","
+
AlertStageEnums
.
YLJY
.
getCode
());
}
//
if(par.getTypeCode()==null){
//
par.setTypeCode( AlertStageEnums.ZZZD.getCode()+","+AlertStageEnums.YLJY.getCode());
//
}
Page
<
FireTeamZhDto
>
pageBean
=
new
Page
<>(
pageNum
,
pageSize
);
List
<
FireTeamZhDto
>
list
=
iFireTeamService
.
getFireTeamList
(
pageNum
,
pageSize
,
par
);
Integer
num
=
iFireTeamService
.
getFireTeamListCount
(
par
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/FireTeamServiceImpl.java
View file @
6b8a1fab
...
...
@@ -330,7 +330,7 @@ public class FireTeamServiceImpl extends BaseService<FireTeamDto, FireTeam, Fire
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
result
=
equipFeignClient
.
getFireCarListAllcount
();
List
<
Map
<
String
,
Object
>>
result1
=
result
.
getResult
();
if
(
result1
!=
null
&&
result1
.
size
()>
0
){
list
.
forEach
(
fireTeamZhDto
->
{
Long
sequenceNbr
=
fireTeamZhDto
.
getSequenceNbr
();
result1
.
forEach
(
map
->
{
...
...
@@ -341,6 +341,10 @@ public class FireTeamServiceImpl extends BaseService<FireTeamDto, FireTeam, Fire
}
});
});
}
/*
*
* if(result1!=null&&result1.size()>0){ Map<String, Object> combineResultMap =
...
...
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