Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
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
youjj
cloud-platform
Commits
09593bec
Commit
09593bec
authored
Sep 24, 2019
by
libin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
身份信息
parent
52b4fa03
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
4 deletions
+19
-4
AppUserPositionTempBiz.java
...ub/wxiaoqi/security/admin/biz/AppUserPositionTempBiz.java
+19
-4
No files found.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/AppUserPositionTempBiz.java
View file @
09593bec
...
@@ -149,13 +149,16 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A
...
@@ -149,13 +149,16 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A
for
(
int
i
=
0
;
i
<
userPostionData
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
userPostionData
.
size
();
i
++)
{
String
[]
data
=
userPostionData
.
get
(
i
);
String
[]
data
=
userPostionData
.
get
(
i
);
Integer
postionId
=
null
;
Integer
postionId
=
null
;
String
name
=
""
;
String
phone
=
""
;
String
postionName
=
""
;
try
{
try
{
String
name
=
data
[
0
];
name
=
data
[
0
];
String
phone
=
data
[
1
];
phone
=
data
[
1
];
if
(
StringUtils
.
isEmpty
(
phone
)){
if
(
StringUtils
.
isEmpty
(
phone
)){
throw
new
BaseException
(
"手机号为空"
);
throw
new
BaseException
(
"手机号为空"
);
}
}
String
postionName
=
data
[
2
];
postionName
=
data
[
2
];
if
(
StringUtils
.
isEmpty
(
postionName
)){
if
(
StringUtils
.
isEmpty
(
postionName
)){
throw
new
BaseException
(
"身份为空"
);
throw
new
BaseException
(
"身份为空"
);
}
}
...
@@ -184,7 +187,19 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A
...
@@ -184,7 +187,19 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A
errorResultMap
.
put
(
"num"
,
i
);
errorResultMap
.
put
(
"num"
,
i
);
errorResultMap
.
put
(
"msg"
,
ex
.
getMessage
());
errorResultMap
.
put
(
"msg"
,
ex
.
getMessage
());
errorResult
.
add
(
errorResultMap
);
errorResult
.
add
(
errorResultMap
);
}
catch
(
Exception
ex
){
}
catch
(
ArrayIndexOutOfBoundsException
ex
){
errorResultMap
=
new
HashMap
<>(
1
);
errorResultMap
.
put
(
"num"
,
i
);
String
msg
=
""
;
if
(
StringUtils
.
isEmpty
(
phone
)){
msg
+=
"手机号码缺失"
;
}
if
(
StringUtils
.
isEmpty
(
postionName
)){
msg
+=
",身份信息缺失"
;
}
errorResultMap
.
put
(
"msg"
,
msg
);
errorResult
.
add
(
errorResultMap
);
}
catch
(
Exception
ex
){
errorResultMap
=
new
HashMap
<>(
1
);
errorResultMap
=
new
HashMap
<>(
1
);
errorResultMap
.
put
(
"num"
,
i
);
errorResultMap
.
put
(
"num"
,
i
);
errorResultMap
.
put
(
"msg"
,
"数据"
+
Arrays
.
toString
(
data
)+
"保存失败"
);
errorResultMap
.
put
(
"msg"
,
"数据"
+
Arrays
.
toString
(
data
)+
"保存失败"
);
...
...
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