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
aeefd973
Commit
aeefd973
authored
Dec 10, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://key@gitlab.egolm.com/key/shop.git
parents
d6fe724a
e40da28b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
451 additions
and
426 deletions
+451
-426
UserController.java
src/main/java/com/egolm/shop/controller/UserController.java
+389
-372
UserService.java
src/main/java/com/egolm/shop/service/UserService.java
+56
-54
UserServiceImpl.java
...ain/java/com/egolm/shop/service/impl/UserServiceImpl.java
+6
-0
No files found.
src/main/java/com/egolm/shop/controller/UserController.java
View file @
aeefd973
...
@@ -369,4 +369,21 @@ public class UserController {
...
@@ -369,4 +369,21 @@ public class UserController {
return
Rjx
.
jsonOk
().
toJson
();
return
Rjx
.
jsonOk
().
toJson
();
}
}
@ApiOperation
(
"修改B2B用户UnionID"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"UserNO"
,
dataType
=
"String"
,
required
=
true
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"UnionID"
,
dataType
=
"String"
,
required
=
true
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"langID"
,
dataType
=
"String"
,
required
=
true
,
value
=
"语言"
,
defaultValue
=
"936"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"terminal"
,
dataType
=
"String"
,
required
=
true
,
value
=
"终端标识"
,
defaultValue
=
"wechat"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"sign"
,
dataType
=
"String"
,
required
=
true
,
value
=
"签名"
,
defaultValue
=
""
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"timestamp"
,
dataType
=
"String"
,
required
=
true
,
value
=
"时间戳"
,
defaultValue
=
""
)
})
@RequestMapping
(
value
=
"/updateB2BUnionID"
,
method
=
RequestMethod
.
GET
)
public
String
updateB2BUnionID
(
String
UserNO
,
String
UnionID
)
{
userService
.
updateB2BUnionID
(
UserNO
,
UnionID
);
return
Rjx
.
jsonOk
().
toJson
();
}
}
}
src/main/java/com/egolm/shop/service/UserService.java
View file @
aeefd973
...
@@ -51,4 +51,6 @@ public interface UserService {
...
@@ -51,4 +51,6 @@ public interface UserService {
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
name
);
public
void
updateB2BUnionID
(
String
UserNO
,
String
UnionID
);
}
}
src/main/java/com/egolm/shop/service/impl/UserServiceImpl.java
View file @
aeefd973
...
@@ -847,4 +847,10 @@ public class UserServiceImpl implements UserService {
...
@@ -847,4 +847,10 @@ public class UserServiceImpl implements UserService {
}
}
return
new
XException
((
String
)
errorMsg
);
return
new
XException
((
String
)
errorMsg
);
}
}
@Override
public
void
updateB2BUnionID
(
String
UserNO
,
String
UnionID
)
{
jdbcTemplate
.
update
(
"update tB2BUser set sUnionID = ? ,dLastUpdateTime = getdate() where sUserNO = ?"
,
UnionID
,
UserNO
);
}
}
}
\ No newline at end of file
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