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
247710a6
Commit
247710a6
authored
Jan 31, 2023
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.4-薪资人员导入
parent
b5f92013
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
TSalaryEmployeeServiceImpl.java
.../yifu/salary/service/impl/TSalaryEmployeeServiceImpl.java
+17
-0
No files found.
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/TSalaryEmployeeServiceImpl.java
View file @
247710a6
...
...
@@ -605,6 +605,12 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe
curTaxMonth
=
true
;
}
else
if
(
Common
.
isNotNull
(
excel
.
getTaxMonth
()))
{
if
(
excel
.
getTaxMonth
().
length
()
==
6
)
{
try
{
Integer
.
parseInt
(
excel
.
getTaxMonth
());
}
catch
(
NumberFormatException
e
)
{
errorMessageList
.
add
(
new
ErrorMessage
((
i
+
2
),
"新增员工,计税月份错误"
));
continue
;
}
emp
.
setTaxMonth
(
excel
.
getTaxMonth
());
}
else
{
errorMessageList
.
add
(
new
ErrorMessage
((
i
+
2
),
SalaryConstants
.
TAX_MONTH_LENGTH
));
...
...
@@ -670,6 +676,17 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe
errorMessageList
.
add
(
new
ErrorMessage
((
i
+
2
),
"新增员工,除了支行,其他必填"
));
continue
;
}
else
{
if
(
excel
.
getTaxMonth
().
length
()
==
6
)
{
try
{
Integer
.
parseInt
(
excel
.
getTaxMonth
());
}
catch
(
NumberFormatException
e
)
{
errorMessageList
.
add
(
new
ErrorMessage
((
i
+
2
),
"新增员工,计税月份错误"
));
continue
;
}
}
else
{
errorMessageList
.
add
(
new
ErrorMessage
((
i
+
2
),
SalaryConstants
.
TAX_MONTH_LENGTH
));
continue
;
}
String
pre
=
this
.
checkNewEmpBankAndPhone
(
excel
,
true
);
if
(
pre
!=
null
)
{
errorMessageList
.
add
(
new
ErrorMessage
((
i
+
2
),
pre
));
...
...
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