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
5aed799b
Commit
5aed799b
authored
Jul 18, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.业务全过程联调修改
parent
932b7166
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
CommonMapper.java
.../yeejoin/amos/boot/module/jg/api/mapper/CommonMapper.java
+1
-1
CommonMapper.xml
...-module-jg-api/src/main/resources/mapper/CommonMapper.xml
+0
-0
DPStatisticsServiceImpl.java
...t/module/jg/biz/service/impl/DPStatisticsServiceImpl.java
+10
-5
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/mapper/CommonMapper.java
View file @
5aed799b
...
...
@@ -131,6 +131,6 @@ public interface CommonMapper extends BaseMapper<EquipmentCategory> {
* @param dpFilterParamDto 过滤条件
* @return 统计数量数组
*/
List
<
Long
>
countAll
BizDataInFlowingForDP
(
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"dto"
)
DPFilterParamDto
dpFilterParamDto
);
List
<
Long
>
countAll
InFlowingForDPNoFinishedBizData
(
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"dto"
)
DPFilterParamDto
dpFilterParamDto
);
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/CommonMapper.xml
View file @
5aed799b
This diff is collapsed.
Click to expand it.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/DPStatisticsServiceImpl.java
View file @
5aed799b
...
...
@@ -633,15 +633,20 @@ public class DPStatisticsServiceImpl {
private
String
calPercentForBizCycleData
(
DPFilterParamDto
dpFilterParamDto
,
Long
allFinishedCount
)
{
Long
allBizDataInFlowingCount
=
this
.
countAllBizDataInFlowing
(
dpFilterParamDto
);
BigDecimal
finish
=
new
BigDecimal
(
String
.
valueOf
(
allFinishedCount
));
BigDecimal
total
=
new
BigDecimal
(
String
.
valueOf
(
allBizDataInFlowingCount
));
BigDecimal
result
=
finish
.
divide
(
total
,
2
,
RoundingMode
.
HALF_UP
);
BigDecimal
percentage
=
result
.
multiply
(
new
BigDecimal
(
"100"
)).
setScale
(
0
,
RoundingMode
.
HALF_UP
);
return
percentage
.
toPlainString
();
BigDecimal
flowing
=
new
BigDecimal
(
String
.
valueOf
(
allBizDataInFlowingCount
));
BigDecimal
total
=
finish
.
add
(
flowing
);
if
(
total
.
compareTo
(
BigDecimal
.
ZERO
)
>
0
){
BigDecimal
result
=
finish
.
divide
(
total
,
2
,
RoundingMode
.
HALF_UP
);
BigDecimal
percentage
=
result
.
multiply
(
new
BigDecimal
(
"100"
)).
setScale
(
0
,
RoundingMode
.
HALF_UP
);
return
percentage
.
toPlainString
();
}
else
{
return
"0"
;
}
}
private
Long
countAllBizDataInFlowing
(
DPFilterParamDto
dpFilterParamDto
)
{
String
orgCode
=
getAndSetOrgCode
(
dpFilterParamDto
.
getCityCode
());
List
<
Long
>
inFlowingForDP
=
commonMapper
.
countAll
BizDataInFlowingForDP
(
orgCode
,
dpFilterParamDto
);
List
<
Long
>
inFlowingForDP
=
commonMapper
.
countAll
InFlowingForDPNoFinishedBizData
(
orgCode
,
dpFilterParamDto
);
return
inFlowingForDP
.
stream
().
mapToLong
(
e
->
e
).
sum
();
}
...
...
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