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
1cda7a75
Commit
1cda7a75
authored
Jan 26, 2021
by
hzc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
运算公式abs换math.abs
parent
d691a580
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
IndScorecardService.java
...ile/indicators/service/hytobacco/IndScorecardService.java
+5
-4
No files found.
src/main/java/com/keymobile/indicators/service/hytobacco/IndScorecardService.java
View file @
1cda7a75
...
@@ -400,6 +400,10 @@ public class IndScorecardService {
...
@@ -400,6 +400,10 @@ public class IndScorecardService {
Map
<
String
,
Object
>
env
=
Maps
.
newHashMap
();
Map
<
String
,
Object
>
env
=
Maps
.
newHashMap
();
String
formulaTmp
=
""
;
String
formulaTmp
=
""
;
double
fValue
=
0
;
double
fValue
=
0
;
//是否有绝对值
if
(
formula
.
indexOf
(
"ABS"
)>=
0
){
formula
.
replace
(
"ABS"
,
"math.abs"
);
}
//求公式最大值FMAX
//求公式最大值FMAX
if
(
formula
.
indexOf
(
"FMAX"
)>=
0
){
if
(
formula
.
indexOf
(
"FMAX"
)>=
0
){
int
maxIndex
=
formula
.
indexOf
(
"FMAX"
);
int
maxIndex
=
formula
.
indexOf
(
"FMAX"
);
...
@@ -418,10 +422,7 @@ public class IndScorecardService {
...
@@ -418,10 +422,7 @@ public class IndScorecardService {
fValue
=
getFValue
(
formulaTmp
,
currentDriveResult
,
acsType
,
false
);
fValue
=
getFValue
(
formulaTmp
,
currentDriveResult
,
acsType
,
false
);
formula
.
replace
(
formulaTmp
,
String
.
valueOf
(
fValue
));
formula
.
replace
(
formulaTmp
,
String
.
valueOf
(
fValue
));
}
}
//是否有绝对值
if
(
formula
.
indexOf
(
"ABS"
)>=
0
){
formula
.
replace
(
"ABS"
,
"math.abs"
);
}
//解析X,MIN,MAX,AVG
//解析X,MIN,MAX,AVG
if
(
formula
.
indexOf
(
"X"
)>=
0
)
{
if
(
formula
.
indexOf
(
"X"
)>=
0
)
{
//获取指标值
//获取指标值
...
...
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