Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
intel_promotion_api
Project
Project
Details
Activity
Releases
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
liyilin
intel_promotion_api
Commits
45f514f9
Commit
45f514f9
authored
Aug 22, 2024
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了excel导入bug
parent
adf1ab38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
CmsPriceClickServiceImpl.java
.../cmspriceclick/service/impl/CmsPriceClickServiceImpl.java
+8
-0
No files found.
src/main/java/org/rcisoft/business/cmspriceclick/service/impl/CmsPriceClickServiceImpl.java
View file @
45f514f9
...
...
@@ -247,6 +247,14 @@ public class CmsPriceClickServiceImpl extends ServiceImpl<CmsPriceClickRepositor
Pattern
pattern
=
Pattern
.
compile
(
"[0-9]*"
);
//行数
Integer
sum
=
0
;
//去除cmsPriceClicksDTOList里属性为null的数据
cmsPriceClicksDTOList
=
cmsPriceClicksDTOList
.
stream
().
filter
(
cmsPriceClickDTO
->
{
if
(
cmsPriceClickDTO
.
getUserName
()
!=
null
&&
cmsPriceClickDTO
.
getPhone
()
!=
null
&&
cmsPriceClickDTO
.
getIdCard
()
!=
null
&&
cmsPriceClickDTO
.
getBankCard
()
!=
null
)
{
return
true
;
}
return
false
;
}).
collect
(
Collectors
.
toList
());
//添加前先遍历一下那些数据有问题
for
(
CmsPriceClickDTO
cmsPriceClickDTO
:
cmsPriceClicksDTOList
)
{
sum
++;
...
...
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