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
6e69308f
Commit
6e69308f
authored
Oct 12, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交申报
parent
b2c7b5ea
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
MemberApplyController.java
...java/com/egolm/film/api/member/MemberApplyController.java
+4
-1
MemberService.java
...java/com/egolm/film/api/member/service/MemberService.java
+2
-0
MemberServiceImpl.java
...egolm/film/api/member/service/impl/MemberServiceImpl.java
+5
-0
No files found.
src/main/java/com/egolm/film/api/member/MemberApplyController.java
View file @
6e69308f
...
...
@@ -70,7 +70,10 @@ public class MemberApplyController {
@PostMapping
(
"doApply"
)
@ApiOperation
(
"提交申报"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"id"
)})
public
Object
doApply
(
String
id
)
{
public
Object
doApply
(
Long
id
)
{
LoginToken
loginToken
=
tokenService
.
getToken
();
Integer
member_id
=
(
Integer
)
loginToken
.
getId
();
memberService
.
doApply
(
member_id
,
id
);
return
Rjx
.
jsonOk
();
}
...
...
src/main/java/com/egolm/film/api/member/service/MemberService.java
View file @
6e69308f
...
...
@@ -38,4 +38,6 @@ public interface MemberService {
List
<
Fc_member_film_show
>
queryMemberFilmShowList
(
Long
member_film_id
);
void
doApply
(
Integer
member_id
,
Long
member_film_id
);
}
src/main/java/com/egolm/film/api/member/service/impl/MemberServiceImpl.java
View file @
6e69308f
...
...
@@ -92,4 +92,9 @@ public class MemberServiceImpl implements MemberService {
return
jdbcTemplate
.
queryForBeans
(
"select * from fc_member_film_show where film_id = ?"
,
Fc_member_film_show
.
class
,
member_film_id
);
}
@Override
public
void
doApply
(
Integer
member_id
,
Long
member_film_id
)
{
jdbcTemplate
.
executeUpdate
(
"update fc_member_film set state = ?, apply_state = ? where id = ? and member_id = ?"
,
2
,
2
,
member_film_id
,
member_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