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
09002306
Commit
09002306
authored
Aug 26, 2022
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
稿酬导入修改
parent
f1b5b3e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
TStatisticsDeclarerServiceImpl.java
...u/salary/service/impl/TStatisticsDeclarerServiceImpl.java
+0
-8
No files found.
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/TStatisticsDeclarerServiceImpl.java
View file @
09002306
...
...
@@ -287,16 +287,12 @@ public class TStatisticsDeclarerServiceImpl extends ServiceImpl<TStatisticsDecla
}
private
void
importTStatisticsDeclarer
(
List
<
TStatisticsDeclarerVo
>
excelVOList
,
List
<
ErrorMessage
>
errorMessageList
)
{
int
successInt
=
0
;
int
failuerInt
=
0
;
List
<
TStatisticsDeclarerVo
>
updateList
=
new
ArrayList
<>();
// 执行数据插入操作 组装
for
(
int
i
=
0
;
i
<
excelVOList
.
size
();
i
++)
{
TStatisticsDeclarerVo
excel
=
excelVOList
.
get
(
i
);
if
(
CommonConstants
.
ONE_STRING
.
equals
(
excel
.
getIsDeclare
())
&&
Common
.
isEmpty
(
excel
.
getUndeclareReason
()))
{
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
"本期是否申报为否时,不申报原因不可为空"
));
failuerInt
++;
continue
;
}
...
...
@@ -311,14 +307,10 @@ public class TStatisticsDeclarerServiceImpl extends ServiceImpl<TStatisticsDecla
tStatisticsDeclarer
.
setUndeclareReason
(
excel
.
getUndeclareReason
());
}
baseMapper
.
updateById
(
tStatisticsDeclarer
);
successInt
++;
}
else
{
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
"未找到身份证和申报月份对应的申报人员信息"
));
failuerInt
++;
continue
;
}
}
errorMessageList
.
add
(
new
ErrorMessage
(-
1
,
"成功操作"
+
successInt
+
"条数据,"
+
"失败"
+
failuerInt
+
"条数据"
));
}
}
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