Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 458c8875
authored
Nov 06, 2023
by
Ren Ping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:排班结果工程师详情修改
1 parent
e171ae61
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
project-dispatch/src/main/java/com/dituhui/pea/dispatch/quartz/AutoDispatchJob.java
project-dispatch/src/main/java/com/dituhui/pea/dispatch/service/impl/SchedulerServiceImpl.java
project-dispatch/src/main/java/com/dituhui/pea/dispatch/quartz/AutoDispatchJob.java
View file @
458c887
...
...
@@ -19,7 +19,6 @@ import javax.annotation.Resource;
*/
@Component
@Slf4j
@DisallowConcurrentExecution
public
class
AutoDispatchJob
extends
QuartzJobBean
{
public
static
final
String
TEAM_JOB_PREFIX
=
"BOXI_TEAM_"
;
...
...
project-dispatch/src/main/java/com/dituhui/pea/dispatch/service/impl/SchedulerServiceImpl.java
View file @
458c887
...
...
@@ -49,11 +49,11 @@ public class SchedulerServiceImpl implements SchedulerService {
OrgTeamDao
orgTeamDao
;
private
DefaultSolverFactory
<
DispatchSolution
>
solverFactory
;
private
Solver
<
DispatchSolution
>
solver
;
//
private Solver<DispatchSolution> solver;
public
SchedulerServiceImpl
()
{
solverFactory
=
DispatchSolutionUtils
.
getSolverFactory
(
30
,
60
*
5
);
solver
=
solverFactory
.
buildSolver
();
//
solver = solverFactory.buildSolver();
}
@Override
...
...
@@ -77,6 +77,7 @@ public class SchedulerServiceImpl implements SchedulerService {
continue
;
}
log
.
info
(
"dispatchRun prepare done, teamId:{}, day:{}, batch:{}, problemId:{}"
,
teamId
,
currDay
,
batchNo
,
problemId
);
Solver
<
DispatchSolution
>
solver
=
solverFactory
.
buildSolver
();
DispatchSolution
solution
=
solver
.
solve
(
problem
);
DispatchSolutionUtils
.
removeHardConstraintCustomer
(
solution
,
solverFactory
);
log
.
info
(
"dispatchRun solve done, teamId:{}, day:{}, batch:{}, problemId:{}, score:{}"
,
teamId
,
currDay
,
batchNo
,
problemId
,
solution
.
getScore
().
toShortString
());
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment