Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
attendance-performance-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
attendance-performance-platform
Commits
45cb9754
Commit
45cb9754
authored
Jul 18, 2023
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改测试bug
parent
6e924bf4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
27 deletions
+28
-27
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/web/CheckAllRecordController.java
...ortals/xhx/module/check/web/CheckAllRecordController.java
+28
-27
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/web/CheckAllRecordController.java
View file @
45cb9754
...
...
@@ -137,36 +137,37 @@ public class CheckAllRecordController extends BaseJsonBodyController {
model
.
put
(
"checkPercent"
,
numberFormat
.
format
(
checkPercent
));
BigDecimal
appealPercent
=
current
.
getAppealScore
().
divide
(
current
.
getInitScore
(),
6
,
BigDecimal
.
ROUND_HALF_UP
);
model
.
put
(
"appealPercent"
,
numberFormat
.
format
(
appealPercent
));
}
CheckAllScoreSummaryVo
last
=
checkAllRecordService
.
getScoreSummary
(
lastQuery
);
if
(
last
!=
null
){
BigDecimal
huanbi
=
current
.
getTotal
().
subtract
(
last
.
getTotal
());
huanbi
=
huanbi
.
divide
(
last
.
getTotal
(),
6
,
BigDecimal
.
ROUND_HALF_UP
);
model
.
put
(
"huanbi"
,
numberFormat
.
format
(
huanbi
));
}
if
(
query
.
getSummaryType
()
==
SummaryTopTypeEnum
.
年
.
getValue
())
{
CheckAllScoreSummaryVo
last
=
checkAllRecordService
.
getScoreSummary
(
lastQuery
);
if
(
last
!=
null
){
model
.
put
(
"tongbi"
,
model
.
get
(
"huanbi"
));
BigDecimal
huanbi
=
current
.
getTotal
().
subtract
(
last
.
getTotal
());
huanbi
=
huanbi
.
divide
(
last
.
getTotal
(),
6
,
BigDecimal
.
ROUND_HALF_UP
);
model
.
put
(
"huanbi"
,
numberFormat
.
format
(
huanbi
));
}
}
else
{
String
yyyy
=
query
.
getCheckTimeStart
().
substring
(
0
,
4
);
int
lastyear
=
DataUtil
.
converStr2Int
(
yyyy
,
0
);
lastyear
--;
if
(
query
.
getCheckTimeStart
().
substring
(
4
).
equals
(
"-02-29"
)){
lastQuery
.
setCheckTimeStart
(
lastyear
+
"-02-28"
);
if
(
query
.
getSummaryType
()
==
SummaryTopTypeEnum
.
年
.
getValue
())
{
if
(
last
!=
null
){
model
.
put
(
"tongbi"
,
model
.
get
(
"huanbi"
));
}
}
else
{
lastQuery
.
setCheckTimeStart
(
lastyear
+
query
.
getCheckTimeStart
().
substring
(
4
));
}
if
(
query
.
getCheckTimeEnd
().
substring
(
4
).
equals
(
"-02-29"
)){
lastQuery
.
setCheckTimeEnd
(
lastyear
+
"-02-28"
);
}
else
{
lastQuery
.
setCheckTimeEnd
(
lastyear
+
query
.
getCheckTimeEnd
().
substring
(
4
));
}
CheckAllScoreSummaryVo
tb
=
checkAllRecordService
.
getScoreSummary
(
lastQuery
);
if
(
tb
!=
null
){
BigDecimal
tongbi
=
current
.
getTotal
().
subtract
(
tb
.
getTotal
());
tongbi
=
tongbi
.
divide
(
last
.
getTotal
(),
6
,
BigDecimal
.
ROUND_HALF_UP
);
model
.
put
(
"tongbi"
,
numberFormat
.
format
(
tongbi
));
String
yyyy
=
query
.
getCheckTimeStart
().
substring
(
0
,
4
);
int
lastyear
=
DataUtil
.
converStr2Int
(
yyyy
,
0
);
lastyear
--;
if
(
query
.
getCheckTimeStart
().
substring
(
4
).
equals
(
"-02-29"
)){
lastQuery
.
setCheckTimeStart
(
lastyear
+
"-02-28"
);
}
else
{
lastQuery
.
setCheckTimeStart
(
lastyear
+
query
.
getCheckTimeStart
().
substring
(
4
));
}
if
(
query
.
getCheckTimeEnd
().
substring
(
4
).
equals
(
"-02-29"
)){
lastQuery
.
setCheckTimeEnd
(
lastyear
+
"-02-28"
);
}
else
{
lastQuery
.
setCheckTimeEnd
(
lastyear
+
query
.
getCheckTimeEnd
().
substring
(
4
));
}
CheckAllScoreSummaryVo
tb
=
checkAllRecordService
.
getScoreSummary
(
lastQuery
);
if
(
tb
!=
null
){
BigDecimal
tongbi
=
current
.
getTotal
().
subtract
(
tb
.
getTotal
());
tongbi
=
tongbi
.
divide
(
last
.
getTotal
(),
6
,
BigDecimal
.
ROUND_HALF_UP
);
model
.
put
(
"tongbi"
,
numberFormat
.
format
(
tongbi
));
}
}
}
...
...
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