Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
shop
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
曲欣亮
shop
Commits
07dd3671
Commit
07dd3671
authored
Dec 10, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
04438f9d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
UserServiceImpl.java
...ain/java/com/egolm/shop/service/impl/UserServiceImpl.java
+8
-5
No files found.
src/main/java/com/egolm/shop/service/impl/UserServiceImpl.java
View file @
07dd3671
...
@@ -814,14 +814,17 @@ public class UserServiceImpl implements UserService {
...
@@ -814,14 +814,17 @@ public class UserServiceImpl implements UserService {
String
sql
=
"exec up_B2BUserRegisterLogin ?, ?, ?, ?"
;
String
sql
=
"exec up_B2BUserRegisterLogin ?, ?, ?, ?"
;
ResultMutil
result
=
jdbcTemplate
.
executeMutil
(
sql
,
orgNo
,
openId
,
mobile
,
name
);
ResultMutil
result
=
jdbcTemplate
.
executeMutil
(
sql
,
orgNo
,
openId
,
mobile
,
name
);
List
<
List
<
Map
<
String
,
Object
>>>
datas
=
result
.
getDatas
();
List
<
List
<
Map
<
String
,
Object
>>>
datas
=
result
.
getDatas
();
List
<
Map
<
String
,
Object
>>
s
List
=
datas
.
get
(
0
);
List
<
Map
<
String
,
Object
>>
u
List
=
datas
.
get
(
0
);
List
<
Map
<
String
,
Object
>>
shopList
=
datas
.
get
(
3
);
List
<
Map
<
String
,
Object
>>
shopList
=
datas
.
get
(
3
);
if
(
StringUtil
.
isBlank
(
mobile
)
&&
uList
.
size
()
==
0
)
{
throw
new
XException
(
"账户不存在"
,
201
);
}
if
(
shopList
.
size
()
==
0
)
{
if
(
shopList
.
size
()
==
0
)
{
throw
new
XException
(
"该账号暂未绑定门店"
);
throw
new
XException
(
"该账号暂未绑定门店"
);
}
}
Map
<
String
,
Object
>
sMap
=
s
List
.
get
(
0
);
Map
<
String
,
Object
>
uMap
=
u
List
.
get
(
0
);
Object
Status
=
s
Map
.
get
(
"Status"
);
Object
Status
=
u
Map
.
get
(
"Status"
);
Object
ErrorMsg
=
s
Map
.
get
(
"ErrorMsg"
);
Object
ErrorMsg
=
u
Map
.
get
(
"ErrorMsg"
);
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>();
...
@@ -830,7 +833,7 @@ public class UserServiceImpl implements UserService {
...
@@ -830,7 +833,7 @@ public class UserServiceImpl implements UserService {
if
(
code
!=
0
)
{
if
(
code
!=
0
)
{
throw
throwLoginError
(
ErrorMsg
);
throw
throwLoginError
(
ErrorMsg
);
}
else
{
}
else
{
map
.
put
(
"userinfo"
,
s
Map
);
map
.
put
(
"userinfo"
,
u
Map
);
map
.
put
(
"customer"
,
datas
.
get
(
1
).
get
(
0
));
map
.
put
(
"customer"
,
datas
.
get
(
1
).
get
(
0
));
map
.
put
(
"bankList"
,
datas
.
get
(
2
));
map
.
put
(
"bankList"
,
datas
.
get
(
2
));
map
.
put
(
"shopList"
,
datas
.
get
(
3
));
map
.
put
(
"shopList"
,
datas
.
get
(
3
));
...
...
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