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
93cb50ff
Commit
93cb50ff
authored
Jan 20, 2021
by
hzc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
不算同期单位得分
parent
ad5a4e1a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
StartCompareUnitCalActor.java
...ators/akka/actor/indicators/StartCompareUnitCalActor.java
+21
-21
No files found.
src/main/java/com/keymobile/indicators/akka/actor/indicators/StartCompareUnitCalActor.java
View file @
93cb50ff
...
@@ -25,44 +25,44 @@ import akka.actor.Props;
...
@@ -25,44 +25,44 @@ import akka.actor.Props;
public
class
StartCompareUnitCalActor
extends
AbstractActor
{
public
class
StartCompareUnitCalActor
extends
AbstractActor
{
private
Logger
logger
=
LoggerFactory
.
getLogger
(
StartCompareUnitCalActor
.
class
);
private
Logger
logger
=
LoggerFactory
.
getLogger
(
StartCompareUnitCalActor
.
class
);
private
ScoreRuleService
scoreRuleServer
=
SpringUtil
.
getBean
(
ScoreRuleService
.
class
);
private
ScoreRuleService
scoreRuleServer
=
SpringUtil
.
getBean
(
ScoreRuleService
.
class
);
private
TestScoreRuleService
testScoreRuleServer
=
SpringUtil
.
getBean
(
TestScoreRuleService
.
class
);
private
TestScoreRuleService
testScoreRuleServer
=
SpringUtil
.
getBean
(
TestScoreRuleService
.
class
);
private
CompareUnitCalLogService
compareUnitCalLogService
=
SpringUtil
.
getBean
(
CompareUnitCalLogService
.
class
);
private
CompareUnitCalLogService
compareUnitCalLogService
=
SpringUtil
.
getBean
(
CompareUnitCalLogService
.
class
);
private
List
<
CompareUnitDef
>
firstExeList
=
new
ArrayList
<>();
//先执行对标单元list
private
List
<
CompareUnitDef
>
firstExeList
=
new
ArrayList
<>();
//先执行对标单元list
private
List
<
CompareUnitDef
>
afterExeList
=
new
ArrayList
<>();
//后执行对标单元list
private
List
<
CompareUnitDef
>
afterExeList
=
new
ArrayList
<>();
//后执行对标单元list
private
int
numberOfConfirm
=
0
;
//定义返回确认消息的子actor
private
int
numberOfConfirm
=
0
;
//定义返回确认消息的子actor
private
int
firstExeUnitSize
=
0
;
//需要先执行对标单元个数
private
int
firstExeUnitSize
=
0
;
//需要先执行对标单元个数
private
int
numberOfAfterConfirm
=
0
;
//定义后执行返回确认消息的子actor
private
int
numberOfAfterConfirm
=
0
;
//定义后执行返回确认消息的子actor
private
int
afterExeUnitSize
=
0
;
//后执行的对标单元个数
private
int
afterExeUnitSize
=
0
;
//后执行的对标单元个数
private
List
<
CompareUnitDef
>
calTypeExeList
=
new
ArrayList
<>();
//存储对标单元单位评分规则calType不为0的对标单元list
private
List
<
CompareUnitDef
>
calTypeExeList
=
new
ArrayList
<>();
//存储对标单元单位评分规则calType不为0的对标单元list
private
String
code
=
null
;
//机构编码
private
String
code
=
null
;
//机构编码
private
String
isTest
=
null
;
//试运行,0:试运行 1:正式运行
private
String
isTest
=
null
;
//试运行,0:试运行 1:正式运行
private
Integer
compCalLogId
=
null
;
private
Integer
compCalLogId
=
null
;
private
String
path
=
null
;
//对标单元目录
private
String
path
=
null
;
//对标单元目录
private
Integer
currentDate
=
null
;
//当前对标时间
private
Integer
currentDate
=
null
;
//当前对标时间
private
final
ActorRef
beforeCompareUnitActor
;
//定义父actor
private
final
ActorRef
beforeCompareUnitActor
;
//定义父actor
static
public
Props
props
(
ActorRef
beforeCompareUnitActor
)
{
static
public
Props
props
(
ActorRef
beforeCompareUnitActor
)
{
return
Props
.
create
(
StartCompareUnitCalActor
.
class
,()->
new
StartCompareUnitCalActor
(
beforeCompareUnitActor
));
return
Props
.
create
(
StartCompareUnitCalActor
.
class
,()->
new
StartCompareUnitCalActor
(
beforeCompareUnitActor
));
}
}
public
StartCompareUnitCalActor
(
ActorRef
beforeCompareUnitActor
)
{
public
StartCompareUnitCalActor
(
ActorRef
beforeCompareUnitActor
)
{
this
.
beforeCompareUnitActor
=
beforeCompareUnitActor
;
this
.
beforeCompareUnitActor
=
beforeCompareUnitActor
;
}
}
@Override
@Override
public
Receive
createReceive
()
{
public
Receive
createReceive
()
{
Receive
receive
=
null
;
Receive
receive
=
null
;
...
@@ -120,7 +120,7 @@ public class StartCompareUnitCalActor extends AbstractActor{
...
@@ -120,7 +120,7 @@ public class StartCompareUnitCalActor extends AbstractActor{
compareUnitCalMsg
.
setCompCalLogId
(
compCalLogId
);
compareUnitCalMsg
.
setCompCalLogId
(
compCalLogId
);
//设置对标单元目录
//设置对标单元目录
compareUnitCalMsg
.
setPath
(
path
);
compareUnitCalMsg
.
setPath
(
path
);
ActorRef
compareUnitCalActor
=
this
.
getContext
()
ActorRef
compareUnitCalActor
=
this
.
getContext
()
.
actorOf
(
Props
.
create
(
CompareUnitCalActor
.
class
,
.
actorOf
(
Props
.
create
(
CompareUnitCalActor
.
class
,
()
->
new
CompareUnitCalActor
(
getSelf
())));
()
->
new
CompareUnitCalActor
(
getSelf
())));
...
@@ -148,7 +148,7 @@ public class StartCompareUnitCalActor extends AbstractActor{
...
@@ -148,7 +148,7 @@ public class StartCompareUnitCalActor extends AbstractActor{
compareUnitCalMsg
.
setCompCalLogId
(
compCalLogId
);
compareUnitCalMsg
.
setCompCalLogId
(
compCalLogId
);
//设置对标单元目录
//设置对标单元目录
compareUnitCalMsg
.
setPath
(
path
);
compareUnitCalMsg
.
setPath
(
path
);
ActorRef
compareUnitCalActor
=
this
.
getContext
()
ActorRef
compareUnitCalActor
=
this
.
getContext
()
.
actorOf
(
Props
.
create
(
CompareUnitCalActor
.
class
,
.
actorOf
(
Props
.
create
(
CompareUnitCalActor
.
class
,
()
->
new
CompareUnitCalActor
(
getSelf
())));
()
->
new
CompareUnitCalActor
(
getSelf
())));
...
@@ -160,11 +160,11 @@ public class StartCompareUnitCalActor extends AbstractActor{
...
@@ -160,11 +160,11 @@ public class StartCompareUnitCalActor extends AbstractActor{
logger
.
info
(
"进行后执行对标单元计算...."
);
logger
.
info
(
"进行后执行对标单元计算...."
);
}
}
}
else
{
}
else
{
if
(!
calTypeExeList
.
isEmpty
())
{
if
(!
calTypeExeList
.
isEmpty
()
&&
calTypeExeList
.
get
(
0
).
getDate
().
equals
(
currentDate
)
)
{
if
(
"0"
.
equals
(
isTest
))
{
if
(
"0"
.
equals
(
isTest
))
{
logger
.
info
(
"计算试运行对标单元单位评分......
"
);
logger
.
info
(
"计算试运行对标单元单位评分......
date={}"
,
calTypeExeList
.
get
(
0
).
getDate
()
);
}
else
{
}
else
{
logger
.
info
(
"计算对标单元单位评分......
"
);
logger
.
info
(
"计算对标单元单位评分......
date={}"
,
calTypeExeList
.
get
(
0
).
getDate
()
);
}
}
for
(
CompareUnitDef
unitDef
:
calTypeExeList
)
{
for
(
CompareUnitDef
unitDef
:
calTypeExeList
)
{
//试运行
//试运行
...
@@ -208,13 +208,13 @@ public class StartCompareUnitCalActor extends AbstractActor{
...
@@ -208,13 +208,13 @@ public class StartCompareUnitCalActor extends AbstractActor{
testScoreRuleServer
.
testCalObjScore
(
path
,
unitDef
.
getCompareId
(),
testScoreRuleServer
.
testCalObjScore
(
path
,
unitDef
.
getCompareId
(),
Arrays
.
asList
(
unitDef
.
getIndIds
().
split
(
","
)),
Arrays
.
asList
(
unitDef
.
getIndIds
().
split
(
","
)),
Arrays
.
asList
(
unitDef
.
getCompareObjs
().
split
(
","
)),
Arrays
.
asList
(
unitDef
.
getCompareObjs
().
split
(
","
)),
unitDef
.
getDate
(),
unitDef
.
getObjScoreRuleId
(),
unitDef
.
getDate
(),
unitDef
.
getObjScoreRuleId
(),
code
,
currentDate
);
code
,
currentDate
);
}
else
{
}
else
{
scoreRuleServer
.
calObjScore
(
path
,
unitDef
.
getCompareId
(),
scoreRuleServer
.
calObjScore
(
path
,
unitDef
.
getCompareId
(),
Arrays
.
asList
(
unitDef
.
getIndIds
().
split
(
","
)),
Arrays
.
asList
(
unitDef
.
getIndIds
().
split
(
","
)),
Arrays
.
asList
(
unitDef
.
getCompareObjs
().
split
(
","
)),
Arrays
.
asList
(
unitDef
.
getCompareObjs
().
split
(
","
)),
unitDef
.
getDate
(),
unitDef
.
getObjScoreRuleId
(),
unitDef
.
getDate
(),
unitDef
.
getObjScoreRuleId
(),
code
,
currentDate
);
code
,
currentDate
);
}
}
}
}
...
...
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