Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
349cabd5
Commit
349cabd5
authored
Dec 23, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.人员导入
parent
6525a32e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
TzsUserInfoServiceImpl.java
...t/module/tcm/biz/service/impl/TzsUserInfoServiceImpl.java
+5
-4
No files found.
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/biz/service/impl/TzsUserInfoServiceImpl.java
View file @
349cabd5
...
...
@@ -988,7 +988,7 @@ public class TzsUserInfoServiceImpl extends BaseService<TzsUserInfoDto, TzsUserI
UserImportDto
userImportDto
=
userItems
.
get
(
i
);
Set
<
ConstraintViolation
<
UserImportDto
>>
violations
=
validator
.
validate
(
userImportDto
);
for
(
ConstraintViolation
<
UserImportDto
>
violation
:
violations
)
{
errors
.
add
(
"第"
+
i
+
"行"
+
violation
.
getMessage
());
errors
.
add
(
"
非法数据,
第"
+
i
+
"行"
+
violation
.
getMessage
());
}
}
if
(!
errors
.
isEmpty
())
{
...
...
@@ -1008,10 +1008,10 @@ public class TzsUserInfoServiceImpl extends BaseService<TzsUserInfoDto, TzsUserI
phoneCheckRepeatCount
.
forEach
(((
k
,
v
)
->
{
if
(
v
.
size
()
>
1
)
{
String
phone
=
k
.
split
(
"_"
)[
0
];
errors
.
add
(
String
.
format
(
"
手机号%s重复%d次,请检查后进行上传!"
,
phone
,
v
));
errors
.
add
(
String
.
format
(
"
非法数据,手机号%s,在单位统一信用代码:%s下重复,请检查后进行上传!"
,
phone
,
StringUtils
.
join
(
v
,
","
)
));
}
}));
//
2
.手机号重复检验,手机号全局唯一,不同单位下的手机号不能相同 todo 新写判断逻辑
//
3
.手机号重复检验,手机号全局唯一,不同单位下的手机号不能相同 todo 新写判断逻辑
Map
<
String
,
Set
<
String
>>
certNoCheckRepeatCount
=
new
HashMap
<>();
userItems
.
forEach
(
v
->
{
if
(
certNoCheckRepeatCount
.
containsKey
(
v
.
getPhone
()))
{
...
...
@@ -1022,10 +1022,11 @@ public class TzsUserInfoServiceImpl extends BaseService<TzsUserInfoDto, TzsUserI
certNoCheckRepeatCount
.
put
(
v
.
getPhone
(),
set
);
}
});
// 3.手机号相同,但是证件号码存在多个-非法数据
certNoCheckRepeatCount
.
forEach
(((
k
,
v
)
->
{
if
(
v
.
size
()
>
1
)
{
String
phone
=
k
.
split
(
"_"
)[
0
];
errors
.
add
(
String
.
format
(
"存在手机号%s相同,但是证件号码不一样的数据:证件号码:%s,请检查后进行上传!"
,
phone
,
StringUtils
.
join
(
v
,
","
)));
errors
.
add
(
String
.
format
(
"
非法数据,
存在手机号%s相同,但是证件号码不一样的数据:证件号码:%s,请检查后进行上传!"
,
phone
,
StringUtils
.
join
(
v
,
","
)));
}
}));
return
errors
;
...
...
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