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
ec9bc5c5
Commit
ec9bc5c5
authored
Nov 02, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改演职员接口
parent
6d170d1f
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
7 deletions
+30
-7
MemberApplyController.java
...java/com/egolm/film/api/member/MemberApplyController.java
+3
-0
MemberService.java
...java/com/egolm/film/api/member/service/MemberService.java
+1
-0
MemberServiceImpl.java
...egolm/film/api/member/service/impl/MemberServiceImpl.java
+8
-4
Fc_member_film_playactor.java
...in/java/com/egolm/film/bean/Fc_member_film_playactor.java
+17
-2
DBUtil.java
src/main/java/com/egolm/film/util/DBUtil.java
+1
-1
No files found.
src/main/java/com/egolm/film/api/member/MemberApplyController.java
View file @
ec9bc5c5
...
@@ -164,6 +164,7 @@ public class MemberApplyController {
...
@@ -164,6 +164,7 @@ public class MemberApplyController {
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
allowMultiple
=
false
,
required
=
true
,
name
=
"member_film_id"
,
value
=
"影片ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
allowMultiple
=
false
,
required
=
true
,
name
=
"member_film_id"
,
value
=
"影片ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
allowMultiple
=
true
,
required
=
true
,
name
=
"playactor_type"
,
value
=
"演职员类型"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
allowMultiple
=
true
,
required
=
true
,
name
=
"playactor_type"
,
value
=
"演职员类型"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
allowMultiple
=
true
,
required
=
true
,
name
=
"playactor_role_name"
,
value
=
"饰演的角色名"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
allowMultiple
=
true
,
required
=
true
,
name
=
"playactor_name"
,
value
=
"演职员名称"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
allowMultiple
=
true
,
required
=
true
,
name
=
"playactor_name"
,
value
=
"演职员名称"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
allowMultiple
=
true
,
required
=
true
,
name
=
"playactor_film_nums"
,
value
=
"演职员第几部长片"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
allowMultiple
=
true
,
required
=
true
,
name
=
"playactor_film_nums"
,
value
=
"演职员第几部长片"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
allowMultiple
=
true
,
required
=
false
,
name
=
"playactor_country"
,
value
=
"演职员国家"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
allowMultiple
=
true
,
required
=
false
,
name
=
"playactor_country"
,
value
=
"演职员国家"
),
...
@@ -174,6 +175,7 @@ public class MemberApplyController {
...
@@ -174,6 +175,7 @@ public class MemberApplyController {
public
Object
saveMemberFilmPlayactor
(
public
Object
saveMemberFilmPlayactor
(
Long
member_film_id
,
Long
member_film_id
,
String
[]
playactor_type
,
String
[]
playactor_type
,
String
[]
playactor_role_name
,
String
[]
playactor_name
,
String
[]
playactor_name
,
String
[]
playactor_film_nums
,
String
[]
playactor_film_nums
,
String
[]
playactor_country
,
String
[]
playactor_country
,
...
@@ -187,6 +189,7 @@ public class MemberApplyController {
...
@@ -187,6 +189,7 @@ public class MemberApplyController {
member_id
,
member_id
,
member_film_id
,
member_film_id
,
playactor_type
,
playactor_type
,
playactor_role_name
,
playactor_name
,
playactor_name
,
playactor_film_nums
,
playactor_film_nums
,
playactor_country
,
playactor_country
,
...
...
src/main/java/com/egolm/film/api/member/service/MemberService.java
View file @
ec9bc5c5
...
@@ -90,6 +90,7 @@ public interface MemberService {
...
@@ -90,6 +90,7 @@ public interface MemberService {
Integer
member_id
,
Integer
member_id
,
Long
member_film_id
,
Long
member_film_id
,
String
[]
playactor_type
,
String
[]
playactor_type
,
String
[]
playactor_role_name
,
String
[]
playactor_name
,
String
[]
playactor_name
,
String
[]
playactor_film_nums
,
String
[]
playactor_film_nums
,
String
[]
playactor_country
,
String
[]
playactor_country
,
...
...
src/main/java/com/egolm/film/api/member/service/impl/MemberServiceImpl.java
View file @
ec9bc5c5
...
@@ -282,6 +282,7 @@ public class MemberServiceImpl implements MemberService {
...
@@ -282,6 +282,7 @@ public class MemberServiceImpl implements MemberService {
Integer
member_id
,
Integer
member_id
,
Long
member_film_id
,
Long
member_film_id
,
String
[]
playactor_type
,
String
[]
playactor_type
,
String
[]
playactor_role_name
,
String
[]
playactor_name
,
String
[]
playactor_name
,
String
[]
playactor_film_nums
,
String
[]
playactor_film_nums
,
String
[]
playactor_country
,
String
[]
playactor_country
,
...
@@ -289,7 +290,8 @@ public class MemberServiceImpl implements MemberService {
...
@@ -289,7 +290,8 @@ public class MemberServiceImpl implements MemberService {
String
[]
playactor_intro
,
String
[]
playactor_intro
,
Integer
[]
is_play_shanghai
)
{
Integer
[]
is_play_shanghai
)
{
if
(
playactor_type
.
length
==
playactor_name
.
length
&&
if
(
playactor_type
.
length
==
playactor_role_name
.
length
&&
playactor_role_name
.
length
==
playactor_name
.
length
&&
playactor_name
.
length
==
playactor_film_nums
.
length
&&
playactor_name
.
length
==
playactor_film_nums
.
length
&&
playactor_film_nums
.
length
==
playactor_country
.
length
&&
playactor_film_nums
.
length
==
playactor_country
.
length
&&
playactor_country
.
length
==
playactor_birthday
.
length
&&
playactor_country
.
length
==
playactor_birthday
.
length
&&
...
@@ -309,7 +311,8 @@ public class MemberServiceImpl implements MemberService {
...
@@ -309,7 +311,8 @@ public class MemberServiceImpl implements MemberService {
playactor_country
[
i
],
playactor_country
[
i
],
playactor_birthday
[
i
],
playactor_birthday
[
i
],
create_time
,
create_time
,
playactor_type
[
i
]});
playactor_type
[
i
],
playactor_role_name
[
i
]});
}
else
{
}
else
{
directors
.
add
(
new
Object
[]
{
directors
.
add
(
new
Object
[]
{
member_film_id
,
member_film_id
,
...
@@ -333,9 +336,10 @@ public class MemberServiceImpl implements MemberService {
...
@@ -333,9 +336,10 @@ public class MemberServiceImpl implements MemberService {
+
"playactor_country, "
+
"playactor_country, "
+
"playactor_birthday, "
+
"playactor_birthday, "
+
"create_time, "
+
"create_time, "
+
"playactor_type)"
+
"playactor_type, "
+
"playactor_role_name)"
+
"values "
+
"values "
+
"(?, ?, ?, ?, ?, ?, ?, ?)"
;
+
"(?, ?, ?, ?, ?, ?, ?, ?
, ?
)"
;
String
sql_director
=
""
String
sql_director
=
""
+
"insert into fc_member_film_director ("
+
"insert into fc_member_film_director ("
+
"film_id, "
+
"film_id, "
...
...
src/main/java/com/egolm/film/bean/Fc_member_film_playactor.java
View file @
ec9bc5c5
...
@@ -6,7 +6,7 @@ import javax.persistence.Id;
...
@@ -6,7 +6,7 @@ import javax.persistence.Id;
/**
/**
* @author 曲欣亮
* @author 曲欣亮
* @since 2018-1
0-17
* @since 2018-1
1-02
* @version v-1.0
* @version v-1.0
*/
*/
@Entity
(
name
=
"fc_member_film_playactor"
)
@Entity
(
name
=
"fc_member_film_playactor"
)
...
@@ -47,6 +47,11 @@ public class Fc_member_film_playactor implements java.io.Serializable {
...
@@ -47,6 +47,11 @@ public class Fc_member_film_playactor implements java.io.Serializable {
*/
*/
private
String
playactor_type
;
private
String
playactor_type
;
/**
* 饰演的角色名
*/
private
String
playactor_role_name
;
/**
/**
* 报名影片ID
* 报名影片ID
*/
*/
...
@@ -71,10 +76,11 @@ public class Fc_member_film_playactor implements java.io.Serializable {
...
@@ -71,10 +76,11 @@ public class Fc_member_film_playactor implements java.io.Serializable {
* @param playactor_film_intro 参与过哪部影片
* @param playactor_film_intro 参与过哪部影片
* @param playactor_film_nums 该片为第几部长片(包括配角)
* @param playactor_film_nums 该片为第几部长片(包括配角)
* @param playactor_type 演职人员类型(女演员,男演员,制片人,编剧,摄影师)
* @param playactor_type 演职人员类型(女演员,男演员,制片人,编剧,摄影师)
* @param playactor_role_name 饰演的角色名
* @param film_id 报名影片ID
* @param film_id 报名影片ID
* @param create_time
* @param create_time
*/
*/
public
Fc_member_film_playactor
(
Integer
id
,
String
playactor_name
,
String
playactor_country
,
String
playactor_birthday
,
String
playactor_film_intro
,
String
playactor_film_nums
,
String
playactor_type
,
Integer
film_id
,
Integer
create_time
)
{
public
Fc_member_film_playactor
(
Integer
id
,
String
playactor_name
,
String
playactor_country
,
String
playactor_birthday
,
String
playactor_film_intro
,
String
playactor_film_nums
,
String
playactor_type
,
String
playactor_role_name
,
Integer
film_id
,
Integer
create_time
)
{
this
.
id
=
id
;
this
.
id
=
id
;
this
.
playactor_name
=
playactor_name
;
this
.
playactor_name
=
playactor_name
;
this
.
playactor_country
=
playactor_country
;
this
.
playactor_country
=
playactor_country
;
...
@@ -82,6 +88,7 @@ public class Fc_member_film_playactor implements java.io.Serializable {
...
@@ -82,6 +88,7 @@ public class Fc_member_film_playactor implements java.io.Serializable {
this
.
playactor_film_intro
=
playactor_film_intro
;
this
.
playactor_film_intro
=
playactor_film_intro
;
this
.
playactor_film_nums
=
playactor_film_nums
;
this
.
playactor_film_nums
=
playactor_film_nums
;
this
.
playactor_type
=
playactor_type
;
this
.
playactor_type
=
playactor_type
;
this
.
playactor_role_name
=
playactor_role_name
;
this
.
film_id
=
film_id
;
this
.
film_id
=
film_id
;
this
.
create_time
=
create_time
;
this
.
create_time
=
create_time
;
}
}
...
@@ -142,6 +149,14 @@ public class Fc_member_film_playactor implements java.io.Serializable {
...
@@ -142,6 +149,14 @@ public class Fc_member_film_playactor implements java.io.Serializable {
return
playactor_type
;
return
playactor_type
;
}
}
public
void
setPlayactor_role_name
(
String
playactor_role_name
)
{
this
.
playactor_role_name
=
playactor_role_name
;
}
public
String
getPlayactor_role_name
()
{
return
playactor_role_name
;
}
public
void
setFilm_id
(
Integer
film_id
)
{
public
void
setFilm_id
(
Integer
film_id
)
{
this
.
film_id
=
film_id
;
this
.
film_id
=
film_id
;
}
}
...
...
src/main/java/com/egolm/film/util/DBUtil.java
View file @
ec9bc5c5
...
@@ -14,7 +14,7 @@ public class DBUtil {
...
@@ -14,7 +14,7 @@ public class DBUtil {
"film_critic_2018"
,
"film_critic_2018"
,
"root"
,
"root"
,
"egolm#2018"
);
"egolm#2018"
);
mysqlTo
.
execute
(
"fc_member_film"
);
mysqlTo
.
execute
(
"fc_member_film
_playactor
"
);
}
}
}
}
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