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
e2aa6207
Commit
e2aa6207
authored
Jan 10, 2023
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
假勤信息优化修改
parent
8c1099cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
25 deletions
+19
-25
TBusLeaveController.java
.../v1/business/controller/vacation/TBusLeaveController.java
+19
-25
No files found.
yifu-business/yifu-business-biz/src/main/java/com/yifu/cloud/plus/v1/business/controller/vacation/TBusLeaveController.java
View file @
e2aa6207
...
...
@@ -181,7 +181,9 @@ public class TBusLeaveController {
map
.
put
(
tBusLeave
.
getTeleNo
(),
tBusLeave
.
getName
());
}
}
if
(
Common
.
isEmpty
(
tBusLeave
.
getLeaveDate
())
||
Common
.
isEmpty
(
tBusLeave
.
getLeavePostDate
())
if
(
Common
.
isEmpty
(
tBusLeave
.
getTeleNo
()))
{
errorList
.
add
(
new
ErrorMessage
(
i
,
"'"
+
"'电信工号不可为空!"
));
}
else
if
(
Common
.
isEmpty
(
tBusLeave
.
getLeaveDate
())
||
Common
.
isEmpty
(
tBusLeave
.
getLeavePostDate
())
||
Common
.
isEmpty
(
tBusLeave
.
getLeaveReason
())
||
tBusLeave
.
getLeaveReason
().
length
()
>
200
)
{
// 判断并拦截
this
.
judgeLeave
(
errorList
,
i
,
tBusLeave
);
...
...
@@ -209,27 +211,22 @@ public class TBusLeaveController {
**/
private
void
judgeLeave
(
List
<
ErrorMessage
>
errorList
,
int
i
,
TBusLeave
tBusLeave
)
{
String
error
;
if
(
Common
.
isEmpty
(
tBusLeave
.
getTeleNo
()))
{
error
=
"'"
+
"'电信工号为空,无法导入!"
;
errorList
.
add
(
new
ErrorMessage
(
i
,
error
));
}
else
{
if
(
Common
.
isEmpty
(
tBusLeave
.
getLeaveDate
()))
{
error
=
"'"
+
tBusLeave
.
getTeleNo
()
+
"'工号无离职日期,无法导入!"
;
errorList
.
add
(
new
ErrorMessage
(
i
,
error
));
}
if
(
Common
.
isEmpty
(
tBusLeave
.
getLeavePostDate
()))
{
error
=
"'"
+
tBusLeave
.
getTeleNo
()
+
"'工号无离岗日期,无法导入!"
;
errorList
.
add
(
new
ErrorMessage
(
i
,
error
));
}
if
(
Common
.
isEmpty
(
tBusLeave
.
getLeaveReason
()))
{
error
=
"'"
+
tBusLeave
.
getTeleNo
()
+
"'工号无离职原因,无法导入!"
;
errorList
.
add
(
new
ErrorMessage
(
i
,
error
));
}
if
(
Common
.
isNotNull
(
tBusLeave
.
getLeaveReason
())
&&
tBusLeave
.
getLeaveReason
().
length
()
>
200
)
{
error
=
"'"
+
tBusLeave
.
getTeleNo
()
+
"'工号离职原因超过200字符,无法导入!"
;
errorList
.
add
(
new
ErrorMessage
(
i
,
error
));
}
}
if
(
Common
.
isEmpty
(
tBusLeave
.
getLeaveDate
()))
{
error
=
"'"
+
tBusLeave
.
getTeleNo
()
+
"'工号无离职日期,无法导入!"
;
errorList
.
add
(
new
ErrorMessage
(
i
,
error
));
}
if
(
Common
.
isEmpty
(
tBusLeave
.
getLeavePostDate
()))
{
error
=
"'"
+
tBusLeave
.
getTeleNo
()
+
"'工号无离岗日期,无法导入!"
;
errorList
.
add
(
new
ErrorMessage
(
i
,
error
));
}
if
(
Common
.
isEmpty
(
tBusLeave
.
getLeaveReason
()))
{
error
=
"'"
+
tBusLeave
.
getTeleNo
()
+
"'工号无离职原因,无法导入!"
;
errorList
.
add
(
new
ErrorMessage
(
i
,
error
));
}
if
(
Common
.
isNotNull
(
tBusLeave
.
getLeaveReason
())
&&
tBusLeave
.
getLeaveReason
().
length
()
>
200
)
{
error
=
"'"
+
tBusLeave
.
getTeleNo
()
+
"'工号离职原因超过200字符,无法导入!"
;
errorList
.
add
(
new
ErrorMessage
(
i
,
error
));
}
}
/**
...
...
@@ -269,9 +266,6 @@ public class TBusLeaveController {
error
=
"电信工号未匹配到人员附属信息:'"
+
tBusLeave
.
getTeleNo
()
+
"'"
;
errorList
.
add
(
new
ErrorMessage
(
i
,
error
));
}
}
else
{
error
=
"电信工号不可为空!"
;
errorList
.
add
(
new
ErrorMessage
(
i
,
error
));
}
}
...
...
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