Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Haocheng Shen
zhongmei_shift
Commits
620744e6
Commit
620744e6
authored
1 year ago
by
Haocheng Shen
🎨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改值班判断逻辑
parent
fdb0a520
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
3 deletions
+13
-3
src/main/java/com/example/zhongmei/controller/EmployeeController.java
...a/com/example/zhongmei/controller/EmployeeController.java
+13
-3
target/classes/com/example/zhongmei/controller/EmployeeController.class
.../com/example/zhongmei/controller/EmployeeController.class
+0
-0
target/zhongmei-0.0.1-SNAPSHOT.jar
target/zhongmei-0.0.1-SNAPSHOT.jar
+0
-0
target/zhongmei-0.0.1-SNAPSHOT.jar.original
target/zhongmei-0.0.1-SNAPSHOT.jar.original
+0
-0
No files found.
src/main/java/com/example/zhongmei/controller/EmployeeController.java
View file @
620744e6
...
...
@@ -387,11 +387,21 @@ public class EmployeeController {
// 判断班制
public
String
getDutyName
(
String
text
)
{
if
(
text
.
contains
(
"白班"
))
return
"
白班
"
;
if
(
text
.
contains
(
"夜班"
))
return
"
夜班
"
;
if
(
text
.
contains
(
"白班"
))
return
"
早值
"
;
if
(
text
.
contains
(
"夜班"
))
return
"
晚值
"
;
String
timeStr
=
text
.
substring
(
text
.
length
()
-
5
);
if
(!
timeStr
.
contains
(
"-"
)
&&
timeStr
.
compareTo
(
"16:30"
)
>
0
)
{
String
startTime
=
text
.
substring
(
text
.
length
()
-
11
,
text
.
length
()
-
6
);
if
(
startTime
.
equals
(
"08:00"
)
||
startTime
.
equals
(
"08:30"
))
{
return
"早值"
;
}
else
if
(
startTime
.
equals
(
"16:00"
)
||
startTime
.
equals
(
"16:30"
))
{
return
"中值"
;
}
else
if
(
startTime
.
equals
(
"00:00"
)
||
startTime
.
equals
(
"00:30"
))
{
return
"晚值"
;
}
if
(!
timeStr
.
contains
(
"-"
)
&&
timeStr
.
compareTo
(
"16:30"
)
>
0
)
{
return
"白班"
;
}
...
...
This diff is collapsed.
Click to expand it.
target/classes/com/example/zhongmei/controller/EmployeeController.class
View file @
620744e6
No preview for this file type
This diff is collapsed.
Click to expand it.
target/zhongmei-0.0.1-SNAPSHOT.jar
View file @
620744e6
No preview for this file type
This diff is collapsed.
Click to expand it.
target/zhongmei-0.0.1-SNAPSHOT.jar.original
View file @
620744e6
No preview for this file type
This diff is collapsed.
Click to expand it.
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