Commit be21b735 authored by Quxl's avatar Quxl

完善保存申报信息接口

parent 3b29eae5
...@@ -50,8 +50,8 @@ public class MemberApplyController { ...@@ -50,8 +50,8 @@ public class MemberApplyController {
@PostMapping("save_type") @PostMapping("save_type")
@ApiOperation("保存申报影片类型") @ApiOperation("保存申报影片类型")
public Object saveMemberFilmType(Long member_film_id, String film_type_name, String enroll_type_name) { public Object saveMemberFilmType(Long member_film_id, String film_type_name, String enroll_type_name) {
memberService.saveMemberFilmType(member_film_id, film_type_name, enroll_type_name); member_film_id = memberService.saveMemberFilmType(member_film_id, film_type_name, enroll_type_name);
return Rjx.jsonOk(); return Rjx.jsonOk().set("member_film_id", member_film_id);
} }
@ResponseBody @ResponseBody
...@@ -65,7 +65,8 @@ public class MemberApplyController { ...@@ -65,7 +65,8 @@ public class MemberApplyController {
@ResponseBody @ResponseBody
@PostMapping("save_info") @PostMapping("save_info")
@ApiOperation("保存影片制作信息") @ApiOperation("保存影片制作信息")
public Object saveMemberFilmInfo() { 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) {
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();
} }
...@@ -127,7 +128,7 @@ public class MemberApplyController { ...@@ -127,7 +128,7 @@ public class MemberApplyController {
@PostMapping("more") @PostMapping("more")
@ApiOperation("获取更多影片信息") @ApiOperation("获取更多影片信息")
public Object more(Fc_member_film_all more) { public Object more(Fc_member_film_all more) {
memberService.saveOrUpdateMore(more); memberService.saveMore(more);
return Rjx.jsonOk(); return Rjx.jsonOk();
} }
} }
...@@ -41,13 +41,17 @@ public interface MemberService { ...@@ -41,13 +41,17 @@ public interface MemberService {
void doApply(Integer member_id, Long member_film_id); void doApply(Integer member_id, Long member_film_id);
void saveOrUpdateMore(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);
void 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,
String[] co_production_country, String film_total_time, String completion_date, String show_date,
String film_medium, String film_format);
} }
...@@ -99,7 +99,7 @@ public class MemberServiceImpl implements MemberService { ...@@ -99,7 +99,7 @@ public class MemberServiceImpl implements MemberService {
} }
@Override @Override
public void saveOrUpdateMore(Fc_member_film_all more) { public void saveMore(Fc_member_film_all more) {
if(more.getId() == null) { if(more.getId() == null) {
jdbcTemplate.save(more); jdbcTemplate.save(more);
} else { } else {
...@@ -113,9 +113,9 @@ public class MemberServiceImpl implements MemberService { ...@@ -113,9 +113,9 @@ public class MemberServiceImpl implements MemberService {
} }
@Override @Override
public void 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) {
// TODO Auto-generated method stub // TODO Auto-generated method stub
return null;
} }
@Override @Override
...@@ -125,4 +125,12 @@ public class MemberServiceImpl implements MemberService { ...@@ -125,4 +125,12 @@ public class MemberServiceImpl implements MemberService {
} }
@Override
public void 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) {
// TODO Auto-generated method stub
}
} }
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