Commit eddf7c37 authored by Quxl's avatar Quxl

增加字段

parent 31bd0064
...@@ -66,9 +66,19 @@ public class MemberApplyController { ...@@ -66,9 +66,19 @@ public class MemberApplyController {
@ApiOperation("保存影片基本信息") @ApiOperation("保存影片基本信息")
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(paramType="query", dataType="long", required=true, name="member_film_id", value="影片ID"), @ApiImplicitParam(paramType="query", dataType="long", required=true, name="member_film_id", value="影片ID"),
@ApiImplicitParam(paramType="query", dataType="string", required=false, name="enroll_type_name_other", value="申报奖项", allowMultiple=true), @ApiImplicitParam(paramType="query", dataType="string", required=true, name="film_country", value="制作国家"),
@ApiImplicitParam(paramType="query", dataType="string", required=true, name="cn_name", value="中文名称"), @ApiImplicitParam(paramType="query", dataType="string", required=true, name="dialogue_lang", value="对白语言"),
@ApiImplicitParam(paramType="query", dataType="string", required=true, name="en_name", value="英文名称"), @ApiImplicitParam(paramType="query", dataType="string", required=true, name="subtitle_lang", value="字幕语言"),
@ApiImplicitParam(paramType="query", dataType="string", required=true, name="co_production_country", value="合拍国家"),
@ApiImplicitParam(paramType="query", dataType="string", required=true, name="film_total_time", value="影片时长"),
@ApiImplicitParam(paramType="query", dataType="string", required=true, name="completion_date", value="完成日期"),
@ApiImplicitParam(paramType="query", dataType="string", required=true, name="show_date", value="公映日期"),
@ApiImplicitParam(paramType="query", dataType="string", required=true, name="film_medium", value="影片色彩"),
@ApiImplicitParam(paramType="query", dataType="string", required=true, name="film_format", value="样片规格"),
@ApiImplicitParam(paramType="query", dataType="string", required=false, name="film_express_no", value="快递单号"),
@ApiImplicitParam(paramType="query", dataType="string", required=false, name="film_format_url", value="样片URL地址"),
@ApiImplicitParam(paramType="query", dataType="string", required=false, name="film_format_passw", value="样片URL访问密码"),
@ApiImplicitParam(paramType="query", dataType="string", required=false, name="film_format_other", value="其他样品信息"),
}) })
public Object saveMemberFilmBase( public Object saveMemberFilmBase(
Long member_film_id, Long member_film_id,
...@@ -101,6 +111,12 @@ public class MemberApplyController { ...@@ -101,6 +111,12 @@ public class MemberApplyController {
@ApiImplicitParam(paramType="query", dataType="string", required=true, name="film_total_time", value="影片时长"), @ApiImplicitParam(paramType="query", dataType="string", required=true, name="film_total_time", value="影片时长"),
@ApiImplicitParam(paramType="query", dataType="string", required=true, name="completion_date", value="完成日期"), @ApiImplicitParam(paramType="query", dataType="string", required=true, name="completion_date", value="完成日期"),
@ApiImplicitParam(paramType="query", dataType="string", required=true, name="show_date", value="公映日期"), @ApiImplicitParam(paramType="query", dataType="string", required=true, name="show_date", value="公映日期"),
@ApiImplicitParam(paramType="query", dataType="string", required=true, name="first_show_date", value="首次上映日期"),
@ApiImplicitParam(paramType="query", dataType="string", required=true, name="first_show_city", value="首次上映城市"),
@ApiImplicitParam(paramType="query", dataType="integer", required=true, name="is_apply_other_filmfest", value="是否申请其他电影节"),
@ApiImplicitParam(paramType="query", dataType="string", required=false, name="other_filmfest_name", value="申请其他电影节名称"),
@ApiImplicitParam(paramType="query", dataType="string", required=true, name="film_medium", value="影片色彩"), @ApiImplicitParam(paramType="query", dataType="string", required=true, name="film_medium", value="影片色彩"),
@ApiImplicitParam(paramType="query", dataType="string", required=true, name="film_format", value="样片规格"), @ApiImplicitParam(paramType="query", dataType="string", required=true, name="film_format", value="样片规格"),
@ApiImplicitParam(paramType="query", dataType="string", required=false, name="film_express_no", value="快递单号"), @ApiImplicitParam(paramType="query", dataType="string", required=false, name="film_express_no", value="快递单号"),
...@@ -117,6 +133,10 @@ public class MemberApplyController { ...@@ -117,6 +133,10 @@ public class MemberApplyController {
String film_total_time, String film_total_time,
String completion_date, String completion_date,
String show_date, String show_date,
String first_show_date,
String first_show_city,
Integer is_apply_other_filmfest,
String other_filmfest_name,
String film_medium, String film_medium,
String film_format, String film_format,
String film_express_no, String film_express_no,
...@@ -136,6 +156,10 @@ public class MemberApplyController { ...@@ -136,6 +156,10 @@ public class MemberApplyController {
film_total_time, film_total_time,
completion_date, completion_date,
show_date, show_date,
first_show_date,
first_show_city,
is_apply_other_filmfest,
other_filmfest_name,
film_medium, film_medium,
film_format, film_format,
film_express_no, film_express_no,
......
...@@ -76,6 +76,10 @@ public interface MemberService { ...@@ -76,6 +76,10 @@ public interface MemberService {
String film_total_time, String film_total_time,
String completion_date, String completion_date,
String show_date, String show_date,
String first_show_date,
String first_show_city,
Integer is_apply_other_filmfest,
String other_filmfest_name,
String film_medium, String film_medium,
String film_format, String film_format,
String film_express_no, String film_express_no,
......
...@@ -217,6 +217,10 @@ public class MemberServiceImpl implements MemberService { ...@@ -217,6 +217,10 @@ public class MemberServiceImpl implements MemberService {
String film_total_time, String film_total_time,
String completion_date, String completion_date,
String show_date, String show_date,
String first_show_date,
String first_show_city,
Integer is_apply_other_filmfest,
String other_filmfest_name,
String film_medium, String film_medium,
String film_format, String film_format,
String film_express_no, String film_express_no,
...@@ -225,9 +229,53 @@ public class MemberServiceImpl implements MemberService { ...@@ -225,9 +229,53 @@ public class MemberServiceImpl implements MemberService {
String film_format_other) { String film_format_other) {
Long last_modify_time = System.currentTimeMillis()/1000; Long last_modify_time = System.currentTimeMillis()/1000;
String sql = "update fc_member_film set film_country = ?, dialogue_lang = ?, subtitle_lang = ?, co_production_country = ?, film_total_time = ?, completion_date = ?, show_date = ?, film_medium = ?, film_format = ?, film_express_no = ?, film_format_url = ?, film_format_passw = ?, film_format_other = ?, last_modify_time = ? where member_id = ? and id = ?"; String sql = ""
+ "update "
+ "fc_member_film "
+ "set "
+ "film_country = ?, "
+ "dialogue_lang = ?, "
+ "subtitle_lang = ?, "
+ "co_production_country = ?, "
+ "film_total_time = ?, "
+ "completion_date = ?, "
+ "show_date = ?, "
+ "first_show_date = ?, "
+ "first_show_city = ?, "
+ "is_apply_other_filmfest = ?, "
+ "other_filmfest_name = ?, "
+ "film_medium = ?, "
+ "film_format = ?, "
+ "film_express_no = ?, "
+ "film_format_url = ?, "
+ "film_format_passw = ?, "
+ "film_format_other = ?, "
+ "last_modify_time = ? "
+ "where "
+ "member_id = ? "
+ "and id = ?";
String str = StringUtil.join(",", "", "", "", co_production_country); String str = StringUtil.join(",", "", "", "", co_production_country);
Object[] args = new Object[]{film_country, dialogue_lang, subtitle_lang, str, film_total_time, completion_date, show_date, film_medium, film_format, film_express_no, film_format_url, film_format_passw, film_format_other, last_modify_time, member_id, member_film_id}; Object[] args = new Object[]{
film_country,
dialogue_lang,
subtitle_lang,
str,
film_total_time,
completion_date,
show_date,
first_show_date,
first_show_city,
is_apply_other_filmfest,
other_filmfest_name,
film_medium,
film_format,
film_express_no,
film_format_url,
film_format_passw,
film_format_other,
last_modify_time,
member_id,
member_film_id};
jdbcTemplate.executeUpdate(sql, args); jdbcTemplate.executeUpdate(sql, args);
} }
......
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