Commit be21b735 authored by Quxl's avatar Quxl

完善保存申报信息接口

parent 3b29eae5
......@@ -50,8 +50,8 @@ public class MemberApplyController {
@PostMapping("save_type")
@ApiOperation("保存申报影片类型")
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);
return Rjx.jsonOk();
member_film_id = memberService.saveMemberFilmType(member_film_id, film_type_name, enroll_type_name);
return Rjx.jsonOk().set("member_film_id", member_film_id);
}
@ResponseBody
......@@ -65,7 +65,8 @@ public class MemberApplyController {
@ResponseBody
@PostMapping("save_info")
@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();
}
......@@ -127,7 +128,7 @@ public class MemberApplyController {
@PostMapping("more")
@ApiOperation("获取更多影片信息")
public Object more(Fc_member_film_all more) {
memberService.saveOrUpdateMore(more);
memberService.saveMore(more);
return Rjx.jsonOk();
}
}
......@@ -41,13 +41,17 @@ public interface MemberService {
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);
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,
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 {
}
@Override
public void saveOrUpdateMore(Fc_member_film_all more) {
public void saveMore(Fc_member_film_all more) {
if(more.getId() == null) {
jdbcTemplate.save(more);
} else {
......@@ -113,9 +113,9 @@ public class MemberServiceImpl implements MemberService {
}
@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
return null;
}
@Override
......@@ -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