Commit b8d9143f authored by Quxl's avatar Quxl

x

parent 2c53ff38
......@@ -9,6 +9,7 @@ import org.slf4j.LoggerFactory;
import com.egolm.common.jdbc.Page;
import com.egolm.film.bean.Fc_member_film;
import com.egolm.film.bean.Fc_member_film_enroll;
import com.egolm.film.bean.Fc_member_film_ext;
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;
......@@ -155,4 +156,6 @@ public interface FilmService {
List<Map<String, Object>> queryMonitorUploadList(String keyword,Integer upload_state, Page page);
public void updateFilmUploadState(String[] film_id,String[] number);
void saveOrUpdateFilmExt(Fc_member_film_ext filmExt);
}
......@@ -29,6 +29,7 @@ import com.egolm.film.bean.Enum_enroll;
import com.egolm.film.bean.Enum_filmtype;
import com.egolm.film.bean.Fc_member_film;
import com.egolm.film.bean.Fc_member_film_enroll;
import com.egolm.film.bean.Fc_member_film_ext;
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;
......@@ -591,7 +592,7 @@ public class FilmServiceImpl implements FilmService {
public void exchangeFilmNo(Integer id1, Integer id2) {
Fc_member_film f1 = jdbcTemplate.queryForBean("select id, film_no from fc_member_film where id = ?", Fc_member_film.class, id1);
Fc_member_film f2 = jdbcTemplate.queryForBean("select id, film_no from fc_member_film where id = ?", Fc_member_film.class, id2);
jdbcTemplate.batchUpdate("update fc_member_film set film_no = ? where id = ?", new Object[][]{ {f1.getFilm_no(), id2}, {f2.getFilm_no(), id1}});
jdbcTemplate.batchUpdate("update fc_member_film set film_no = ? where id = ?", new Object[][]{{f2.getFilm_no(), id1}, {f1.getFilm_no(), id2}});
jdbcTemplate.batchUpdate("update fc_member_film set state = 2, apply_state = ? where id = ?", new Object[][] {{2, id1}, {3, id2}});
jdbcTemplate.batchUpdate("delete from fc_review_record_ext where record_id in (select id from fc_review_record where review_id in (select id from fc_review where film_id = ?))", new Object[][]{{id1}, {id2}});
jdbcTemplate.batchUpdate("delete from fc_review_record where review_id in (select id from fc_review where film_id = ?)", new Object[][]{{id1}, {id2}});
......@@ -663,4 +664,9 @@ public class FilmServiceImpl implements FilmService {
jdbcTemplate.batchUpdate(filmSql, filmObjs);
}
}
@Override
public void saveOrUpdateFilmExt(Fc_member_film_ext filmExt) {
jdbcTemplate.saveOrUpdate(filmExt);
}
}
......@@ -17,6 +17,7 @@ import com.egolm.film.api.service.FilmService;
import com.egolm.film.api.service.MemberTokenService;
import com.egolm.film.api.service.ReviewService;
import com.egolm.film.bean.Fc_member_film;
import com.egolm.film.bean.Fc_member_film_ext;
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;
......@@ -198,4 +199,13 @@ public class FilmController {
return Rjx.jsonOk().set("id", filmBase.getId());
}
@ResponseBody
@Transactional
@PostMapping("save_film_ext")
@ApiOperation("保存电影扩展信息")
public Object update_base(Fc_member_film_ext filmExt) {
filmService.saveOrUpdateFilmExt(filmExt);
return Rjx.jsonOk();
}
}
......@@ -6,79 +6,104 @@ import javax.persistence.Column;
import javax.persistence.Id;
import io.swagger.annotations.ApiModelProperty;
@Entity(name="fc_member_film_ext")
public class Fc_member_film_ext implements java.io.Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(columnDefinition="int(11)")
@ApiModelProperty("影片主表ID(film_id)")
@Column(columnDefinition="int(11) COMMENT '影片ID'")
private Integer id;
@Column(columnDefinition="varchar(255)")
@ApiModelProperty("影片简介中文")
@Column(columnDefinition="varchar(255) COMMENT '影片简介中文'")
private String synopsis_cn;
@Column(columnDefinition="varchar(255)")
@ApiModelProperty("影片简介英文")
@Column(columnDefinition="varchar(255) COMMENT '影片简介英文'")
private String synopsis_en;
@Column(columnDefinition="varchar(255)")
@ApiModelProperty("导演中文名")
@Column(columnDefinition="varchar(255) COMMENT '导演中文名'")
private String director_cn;
@Column(columnDefinition="varchar(255)")
@ApiModelProperty("导演英文名")
@Column(columnDefinition="varchar(255) COMMENT '导演英文名'")
private String director_en;
@Column(columnDefinition="varchar(255)")
@ApiModelProperty("导演中文简介")
@Column(columnDefinition="varchar(255) COMMENT '导演中文简介'")
private String director_biography_cn;
@Column(columnDefinition="varchar(255)")
@ApiModelProperty("导演英文简介")
@Column(columnDefinition="varchar(255) COMMENT '导演英文简介'")
private String director_biography_en;
@Column(columnDefinition="varchar(255)")
@ApiModelProperty("制片人中文名")
@Column(columnDefinition="varchar(255) COMMENT '制片人中文名'")
private String producer_cn;
@Column(columnDefinition="varchar(255)")
@ApiModelProperty("制片人英文名")
@Column(columnDefinition="varchar(255) COMMENT '制片人英文名'")
private String producer_en;
@Column(columnDefinition="varchar(255)")
@ApiModelProperty("放映格式")
@Column(columnDefinition="varchar(255) COMMENT '放映格式'")
private String format;
@Column(columnDefinition="varchar(255)")
@ApiModelProperty("编剧")
@Column(columnDefinition="varchar(255) COMMENT '编剧'")
private String screenplay;
@Column(columnDefinition="varchar(255)")
@ApiModelProperty("摄影指导")
@Column(columnDefinition="varchar(255) COMMENT '摄影指导'")
private String director_of_photography;
@Column(columnDefinition="varchar(255)")
@ApiModelProperty("音乐")
@Column(columnDefinition="varchar(255) COMMENT '音乐'")
private String music;
@Column(columnDefinition="varchar(255)")
@ApiModelProperty("艺术指导")
@Column(columnDefinition="varchar(255) COMMENT '艺术指导'")
private String production_designer;
@Column(columnDefinition="varchar(255)")
@ApiModelProperty("执行制片人")
@Column(columnDefinition="varchar(255) COMMENT '执行制片人'")
private String executive_producer;
@Column(columnDefinition="varchar(255)")
@ApiModelProperty("剪辑")
@Column(columnDefinition="varchar(255) COMMENT '剪辑'")
private String editor;
@Column(columnDefinition="varchar(255)")
@ApiModelProperty("主要演员制片人")
@Column(columnDefinition="varchar(255) COMMENT '主要演员制片人'")
private String cast;
@Column(columnDefinition="varchar(255)")
@ApiModelProperty("国际销售")
@Column(columnDefinition="varchar(255) COMMENT '国际销售'")
private String world_sales;
@Column(columnDefinition="varchar(255)")
@ApiModelProperty("分辨率")
@Column(columnDefinition="varchar(255) COMMENT '分辨率'")
private String resolution;
@Column(columnDefinition="varchar(255)")
@ApiModelProperty("画幅")
@Column(columnDefinition="varchar(255) COMMENT '画幅'")
private String aspect_ratio;
@Column(columnDefinition="varchar(255)")
@ApiModelProperty("音频")
@Column(columnDefinition="varchar(255) COMMENT '音频'")
private String sound_format;
@Column(columnDefinition="varchar(255)")
@ApiModelProperty("帧数")
@Column(columnDefinition="varchar(255) COMMENT '帧数'")
private String frame_rate;
@Column(columnDefinition="varchar(255)")
@ApiModelProperty("密钥")
@Column(columnDefinition="varchar(255) COMMENT '密钥'")
private String kdm;
......
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