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
993142f2
Commit
993142f2
authored
Sep 17, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
cf835725
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
UserController.java
src/main/java/com/egolm/shop/controller/UserController.java
+3
-0
UserService.java
src/main/java/com/egolm/shop/service/UserService.java
+2
-0
UserServiceImpl.java
...ain/java/com/egolm/shop/service/impl/UserServiceImpl.java
+5
-0
No files found.
src/main/java/com/egolm/shop/controller/UserController.java
View file @
993142f2
...
...
@@ -13,6 +13,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.egolm.common.DateUtil
;
import
com.egolm.common.StringUtil
;
import
com.egolm.common.bean.Rjx
;
import
com.egolm.shop.config.XException
;
...
...
@@ -208,6 +209,8 @@ public class UserController {
}
else
{
throw
new
XException
(
"手机号码和OPENID不能为空"
);
}
}
else
{
userService
.
saveOpenId
((
String
)
customerMap
.
get
(
"sCustNO"
),
openId
);
}
String
custNo
=
(
String
)
customerMap
.
get
(
"sCustNO"
);
List
<
Map
<
String
,
Object
>>
shopList
=
userService
.
queryShopList
(
custNo
);
...
...
src/main/java/com/egolm/shop/service/UserService.java
View file @
993142f2
...
...
@@ -37,4 +37,6 @@ public interface UserService {
public
void
deleteOpenId
(
String
openId
);
public
void
saveOpenId
(
String
string
,
String
openId
);
}
src/main/java/com/egolm/shop/service/impl/UserServiceImpl.java
View file @
993142f2
...
...
@@ -552,4 +552,9 @@ public class UserServiceImpl implements UserService {
jdbcTemplate
.
update
(
"update tCustomer set sOpenID = ? where sOpenID = ?"
,
null
,
openId
);
}
@Override
public
void
saveOpenId
(
String
sCustNO
,
String
openId
)
{
jdbcTemplate
.
update
(
"update tCustomer set sOpenID = ? where sCustNO = ?"
,
openId
,
sCustNO
);
}
}
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