Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
indicators
Overview
Overview
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
zhangkb
indicators
Commits
850f686c
Commit
850f686c
authored
Jan 26, 2021
by
hzc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修复
parent
1cda7a75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
IndScorecardService.java
...ile/indicators/service/hytobacco/IndScorecardService.java
+3
-3
No files found.
src/main/java/com/keymobile/indicators/service/hytobacco/IndScorecardService.java
View file @
850f686c
...
...
@@ -402,7 +402,7 @@ public class IndScorecardService {
double
fValue
=
0
;
//是否有绝对值
if
(
formula
.
indexOf
(
"ABS"
)>=
0
){
formula
.
replace
(
"ABS"
,
"math.abs"
);
formula
=
formula
.
replace
(
"ABS"
,
"math.abs"
);
}
//求公式最大值FMAX
if
(
formula
.
indexOf
(
"FMAX"
)>=
0
){
...
...
@@ -411,7 +411,7 @@ public class IndScorecardService {
formulaTmp
=
sub
.
substring
(
0
,
sub
.
indexOf
(
")"
)+
1
);
//formula公式,currentDriveResult结果,true 最大值
fValue
=
getFValue
(
formulaTmp
,
currentDriveResult
,
acsType
,
true
);
formula
.
replace
(
formulaTmp
,
String
.
valueOf
(
fValue
));
formula
=
formula
.
replace
(
formulaTmp
,
String
.
valueOf
(
fValue
));
}
//求公式最小值FMIN
if
(
formula
.
indexOf
(
"FMIN"
)>=
0
){
...
...
@@ -420,7 +420,7 @@ public class IndScorecardService {
formulaTmp
=
sub
.
substring
(
0
,
sub
.
indexOf
(
")"
)+
1
);
//formula公式,currentDriveResult结果,true 最大值
fValue
=
getFValue
(
formulaTmp
,
currentDriveResult
,
acsType
,
false
);
formula
.
replace
(
formulaTmp
,
String
.
valueOf
(
fValue
));
formula
=
formula
.
replace
(
formulaTmp
,
String
.
valueOf
(
fValue
));
}
//解析X,MIN,MAX,AVG
...
...
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