Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
member-api
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
曲欣亮
member-api
Commits
571d8e5c
Commit
571d8e5c
authored
Oct 10, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保存,更新会员基本信息
parent
cf745d8e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
+18
-0
MemberInfoController.java
.../java/com/egolm/film/api/member/MemberInfoController.java
+3
-0
MemberService.java
src/main/java/com/egolm/film/common/MemberService.java
+4
-0
MemberServiceImpl.java
...in/java/com/egolm/film/common/impl/MemberServiceImpl.java
+11
-0
No files found.
src/main/java/com/egolm/film/api/member/MemberInfoController.java
View file @
571d8e5c
...
...
@@ -49,6 +49,9 @@ public class MemberInfoController {
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
name
=
"tel"
),
})
public
Object
save
(
String
email
,
String
realname
,
String
address
,
String
company
,
String
tel
)
{
LoginToken
loginToken
=
tokenService
.
getToken
();
Integer
id
=
(
Integer
)
loginToken
.
getId
();
memberService
.
updateMember
(
id
,
email
,
realname
,
address
,
company
,
tel
);
return
Rjx
.
jsonOk
();
}
...
...
src/main/java/com/egolm/film/common/MemberService.java
View file @
571d8e5c
...
...
@@ -14,4 +14,8 @@ public interface MemberService {
Fc_member
getMemberById
(
Integer
id
);
void
mergeMember
(
Fc_member
member
);
void
updateMember
(
Integer
id
,
String
email
,
String
realname
,
String
address
,
String
company
,
String
tel
);
}
src/main/java/com/egolm/film/common/impl/MemberServiceImpl.java
View file @
571d8e5c
...
...
@@ -43,4 +43,15 @@ public class MemberServiceImpl implements MemberService {
return
jdbcTemplate
.
queryForBean
(
sql
,
Fc_member
.
class
,
id
);
}
@Override
public
void
mergeMember
(
Fc_member
member
)
{
jdbcTemplate
.
merge
(
member
);
}
@Override
public
void
updateMember
(
Integer
id
,
String
email
,
String
realname
,
String
address
,
String
company
,
String
tel
)
{
String
sql
=
"update fc_member set email = ?, realname = ?, address = ?, company = ?, tel = ? where id = ?"
;
jdbcTemplate
.
executeUpdate
(
sql
,
email
,
realname
,
address
,
company
,
tel
,
id
);
}
}
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