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
5aacb2d7
Commit
5aacb2d7
authored
Aug 05, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.区县未在amos创建公司时代码报错处理
parent
1f8f3b92
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
10 deletions
+15
-10
AQZSDPStatisticsServiceImpl.java
...atistcs/biz/service/impl/AQZSDPStatisticsServiceImpl.java
+15
-10
No files found.
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/java/com/yeejoin/amos/boot/module/statistcs/biz/service/impl/AQZSDPStatisticsServiceImpl.java
View file @
5aacb2d7
...
...
@@ -636,9 +636,11 @@ public class AQZSDPStatisticsServiceImpl {
public
List
<
Map
<
String
,
Object
>>
issueMonthList
(
String
cityCode
)
{
String
orgCode
=
stCommonService
.
getAndSetOrgCode
(
cityCode
);
if
(
orgCode
==
null
){
return
new
ArrayList
<>(
0
);
}
String
time
=
LocalDate
.
now
().
format
(
DateTimeFormatter
.
ofPattern
(
"yyyy-MM"
));
List
<
Map
<
String
,
Object
>>
list
=
statisticsMapper
.
issueMonthList
(
orgCode
,
time
);
return
list
;
return
statisticsMapper
.
issueMonthList
(
orgCode
,
time
);
}
public
Map
<
String
,
Object
>
issueProblemLevelCount
(
String
cityCode
)
{
...
...
@@ -748,19 +750,22 @@ public class AQZSDPStatisticsServiceImpl {
public
List
<
Map
<
String
,
Object
>>
issueCountTopByProblemType
(
String
cityCode
)
{
String
orgCode
=
stCommonService
.
getAndSetOrgCode
(
cityCode
);
List
<
Map
<
String
,
Object
>>
allList
=
statisticsMapper
.
issueCountTopByProblemType
(
orgCode
,
null
);
List
<
Map
<
String
,
Object
>>
endList
=
statisticsMapper
.
issueCountTopByProblemType
(
orgCode
,
"1"
);
Map
<
String
,
Object
>
endIssuedataMap
=
new
HashMap
<>();
endList
.
forEach
(
t
->
{
endIssuedataMap
.
put
(
t
.
get
(
"problemTypeCode"
).
toString
(),
t
.
get
(
"count"
));
});
List
<
Map
<
String
,
Object
>>
allList
=
new
ArrayList
<>();
Map
<
String
,
Object
>
endIssueDataMap
=
new
HashMap
<>();
if
(
orgCode
!=
null
){
allList
=
statisticsMapper
.
issueCountTopByProblemType
(
orgCode
,
null
);
List
<
Map
<
String
,
Object
>>
endList
=
statisticsMapper
.
issueCountTopByProblemType
(
orgCode
,
"1"
);
endList
.
forEach
(
t
->
{
endIssueDataMap
.
put
(
t
.
get
(
"problemTypeCode"
).
toString
(),
t
.
get
(
"count"
));
});
}
List
<
Map
<
String
,
Object
>>
resultList
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
allList
.
size
();
i
++)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"name"
,
IssueTypeEnum
.
getNameByCode
(
allList
.
get
(
i
).
get
(
"problemTypeCode"
).
toString
()));
map
.
put
(
"count"
,
allList
.
get
(
i
).
get
(
"count"
));
if
(
null
!=
endIssue
d
ataMap
.
get
(
allList
.
get
(
i
).
get
(
"problemTypeCode"
).
toString
()))
{
map
.
put
(
"rate"
,
new
DecimalFormat
(
"0.00"
).
format
(
Double
.
parseDouble
(
endIssue
d
ataMap
.
get
(
allList
.
get
(
i
).
get
(
"problemTypeCode"
).
toString
())
+
""
)
/
(
Double
.
parseDouble
(
allList
.
get
(
i
).
get
(
"count"
)
+
""
))));
if
(
null
!=
endIssue
D
ataMap
.
get
(
allList
.
get
(
i
).
get
(
"problemTypeCode"
).
toString
()))
{
map
.
put
(
"rate"
,
new
DecimalFormat
(
"0.00"
).
format
(
Double
.
parseDouble
(
endIssue
D
ataMap
.
get
(
allList
.
get
(
i
).
get
(
"problemTypeCode"
).
toString
())
+
""
)
/
(
Double
.
parseDouble
(
allList
.
get
(
i
).
get
(
"count"
)
+
""
))));
}
resultList
.
add
(
map
);
}
...
...
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