Commit 88d2a695 authored by Quxl's avatar Quxl

x

parent 738c6c57
......@@ -28,7 +28,6 @@ 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_enroll_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;
......@@ -549,21 +548,6 @@ public class FilmServiceImpl implements FilmService {
@Transactional
public void updateEnroll(Long member_film_id) {
Fc_member_film film = jdbcTemplate.queryForBean("select enroll_type_name, enroll_type_name_other from fc_member_film where id = ?", Fc_member_film.class, member_film_id);
String enroll_type_name_other = film.getEnroll_type_name_other();
List<Fc_member_film_enroll_ext> exts = new ArrayList<Fc_member_film_enroll_ext>();
if(enroll_type_name_other != null) {
String[] strs = enroll_type_name_other.split(",");
if(strs != null && strs.length > 0) {
for(String str : strs) {
if(str != null && str.matches("\\d+")) {
Fc_member_film_enroll_ext ext = new Fc_member_film_enroll_ext();
ext.setEnroll_type_ext_id(Integer.valueOf(str));
ext.setFilm_id(member_film_id.intValue());
exts.add(ext);
}
}
}
}
String enroll_type_name = film.getEnroll_type_name();
List<Fc_member_film_enroll> enrolls = new ArrayList<Fc_member_film_enroll>();
if(enroll_type_name != null) {
......@@ -584,9 +568,6 @@ public class FilmServiceImpl implements FilmService {
if(enrolls.size() > 0) {
jdbcTemplate.batchSave(enrolls);
}
if(exts.size() > 0) {
jdbcTemplate.batchSave(exts);
}
}
@Override
......
package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Id;
/**
* @author 曲欣亮
*/
@Entity(name="fc_member_film_enroll_ext")
public class Fc_member_film_enroll_ext implements java.io.Serializable {
private static final long serialVersionUID = 1L;
@Id
private Integer film_id;
@Id
private Integer enroll_type_ext_id;
/**
* 无参数构造方法
*/
public Fc_member_film_enroll_ext () {
super();
}
/**
* 全参数构造方法
* @param film_id
* @param enroll_type_ext_id
*/
public Fc_member_film_enroll_ext(Integer film_id, Integer enroll_type_ext_id) {
this.film_id = film_id;
this.enroll_type_ext_id = enroll_type_ext_id;
}
public void setFilm_id(Integer film_id) {
this.film_id = film_id;
}
public Integer getFilm_id() {
return film_id;
}
public void setEnroll_type_ext_id(Integer enroll_type_ext_id) {
this.enroll_type_ext_id = enroll_type_ext_id;
}
public Integer getEnroll_type_ext_id() {
return enroll_type_ext_id;
}
}
......@@ -61,7 +61,6 @@ public class Fc_review implements java.io.Serializable {
* 全参数构造方法
* @param id
* @param film_id 参审影片ID
* @param enroll_type_id 影片性质(申报奖项)ID
* @param review_round 审片轮数,第几轮审片
* @param allot_state 评委分配状态 0未分配评委 1已分配评委评选中
* @param review_state 审片结论 1通过 2否决 3参赛 4参赛备选 5参展
......@@ -69,7 +68,7 @@ public class Fc_review implements java.io.Serializable {
* @param push_time 推送时间
* @param create_time
*/
public Fc_review(Integer id, Integer film_id, Integer enroll_type_id, Integer review_round, Integer allot_state, Integer review_state, Integer opt_state, Date push_time, Date create_time) {
public Fc_review(Integer id, Integer film_id, Integer review_round, Integer allot_state, Integer review_state, Integer opt_state, Date push_time, Date create_time) {
this.id = id;
this.film_id = film_id;
this.review_round = review_round;
......
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