Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
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
fangxinjiang
yifu-mvp
Commits
04143249
Commit
04143249
authored
Jan 10, 2023
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
假勤信息优化修改
parent
1b90ac8a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
14 deletions
+9
-14
TBusLeaveController.java
.../v1/business/controller/vacation/TBusLeaveController.java
+9
-14
No files found.
yifu-business/yifu-business-biz/src/main/java/com/yifu/cloud/plus/v1/business/controller/vacation/TBusLeaveController.java
View file @
04143249
...
@@ -21,7 +21,6 @@ import org.springframework.web.bind.annotation.*;
...
@@ -21,7 +21,6 @@ import org.springframework.web.bind.annotation.*;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -170,21 +169,20 @@ public class TBusLeaveController {
...
@@ -170,21 +169,20 @@ public class TBusLeaveController {
}
}
int
i
=
1
;
int
i
=
1
;
List
<
TBusLeave
>
updateLsit
=
new
ArrayList
<>();
List
<
TBusLeave
>
updateLsit
=
new
ArrayList
<>();
Map
<
String
,
String
>
map
=
new
HashMap
<>();
List
<
String
>
teleList
=
new
ArrayList
<>();
for
(
TBusLeave
tBusLeave
:
leaveList
)
{
for
(
TBusLeave
tBusLeave
:
leaveList
)
{
i
++;
i
++;
if
(
Common
.
isNotNull
(
tBusLeave
.
getTeleNo
())
&&
Common
.
isNotNull
(
tBusLeave
.
getName
()))
{
if
(
Common
.
isNotNull
(
tBusLeave
.
getTeleNo
()))
{
if
(
null
!=
map
.
get
(
tBusLeave
.
getTeleNo
())
&&
if
(!
teleList
.
isEmpty
()
&&
teleList
.
contains
(
tBusLeave
.
getTeleNo
()))
{
tBusLeave
.
getName
().
equals
(
map
.
get
(
tBusLeave
.
getTeleNo
())))
{
errorList
.
add
(
new
ErrorMessage
(
i
,
"表中已存在对应电信工号'"
+
tBusLeave
.
getTeleNo
()
+
"'的离职数据!"
));
errorList
.
add
(
new
ErrorMessage
(
i
,
"'"
+
tBusLeave
.
getTeleNo
()
+
"'工号员工已离职,请核实无误后再操作!"
));
continue
;
continue
;
}
else
{
}
else
{
map
.
put
(
tBusLeave
.
getTeleNo
(),
tBusLeave
.
getName
());
teleList
.
add
(
tBusLeave
.
getTeleNo
());
}
}
}
else
{
}
if
(
Common
.
isEmpty
(
tBusLeave
.
getTeleNo
()))
{
errorList
.
add
(
new
ErrorMessage
(
i
,
"'"
+
"'电信工号不可为空!"
));
errorList
.
add
(
new
ErrorMessage
(
i
,
"'"
+
"'电信工号不可为空!"
));
}
else
if
(
Common
.
isEmpty
(
tBusLeave
.
getLeaveDate
())
||
Common
.
isEmpty
(
tBusLeave
.
getLeavePostDate
())
continue
;
}
if
(
Common
.
isEmpty
(
tBusLeave
.
getLeaveDate
())
||
Common
.
isEmpty
(
tBusLeave
.
getLeavePostDate
())
||
Common
.
isEmpty
(
tBusLeave
.
getLeaveReason
())
||
tBusLeave
.
getLeaveReason
().
length
()
>
200
)
{
||
Common
.
isEmpty
(
tBusLeave
.
getLeaveReason
())
||
tBusLeave
.
getLeaveReason
().
length
()
>
200
)
{
// 判断并拦截
// 判断并拦截
this
.
judgeLeave
(
errorList
,
i
,
tBusLeave
);
this
.
judgeLeave
(
errorList
,
i
,
tBusLeave
);
...
@@ -193,9 +191,6 @@ public class TBusLeaveController {
...
@@ -193,9 +191,6 @@ public class TBusLeaveController {
this
.
saveAndJudge
(
user
,
nows
,
errorList
,
empMap
,
i
,
updateLsit
,
tBusLeave
);
this
.
saveAndJudge
(
user
,
nows
,
errorList
,
empMap
,
i
,
updateLsit
,
tBusLeave
);
}
}
}
}
if
(!
map
.
isEmpty
())
{
map
.
clear
();
}
// 更新人员信息
// 更新人员信息
this
.
batchUpdateEmpInfo
(
updateLsit
);
this
.
batchUpdateEmpInfo
(
updateLsit
);
return
R
.
ok
(
errorList
,
"操作成功"
);
return
R
.
ok
(
errorList
,
"操作成功"
);
...
...
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