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
20331eea
Commit
20331eea
authored
Jan 10, 2023
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
假勤信息优化修改
parent
c4f5ea61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
TBusLeaveController.java
.../v1/business/controller/vacation/TBusLeaveController.java
+8
-5
No files found.
yifu-business/yifu-business-biz/src/main/java/com/yifu/cloud/plus/v1/business/controller/vacation/TBusLeaveController.java
View file @
20331eea
package
com
.
yifu
.
cloud
.
plus
.
v1
.
business
.
controller
.
vacation
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.business.entity.vacation.TBusLeave
;
import
com.yifu.cloud.plus.v1.business.service.vacation.TBusLeaveService
;
...
...
@@ -169,15 +170,17 @@ public class TBusLeaveController {
}
int
i
=
1
;
List
<
TBusLeave
>
updateLsit
=
new
ArrayList
<>();
List
<
String
>
teleList
=
new
ArrayList
<>()
;
TBusLeave
tBusLeaveExit
;
for
(
TBusLeave
tBusLeave
:
leaveList
)
{
i
++;
if
(
Common
.
isNotNull
(
tBusLeave
.
getTeleNo
()))
{
if
(!
teleList
.
isEmpty
()
&&
teleList
.
contains
(
tBusLeave
.
getTeleNo
()))
{
errorList
.
add
(
new
ErrorMessage
(
i
,
"表中已存在对应电信工号'"
+
tBusLeave
.
getTeleNo
()
+
"'的离职数据!"
));
tBusLeaveExit
=
tBusLeaveService
.
getOne
(
Wrappers
.<
TBusLeave
>
query
().
lambda
()
.
eq
(
TBusLeave:
:
getTeleNo
,
tBusLeave
.
getTeleNo
())
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
if
(
Common
.
isNotNull
(
tBusLeaveExit
))
{
errorList
.
add
(
new
ErrorMessage
(
i
,
"已存在对应电信工号'"
+
tBusLeave
.
getTeleNo
()
+
"'的离职数据!"
));
continue
;
}
else
{
teleList
.
add
(
tBusLeave
.
getTeleNo
());
}
}
}
else
{
errorList
.
add
(
new
ErrorMessage
(
i
,
"'"
+
"'电信工号不可为空!"
));
continue
;
...
...
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