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 55a356da
authored
Nov 01, 2023
by
刘鑫
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop-16542' into 'develop'
组织机构测试 See merge request !360
2 parents
b7740ecd
ddea0d2f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
project-order/src/main/java/com/dituhui/pea/order/controller/TestController.java
project-order/src/main/java/com/dituhui/pea/order/scheduler/CalcEngineerCapacityScheduler.java
project-order/src/main/java/com/dituhui/pea/order/controller/TestController.java
View file @
55a356d
package
com
.
dituhui
.
pea
.
order
.
controller
;
package
com
.
dituhui
.
pea
.
order
.
controller
;
import
com.dituhui.pea.common.Result
;
import
com.dituhui.pea.order.service.impl.BeanRemoteServiceImpl
;
import
com.dituhui.pea.order.service.impl.BeanRemoteServiceImpl
;
import
lombok.RequiredArgsConstructor
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
...
@@ -18,8 +19,8 @@ public class TestController {
...
@@ -18,8 +19,8 @@ public class TestController {
@GetMapping
(
"/test"
)
@GetMapping
(
"/test"
)
public
void
test
()
{
public
Result
<?>
test
()
{
beanRemoteServiceImpl
.
testA
llDepartment
();
return
beanRemoteServiceImpl
.
a
llDepartment
();
}
}
}
}
project-order/src/main/java/com/dituhui/pea/order/scheduler/CalcEngineerCapacityScheduler.java
View file @
55a356d
...
@@ -29,6 +29,7 @@ import java.time.Duration;
...
@@ -29,6 +29,7 @@ import java.time.Duration;
import
java.time.LocalDate
;
import
java.time.LocalDate
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.time.LocalTime
;
import
java.time.LocalTime
;
import
java.time.ZoneId
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Collections
;
import
java.util.Collections
;
import
java.util.Comparator
;
import
java.util.Comparator
;
...
@@ -161,6 +162,8 @@ public class CalcEngineerCapacityScheduler {
...
@@ -161,6 +162,8 @@ public class CalcEngineerCapacityScheduler {
}
}
sliceCap
.
setCapLeft
(
sliceCap
.
getCapTotal
()
-
totalUseTime
);
sliceCap
.
setCapLeft
(
sliceCap
.
getCapTotal
()
-
totalUseTime
);
sliceCap
.
setMaxDuration
(
sliceCap
.
getCapTotal
()
-
totalUseTime
);
sliceCap
.
setMaxDuration
(
sliceCap
.
getCapTotal
()
-
totalUseTime
);
sliceCap
.
setCapUsed
(
totalUseTime
);
sliceCap
.
setUpdateTime
(
LocalDateTime
.
now
(
ZoneId
.
of
(
"+8"
)));
}
}
engineerSliceUsedCapacityDao
.
saveAll
(
engineerTimeSlice
);
engineerSliceUsedCapacityDao
.
saveAll
(
engineerTimeSlice
);
}
}
...
...
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