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
b2c7b5ea
Commit
b2c7b5ea
authored
Oct 11, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取申报信息详情
parent
d565a2ed
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
58 additions
and
3 deletions
+58
-3
MemberApplyController.java
...java/com/egolm/film/api/member/MemberApplyController.java
+13
-3
MemberService.java
...java/com/egolm/film/api/member/service/MemberService.java
+15
-0
MemberServiceImpl.java
...egolm/film/api/member/service/impl/MemberServiceImpl.java
+30
-0
No files found.
src/main/java/com/egolm/film/api/member/MemberApplyController.java
View file @
b2c7b5ea
...
@@ -12,6 +12,11 @@ import org.springframework.web.bind.annotation.ResponseBody;
...
@@ -12,6 +12,11 @@ import org.springframework.web.bind.annotation.ResponseBody;
import
com.egolm.common.bean.Rjx
;
import
com.egolm.common.bean.Rjx
;
import
com.egolm.film.api.member.model.ApplyModel
;
import
com.egolm.film.api.member.model.ApplyModel
;
import
com.egolm.film.api.member.service.MemberService
;
import
com.egolm.film.api.member.service.MemberService
;
import
com.egolm.film.bean.Fc_member_film
;
import
com.egolm.film.bean.Fc_member_film_director
;
import
com.egolm.film.bean.Fc_member_film_issuer
;
import
com.egolm.film.bean.Fc_member_film_playactor
;
import
com.egolm.film.bean.Fc_member_film_show
;
import
com.egolm.film.login.service.MemberTokenService
;
import
com.egolm.film.login.service.MemberTokenService
;
import
com.egolm.film.model.LoginToken
;
import
com.egolm.film.model.LoginToken
;
...
@@ -51,9 +56,14 @@ public class MemberApplyController {
...
@@ -51,9 +56,14 @@ public class MemberApplyController {
@ResponseBody
@ResponseBody
@PostMapping
(
"get"
)
@PostMapping
(
"get"
)
@ApiOperation
(
"获取申报详情"
)
@ApiOperation
(
"获取申报详情"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"id"
)})
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
required
=
true
,
name
=
"id"
)})
public
Object
get
(
String
id
)
{
public
Object
get
(
Long
id
)
{
return
Rjx
.
jsonOk
();
Fc_member_film
memberFilm
=
memberService
.
queryMemberFilmById
(
id
);
List
<
Fc_member_film_director
>
directorList
=
memberService
.
queryMemberFilmDirectorList
(
memberFilm
.
getId
());
List
<
Fc_member_film_issuer
>
issuerList
=
memberService
.
queryMemberFilmIssuerList
(
memberFilm
.
getId
());
List
<
Fc_member_film_playactor
>
playactorList
=
memberService
.
queryMemberFilmPlayactorList
(
memberFilm
.
getId
());
List
<
Fc_member_film_show
>
showList
=
memberService
.
queryMemberFilmShowList
(
memberFilm
.
getId
());
return
Rjx
.
jsonOk
().
setData
(
memberFilm
).
set
(
"directorList"
,
directorList
).
set
(
"issuerList"
,
issuerList
).
set
(
"playactorList"
,
playactorList
).
set
(
"showList"
,
showList
);
}
}
@ResponseBody
@ResponseBody
...
...
src/main/java/com/egolm/film/api/member/service/MemberService.java
View file @
b2c7b5ea
...
@@ -4,6 +4,11 @@ import java.util.List;
...
@@ -4,6 +4,11 @@ import java.util.List;
import
java.util.Map
;
import
java.util.Map
;
import
com.egolm.film.bean.Fc_member
;
import
com.egolm.film.bean.Fc_member
;
import
com.egolm.film.bean.Fc_member_film
;
import
com.egolm.film.bean.Fc_member_film_director
;
import
com.egolm.film.bean.Fc_member_film_issuer
;
import
com.egolm.film.bean.Fc_member_film_playactor
;
import
com.egolm.film.bean.Fc_member_film_show
;
public
interface
MemberService
{
public
interface
MemberService
{
...
@@ -23,4 +28,14 @@ public interface MemberService {
...
@@ -23,4 +28,14 @@ public interface MemberService {
boolean
exists
(
String
email
);
boolean
exists
(
String
email
);
Fc_member_film
queryMemberFilmById
(
Long
id
);
List
<
Fc_member_film_director
>
queryMemberFilmDirectorList
(
Long
member_film_id
);
List
<
Fc_member_film_issuer
>
queryMemberFilmIssuerList
(
Long
member_film_id
);
List
<
Fc_member_film_playactor
>
queryMemberFilmPlayactorList
(
Long
member_film_id
);
List
<
Fc_member_film_show
>
queryMemberFilmShowList
(
Long
member_film_id
);
}
}
src/main/java/com/egolm/film/api/member/service/impl/MemberServiceImpl.java
View file @
b2c7b5ea
...
@@ -9,6 +9,11 @@ import org.springframework.stereotype.Service;
...
@@ -9,6 +9,11 @@ import org.springframework.stereotype.Service;
import
com.egolm.common.jdbc.JdbcTemplate
;
import
com.egolm.common.jdbc.JdbcTemplate
;
import
com.egolm.film.api.member.service.MemberService
;
import
com.egolm.film.api.member.service.MemberService
;
import
com.egolm.film.bean.Fc_member
;
import
com.egolm.film.bean.Fc_member
;
import
com.egolm.film.bean.Fc_member_film
;
import
com.egolm.film.bean.Fc_member_film_director
;
import
com.egolm.film.bean.Fc_member_film_issuer
;
import
com.egolm.film.bean.Fc_member_film_playactor
;
import
com.egolm.film.bean.Fc_member_film_show
;
@Service
@Service
...
@@ -62,4 +67,29 @@ public class MemberServiceImpl implements MemberService {
...
@@ -62,4 +67,29 @@ public class MemberServiceImpl implements MemberService {
return
jdbcTemplate
.
queryForInt
(
"select count(*) from fc_member where email = ?"
,
email
)
>
0
;
return
jdbcTemplate
.
queryForInt
(
"select count(*) from fc_member where email = ?"
,
email
)
>
0
;
}
}
@Override
public
Fc_member_film
queryMemberFilmById
(
Long
id
)
{
return
jdbcTemplate
.
queryForBean
(
"select * from fc_member_film where id = ?"
,
Fc_member_film
.
class
,
id
);
}
@Override
public
List
<
Fc_member_film_director
>
queryMemberFilmDirectorList
(
Long
member_film_id
)
{
return
jdbcTemplate
.
queryForBeans
(
"select * from fc_member_film_director where film_id = ?"
,
Fc_member_film_director
.
class
,
member_film_id
);
}
@Override
public
List
<
Fc_member_film_issuer
>
queryMemberFilmIssuerList
(
Long
member_film_id
)
{
return
jdbcTemplate
.
queryForBeans
(
"select * from fc_member_film_issuer where film_id = ?"
,
Fc_member_film_issuer
.
class
,
member_film_id
);
}
@Override
public
List
<
Fc_member_film_playactor
>
queryMemberFilmPlayactorList
(
Long
member_film_id
)
{
return
jdbcTemplate
.
queryForBeans
(
"select * from fc_member_film_playactor where film_id = ?"
,
Fc_member_film_playactor
.
class
,
member_film_id
);
}
@Override
public
List
<
Fc_member_film_show
>
queryMemberFilmShowList
(
Long
member_film_id
)
{
return
jdbcTemplate
.
queryForBeans
(
"select * from fc_member_film_show where film_id = ?"
,
Fc_member_film_show
.
class
,
member_film_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