Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
sentinel
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
曲欣亮
sentinel
Commits
f7abffa4
Commit
f7abffa4
authored
Oct 10, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询申报项目列表
parent
01dc024b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
1 deletion
+31
-1
MemberApplyController.java
...java/com/egolm/film/api/member/MemberApplyController.java
+17
-1
MemberService.java
...java/com/egolm/film/api/member/service/MemberService.java
+5
-0
MemberServiceImpl.java
...egolm/film/api/member/service/impl/MemberServiceImpl.java
+9
-0
No files found.
src/main/java/com/egolm/film/api/member/MemberApplyController.java
View file @
f7abffa4
package
com
.
egolm
.
film
.
api
.
member
;
import
java.util.List
;
import
java.util.Map
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
...
@@ -7,6 +11,9 @@ import org.springframework.web.bind.annotation.ResponseBody;
import
com.egolm.common.bean.Rjx
;
import
com.egolm.film.api.member.model.ApplyModel
;
import
com.egolm.film.api.member.service.MemberService
;
import
com.egolm.film.login.service.MemberTokenService
;
import
com.egolm.film.model.LoginToken
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParam
;
...
...
@@ -17,12 +24,21 @@ import io.swagger.annotations.ApiOperation;
@Controller
@RequestMapping
(
"member/apply"
)
public
class
MemberApplyController
{
@Autowired
private
MemberService
memberService
;
@Autowired
private
MemberTokenService
tokenService
;
@ResponseBody
@PostMapping
(
"list"
)
@ApiOperation
(
"申报项目查询"
)
public
Object
list
()
{
return
Rjx
.
jsonOk
();
LoginToken
loginToken
=
tokenService
.
getToken
();
Integer
member_id
=
(
Integer
)
loginToken
.
getId
();
List
<
Map
<
String
,
Object
>>
list
=
memberService
.
queryListByMemberID
(
member_id
);
return
Rjx
.
jsonOk
().
setData
(
list
);
}
@ResponseBody
...
...
src/main/java/com/egolm/film/api/member/service/MemberService.java
View file @
f7abffa4
package
com
.
egolm
.
film
.
api
.
member
.
service
;
import
java.util.List
;
import
java.util.Map
;
import
com.egolm.film.bean.Fc_member
;
public
interface
MemberService
{
...
...
@@ -18,4 +21,6 @@ public interface MemberService {
void
updateMember
(
Integer
id
,
String
email
,
String
realname
,
String
address
,
String
company
,
String
tel
);
List
<
Map
<
String
,
Object
>>
queryListByMemberID
(
Integer
member_id
);
}
src/main/java/com/egolm/film/api/member/service/impl/MemberServiceImpl.java
View file @
f7abffa4
package
com
.
egolm
.
film
.
api
.
member
.
service
.
impl
;
import
java.util.List
;
import
java.util.Map
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -54,4 +57,10 @@ public class MemberServiceImpl implements MemberService {
jdbcTemplate
.
executeUpdate
(
sql
,
email
,
realname
,
address
,
company
,
tel
,
id
);
}
@Override
public
List
<
Map
<
String
,
Object
>>
queryListByMemberID
(
Integer
member_id
)
{
String
sql
=
"select * from fc_member_film where member_id = ?"
;
return
jdbcTemplate
.
queryForList
(
sql
,
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