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
82bc65ec
Commit
82bc65ec
authored
Jul 24, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.应急大屏中间地图接口开发
parent
e8ae9fe8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
AlertStatisticsMapper.xml
...3-api/src/main/resources/mapper/AlertStatisticsMapper.xml
+1
-1
DPStatisticsServiceImpl.java
...le/elevator/biz/service/impl/DPStatisticsServiceImpl.java
+3
-3
No files found.
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-api/src/main/resources/mapper/AlertStatisticsMapper.xml
View file @
82bc65ec
...
@@ -118,7 +118,7 @@
...
@@ -118,7 +118,7 @@
FROM
FROM
"tzs_alert_statistics"
"tzs_alert_statistics"
where
where
supervisory_unit_org_code
= #{orgCode}
supervisory_unit_org_code
like concat(#{orgCode},'%')
and start_date=#{dto.beginDate}
and start_date=#{dto.beginDate}
and end_date=#{dto.endDate}
and end_date=#{dto.endDate}
</select>
</select>
...
...
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-biz/src/main/java/com/yeejoin/amos/boot/module/elevator/biz/service/impl/DPStatisticsServiceImpl.java
View file @
82bc65ec
...
@@ -255,11 +255,11 @@ public class DPStatisticsServiceImpl {
...
@@ -255,11 +255,11 @@ public class DPStatisticsServiceImpl {
}
}
public
List
<
Map
<
String
,
Object
>>
getCenterMapCountDataForOverview
(
DPFilterParamDto
dpFilterParamDto
)
{
public
List
<
Map
<
String
,
Object
>>
getCenterMapCountDataForOverview
(
DPFilterParamDto
dpFilterParamDto
)
{
this
.
setDefaultFilter
(
dpFilterParamDto
);
return
getRegionList
(
dpFilterParamDto
).
parallelStream
().
map
(
r
->
{
return
getRegionList
(
dpFilterParamDto
).
parallelStream
().
map
(
r
->
{
DPFilterParamDto
filterParamDto
=
new
DPFilterParamDto
();
DPFilterParamDto
filterParamDto
=
new
DPFilterParamDto
();
filterParamDto
.
setCityCode
(
r
.
getRegionCode
().
toString
());
filterParamDto
.
setCityCode
(
r
.
getRegionCode
().
toString
());
String
orgCode
=
this
.
getAndSetOrgCode
(
filterParamDto
);
String
orgCode
=
this
.
getAndSetOrgCode
(
filterParamDto
);
this
.
setDefaultFilter
(
filterParamDto
);
Map
<
String
,
Object
>
itemResult
=
getCenterMapOverviewData
(
orgCode
,
filterParamDto
);
Map
<
String
,
Object
>
itemResult
=
getCenterMapOverviewData
(
orgCode
,
filterParamDto
);
itemResult
.
put
(
"regionCode"
,
r
.
getRegionCode
());
itemResult
.
put
(
"regionCode"
,
r
.
getRegionCode
());
itemResult
.
put
(
"regionName"
,
r
.
getRegionName
());
itemResult
.
put
(
"regionName"
,
r
.
getRegionName
());
...
@@ -284,10 +284,10 @@ public class DPStatisticsServiceImpl {
...
@@ -284,10 +284,10 @@ public class DPStatisticsServiceImpl {
private
void
setDefaultFilter
(
DPFilterParamDto
dpFilterParamDto
)
{
private
void
setDefaultFilter
(
DPFilterParamDto
dpFilterParamDto
)
{
if
(
StringUtils
.
isEmpty
(
dpFilterParamDto
.
getBeginDate
()))
{
if
(
StringUtils
.
isEmpty
(
dpFilterParamDto
.
getBeginDate
()))
{
dpFilterParamDto
.
setBeginDate
(
cn
.
hutool
.
core
.
date
.
DateUtil
.
beginOfMonth
(
new
Date
()
).
toDateStr
());
dpFilterParamDto
.
setBeginDate
(
cn
.
hutool
.
core
.
date
.
DateUtil
.
lastMonth
(
).
toDateStr
());
}
}
if
(
StringUtils
.
isEmpty
(
dpFilterParamDto
.
getEndDate
()))
{
if
(
StringUtils
.
isEmpty
(
dpFilterParamDto
.
getEndDate
()))
{
dpFilterParamDto
.
setEndDate
(
cn
.
hutool
.
core
.
date
.
DateUtil
.
endOfMonth
(
new
Date
()).
toDateStr
());
dpFilterParamDto
.
setEndDate
(
cn
.
hutool
.
core
.
date
.
DateUtil
.
today
());
}
}
}
}
...
...
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