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
2187d2b6
Commit
2187d2b6
authored
Dec 10, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
84487b4c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
UserController.java
src/main/java/com/egolm/shop/controller/UserController.java
+1
-1
UserService.java
src/main/java/com/egolm/shop/service/UserService.java
+1
-1
UserServiceImpl.java
...ain/java/com/egolm/shop/service/impl/UserServiceImpl.java
+3
-3
No files found.
src/main/java/com/egolm/shop/controller/UserController.java
View file @
2187d2b6
...
...
@@ -203,7 +203,7 @@ public class UserController {
XException
.
assertNotBlank
(
openId
,
"OpenID不能为空"
);
mobile
=
StringUtil
.
isBlank
(
mobile
)
?
""
:
mobile
;
name
=
StringUtil
.
isBlank
(
name
)
?
""
:
name
;
Map
<
String
,
Object
>
map
=
userService
.
loginByOpenId
(
orgNo
,
openId
,
mobile
,
name
);
Map
<
String
,
Object
>
map
=
userService
.
loginByOpenId
(
orgNo
,
openId
,
mobile
,
unionId
,
name
);
Rjx
rjx
=
Rjx
.
jsonOk
();
rjx
.
putAll
(
map
);
return
rjx
.
toJson
();
...
...
src/main/java/com/egolm/shop/service/UserService.java
View file @
2187d2b6
...
...
@@ -49,7 +49,7 @@ public interface UserService {
public
List
<
Map
<
String
,
Object
>>
queryBankList
(
String
sCustNO
);
public
Map
<
String
,
Object
>
loginByOpenId
(
String
orgNo
,
String
openId
,
String
mobile
,
String
name
);
public
Map
<
String
,
Object
>
loginByOpenId
(
String
orgNo
,
String
openId
,
String
mobile
,
String
unionId
,
String
name
);
public
void
updateB2BUnionID
(
String
UserNO
,
String
UnionID
);
...
...
src/main/java/com/egolm/shop/service/impl/UserServiceImpl.java
View file @
2187d2b6
...
...
@@ -810,10 +810,10 @@ public class UserServiceImpl implements UserService {
}
@Override
public
Map
<
String
,
Object
>
loginByOpenId
(
String
orgNo
,
String
openId
,
String
mobile
,
String
name
)
{
public
Map
<
String
,
Object
>
loginByOpenId
(
String
orgNo
,
String
openId
,
String
mobile
,
String
unionId
,
String
name
)
{
mobile
=
StringUtil
.
isBlank
(
mobile
)
?
null
:
mobile
;
String
sql
=
"exec up_B2BUserRegisterLogin ?, ?, ?, ?"
;
ResultMutil
result
=
jdbcTemplate
.
executeMutil
(
sql
,
orgNo
,
openId
,
mobile
,
name
);
String
sql
=
"exec up_B2BUserRegisterLogin ?, ?, ?, ?
, ?
"
;
ResultMutil
result
=
jdbcTemplate
.
executeMutil
(
sql
,
orgNo
,
openId
,
mobile
,
unionId
,
name
);
List
<
List
<
Map
<
String
,
Object
>>>
datas
=
result
.
getDatas
();
List
<
Map
<
String
,
Object
>>
uList
=
datas
.
get
(
0
);
Map
<
String
,
Object
>
uMap
=
uList
.
get
(
0
);
...
...
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