Commit 77dcedf8 authored by Quxl's avatar Quxl

优化申报接口

parent 1eb17e57
...@@ -89,8 +89,28 @@ public class MemberApplyController { ...@@ -89,8 +89,28 @@ public class MemberApplyController {
@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="样片规格"),
}) })
public Object saveMemberFilmInfo(Long member_film_id, String film_country, String dialogue_lang, String subtitle_lang, String[] co_production_country, String film_total_time, String completion_date, String show_date, String film_medium, String film_format) { public Object saveMemberFilmInfo(
memberService.saveMemberFilmInfo(member_film_id, film_country, dialogue_lang, subtitle_lang, co_production_country, film_total_time, completion_date, show_date, film_medium, film_format); Long member_film_id,
String film_country,
String dialogue_lang,
String subtitle_lang,
String[] co_production_country,
String film_total_time,
String completion_date,
String show_date,
String film_medium,
String film_format) {
memberService.saveMemberFilmInfo(
member_film_id,
film_country,
dialogue_lang,
subtitle_lang,
co_production_country,
film_total_time,
completion_date,
show_date,
film_medium,
film_format);
return Rjx.jsonOk(); return Rjx.jsonOk();
} }
...@@ -108,8 +128,24 @@ public class MemberApplyController { ...@@ -108,8 +128,24 @@ public class MemberApplyController {
@ApiImplicitParam(paramType = "query", dataType = "array", allowMultiple=true, required = true, name = "playactor_intro", value="演职员简介"), @ApiImplicitParam(paramType = "query", dataType = "array", allowMultiple=true, required = true, name = "playactor_intro", value="演职员简介"),
@ApiImplicitParam(paramType = "query", dataType = "array", allowMultiple=true, required = false, name = "is_play_shanghai", value="演职员作品是否参加过上海电影节"), @ApiImplicitParam(paramType = "query", dataType = "array", allowMultiple=true, required = false, name = "is_play_shanghai", value="演职员作品是否参加过上海电影节"),
}) })
public Object saveMemberFilmPlayactor(Long member_film_id, String[] playactor_type, String[] playactor_name, String[] playactor_film_nums, String[] playactor_country, String[] playactor_birthday, String[] playactor_intro, Integer[] is_play_shanghai) { public Object saveMemberFilmPlayactor(
memberService.saveMemberFilmPlayactor(member_film_id, playactor_type, playactor_name, playactor_film_nums, playactor_country, playactor_birthday, playactor_intro, is_play_shanghai); Long member_film_id,
String[] playactor_type,
String[] playactor_name,
String[] playactor_film_nums,
String[] playactor_country,
String[] playactor_birthday,
String[] playactor_intro,
Integer[] is_play_shanghai) {
memberService.saveMemberFilmPlayactor(
member_film_id,
playactor_type,
playactor_name,
playactor_film_nums,
playactor_country,
playactor_birthday,
playactor_intro,
is_play_shanghai);
return Rjx.jsonOk(); return Rjx.jsonOk();
} }
...@@ -124,8 +160,18 @@ public class MemberApplyController { ...@@ -124,8 +160,18 @@ public class MemberApplyController {
@ApiImplicitParam(paramType = "query", dataType = "array", allowMultiple=true, required = false, name = "issuer_email", value="发行方Email"), @ApiImplicitParam(paramType = "query", dataType = "array", allowMultiple=true, required = false, name = "issuer_email", value="发行方Email"),
@ApiImplicitParam(paramType = "query", dataType = "array", allowMultiple=true, required = false, name = "issuer_tel", value="发行方电话"), @ApiImplicitParam(paramType = "query", dataType = "array", allowMultiple=true, required = false, name = "issuer_tel", value="发行方电话"),
}) })
public Object saveMemberFilmIssuer(Long member_film_id, String[] issuer_company, String[] issuer_contacts, String[] issuer_email, String[] issuer_tel) { public Object saveMemberFilmIssuer(
memberService.saveMemberFilmIssuer(member_film_id, issuer_company, issuer_contacts, issuer_email, issuer_tel); Long member_film_id,
String[] issuer_company,
String[] issuer_contacts,
String[] issuer_email,
String[] issuer_tel) {
memberService.saveMemberFilmIssuer(
member_film_id,
issuer_company,
issuer_contacts,
issuer_email,
issuer_tel);
return Rjx.jsonOk(); return Rjx.jsonOk();
} }
...@@ -140,8 +186,18 @@ public class MemberApplyController { ...@@ -140,8 +186,18 @@ public class MemberApplyController {
@ApiImplicitParam(paramType = "query", dataType = "array", allowMultiple=true, required = true, name = "show_filmfest_type", value="参与类型"), @ApiImplicitParam(paramType = "query", dataType = "array", allowMultiple=true, required = true, name = "show_filmfest_type", value="参与类型"),
@ApiImplicitParam(paramType = "query", dataType = "array", allowMultiple=true, required = false, name = "show_filmfest_intro", value="简介(获奖或报名奖项等)"), @ApiImplicitParam(paramType = "query", dataType = "array", allowMultiple=true, required = false, name = "show_filmfest_intro", value="简介(获奖或报名奖项等)"),
}) })
public Object saveMemberFilmShow(Long member_film_id, String play_shanghai, String[] show_filmfest, String[] show_filmfest_type, String[] show_filmfest_intro) { public Object saveMemberFilmShow(
memberService.saveMemberFilmShow(member_film_id, play_shanghai, show_filmfest, show_filmfest_type, show_filmfest_intro); Long member_film_id,
String play_shanghai,
String[] show_filmfest,
String[] show_filmfest_type,
String[] show_filmfest_intro) {
memberService.saveMemberFilmShow(
member_film_id,
play_shanghai,
show_filmfest,
show_filmfest_type,
show_filmfest_intro);
return Rjx.jsonOk(); return Rjx.jsonOk();
} }
...@@ -157,8 +213,22 @@ public class MemberApplyController { ...@@ -157,8 +213,22 @@ public class MemberApplyController {
@ApiImplicitParam(paramType = "query", dataType = "string", required = true, name = "film_apply_mobile", value="申报手机"), @ApiImplicitParam(paramType = "query", dataType = "string", required = true, name = "film_apply_mobile", value="申报手机"),
@ApiImplicitParam(paramType = "query", dataType = "string", required = true, name = "film_apply_country", value="申报国家"), @ApiImplicitParam(paramType = "query", dataType = "string", required = true, name = "film_apply_country", value="申报国家"),
}) })
public Object saveMemberFilmCompany(Long member_film_id, String film_apply_company, String film_apply_realname, String film_apply_email, String film_apply_tel, String film_apply_mobile, String film_apply_country) { public Object saveMemberFilmCompany(
memberService.saveMemberFilmCompany(member_film_id, film_apply_company, film_apply_realname, film_apply_email, film_apply_tel, film_apply_mobile, film_apply_country); Long member_film_id, String
film_apply_company,
String film_apply_realname,
String film_apply_email,
String film_apply_tel,
String film_apply_mobile,
String film_apply_country) {
memberService.saveMemberFilmCompany(
member_film_id,
film_apply_company,
film_apply_realname,
film_apply_email,
film_apply_tel,
film_apply_mobile,
film_apply_country);
return Rjx.jsonOk(); return Rjx.jsonOk();
} }
...@@ -172,7 +242,12 @@ public class MemberApplyController { ...@@ -172,7 +242,12 @@ public class MemberApplyController {
List<Fc_member_film_issuer> issuerList = memberService.queryMemberFilmIssuerList(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_playactor> playactorList = memberService.queryMemberFilmPlayactorList(memberFilm.getId());
List<Fc_member_film_show> showList = memberService.queryMemberFilmShowList(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); return Rjx.jsonOk()
.setData(memberFilm)
.set("directorList", directorList)
.set("issuerList", issuerList)
.set("playactorList", playactorList)
.set("showList", showList);
} }
@ResponseBody @ResponseBody
......
...@@ -23,7 +23,13 @@ public interface MemberService { ...@@ -23,7 +23,13 @@ public interface MemberService {
void mergeMember(Fc_member member); void mergeMember(Fc_member member);
void updateMember(Integer id, String email, String realname, String address, String company, String tel); void updateMember(
Integer id,
String email,
String realname,
String address,
String company,
String tel);
List<Map<String, Object>> queryListByMemberID(Integer member_id); List<Map<String, Object>> queryListByMemberID(Integer member_id);
...@@ -39,32 +45,69 @@ public interface MemberService { ...@@ -39,32 +45,69 @@ public interface MemberService {
List<Fc_member_film_show> queryMemberFilmShowList(Long member_film_id); List<Fc_member_film_show> queryMemberFilmShowList(Long member_film_id);
void doApply(Integer member_id, Long member_film_id); void doApply(
Integer member_id,
Long member_film_id);
void saveMore(Fc_member_film_all more); void saveMore(Fc_member_film_all more);
Fc_member_film_all queryMoreByNo(String no); Fc_member_film_all queryMoreByNo(String no);
Long saveMemberFilmType(Long member_film_id, String film_type_name, String enroll_type_name); Long saveMemberFilmType(
Long member_film_id,
String film_type_name,
String enroll_type_name);
void saveMemberFilmBase(Long member_film_id, String[] enroll_type_name_other, String cn_name, String en_name, void saveMemberFilmBase(
Long member_film_id,
String[] enroll_type_name_other,
String cn_name,
String en_name,
String intro); String intro);
void saveMemberFilmInfo(Long member_film_id, String film_country, String dialogue_lang, String subtitle_lang, void saveMemberFilmInfo(
String[] co_production_country, String film_total_time, String completion_date, String show_date, Long member_film_id,
String film_medium, String film_format); String film_country,
String dialogue_lang,
void saveMemberFilmPlayactor(Long member_film_id, String[] playactor_type, String[] playactor_name, String subtitle_lang,
String[] playactor_film_nums, String[] playactor_country, String[] playactor_birthday, String[] co_production_country,
String[] playactor_intro, Integer[] is_play_shanghai); String film_total_time,
String completion_date,
void saveMemberFilmIssuer(Long member_film_id, String[] issuer_company, String[] issuer_contacts, String show_date,
String[] issuer_email, String[] issuer_tel); String film_medium,
String film_format);
void saveMemberFilmShow(Long member_film_id, String play_shanghai, String[] show_filmfest,
String[] show_filmfest_type, String[] show_filmfest_intro); void saveMemberFilmPlayactor(
Long member_film_id,
void saveMemberFilmCompany(Long member_film_id, String film_apply_company, String film_apply_realname, String[] playactor_type,
String film_apply_email, String film_apply_tel, String film_apply_mobile, String film_apply_country); String[] playactor_name,
String[] playactor_film_nums,
String[] playactor_country,
String[] playactor_birthday,
String[] playactor_intro,
Integer[] is_play_shanghai);
void saveMemberFilmIssuer(
Long member_film_id,
String[] issuer_company,
String[] issuer_contacts,
String[] issuer_email,
String[] issuer_tel);
void saveMemberFilmShow(
Long member_film_id,
String play_shanghai,
String[] show_filmfest,
String[] show_filmfest_type,
String[] show_filmfest_intro);
void saveMemberFilmCompany(
Long member_film_id,
String film_apply_company,
String film_apply_realname,
String film_apply_email,
String film_apply_tel,
String film_apply_mobile,
String film_apply_country);
} }
...@@ -66,9 +66,32 @@ public class MemberServiceImpl implements MemberService { ...@@ -66,9 +66,32 @@ public class MemberServiceImpl implements MemberService {
} }
@Override @Override
public void updateMember(Integer id, String email, String realname, String address, String company, String tel) { public void updateMember(
String sql = "update fc_member set email = ?, realname = ?, address = ?, company = ?, tel = ? where id = ?"; Integer id,
jdbcTemplate.executeUpdate(sql, email, realname, address, company, tel, id); String email,
String realname,
String address,
String company,
String tel) {
String sql = ""
+ "update "
+ "fc_member "
+ "set "
+ "email = ?, "
+ "realname = ?, "
+ "address = ?, "
+ "company = ?, "
+ "tel = ? "
+ "where "
+ "id = ?";
jdbcTemplate.executeUpdate(
sql,
email,
realname,
address,
company,
tel,
id);
} }
@Override @Override
...@@ -127,7 +150,11 @@ public class MemberServiceImpl implements MemberService { ...@@ -127,7 +150,11 @@ public class MemberServiceImpl implements MemberService {
} }
@Override @Override
public Long saveMemberFilmType(Long member_film_id, String film_type_name, String enroll_type_name) { public Long saveMemberFilmType(
Long member_film_id,
String film_type_name,
String enroll_type_name) {
String sql = "insert into fc_member_film (film_type_name, enroll_type_name) values (?, ?)"; String sql = "insert into fc_member_film (film_type_name, enroll_type_name) values (?, ?)";
Object[] args = new Object[]{film_type_name, enroll_type_name}; Object[] args = new Object[]{film_type_name, enroll_type_name};
KeyHolder keyHolder = new GeneratedKeyHolder(); KeyHolder keyHolder = new GeneratedKeyHolder();
...@@ -152,7 +179,12 @@ public class MemberServiceImpl implements MemberService { ...@@ -152,7 +179,12 @@ public class MemberServiceImpl implements MemberService {
} }
@Override @Override
public void saveMemberFilmBase(Long member_film_id, String[] enroll_type_name_other, String cn_name, String en_name, String intro) { public void saveMemberFilmBase(
Long member_film_id,
String[] enroll_type_name_other,
String cn_name,
String en_name,
String intro) {
String sql = "update fc_member_film set enroll_type_name_other = ?, cn_name = ?, en_name = ?, intro = ? where id = ?"; String sql = "update fc_member_film set enroll_type_name_other = ?, cn_name = ?, en_name = ?, intro = ? where id = ?";
String str = StringUtil.join(",", "", "", "", enroll_type_name_other); String str = StringUtil.join(",", "", "", "", enroll_type_name_other);
Object[] args = new Object[]{str, cn_name, en_name, intro, member_film_id}; Object[] args = new Object[]{str, cn_name, en_name, intro, member_film_id};
...@@ -160,9 +192,17 @@ public class MemberServiceImpl implements MemberService { ...@@ -160,9 +192,17 @@ public class MemberServiceImpl implements MemberService {
} }
@Override @Override
public void saveMemberFilmInfo(Long member_film_id, String film_country, String dialogue_lang, String subtitle_lang, public void saveMemberFilmInfo(
String[] co_production_country, String film_total_time, String completion_date, String show_date, Long member_film_id,
String film_medium, String film_format) { String film_country,
String dialogue_lang,
String subtitle_lang,
String[] co_production_country,
String film_total_time,
String completion_date,
String show_date,
String film_medium,
String film_format) {
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 = ? where id = ?"; 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 = ? where id = ?";
String str = StringUtil.join(",", "", "", "", co_production_country); String str = StringUtil.join(",", "", "", "", co_production_country);
Object[] args = new Object[]{str, film_country, dialogue_lang, subtitle_lang, str, film_total_time, completion_date, show_date, film_medium, film_format, member_film_id}; Object[] args = new Object[]{str, film_country, dialogue_lang, subtitle_lang, str, film_total_time, completion_date, show_date, film_medium, film_format, member_film_id};
...@@ -170,24 +210,75 @@ public class MemberServiceImpl implements MemberService { ...@@ -170,24 +210,75 @@ public class MemberServiceImpl implements MemberService {
} }
@Override @Override
public void saveMemberFilmPlayactor(Long member_film_id, String[] playactor_type, String[] playactor_name, public void saveMemberFilmPlayactor(
String[] playactor_film_nums, String[] playactor_country, String[] playactor_birthday, Long member_film_id,
String[] playactor_intro, Integer[] is_play_shanghai) { String[] playactor_type,
if(playactor_type.length == playactor_name.length && playactor_name.length == playactor_film_nums.length && playactor_film_nums.length == playactor_country.length && playactor_country.length == playactor_birthday.length && playactor_birthday.length == playactor_intro.length && playactor_intro.length == is_play_shanghai.length) { String[] playactor_name,
String[] playactor_film_nums,
String[] playactor_country,
String[] playactor_birthday,
String[] playactor_intro,
Integer[] is_play_shanghai) {
if(playactor_type.length == playactor_name.length &&
playactor_name.length == playactor_film_nums.length &&
playactor_film_nums.length == playactor_country.length &&
playactor_country.length == playactor_birthday.length &&
playactor_birthday.length == playactor_intro.length &&
playactor_intro.length == is_play_shanghai.length) {
Long create_time = System.currentTimeMillis(); Long create_time = System.currentTimeMillis();
List<Object[]> playactors = new ArrayList<Object[]>(); List<Object[]> playactors = new ArrayList<Object[]>();
List<Object[]> directors = new ArrayList<Object[]>(); List<Object[]> directors = new ArrayList<Object[]>();
for(int i = 0; i < playactor_type.length; i++) { for(int i = 0; i < playactor_type.length; i++) {
if(!playactor_type[i].equals("0")) { if(!playactor_type[i].equals("0")) {
playactors.add(new Object[]{member_film_id, playactor_name[i], playactor_film_nums[i], playactor_intro[i], playactor_country[i], playactor_birthday[i], create_time, playactor_type[i]}); playactors.add(new Object[]{
member_film_id,
playactor_name[i],
playactor_film_nums[i],
playactor_intro[i],
playactor_country[i],
playactor_birthday[i],
create_time,
playactor_type[i]});
} else { } else {
directors.add(new Object[] {member_film_id, playactor_name[i], playactor_film_nums[i], playactor_intro[i], playactor_country[i], playactor_birthday[i], create_time, is_play_shanghai[i]}); directors.add(new Object[] {
member_film_id,
playactor_name[i],
playactor_film_nums[i],
playactor_intro[i],
playactor_country[i],
playactor_birthday[i],
create_time,
is_play_shanghai[i]});
} }
} }
jdbcTemplate.executeUpdate("delete from fc_member_film_playactor where film_id = ?", member_film_id); jdbcTemplate.executeUpdate("delete from fc_member_film_playactor where film_id = ?", member_film_id);
jdbcTemplate.executeUpdate("delete from fc_member_film_director where film_id = ?", member_film_id); jdbcTemplate.executeUpdate("delete from fc_member_film_director where film_id = ?", member_film_id);
String sql_playactor = "insert into fc_member_film_playactor(film_id, playactor_name, playactor_film_nums, playactor_film_intro, playactor_country, playactor_birthday, create_time, playactor_type) values (?, ?, ?, ?, ?, ?, ?, ?)"; String sql_playactor = ""
String sql_director = "insert into fc_member_film_director (film_id, director_name, director_film_nums, director_intro, playactor_country, playactor_birthday, create_time, director_is_play_shanghai) values (?, ?, ?, ?, ?, ?, ?, ?)"; + "insert into fc_member_film_playactor("
+ "film_id, "
+ "playactor_name, "
+ "playactor_film_nums, "
+ "playactor_film_intro, "
+ "playactor_country, "
+ "playactor_birthday, "
+ "create_time, "
+ "playactor_type)"
+ "values "
+ "(?, ?, ?, ?, ?, ?, ?, ?)";
String sql_director = ""
+ "insert into fc_member_film_director ("
+ "film_id, "
+ "director_name, "
+ "director_film_nums, "
+ "director_intro, "
+ "playactor_country, "
+ "playactor_birthday, "
+ "create_time, "
+ "director_is_play_shanghai) "
+ "values "
+ "(?, ?, ?, ?, ?, ?, ?, ?)";
jdbcTemplate.batchUpdate(sql_playactor, playactors); jdbcTemplate.batchUpdate(sql_playactor, playactors);
jdbcTemplate.batchUpdate(sql_director, directors); jdbcTemplate.batchUpdate(sql_director, directors);
} else { } else {
...@@ -196,15 +287,33 @@ public class MemberServiceImpl implements MemberService { ...@@ -196,15 +287,33 @@ public class MemberServiceImpl implements MemberService {
} }
@Override @Override
public void saveMemberFilmIssuer(Long member_film_id, String[] issuer_company, String[] issuer_contacts, String[] issuer_email, String[] issuer_tel) { public void saveMemberFilmIssuer(
if(issuer_company.length == issuer_contacts.length && issuer_contacts.length == issuer_email.length && issuer_email.length == issuer_tel.length) { Long member_film_id,
String[] issuer_company,
String[] issuer_contacts,
String[] issuer_email,
String[] issuer_tel) {
if(issuer_company.length == issuer_contacts.length &&
issuer_contacts.length == issuer_email.length &&
issuer_email.length == issuer_tel.length) {
Long create_time = System.currentTimeMillis(); Long create_time = System.currentTimeMillis();
Object[][] args = new Object[issuer_company.length][]; Object[][] args = new Object[issuer_company.length][];
for(int i = 0; i < issuer_company.length; i++) { for(int i = 0; i < issuer_company.length; i++) {
args[i] = new Object[]{member_film_id, issuer_company[i], issuer_contacts[i], issuer_email[i], issuer_tel[i], create_time}; args[i] = new Object[]{member_film_id, issuer_company[i], issuer_contacts[i], issuer_email[i], issuer_tel[i], create_time};
} }
jdbcTemplate.executeUpdate("delete from fc_member_film_issuer where film_id = ?", member_film_id); jdbcTemplate.executeUpdate("delete from fc_member_film_issuer where film_id = ?", member_film_id);
String sql = "insert into fc_member_film_issuer (film_id, issuer_company, issuer_contacts, issuer_email, issuer_tel, create_time) values (?, ?, ?, ?, ?, ?);"; String sql = ""
+ "insert into fc_member_film_issuer ("
+ "film_id, "
+ "issuer_company, "
+ "issuer_contacts, "
+ "issuer_email, "
+ "issuer_tel, "
+ "create_time) "
+ "values "
+ "(?, ?, ?, ?, ?, ?);";
jdbcTemplate.batchUpdate(sql, args); jdbcTemplate.batchUpdate(sql, args);
} else { } else {
throw new XException(messages.get("err.args_nums")); throw new XException(messages.get("err.args_nums"));
...@@ -212,7 +321,12 @@ public class MemberServiceImpl implements MemberService { ...@@ -212,7 +321,12 @@ public class MemberServiceImpl implements MemberService {
} }
@Override @Override
public void saveMemberFilmShow(Long member_film_id, String play_shanghai, String[] show_filmfest, String[] show_filmfest_type, String[] show_filmfest_intro) { public void saveMemberFilmShow(
Long member_film_id,
String play_shanghai,
String[] show_filmfest,
String[] show_filmfest_type,
String[] show_filmfest_intro) {
if(show_filmfest.length == show_filmfest_type.length && show_filmfest_type.length == show_filmfest_intro.length) { if(show_filmfest.length == show_filmfest_type.length && show_filmfest_type.length == show_filmfest_intro.length) {
Long create_time = System.currentTimeMillis(); Long create_time = System.currentTimeMillis();
Object[][] args = new Object[show_filmfest.length][]; Object[][] args = new Object[show_filmfest.length][];
...@@ -229,11 +343,35 @@ public class MemberServiceImpl implements MemberService { ...@@ -229,11 +343,35 @@ public class MemberServiceImpl implements MemberService {
} }
@Override @Override
public void saveMemberFilmCompany(Long member_film_id, String film_apply_company, String film_apply_realname, String film_apply_email, String film_apply_tel, String film_apply_mobile, String film_apply_country) { public void saveMemberFilmCompany(
String sql = "update fc_member_film set film_apply_company = ?, film_apply_realname = ?, film_apply_email = ?, film_apply_tel = ?, film_apply_mobile = ?, film_apply_country = ? where id = ?"; Long member_film_id,
Object[] args = new Object[]{film_apply_company, film_apply_realname, film_apply_email, film_apply_tel, film_apply_mobile, film_apply_country, member_film_id}; String film_apply_company,
String film_apply_realname,
String film_apply_email,
String film_apply_tel,
String film_apply_mobile,
String film_apply_country) {
String sql = ""
+ "update "
+ "fc_member_film "
+ "set "
+ "film_apply_company = ?, "
+ "film_apply_realname = ?, "
+ "film_apply_email = ?, "
+ "film_apply_tel = ?, "
+ "film_apply_mobile = ?, "
+ "film_apply_country = ? "
+ "where "
+ "id = ?";
Object[] args = new Object[]{
film_apply_company,
film_apply_realname,
film_apply_email,
film_apply_tel,
film_apply_mobile,
film_apply_country,
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