Commit ec9bc5c5 authored by Quxl's avatar Quxl

修改演职员接口

parent 6d170d1f
......@@ -164,6 +164,7 @@ public class MemberApplyController {
@ApiImplicitParams({
@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_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_film_nums", value="演职员第几部长片"),
@ApiImplicitParam(paramType="query", dataType="string", allowMultiple=true, required=false, name="playactor_country", value="演职员国家"),
......@@ -174,6 +175,7 @@ public class MemberApplyController {
public Object saveMemberFilmPlayactor(
Long member_film_id,
String[] playactor_type,
String[] playactor_role_name,
String[] playactor_name,
String[] playactor_film_nums,
String[] playactor_country,
......@@ -187,6 +189,7 @@ public class MemberApplyController {
member_id,
member_film_id,
playactor_type,
playactor_role_name,
playactor_name,
playactor_film_nums,
playactor_country,
......
......@@ -90,6 +90,7 @@ public interface MemberService {
Integer member_id,
Long member_film_id,
String[] playactor_type,
String[] playactor_role_name,
String[] playactor_name,
String[] playactor_film_nums,
String[] playactor_country,
......
......@@ -282,6 +282,7 @@ public class MemberServiceImpl implements MemberService {
Integer member_id,
Long member_film_id,
String[] playactor_type,
String[] playactor_role_name,
String[] playactor_name,
String[] playactor_film_nums,
String[] playactor_country,
......@@ -289,7 +290,8 @@ public class MemberServiceImpl implements MemberService {
String[] playactor_intro,
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_film_nums.length == playactor_country.length &&
playactor_country.length == playactor_birthday.length &&
......@@ -309,7 +311,8 @@ public class MemberServiceImpl implements MemberService {
playactor_country[i],
playactor_birthday[i],
create_time,
playactor_type[i]});
playactor_type[i],
playactor_role_name[i]});
} else {
directors.add(new Object[] {
member_film_id,
......@@ -333,9 +336,10 @@ public class MemberServiceImpl implements MemberService {
+ "playactor_country, "
+ "playactor_birthday, "
+ "create_time, "
+ "playactor_type)"
+ "playactor_type, "
+ "playactor_role_name)"
+ "values "
+ "(?, ?, ?, ?, ?, ?, ?, ?)";
+ "(?, ?, ?, ?, ?, ?, ?, ?, ?)";
String sql_director = ""
+ "insert into fc_member_film_director ("
+ "film_id, "
......
......@@ -6,7 +6,7 @@ import javax.persistence.Id;
/**
* @author 曲欣亮
* @since 2018-10-17
* @since 2018-11-02
* @version v-1.0
*/
@Entity(name="fc_member_film_playactor")
......@@ -47,6 +47,11 @@ public class Fc_member_film_playactor implements java.io.Serializable {
*/
private String playactor_type;
/**
* 饰演的角色名
*/
private String playactor_role_name;
/**
* 报名影片ID
*/
......@@ -71,10 +76,11 @@ public class Fc_member_film_playactor implements java.io.Serializable {
* @param playactor_film_intro 参与过哪部影片
* @param playactor_film_nums 该片为第几部长片(包括配角)
* @param playactor_type 演职人员类型(女演员,男演员,制片人,编剧,摄影师)
* @param playactor_role_name 饰演的角色名
* @param film_id 报名影片ID
* @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.playactor_name = playactor_name;
this.playactor_country = playactor_country;
......@@ -82,6 +88,7 @@ public class Fc_member_film_playactor implements java.io.Serializable {
this.playactor_film_intro = playactor_film_intro;
this.playactor_film_nums = playactor_film_nums;
this.playactor_type = playactor_type;
this.playactor_role_name = playactor_role_name;
this.film_id = film_id;
this.create_time = create_time;
}
......@@ -142,6 +149,14 @@ public class Fc_member_film_playactor implements java.io.Serializable {
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) {
this.film_id = film_id;
}
......
......@@ -14,7 +14,7 @@ public class DBUtil {
"film_critic_2018",
"root",
"egolm#2018");
mysqlTo.execute("fc_member_film");
mysqlTo.execute("fc_member_film_playactor");
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment