Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YeeAmosFireAutoSysRoot
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
station
YeeAmosFireAutoSysRoot
Commits
fe87cfca
Commit
fe87cfca
authored
Sep 07, 2022
by
高建强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
item:迁移今日值班列表
parent
c93f621e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
89 additions
and
0 deletions
+89
-0
View3dController.java
...eejoin/amos/fas/business/controller/View3dController.java
+9
-0
View3dServiceImpl.java
...oin/amos/fas/business/service/impl/View3dServiceImpl.java
+74
-0
IView3dService.java
...ejoin/amos/fas/business/service/intfc/IView3dService.java
+6
-0
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/View3dController.java
View file @
fe87cfca
...
...
@@ -332,6 +332,15 @@ public class View3dController extends BaseController {
return
CommonResponseUtil
.
success
(
view3dService
.
listPointsByRegionId
(
regionId
,
type
));
}
@Permission
@ApiOperation
(
value
=
"今日值班列表"
,
notes
=
"今日值班列表"
)
@GetMapping
(
value
=
"dutyList"
)
public
CommonResponse
dutyList
(){
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
orgCode
=
this
.
getOrgCode
(
reginParams
);
return
CommonResponseUtil
.
success
(
view3dService
.
dutyList
(
orgCode
));
}
@Autowired
IRocketMQService
rocketMQService
;
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/View3dServiceImpl.java
View file @
fe87cfca
...
...
@@ -657,6 +657,80 @@ public class View3dServiceImpl implements IView3dService {
return
pointList
;
}
@Override
public
List
<
Map
<
String
,
Object
>>
dutyList
(
String
orgCode
)
{
Date
curDate
=
new
Date
();
JSONObject
param
=
new
JSONObject
();
param
.
put
(
"dutyDate"
,
curDate
);
Toke
toke
=
remoteSecurityService
.
getServerToken
();
ArrayList
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<>();
CommonResponse
commonResponse
=
dutyModeServer
.
dutyListByDate
(
toke
.
getAppKey
(),
toke
.
getProduct
(),
toke
.
getToke
(),
orgCode
,
param
.
toJSONString
());
if
(
"SUCCESS"
.
equals
(
commonResponse
.
getResult
()))
{
String
JSONStr
=
JSON
.
toJSONString
(
commonResponse
.
getDataList
());
JSONArray
dataList
=
JSONObject
.
parseArray
(
JSONStr
);
if
(!
ObjectUtils
.
isEmpty
(
dataList
))
{
dataList
.
forEach
(
x
->
{
Map
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
JSONObject
obj
=
(
JSONObject
)
x
;
String
postType
=
obj
.
getString
(
"postType"
);
resultMap
.
put
(
"postName"
,
findPostName
(
postType
));
resultMap
.
put
(
"name"
,
obj
.
getString
(
"dutyName"
));
resultMap
.
put
(
"phone"
,
obj
.
getString
(
"mobile"
));
list
.
add
(
resultMap
);
}
);
}
}
return
list
;
}
private
String
findPostName
(
String
postType
)
{
String
postName
;
switch
(
postType
)
{
case
"dutyLeader"
:
postName
=
"值班站长"
;
break
;
case
"deputyDutyLeader"
:
postName
=
"副值班长"
;
break
;
case
"dutyCivilian"
:
postName
=
"值班员"
;
break
;
case
"fireLeader"
:
postName
=
"驻站消防站长"
;
break
;
case
"firePerson"
:
postName
=
"消防员"
;
break
;
case
"safePerson"
:
postName
=
"保安"
;
break
;
case
"deputyDutyCivilian"
:
postName
=
"副值班员"
;
break
;
case
"fireDriver"
:
postName
=
"司机"
;
break
;
case
"fireSafetyPerson"
:
postName
=
"消防安全负责人"
;
break
;
case
"fireManagementPerson"
:
postName
=
"消防安全管理人"
;
break
;
case
"fireBrigadeLeader"
:
postName
=
"消防专职队队长"
;
break
;
case
"fireBrigadeMember"
:
postName
=
"消防专职队队员"
;
break
;
default
:
postName
=
""
;
break
;
}
return
postName
;
}
private
List
<
Map
<
String
,
Object
>>
getPointsByRegionIds
(
List
<
Long
>
ids
)
{
return
view3dMapper
.
getAllPointInRegions
(
ids
);
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/intfc/IView3dService.java
View file @
fe87cfca
...
...
@@ -189,4 +189,10 @@ public interface IView3dService {
*/
List
<
Map
<
String
,
Object
>>
listPointsByRegionId
(
Long
regionId
,
String
type
);
/**
* 今日值班列表
* @param orgCode
* @return
*/
List
<
Map
<
String
,
Object
>>
dutyList
(
String
orgCode
);
}
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