Commit 5fcc3dfb authored by Quxl's avatar Quxl

x

parent 0fea197e
...@@ -61,7 +61,6 @@ public interface FilmService { ...@@ -61,7 +61,6 @@ public interface FilmService {
String film_format_other); String film_format_other);
void saveMemberFilmPlayactor( void saveMemberFilmPlayactor(
Integer member_id,
Long member_film_id, Long member_film_id,
String[] playactor_type, String[] playactor_type,
String[] playactor_role_name, String[] playactor_role_name,
...@@ -73,7 +72,6 @@ public interface FilmService { ...@@ -73,7 +72,6 @@ public interface FilmService {
Integer[] is_play_shanghai); Integer[] is_play_shanghai);
void saveMemberFilmIssuer( void saveMemberFilmIssuer(
Integer member_id,
Long member_film_id, Long member_film_id,
String[] issuer_company, String[] issuer_company,
String[] issuer_contacts, String[] issuer_contacts,
...@@ -81,7 +79,6 @@ public interface FilmService { ...@@ -81,7 +79,6 @@ public interface FilmService {
String[] issuer_tel); String[] issuer_tel);
void saveMemberFilmShow( void saveMemberFilmShow(
Integer member_id,
Long member_film_id, Long member_film_id,
String play_shanghai, String play_shanghai,
String[] show_filmfest, String[] show_filmfest,
......
...@@ -222,7 +222,6 @@ public class FilmServiceImpl implements FilmService { ...@@ -222,7 +222,6 @@ public class FilmServiceImpl implements FilmService {
@Override @Override
@Transactional @Transactional
public void saveMemberFilmPlayactor( public void saveMemberFilmPlayactor(
Integer member_id,
Long member_film_id, Long member_film_id,
String[] playactor_type, String[] playactor_type,
String[] playactor_role_name, String[] playactor_role_name,
...@@ -278,7 +277,6 @@ public class FilmServiceImpl implements FilmService { ...@@ -278,7 +277,6 @@ public class FilmServiceImpl implements FilmService {
@Override @Override
@Transactional @Transactional
public void saveMemberFilmIssuer( public void saveMemberFilmIssuer(
Integer member_id,
Long member_film_id, Long member_film_id,
String[] issuer_company, String[] issuer_company,
String[] issuer_contacts, String[] issuer_contacts,
...@@ -314,7 +312,6 @@ public class FilmServiceImpl implements FilmService { ...@@ -314,7 +312,6 @@ public class FilmServiceImpl implements FilmService {
@Override @Override
@Transactional @Transactional
public void saveMemberFilmShow( public void saveMemberFilmShow(
Integer member_id,
Long member_film_id, Long member_film_id,
String play_shanghai, String play_shanghai,
String[] show_filmfest, String[] show_filmfest,
...@@ -327,7 +324,7 @@ public class FilmServiceImpl implements FilmService { ...@@ -327,7 +324,7 @@ public class FilmServiceImpl implements FilmService {
args[i] = new Object[]{member_film_id, show_filmfest[i], show_filmfest_type[i], show_filmfest_intro[i], create_time}; args[i] = new Object[]{member_film_id, show_filmfest[i], show_filmfest_type[i], show_filmfest_intro[i], create_time};
} }
Long last_modify_time = System.currentTimeMillis()/1000; Long last_modify_time = System.currentTimeMillis()/1000;
jdbcTemplate.executeUpdate("update fc_member_film set play_shanghai = ?, last_modify_time = ? where member_id = ? and id = ?", play_shanghai, last_modify_time, member_id, member_film_id); jdbcTemplate.executeUpdate("update fc_member_film set play_shanghai = ?, last_modify_time = ? where id = ?", play_shanghai, last_modify_time, member_film_id);
jdbcTemplate.executeUpdate("delete from fc_member_film_show where film_id = ?", member_film_id); jdbcTemplate.executeUpdate("delete from fc_member_film_show where film_id = ?", member_film_id);
String sql = "insert into fc_member_film_show (film_id, show_filmfest, show_filmfest_type, show_filmfest_intro, create_time) values (?, ?, ?, ?, ?);"; String sql = "insert into fc_member_film_show (film_id, show_filmfest, show_filmfest_type, show_filmfest_intro, create_time) values (?, ?, ?, ?, ?);";
jdbcTemplate.batchUpdate(sql, args); jdbcTemplate.batchUpdate(sql, args);
......
package com.egolm.film.api.web;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.egolm.common.bean.Rjx;
import com.egolm.film.api.service.FilmService;
import com.egolm.film.bean.Fc_member_film;
import com.egolm.film.bean.Fc_member_film_issuer;
import com.egolm.film.bean.Fc_member_film_playactor;
import com.egolm.film.bean.Fc_member_film_show;
import com.egolm.film.bean.model.Fc_member_film_base_model;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
@Api
@Controller
@RequestMapping({"member/apply", "admin/first"})
public class FilmController {
@Autowired
FilmService memberFilmService;
@ResponseBody
@PostMapping("get_detail")
@ApiOperation("获取全部申报信息")
@ApiImplicitParams({
@ApiImplicitParam(paramType="query", dataType="long", required=true, name="member_film_id", value="申报影片ID")
})
public Object getDetail(Long member_film_id) {
Fc_member_film memberFilm = memberFilmService.queryMemberFilmById(member_film_id);
List<Fc_member_film_issuer> issuerList = memberFilmService.queryMemberFilmIssuerList(memberFilm.getId());
List<Fc_member_film_playactor> playactorList = memberFilmService.queryMemberFilmPlayactorList(memberFilm.getId());
List<Fc_member_film_show> showList = memberFilmService.queryMemberFilmShowList(memberFilm.getId());
return Rjx.jsonOk()
.setData(memberFilm)
.set("issuerList", issuerList)
.set("playactorList", playactorList)
.set("showList", showList);
}
@Transactional
@ResponseBody
@PostMapping("save_show")
@ApiOperation("保存影片放映信息")
@ApiImplicitParams({
@ApiImplicitParam(paramType="header", dataType="string", name="i18n_language"),
@ApiImplicitParam(paramType="query", dataType="long", allowMultiple=false, required=true, name="member_film_id", value="影片ID"),
@ApiImplicitParam(paramType="query", dataType="string", allowMultiple=false, required=true, name="play_shanghai", value="该片在上海电影节放映是"),
@ApiImplicitParam(paramType="query", dataType="string", allowMultiple=true, required=true, name="show_filmfest", value="参加过什么电影节"),
@ApiImplicitParam(paramType="query", dataType="string", allowMultiple=true, required=true, name="show_filmfest_type", value="参与类型"),
@ApiImplicitParam(paramType="query", dataType="string", 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) {
memberFilmService.saveMemberFilmShow(
member_film_id,
play_shanghai,
show_filmfest,
show_filmfest_type,
show_filmfest_intro);
return Rjx.jsonOk();
}
@Transactional
@ResponseBody
@PostMapping("save_issuer")
@ApiOperation("保存影片发行信息")
@ApiImplicitParams({
@ApiImplicitParam(paramType="header", dataType="string", name="i18n_language"),
@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="issuer_company", value="发行公司"),
@ApiImplicitParam(paramType="query", dataType="string", allowMultiple=true, required=false, name="issuer_contacts", value="发行方联系人"),
@ApiImplicitParam(paramType="query", dataType="string", allowMultiple=true, required=false, name="issuer_email", value="发行方Email"),
@ApiImplicitParam(paramType="query", dataType="string", 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) {
memberFilmService.saveMemberFilmIssuer(
member_film_id,
issuer_company,
issuer_contacts,
issuer_email,
issuer_tel);
return Rjx.jsonOk();
}
@Transactional
@ResponseBody
@PostMapping("save_playactor")
@ApiOperation("保存影片演职员信息")
@ApiImplicitParams({
@ApiImplicitParam(paramType="header", dataType="string", name="i18n_language"),
@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="演职员国家"),
@ApiImplicitParam(paramType="query", dataType="string", allowMultiple=true, required=false, name="playactor_birthday", value="演职员生日"),
@ApiImplicitParam(paramType="query", dataType="string", allowMultiple=true, required=true, name="playactor_intro", value="演职员简介"),
@ApiImplicitParam(paramType="query", dataType="integer", allowMultiple=true, required=false, name="is_play_shanghai", value="演职员作品是否参加过上海电影节"),
})
public Object saveMemberFilmPlayactor(
Long member_film_id,
String[] playactor_type,
String[] playactor_role_name,
String[] playactor_name,
String[] playactor_film_nums,
String[] playactor_country,
String[] playactor_birthday,
String[] playactor_intro,
Integer[] is_play_shanghai) {
memberFilmService.saveMemberFilmPlayactor(
member_film_id,
playactor_type,
playactor_role_name,
playactor_name,
playactor_film_nums,
playactor_country,
playactor_birthday,
playactor_intro,
is_play_shanghai);
return Rjx.jsonOk();
}
@ResponseBody
@PostMapping("save_film_base")
@ApiOperation("保存电影主要信息")
public Object update_base(Fc_member_film_base_model filmBase) {
memberFilmService.updateFilmBase(filmBase);
return Rjx.jsonOk();
}
}
...@@ -19,7 +19,6 @@ import com.egolm.film.bean.Fc_member_film_issuer; ...@@ -19,7 +19,6 @@ import com.egolm.film.bean.Fc_member_film_issuer;
import com.egolm.film.bean.Fc_member_film_playactor; import com.egolm.film.bean.Fc_member_film_playactor;
import com.egolm.film.bean.Fc_member_film_show; import com.egolm.film.bean.Fc_member_film_show;
import com.egolm.film.bean.model.Fc_member_film_base_model; import com.egolm.film.bean.model.Fc_member_film_base_model;
import com.egolm.film.model.LoginToken;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParam;
...@@ -132,9 +131,6 @@ public class AdminFirstController { ...@@ -132,9 +131,6 @@ public class AdminFirstController {
@ResponseBody @ResponseBody
@PostMapping("update_base") @PostMapping("update_base")
@ApiOperation("保存电影主要信息") @ApiOperation("保存电影主要信息")
@ApiImplicitParams({
})
public Object update_base(Fc_member_film_base_model filmBase) { public Object update_base(Fc_member_film_base_model filmBase) {
memberFilmService.updateFilmBase(filmBase); memberFilmService.updateFilmBase(filmBase);
return Rjx.jsonOk(); return Rjx.jsonOk();
...@@ -159,10 +155,7 @@ public class AdminFirstController { ...@@ -159,10 +155,7 @@ public class AdminFirstController {
String[] show_filmfest_type, String[] show_filmfest_type,
String[] show_filmfest_intro) { String[] show_filmfest_intro) {
LoginToken loginToken = tokenService.getToken();
Integer member_id = (Integer)loginToken.getId();
memberFilmService.saveMemberFilmShow( memberFilmService.saveMemberFilmShow(
member_id,
member_film_id, member_film_id,
play_shanghai, play_shanghai,
show_filmfest, show_filmfest,
...@@ -190,10 +183,7 @@ public class AdminFirstController { ...@@ -190,10 +183,7 @@ public class AdminFirstController {
String[] issuer_email, String[] issuer_email,
String[] issuer_tel) { String[] issuer_tel) {
LoginToken loginToken = tokenService.getToken();
Integer member_id = (Integer)loginToken.getId();
memberFilmService.saveMemberFilmIssuer( memberFilmService.saveMemberFilmIssuer(
member_id,
member_film_id, member_film_id,
issuer_company, issuer_company,
issuer_contacts, issuer_contacts,
...@@ -229,10 +219,7 @@ public class AdminFirstController { ...@@ -229,10 +219,7 @@ public class AdminFirstController {
String[] playactor_intro, String[] playactor_intro,
Integer[] is_play_shanghai) { Integer[] is_play_shanghai) {
LoginToken loginToken = tokenService.getToken();
Integer member_id = (Integer)loginToken.getId();
memberFilmService.saveMemberFilmPlayactor( memberFilmService.saveMemberFilmPlayactor(
member_id,
member_film_id, member_film_id,
playactor_type, playactor_type,
playactor_role_name, playactor_role_name,
...@@ -244,4 +231,5 @@ public class AdminFirstController { ...@@ -244,4 +231,5 @@ public class AdminFirstController {
is_play_shanghai); is_play_shanghai);
return Rjx.jsonOk(); return Rjx.jsonOk();
} }
} }
...@@ -6,7 +6,6 @@ import java.util.Map; ...@@ -6,7 +6,6 @@ import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseBody;
...@@ -175,111 +174,6 @@ public class MemberApplyController { ...@@ -175,111 +174,6 @@ public class MemberApplyController {
return Rjx.jsonOk(); return Rjx.jsonOk();
} }
@Transactional
@ResponseBody
@PostMapping("save_playactor")
@ApiOperation("保存影片演职员信息")
@ApiImplicitParams({
@ApiImplicitParam(paramType="header", dataType="string", name="i18n_language"),
@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="演职员国家"),
@ApiImplicitParam(paramType="query", dataType="string", allowMultiple=true, required=false, name="playactor_birthday", value="演职员生日"),
@ApiImplicitParam(paramType="query", dataType="string", allowMultiple=true, required=true, name="playactor_intro", value="演职员简介"),
@ApiImplicitParam(paramType="query", dataType="integer", allowMultiple=true, required=false, name="is_play_shanghai", value="演职员作品是否参加过上海电影节"),
})
public Object saveMemberFilmPlayactor(
Long member_film_id,
String[] playactor_type,
String[] playactor_role_name,
String[] playactor_name,
String[] playactor_film_nums,
String[] playactor_country,
String[] playactor_birthday,
String[] playactor_intro,
Integer[] is_play_shanghai) {
LoginToken loginToken = tokenService.getToken();
Integer member_id = (Integer)loginToken.getId();
memberFilmService.saveMemberFilmPlayactor(
member_id,
member_film_id,
playactor_type,
playactor_role_name,
playactor_name,
playactor_film_nums,
playactor_country,
playactor_birthday,
playactor_intro,
is_play_shanghai);
return Rjx.jsonOk();
}
@Transactional
@ResponseBody
@PostMapping("save_issuer")
@ApiOperation("保存影片发行信息")
@ApiImplicitParams({
@ApiImplicitParam(paramType="header", dataType="string", name="i18n_language"),
@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="issuer_company", value="发行公司"),
@ApiImplicitParam(paramType="query", dataType="string", allowMultiple=true, required=false, name="issuer_contacts", value="发行方联系人"),
@ApiImplicitParam(paramType="query", dataType="string", allowMultiple=true, required=false, name="issuer_email", value="发行方Email"),
@ApiImplicitParam(paramType="query", dataType="string", 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) {
LoginToken loginToken = tokenService.getToken();
Integer member_id = (Integer)loginToken.getId();
memberFilmService.saveMemberFilmIssuer(
member_id,
member_film_id,
issuer_company,
issuer_contacts,
issuer_email,
issuer_tel);
return Rjx.jsonOk();
}
@Transactional
@ResponseBody
@PostMapping("save_show")
@ApiOperation("保存影片放映信息")
@ApiImplicitParams({
@ApiImplicitParam(paramType="header", dataType="string", name="i18n_language"),
@ApiImplicitParam(paramType="query", dataType="long", allowMultiple=false, required=true, name="member_film_id", value="影片ID"),
@ApiImplicitParam(paramType="query", dataType="string", allowMultiple=false, required=true, name="play_shanghai", value="该片在上海电影节放映是"),
@ApiImplicitParam(paramType="query", dataType="string", allowMultiple=true, required=true, name="show_filmfest", value="参加过什么电影节"),
@ApiImplicitParam(paramType="query", dataType="string", allowMultiple=true, required=true, name="show_filmfest_type", value="参与类型"),
@ApiImplicitParam(paramType="query", dataType="string", 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) {
LoginToken loginToken = tokenService.getToken();
Integer member_id = (Integer)loginToken.getId();
memberFilmService.saveMemberFilmShow(
member_id,
member_film_id,
play_shanghai,
show_filmfest,
show_filmfest_type,
show_filmfest_intro);
return Rjx.jsonOk();
}
@ResponseBody @ResponseBody
@PostMapping("save_company") @PostMapping("save_company")
@ApiOperation("保存影片申报信息") @ApiOperation("保存影片申报信息")
......
...@@ -289,4 +289,12 @@ public class Fc_member_film_base_model implements Serializable{ ...@@ -289,4 +289,12 @@ public class Fc_member_film_base_model implements Serializable{
this.film_apply_country = film_apply_country; this.film_apply_country = film_apply_country;
} }
public String getOriginal_name() {
return original_name;
}
public void setOriginal_name(String original_name) {
this.original_name = original_name;
}
} }
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