Commit 28491703 authored by Quxl's avatar Quxl

x

parent f582413f
......@@ -68,7 +68,10 @@ public class AdminUserServiceImpl implements AdminUserService {
jdbcTemplate.executeUpdate("delete from fc_user_group_fun where group_id = ?", group_id);
List<Fc_user_group_fun> list = new ArrayList<Fc_user_group_fun>();
for(Integer i : fun_id) {
list.add(new Fc_user_group_fun(group_id, i));
Fc_user_group_fun gf = new Fc_user_group_fun();
gf.setGroup_id(group_id);
gf.setFun_id(i);
list.add(gf);
}
jdbcTemplate.batchSave(list);
}
......
......@@ -7,8 +7,6 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -33,7 +31,6 @@ import com.egolm.film.bean.Fc_logs_ext;
import com.egolm.film.bean.Fc_member_film;
import com.egolm.film.bean.Fc_member_film_enroll;
import com.egolm.film.config.XRException;
import com.egolm.film.util.Export;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
......@@ -78,14 +75,6 @@ public class WebUtilController {
return Rjx.jsonOk();
}
@Transactional
@PostMapping("exportExcel")
@ApiOperation("导出Excel")
public void exportExcel(String db_host, String db_name, String username, String password) throws SQLException, IOException {
this.verifyAuth();
new Export(db_host, db_name, username, password).export();
}
@ResponseBody
@Transactional
@PostMapping("initAllEnrollType")
......@@ -195,4 +184,10 @@ public class WebUtilController {
return Rjx.jsonOk();
}
@Transactional
@PostMapping("exportExcel")
@ApiOperation("导出Excel")
public void exportExcel(String db_host, String db_name, String username, String password) throws SQLException, IOException {
this.verifyAuth();
}
}
......@@ -2,6 +2,8 @@ package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id;
/**
......@@ -12,29 +14,14 @@ public class Enum_doubtful implements java.io.Serializable {
private static final long serialVersionUID = 1L;
@Column(columnDefinition="int(11)'")
@Id
private Integer id;
@Column(columnDefinition="varchar(255)'")
private String doubtful_name;
/**
* 无参数构造方法
*/
public Enum_doubtful () {
super();
}
/**
* 全参数构造方法
* @param id
* @param doubtful_name
*/
public Enum_doubtful(Integer id, String doubtful_name) {
this.id = id;
this.doubtful_name = doubtful_name;
}
public void setId(Integer id) {
this.id = id;
}
......
......@@ -2,6 +2,8 @@ package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id;
/**
......@@ -12,42 +14,17 @@ public class Enum_enroll implements java.io.Serializable {
private static final long serialVersionUID = 1L;
/**
* 影片性质ID
*/
@Column(columnDefinition="int(11) COMMENT '影片性质ID'")
@Id
private Integer enroll_type;
/**
* 影片性质名称
*/
@Column(columnDefinition="varchar(60) COMMENT '影片性质名称'")
private String enroll_type_name;
/**
* 上级ID
*/
@Column(columnDefinition="int(11) COMMENT '上级ID'")
private Integer parent_id;
/**
* 无参数构造方法
*/
public Enum_enroll () {
super();
}
/**
* 全参数构造方法
* @param enroll_type 影片性质ID
* @param enroll_type_name 影片性质名称
* @param parent_id 上级ID
*/
public Enum_enroll(Integer enroll_type, String enroll_type_name, Integer parent_id) {
this.enroll_type = enroll_type;
this.enroll_type_name = enroll_type_name;
this.parent_id = parent_id;
}
public void setEnroll_type(Integer enroll_type) {
this.enroll_type = enroll_type;
}
......
......@@ -2,6 +2,8 @@ package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id;
/**
......@@ -12,42 +14,17 @@ public class Enum_filmtype implements java.io.Serializable {
private static final long serialVersionUID = 1L;
/**
* 影片类型ID
*/
@Column(columnDefinition="int(11) COMMENT '影片类型ID'")
@Id
private Integer film_type;
/**
* 影片类型名称
*/
@Column(columnDefinition="varchar(60) COMMENT '影片类型名称'")
private String film_type_name;
/**
* 上级ID
*/
@Column(columnDefinition="int(11) COMMENT '上级ID'")
private Integer parent_id;
/**
* 无参数构造方法
*/
public Enum_filmtype () {
super();
}
/**
* 全参数构造方法
* @param film_type 影片类型ID
* @param film_type_name 影片类型名称
* @param parent_id 上级ID
*/
public Enum_filmtype(Integer film_type, String film_type_name, Integer parent_id) {
this.film_type = film_type;
this.film_type_name = film_type_name;
this.parent_id = parent_id;
}
public void setFilm_type(Integer film_type) {
this.film_type = film_type;
}
......
......@@ -2,6 +2,8 @@ package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id;
/**
......@@ -12,109 +14,47 @@ public class Fc_admin implements java.io.Serializable {
private static final long serialVersionUID = 1L;
@Column(columnDefinition="int(10) unsigned'")
@Id
private Integer adminid;
/**
* 用户名
*/
@Column(columnDefinition="varchar(255) COMMENT '用户名'")
private String username;
/**
* 密码
*/
@Column(columnDefinition="varchar(255) COMMENT '密码'")
private String password;
/**
* 真实名称
*/
@Column(columnDefinition="varchar(255) COMMENT '真实名称'")
private String realname;
/**
* 随机数
*/
@Column(columnDefinition="varchar(255) COMMENT '随机数'")
private String salt;
/**
* 创建时间
*/
@Column(columnDefinition="bigint(20) unsigned COMMENT '创建时间'")
private Long create_time;
/**
* 创建ip
*/
@Column(columnDefinition="varchar(50) COMMENT '创建ip'")
private String create_ip;
/**
* 登陆时间
*/
@Column(columnDefinition="bigint(20) unsigned COMMENT '登陆时间'")
private Long login_time;
/**
* 登陆ip
*/
@Column(columnDefinition="varchar(255) COMMENT '登陆ip'")
private String login_ip;
/**
* 状态 1正常 2禁用
*/
@Column(columnDefinition="tinyint(2) unsigned COMMENT '状态 1正常 2禁用'")
private Integer state;
/**
* 管理员组
*/
@Column(columnDefinition="int(10) unsigned COMMENT '管理员组'")
private Integer group_id;
/**
* 创建者adminid
*/
@Column(columnDefinition="int(10) unsigned COMMENT '创建者adminid'")
private Integer create_admin_id;
/**
* 用户登陆 session_id
*/
@Column(columnDefinition="varchar(255) COMMENT '用户登陆 session_id'")
private String token;
/**
* 无参数构造方法
*/
public Fc_admin () {
super();
}
/**
* 全参数构造方法
* @param adminid
* @param username 用户名
* @param password 密码
* @param realname 真实名称
* @param salt 随机数
* @param create_time 创建时间
* @param create_ip 创建ip
* @param login_time 登陆时间
* @param login_ip 登陆ip
* @param state 状态 1正常 2禁用
* @param group_id 管理员组
* @param create_admin_id 创建者adminid
* @param token 用户登陆 session_id
*/
public Fc_admin(Integer adminid, String username, String password, String realname, String salt, Long create_time, String create_ip, Long login_time, String login_ip, Integer state, Integer group_id, Integer create_admin_id, String token) {
this.adminid = adminid;
this.username = username;
this.password = password;
this.realname = realname;
this.salt = salt;
this.create_time = create_time;
this.create_ip = create_ip;
this.login_time = login_time;
this.login_ip = login_ip;
this.state = state;
this.group_id = group_id;
this.create_admin_id = create_admin_id;
this.token = token;
}
public void setAdminid(Integer adminid) {
this.adminid = adminid;
}
......
......@@ -2,6 +2,8 @@ package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id;
/**
......@@ -12,70 +14,29 @@ public class Fc_admin_group implements java.io.Serializable {
private static final long serialVersionUID = 1L;
/**
* 用户组id
*/
@Column(columnDefinition="int(10) unsigned COMMENT '用户组id'")
@Id
private Integer group_id;
/**
* 小组名称
*/
@Column(columnDefinition="varchar(255) COMMENT '小组名称'")
private String group_name;
/**
* 创建时间
*/
@Column(columnDefinition="bigint(20) COMMENT '创建时间'")
private Long create_time;
/**
* 创建者ip
*/
@Column(columnDefinition="varchar(255) COMMENT '创建者ip'")
private String create_ip;
/**
* 创建者uid
*/
@Column(columnDefinition="int(10) COMMENT '创建者uid'")
private Integer adminid;
/**
* 小组状态
*/
@Column(columnDefinition="tinyint(2) COMMENT '小组状态'")
private Integer state;
/**
* 成员数量
*/
@Column(columnDefinition="bigint(20) COMMENT '成员数量'")
private Long user_num;
/**
* 无参数构造方法
*/
public Fc_admin_group () {
super();
}
/**
* 全参数构造方法
* @param group_id 用户组id
* @param group_name 小组名称
* @param create_time 创建时间
* @param create_ip 创建者ip
* @param adminid 创建者uid
* @param state 小组状态
* @param user_num 成员数量
*/
public Fc_admin_group(Integer group_id, String group_name, Long create_time, String create_ip, Integer adminid, Integer state, Long user_num) {
this.group_id = group_id;
this.group_name = group_name;
this.create_time = create_time;
this.create_ip = create_ip;
this.adminid = adminid;
this.state = state;
this.user_num = user_num;
}
public void setGroup_id(Integer group_id) {
this.group_id = group_id;
}
......
......@@ -2,6 +2,8 @@ package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id;
/**
......@@ -12,30 +14,15 @@ public class Fc_admin_group_filmtype implements java.io.Serializable {
private static final long serialVersionUID = 1L;
@Column(columnDefinition="int(11)'")
@Id
private Integer group_id;
@Column(columnDefinition="int(11)'")
@Id
private Integer film_type_id;
/**
* 无参数构造方法
*/
public Fc_admin_group_filmtype () {
super();
}
/**
* 全参数构造方法
* @param group_id
* @param film_type_id
*/
public Fc_admin_group_filmtype(Integer group_id, Integer film_type_id) {
this.group_id = group_id;
this.film_type_id = film_type_id;
}
public void setGroup_id(Integer group_id) {
this.group_id = group_id;
}
......
......@@ -2,6 +2,8 @@ package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id;
/**
......@@ -12,30 +14,15 @@ public class Fc_admin_group_menu implements java.io.Serializable {
private static final long serialVersionUID = 1L;
@Column(columnDefinition="int(11)'")
@Id
private Integer menu_id;
@Column(columnDefinition="int(11)'")
@Id
private Integer group_id;
/**
* 无参数构造方法
*/
public Fc_admin_group_menu () {
super();
}
/**
* 全参数构造方法
* @param menu_id
* @param group_id
*/
public Fc_admin_group_menu(Integer menu_id, Integer group_id) {
this.menu_id = menu_id;
this.group_id = group_id;
}
public void setMenu_id(Integer menu_id) {
this.menu_id = menu_id;
}
......
......@@ -2,6 +2,8 @@ package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id;
/**
......@@ -12,60 +14,35 @@ public class Fc_admin_menu implements java.io.Serializable {
private static final long serialVersionUID = 1L;
@Column(columnDefinition="int(11)'")
@Id
private Integer menu_id;
/**
* 0 目录, 1 菜单, 2 按钮,其他功能
*/
@Column(columnDefinition="int(11) COMMENT '0 目录, 1 菜单, 2 按钮,其他功能'")
private Integer menu_type;
@Column(columnDefinition="int(11)'")
private Integer parent_id;
@Column(columnDefinition="int(11)'")
private Integer order_num;
@Column(columnDefinition="varchar(255)'")
private String menu_name;
@Column(columnDefinition="varchar(255)'")
private String menu_no;
@Column(columnDefinition="varchar(255)'")
private String menu_link;
@Column(columnDefinition="varchar(255)'")
private String menu_icon;
@Column(columnDefinition="varchar(255)'")
private String remark;
/**
* 无参数构造方法
*/
public Fc_admin_menu () {
super();
}
/**
* 全参数构造方法
* @param menu_id
* @param menu_type 0 目录, 1 菜单, 2 按钮,其他功能
* @param parent_id
* @param order_num
* @param menu_name
* @param menu_no
* @param menu_link
* @param menu_icon
* @param remark
*/
public Fc_admin_menu(Integer menu_id, Integer menu_type, Integer parent_id, Integer order_num, String menu_name, String menu_no, String menu_link, String menu_icon, String remark) {
this.menu_id = menu_id;
this.menu_type = menu_type;
this.parent_id = parent_id;
this.order_num = order_num;
this.menu_name = menu_name;
this.menu_no = menu_no;
this.menu_link = menu_link;
this.menu_icon = menu_icon;
this.remark = remark;
}
public void setMenu_id(Integer menu_id) {
this.menu_id = menu_id;
}
......
......@@ -2,6 +2,8 @@ package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id;
import java.util.Date;
......@@ -14,71 +16,32 @@ public class Fc_email_record implements java.io.Serializable {
private static final long serialVersionUID = 1L;
@Column(columnDefinition="int(11)'")
@Id
private Integer id;
/**
* 发件人ID
*/
@Column(columnDefinition="int(11) COMMENT '发件人ID'")
private Integer sender_id;
/**
* 0会员,1评委,2管理员
*/
@Column(columnDefinition="int(11) COMMENT '0会员,1评委,2管理员'")
private Integer sender_type_id;
/**
* 发送状态 0未发送 1成功 2失败
*/
@Column(columnDefinition="int(11) COMMENT '发送状态 0未发送 1成功 2失败'")
private Integer send_state;
/**
* 主题
*/
@Column(columnDefinition="varchar(255) COMMENT '主题'")
private String subject;
/**
* 收件邮箱
*/
@Column(columnDefinition="varchar(255) COMMENT '收件邮箱'")
private String email;
/**
* 邮件内容
*/
@Column(columnDefinition="text COMMENT '邮件内容'")
private String content;
@Column(columnDefinition="datetime'")
private Date create_time;
/**
* 无参数构造方法
*/
public Fc_email_record () {
super();
}
/**
* 全参数构造方法
* @param id
* @param sender_id 发件人ID
* @param sender_type_id 0会员,1评委,2管理员
* @param send_state 发送状态 0未发送 1成功 2失败
* @param subject 主题
* @param email 收件邮箱
* @param content 邮件内容
* @param create_time
*/
public Fc_email_record(Integer id, Integer sender_id, Integer sender_type_id, Integer send_state, String subject, String email, String content, Date create_time) {
this.id = id;
this.sender_id = sender_id;
this.sender_type_id = sender_type_id;
this.send_state = send_state;
this.subject = subject;
this.email = email;
this.content = content;
this.create_time = create_time;
}
public void setId(Integer id) {
this.id = id;
}
......
......@@ -2,6 +2,8 @@ package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id;
/**
......@@ -12,37 +14,20 @@ public class Fc_film_group implements java.io.Serializable {
private static final long serialVersionUID = 1L;
@Column(columnDefinition="int(11)'")
@Id
private Integer id;
@Column(columnDefinition="int(11)'")
private Integer parent_id;
@Column(columnDefinition="int(11)'")
private Integer order_num;
@Column(columnDefinition="varchar(255)'")
private String group_name;
/**
* 无参数构造方法
*/
public Fc_film_group () {
super();
}
/**
* 全参数构造方法
* @param id
* @param parent_id
* @param order_num
* @param group_name
*/
public Fc_film_group(Integer id, Integer parent_id, Integer order_num, String group_name) {
this.id = id;
this.parent_id = parent_id;
this.order_num = order_num;
this.group_name = group_name;
}
public void setId(Integer id) {
this.id = id;
}
......
......@@ -2,6 +2,8 @@ package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id;
import java.util.Date;
......@@ -14,57 +16,35 @@ public class Fc_logs implements java.io.Serializable {
private static final long serialVersionUID = 1L;
@Column(columnDefinition="bigint(20)'")
@Id
private Long id;
@Column(columnDefinition="varchar(255)'")
private String type;
@Column(columnDefinition="varchar(255)'")
private String loginid;
@Column(columnDefinition="varchar(255)'")
private String prefix;
@Column(columnDefinition="varchar(255)'")
private String path;
@Column(columnDefinition="varchar(255)'")
private String ip;
@Column(columnDefinition="text'")
private String content;
@Column(columnDefinition="text'")
private String user_agent;
@Column(columnDefinition="datetime'")
private Date create_time;
/**
* 无参数构造方法
*/
public Fc_logs () {
super();
}
/**
* 全参数构造方法
* @param id
* @param type
* @param loginid
* @param prefix
* @param path
* @param ip
* @param content
* @param user_agent
* @param create_time
*/
public Fc_logs(Long id, String type, String loginid, String prefix, String path, String ip, String content, String user_agent, Date create_time) {
this.id = id;
this.type = type;
this.loginid = loginid;
this.prefix = prefix;
this.path = path;
this.ip = ip;
this.content = content;
this.user_agent = user_agent;
this.create_time = create_time;
}
public void setId(Long id) {
this.id = id;
}
......
......@@ -2,6 +2,8 @@ package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id;
/**
......@@ -12,29 +14,14 @@ public class Fc_logs_ext implements java.io.Serializable {
private static final long serialVersionUID = 1L;
@Column(columnDefinition="varchar(255)'")
@Id
private String path;
@Column(columnDefinition="varchar(255)'")
private String ext;
/**
* 无参数构造方法
*/
public Fc_logs_ext () {
super();
}
/**
* 全参数构造方法
* @param path
* @param ext
*/
public Fc_logs_ext(String path, String ext) {
this.path = path;
this.ext = ext;
}
public void setPath(String path) {
this.path = path;
}
......
......@@ -2,6 +2,8 @@ package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id;
/**
......@@ -12,130 +14,56 @@ public class Fc_member implements java.io.Serializable {
private static final long serialVersionUID = 1L;
@Column(columnDefinition="int(11)'")
@Id
private Integer id;
/**
* 电子邮件
*/
@Column(columnDefinition="varchar(255) COMMENT '电子邮件'")
private String email;
/**
* 用户密码
*/
@Column(columnDefinition="varchar(255) COMMENT '用户密码'")
private String password;
/**
* 随机数
*/
@Column(columnDefinition="varchar(255) COMMENT '随机数'")
private String salt;
/**
* 最近登录时间
*/
@Column(columnDefinition="bigint(20) COMMENT '最近登录时间'")
private Long login_time;
/**
* 最近登录时间
*/
@Column(columnDefinition="varchar(50) COMMENT '最近登录时间'")
private String login_ip;
/**
* 真实名称
*/
@Column(columnDefinition="varchar(255) COMMENT '真实名称'")
private String realname;
/**
* 居住地址
*/
@Column(columnDefinition="varchar(255) COMMENT '居住地址'")
private String address;
/**
* 单位名称
*/
@Column(columnDefinition="varchar(255) COMMENT '单位名称'")
private String company;
/**
* 联系电话
*/
@Column(columnDefinition="varchar(255) COMMENT '联系电话'")
private String tel;
/**
* 创建时间
*/
@Column(columnDefinition="bigint(20) unsigned COMMENT '创建时间'")
private Long create_time;
/**
* 创建ip
*/
@Column(columnDefinition="varchar(50) COMMENT '创建ip'")
private String create_ip;
/**
* 见状态码
*/
@Column(columnDefinition="tinyint(50) COMMENT '见状态码'")
private Integer state;
/**
* 用户名
*/
@Column(columnDefinition="varchar(255) COMMENT '用户名'")
private String username;
/**
* 用户登陆 session_id
*/
@Column(columnDefinition="varchar(255) COMMENT '用户登陆 session_id'")
private String token;
/**
* 语言来源
*/
@Column(columnDefinition="varchar(255) COMMENT '语言来源'")
private String lang;
/**
* 无参数构造方法
*/
public Fc_member () {
super();
}
/**
* 全参数构造方法
* @param id
* @param email 电子邮件
* @param password 用户密码
* @param salt 随机数
* @param login_time 最近登录时间
* @param login_ip 最近登录时间
* @param realname 真实名称
* @param address 居住地址
* @param company 单位名称
* @param tel 联系电话
* @param create_time 创建时间
* @param create_ip 创建ip
* @param state 见状态码
* @param username 用户名
* @param token 用户登陆 session_id
* @param lang 语言来源
*/
public Fc_member(Integer id, String email, String password, String salt, Long login_time, String login_ip, String realname, String address, String company, String tel, Long create_time, String create_ip, Integer state, String username, String token, String lang) {
this.id = id;
this.email = email;
this.password = password;
this.salt = salt;
this.login_time = login_time;
this.login_ip = login_ip;
this.realname = realname;
this.address = address;
this.company = company;
this.tel = tel;
this.create_time = create_time;
this.create_ip = create_ip;
this.state = state;
this.username = username;
this.token = token;
this.lang = lang;
}
public void setId(Integer id) {
this.id = id;
}
......
......@@ -2,6 +2,8 @@ package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id;
import java.util.Date;
......@@ -14,529 +16,227 @@ public class Fc_member_film implements java.io.Serializable {
private static final long serialVersionUID = 1L;
@Column(columnDefinition="bigint(20) unsigned'")
@Id
private Long id;
/**
* 电影编号
*/
@Column(columnDefinition="int(11) COMMENT '电影编号'")
private Integer film_no;
/**
* 原片名
*/
@Column(columnDefinition="varchar(255) COMMENT '原片名'")
private String origion_name;
/**
* 英文名称
*/
@Column(columnDefinition="varchar(255) COMMENT '英文名称'")
private String en_name;
/**
* 中文片名
*/
@Column(columnDefinition="varchar(255) COMMENT '中文片名'")
private String cn_name;
/**
* 类型 1 电影 2电视
*/
@Column(columnDefinition="tinyint(10) COMMENT '类型 1 电影 2电视'")
private Integer type;
/**
* 影片内容分组id
*/
@Column(columnDefinition="bigint(20) unsigned zerofill COMMENT '影片内容分组id'")
private Long film_group_id;
/**
* 影片类型
*/
@Column(columnDefinition="int(10) COMMENT '影片类型'")
private Integer film_type;
/**
* 导入时影片类型名称
*/
@Column(columnDefinition="varchar(255) COMMENT '导入时影片类型名称'")
private String film_type_name;
/**
* 放映时间
*/
@Column(columnDefinition="varchar(100) COMMENT '放映时间'")
private String show_date;
/**
* 上映时间
*/
@Column(columnDefinition="bigint(20) COMMENT '上映时间'")
private Long show_time;
/**
* 首次上映时间
*/
@Column(columnDefinition="varchar(255) COMMENT '首次上映时间'")
private String first_show_date;
/**
* 首次上映城市
*/
@Column(columnDefinition="varchar(255) COMMENT '首次上映城市'")
private String first_show_city;
/**
* 是否同时参加其他电影节
*/
@Column(columnDefinition="int(1) COMMENT '是否同时参加其他电影节'")
private Integer is_apply_other_filmfest;
/**
* 同时参加的电影节的名字
*/
@Column(columnDefinition="varchar(255) COMMENT '同时参加的电影节的名字'")
private String other_filmfest_name;
/**
* 影片色彩
*/
@Column(columnDefinition="varchar(255) COMMENT '影片色彩'")
private String film_medium;
/**
* 样片规格
*/
@Column(columnDefinition="varchar(255) COMMENT '样片规格'")
private String film_format;
/**
* 完成日期
*/
@Column(columnDefinition="varchar(255) COMMENT '完成日期'")
private String completion_date;
/**
* 制片国
*/
@Column(columnDefinition="varchar(255) COMMENT '制片国'")
private String film_country;
/**
* 合拍国
*/
@Column(columnDefinition="varchar(255) COMMENT '合拍国'")
private String co_production_country;
/**
* 制片人
*/
@Column(columnDefinition="varchar(255) COMMENT '制片人'")
private String film_producers;
/**
* 制片公司
*/
@Column(columnDefinition="varchar(255) COMMENT '制片公司'")
private String production_company;
/**
* 报名性质
*/
@Column(columnDefinition="varchar(255) COMMENT '报名性质'")
private String enroll_type_name;
/**
* 报名类型
*/
@Column(columnDefinition="tinyint(2) COMMENT '报名类型'")
private Integer enroll_type;
/**
* 是否愿意参展
*/
@Column(columnDefinition="tinyint(2) COMMENT '是否愿意参展'")
private Integer is_like_show;
/**
* 添加时间
*/
@Column(columnDefinition="bigint(20) unsigned COMMENT '添加时间'")
private Long create_time;
/**
* 管理员id
*/
@Column(columnDefinition="int(10) unsigned COMMENT '管理员id'")
private Integer member_id;
/**
* 创建ip
*/
@Column(columnDefinition="varchar(50) COMMENT '创建ip'")
private String create_ip;
/**
* 状态
*/
@Column(columnDefinition="tinyint(2) unsigned COMMENT '状态'")
private Integer state;
/**
* 该片已参加过的电影节及所获奖项
*/
@Column(columnDefinition="varchar(255) COMMENT '该片已参加过的电影节及所获奖项'")
private String prize;
/**
* 对白语言
*/
@Column(columnDefinition="varchar(255) COMMENT '对白语言'")
private String dialogue_lang;
/**
* 字幕语言
*/
@Column(columnDefinition="varchar(255) COMMENT '字幕语言'")
private String subtitle_lang;
/**
* 该片在上海电影节放映是
*/
@Column(columnDefinition="varchar(255) COMMENT '该片在上海电影节放映是'")
private String play_shanghai;
/**
* 已参加过奖项
*/
@Column(columnDefinition="text COMMENT '已参加过奖项'")
private String has_joined_award;
/**
* 影片简介
*/
@Column(columnDefinition="text COMMENT '影片简介'")
private String intro;
/**
* 影片简介英文
*/
@Column(columnDefinition="text COMMENT '影片简介英文'")
private String en_intro;
/**
* 最后修改时间
*/
@Column(columnDefinition="bigint(20) unsigned COMMENT '最后修改时间'")
private Long last_modify_time;
/**
* 片方要求
*/
@Column(columnDefinition="varchar(255) COMMENT '片方要求'")
private String film_side_demand;
/**
* 影片时长
*/
@Column(columnDefinition="varchar(255) COMMENT '影片时长'")
private String film_total_time;
/**
* 是否显示 1显示 2不显示
*/
@Column(columnDefinition="tinyint(2) COMMENT '是否显示 1显示 2不显示'")
private Integer is_show;
/**
* 影片申请公司
*/
@Column(columnDefinition="varchar(255) COMMENT '影片申请公司'")
private String film_apply_company;
/**
* 影片人姓名
*/
@Column(columnDefinition="varchar(255) COMMENT '影片人姓名'")
private String film_apply_realname;
/**
* 影片申请人邮箱
*/
@Column(columnDefinition="varchar(255) COMMENT '影片申请人邮箱'")
private String film_apply_email;
/**
* 影片申请人电话
*/
@Column(columnDefinition="varchar(255) COMMENT '影片申请人电话'")
private String film_apply_tel;
/**
* 影片申请人手机
*/
@Column(columnDefinition="varchar(255) COMMENT '影片申请人手机'")
private String film_apply_mobile;
/**
* 影片申请国籍
*/
@Column(columnDefinition="varchar(255) COMMENT '影片申请国籍'")
private String film_apply_country;
/**
* 报名性质
*/
@Column(columnDefinition="varchar(255) COMMENT '报名性质'")
private String enroll_type_name_other;
/**
* 样片url
*/
@Column(columnDefinition="varchar(255) COMMENT '样片url'")
private String film_format_url;
/**
* 样片url密码
*/
@Column(columnDefinition="varchar(255) COMMENT '样片url密码'")
private String film_format_passw;
/**
* 样片url其他
*/
@Column(columnDefinition="varchar(255) COMMENT '样片url其他'")
private String film_format_other;
/**
* 短片类型
*/
@Column(columnDefinition="varchar(255) COMMENT '短片类型'")
private String film_type_name_short;
/**
* 语言
*/
@Column(columnDefinition="varchar(255) COMMENT '语言'")
private String lang;
/**
* 申报状态 1未提交 2初审通过 3初审否决
*/
@Column(columnDefinition="tinyint(2) unsigned COMMENT '申报状态 1未提交 2初审通过 3初审否决'")
private Integer apply_state;
/**
* 初审处理意见
*/
@Column(columnDefinition="text COMMENT '初审处理意见'")
private String apply_state_intro;
/**
* 区域
*/
@Column(columnDefinition="varchar(255) COMMENT '区域'")
private String film_district;
/**
* 状态
*/
@Column(columnDefinition="tinyint(2) unsigned COMMENT '状态'")
private Integer is_check_director;
/**
* 通过时间
*/
@Column(columnDefinition="bigint(20) unsigned COMMENT '通过时间'")
private Long pass_time;
/**
* 上传影片标记
*/
@Column(columnDefinition="varchar(64) COMMENT '上传影片标记'")
private String upload_id;
/**
* 上传影片状态(0上传中,1已完成)
*/
@Column(columnDefinition="int(11) COMMENT '上传影片状态(0上传中,1已完成)'")
private Integer upload_state;
/**
* 上传影片时间
*/
@Column(columnDefinition="datetime COMMENT '上传影片时间'")
private Date upload_time;
/**
* 放映费用
*/
@Column(columnDefinition="double(10,2) COMMENT '放映费用'")
private Double charge_show;
/**
* 费用币种
*/
@Column(columnDefinition="varchar(255) COMMENT '费用币种'")
private String charge_show_currency;
/**
* 密钥费用
*/
@Column(columnDefinition="double(10,2) COMMENT '密钥费用'")
private Double charge_key;
/**
* 费用币种
*/
@Column(columnDefinition="varchar(255) COMMENT '费用币种'")
private String charge_key_currency;
/**
* 拷贝运输费用
*/
@Column(columnDefinition="double(10,2) COMMENT '拷贝运输费用'")
private Double charge_copy;
/**
* 费用币种
*/
@Column(columnDefinition="varchar(255) COMMENT '费用币种'")
private String charge_copy_currency;
/**
* 是否观众见面会
*/
@Column(columnDefinition="int(11) COMMENT '是否观众见面会'")
private Integer is_viewer_metting;
/**
* 是否重点影片
*/
@Column(columnDefinition="int(11) COMMENT '是否重点影片'")
private Integer is_important;
/**
* 是否夜场
*/
@Column(columnDefinition="int(11) COMMENT '是否夜场'")
private Integer is_night;
/**
* 拷贝密钥????????不知是产品还是甲方给的狗屁需求,也不讲明白
*/
@Column(columnDefinition="int(11) COMMENT '拷贝密钥????????不知是产品还是甲方给的狗屁需求,也不讲明白'")
private Integer is_copy_key;
/**
* 放映场次
*/
@Column(columnDefinition="int(11) COMMENT '放映场次'")
private Integer show_number;
/**
* 片方要求
*/
@Column(columnDefinition="text COMMENT '片方要求'")
private String film_requirement;
/**
* 拷贝选项
*/
@Column(columnDefinition="varchar(255) COMMENT '拷贝选项'")
private String copy_options;
/**
* 无参数构造方法
*/
public Fc_member_film () {
super();
}
/**
* 全参数构造方法
* @param id
* @param film_no 电影编号
* @param origion_name 原片名
* @param en_name 英文名称
* @param cn_name 中文片名
* @param type 类型 1 电影 2电视
* @param film_group_id 影片内容分组id
* @param film_type 影片类型
* @param film_type_name 导入时影片类型名称
* @param show_date 放映时间
* @param show_time 上映时间
* @param first_show_date 首次上映时间
* @param first_show_city 首次上映城市
* @param is_apply_other_filmfest 是否同时参加其他电影节
* @param other_filmfest_name 同时参加的电影节的名字
* @param film_medium 影片色彩
* @param film_format 样片规格
* @param completion_date 完成日期
* @param film_country 制片国
* @param co_production_country 合拍国
* @param film_producers 制片人
* @param production_company 制片公司
* @param enroll_type_name 报名性质
* @param enroll_type 报名类型
* @param is_like_show 是否愿意参展
* @param create_time 添加时间
* @param member_id 管理员id
* @param create_ip 创建ip
* @param state 状态
* @param prize 该片已参加过的电影节及所获奖项
* @param dialogue_lang 对白语言
* @param subtitle_lang 字幕语言
* @param play_shanghai 该片在上海电影节放映是
* @param has_joined_award 已参加过奖项
* @param intro 影片简介
* @param en_intro 影片简介英文
* @param last_modify_time 最后修改时间
* @param film_side_demand 片方要求
* @param film_total_time 影片时长
* @param is_show 是否显示 1显示 2不显示
* @param film_apply_company 影片申请公司
* @param film_apply_realname 影片人姓名
* @param film_apply_email 影片申请人邮箱
* @param film_apply_tel 影片申请人电话
* @param film_apply_mobile 影片申请人手机
* @param film_apply_country 影片申请国籍
* @param enroll_type_name_other 报名性质
* @param film_format_url 样片url
* @param film_format_passw 样片url密码
* @param film_format_other 样片url其他
* @param film_type_name_short 短片类型
* @param lang 语言
* @param apply_state 申报状态 1未提交 2初审通过 3初审否决
* @param apply_state_intro 初审处理意见
* @param film_district 区域
* @param is_check_director 状态
* @param pass_time 通过时间
* @param upload_id 上传影片标记
* @param upload_state 上传影片状态(0上传中,1已完成)
* @param upload_time 上传影片时间
* @param charge_show 放映费用
* @param charge_show_currency 费用币种
* @param charge_key 密钥费用
* @param charge_key_currency 费用币种
* @param charge_copy 拷贝运输费用
* @param charge_copy_currency 费用币种
* @param is_viewer_metting 是否观众见面会
* @param is_important 是否重点影片
* @param is_night 是否夜场
* @param is_copy_key 拷贝密钥????????不知是产品还是甲方给的狗屁需求,也不讲明白
* @param show_number 放映场次
* @param film_requirement 片方要求
* @param copy_options 拷贝选项
*/
public Fc_member_film(Long id, Integer film_no, String origion_name, String en_name, String cn_name, Integer type, Long film_group_id, Integer film_type, String film_type_name, String show_date, Long show_time, String first_show_date, String first_show_city, Integer is_apply_other_filmfest, String other_filmfest_name, String film_medium, String film_format, String completion_date, String film_country, String co_production_country, String film_producers, String production_company, String enroll_type_name, Integer enroll_type, Integer is_like_show, Long create_time, Integer member_id, String create_ip, Integer state, String prize, String dialogue_lang, String subtitle_lang, String play_shanghai, String has_joined_award, String intro, String en_intro, Long last_modify_time, String film_side_demand, String film_total_time, Integer is_show, String film_apply_company, String film_apply_realname, String film_apply_email, String film_apply_tel, String film_apply_mobile, String film_apply_country, String enroll_type_name_other, String film_format_url, String film_format_passw, String film_format_other, String film_type_name_short, String lang, Integer apply_state, String apply_state_intro, String film_district, Integer is_check_director, Long pass_time, String upload_id, Integer upload_state, Date upload_time, Double charge_show, String charge_show_currency, Double charge_key, String charge_key_currency, Double charge_copy, String charge_copy_currency, Integer is_viewer_metting, Integer is_important, Integer is_night, Integer is_copy_key, Integer show_number, String film_requirement, String copy_options) {
this.id = id;
this.film_no = film_no;
this.origion_name = origion_name;
this.en_name = en_name;
this.cn_name = cn_name;
this.type = type;
this.film_group_id = film_group_id;
this.film_type = film_type;
this.film_type_name = film_type_name;
this.show_date = show_date;
this.show_time = show_time;
this.first_show_date = first_show_date;
this.first_show_city = first_show_city;
this.is_apply_other_filmfest = is_apply_other_filmfest;
this.other_filmfest_name = other_filmfest_name;
this.film_medium = film_medium;
this.film_format = film_format;
this.completion_date = completion_date;
this.film_country = film_country;
this.co_production_country = co_production_country;
this.film_producers = film_producers;
this.production_company = production_company;
this.enroll_type_name = enroll_type_name;
this.enroll_type = enroll_type;
this.is_like_show = is_like_show;
this.create_time = create_time;
this.member_id = member_id;
this.create_ip = create_ip;
this.state = state;
this.prize = prize;
this.dialogue_lang = dialogue_lang;
this.subtitle_lang = subtitle_lang;
this.play_shanghai = play_shanghai;
this.has_joined_award = has_joined_award;
this.intro = intro;
this.en_intro = en_intro;
this.last_modify_time = last_modify_time;
this.film_side_demand = film_side_demand;
this.film_total_time = film_total_time;
this.is_show = is_show;
this.film_apply_company = film_apply_company;
this.film_apply_realname = film_apply_realname;
this.film_apply_email = film_apply_email;
this.film_apply_tel = film_apply_tel;
this.film_apply_mobile = film_apply_mobile;
this.film_apply_country = film_apply_country;
this.enroll_type_name_other = enroll_type_name_other;
this.film_format_url = film_format_url;
this.film_format_passw = film_format_passw;
this.film_format_other = film_format_other;
this.film_type_name_short = film_type_name_short;
this.lang = lang;
this.apply_state = apply_state;
this.apply_state_intro = apply_state_intro;
this.film_district = film_district;
this.is_check_director = is_check_director;
this.pass_time = pass_time;
this.upload_id = upload_id;
this.upload_state = upload_state;
this.upload_time = upload_time;
this.charge_show = charge_show;
this.charge_show_currency = charge_show_currency;
this.charge_key = charge_key;
this.charge_key_currency = charge_key_currency;
this.charge_copy = charge_copy;
this.charge_copy_currency = charge_copy_currency;
this.is_viewer_metting = is_viewer_metting;
this.is_important = is_important;
this.is_night = is_night;
this.is_copy_key = is_copy_key;
this.show_number = show_number;
this.film_requirement = film_requirement;
this.copy_options = copy_options;
}
public void setId(Long id) {
this.id = id;
}
......
......@@ -2,6 +2,8 @@ package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id;
/**
......@@ -12,30 +14,15 @@ public class Fc_member_film_enroll implements java.io.Serializable {
private static final long serialVersionUID = 1L;
@Column(columnDefinition="int(11)'")
@Id
private Integer film_id;
@Column(columnDefinition="int(11)'")
@Id
private Integer enroll_type_id;
/**
* 无参数构造方法
*/
public Fc_member_film_enroll () {
super();
}
/**
* 全参数构造方法
* @param film_id
* @param enroll_type_id
*/
public Fc_member_film_enroll(Integer film_id, Integer enroll_type_id) {
this.film_id = film_id;
this.enroll_type_id = enroll_type_id;
}
public void setFilm_id(Integer film_id) {
this.film_id = film_id;
}
......
......@@ -2,6 +2,8 @@ package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id;
/**
......@@ -12,64 +14,29 @@ public class Fc_member_film_issuer implements java.io.Serializable {
private static final long serialVersionUID = 1L;
@Column(columnDefinition="int(11)'")
@Id
private Integer id;
/**
* 发行公司
*/
@Column(columnDefinition="varchar(255) COMMENT '发行公司'")
private String issuer_company;
/**
* 联系人
*/
@Column(columnDefinition="varchar(255) COMMENT '联系人'")
private String issuer_contacts;
/**
* 邮箱
*/
@Column(columnDefinition="varchar(255) COMMENT '邮箱'")
private String issuer_email;
/**
* 电话
*/
@Column(columnDefinition="varchar(255) COMMENT '电话'")
private String issuer_tel;
/**
* 报名影片ID
*/
@Column(columnDefinition="int(11) COMMENT '报名影片ID'")
private Integer film_id;
@Column(columnDefinition="int(11)'")
private Integer create_time;
/**
* 无参数构造方法
*/
public Fc_member_film_issuer () {
super();
}
/**
* 全参数构造方法
* @param id
* @param issuer_company 发行公司
* @param issuer_contacts 联系人
* @param issuer_email 邮箱
* @param issuer_tel 电话
* @param film_id 报名影片ID
* @param create_time
*/
public Fc_member_film_issuer(Integer id, String issuer_company, String issuer_contacts, String issuer_email, String issuer_tel, Integer film_id, Integer create_time) {
this.id = id;
this.issuer_company = issuer_company;
this.issuer_contacts = issuer_contacts;
this.issuer_email = issuer_email;
this.issuer_tel = issuer_tel;
this.film_id = film_id;
this.create_time = create_time;
}
public void setId(Integer id) {
this.id = id;
}
......
......@@ -2,6 +2,8 @@ package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id;
/**
......@@ -12,85 +14,38 @@ public class Fc_member_film_playactor implements java.io.Serializable {
private static final long serialVersionUID = 1L;
@Column(columnDefinition="int(11)'")
@Id
private Integer id;
/**
* 姓名
*/
@Column(columnDefinition="varchar(255) COMMENT '姓名'")
private String playactor_name;
/**
* 国籍
*/
@Column(columnDefinition="varchar(255) COMMENT '国籍'")
private String playactor_country;
/**
* 出生年月
*/
@Column(columnDefinition="varchar(255) COMMENT '出生年月'")
private String playactor_birthday;
/**
* 参与过哪部影片
*/
@Column(columnDefinition="text COMMENT '参与过哪部影片'")
private String playactor_film_intro;
/**
* 该片为第几部长片(包括配角)
*/
@Column(columnDefinition="varchar(50) COMMENT '该片为第几部长片(包括配角)'")
private String playactor_film_nums;
/**
* 演职人员类型(女演员,男演员,制片人,编剧,摄影师)
*/
@Column(columnDefinition="varchar(255) COMMENT '演职人员类型(女演员,男演员,制片人,编剧,摄影师)'")
private String playactor_type;
/**
* 饰演的角色名
*/
@Column(columnDefinition="text COMMENT '饰演的角色名'")
private String playactor_role_name;
/**
* 报名影片ID
*/
@Column(columnDefinition="int(11) COMMENT '报名影片ID'")
private Integer film_id;
@Column(columnDefinition="int(11)'")
private Integer create_time;
/**
* 无参数构造方法
*/
public Fc_member_film_playactor () {
super();
}
/**
* 全参数构造方法
* @param id
* @param playactor_name 姓名
* @param playactor_country 国籍
* @param playactor_birthday 出生年月
* @param playactor_film_intro 参与过哪部影片
* @param playactor_film_nums 该片为第几部长片(包括配角)
* @param playactor_type 演职人员类型(女演员,男演员,制片人,编剧,摄影师)
* @param playactor_role_name 饰演的角色名
* @param film_id 报名影片ID
* @param create_time
*/
public Fc_member_film_playactor(Integer id, String playactor_name, String playactor_country, String playactor_birthday, String playactor_film_intro, String playactor_film_nums, String playactor_type, String playactor_role_name, Integer film_id, Integer create_time) {
this.id = id;
this.playactor_name = playactor_name;
this.playactor_country = playactor_country;
this.playactor_birthday = playactor_birthday;
this.playactor_film_intro = playactor_film_intro;
this.playactor_film_nums = playactor_film_nums;
this.playactor_type = playactor_type;
this.playactor_role_name = playactor_role_name;
this.film_id = film_id;
this.create_time = create_time;
}
public void setId(Integer id) {
this.id = id;
}
......
......@@ -2,6 +2,8 @@ package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id;
/**
......@@ -12,64 +14,29 @@ public class Fc_member_film_show implements java.io.Serializable {
private static final long serialVersionUID = 1L;
@Column(columnDefinition="int(11)'")
@Id
private Integer id;
/**
* 参加过什么电影节
*/
@Column(columnDefinition="varchar(255) COMMENT '参加过什么电影节'")
private String show_filmfest;
/**
* 参与类型
*/
@Column(columnDefinition="varchar(255) COMMENT '参与类型'")
private String show_filmfest_type;
/**
* 时间
*/
@Column(columnDefinition="varchar(255) COMMENT '时间'")
private String show_filmfest_date;
/**
* 报名影片ID
*/
@Column(columnDefinition="int(11) COMMENT '报名影片ID'")
private Integer film_id;
/**
* 简介(获奖或报名奖项等)
*/
@Column(columnDefinition="text COMMENT '简介(获奖或报名奖项等)'")
private String show_filmfest_intro;
@Column(columnDefinition="int(11)'")
private Integer create_time;
/**
* 无参数构造方法
*/
public Fc_member_film_show () {
super();
}
/**
* 全参数构造方法
* @param id
* @param show_filmfest 参加过什么电影节
* @param show_filmfest_type 参与类型
* @param show_filmfest_date 时间
* @param film_id 报名影片ID
* @param show_filmfest_intro 简介(获奖或报名奖项等)
* @param create_time
*/
public Fc_member_film_show(Integer id, String show_filmfest, String show_filmfest_type, String show_filmfest_date, Integer film_id, String show_filmfest_intro, Integer create_time) {
this.id = id;
this.show_filmfest = show_filmfest;
this.show_filmfest_type = show_filmfest_type;
this.show_filmfest_date = show_filmfest_date;
this.film_id = film_id;
this.show_filmfest_intro = show_filmfest_intro;
this.create_time = create_time;
}
public void setId(Integer id) {
this.id = id;
}
......
......@@ -2,6 +2,8 @@ package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id;
import java.util.Date;
......@@ -14,82 +16,38 @@ public class Fc_review implements java.io.Serializable {
private static final long serialVersionUID = 1L;
@Column(columnDefinition="int(11)'")
@Id
private Integer id;
/**
* 参审影片ID
*/
@Column(columnDefinition="int(11) COMMENT '参审影片ID'")
private Integer film_id;
/**
* 影片性质
*/
@Column(columnDefinition="int(11) COMMENT '影片性质'")
private Integer enroll_type_id;
/**
* 审片轮数,第几轮审片
*/
@Column(columnDefinition="int(11) COMMENT '审片轮数,第几轮审片'")
private Integer review_round;
/**
* 评委分配状态 0未分配评委 1已分配评委评选中
*/
@Column(columnDefinition="int(11) COMMENT '评委分配状态 0未分配评委 1已分配评委评选中'")
private Integer allot_state;
/**
* 审片结论 1通过 2否决 3参赛 4参赛备选 5参展
*/
@Column(columnDefinition="int(11) COMMENT '审片结论 1通过 2否决 3参赛 4参赛备选 5参展'")
private Integer review_state;
/**
* 评选状态 0未评选 1有争议 2管理员分配 3审片完成
*/
@Column(columnDefinition="int(11) COMMENT '评选状态 0未评选 1有争议 2管理员分配 3审片完成'")
private Integer opt_state;
/**
* 推送时间
*/
@Column(columnDefinition="datetime COMMENT '推送时间'")
private Date push_time;
@Column(columnDefinition="datetime'")
private Date create_time;
@Column(columnDefinition="datetime'")
private Date review_time;
/**
* 无参数构造方法
*/
public Fc_review () {
super();
}
/**
* 全参数构造方法
* @param id
* @param film_id 参审影片ID
* @param enroll_type_id 影片性质
* @param review_round 审片轮数,第几轮审片
* @param allot_state 评委分配状态 0未分配评委 1已分配评委评选中
* @param review_state 审片结论 1通过 2否决 3参赛 4参赛备选 5参展
* @param opt_state 评选状态 0未评选 1有争议 2管理员分配 3审片完成
* @param push_time 推送时间
* @param create_time
* @param review_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, Date review_time) {
this.id = id;
this.film_id = film_id;
this.enroll_type_id = enroll_type_id;
this.review_round = review_round;
this.allot_state = allot_state;
this.review_state = review_state;
this.opt_state = opt_state;
this.push_time = push_time;
this.create_time = create_time;
this.review_time = review_time;
}
public void setId(Integer id) {
this.id = id;
}
......
......@@ -2,6 +2,8 @@ package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id;
import java.util.Date;
......@@ -14,57 +16,26 @@ public class Fc_review_doubtful implements java.io.Serializable {
private static final long serialVersionUID = 1L;
@Column(columnDefinition="int(11)'")
@Id
private Integer id;
/**
* 影片ID
*/
@Column(columnDefinition="int(11) COMMENT '影片ID'")
private Integer review_id;
/**
* 评委ID
*/
@Column(columnDefinition="int(11) COMMENT '评委ID'")
private Integer user_id;
/**
* 疑点介绍
*/
@Column(columnDefinition="text COMMENT '疑点介绍'")
private String doubtful_text;
/**
* 疑点时间
*/
@Column(columnDefinition="datetime COMMENT '疑点时间'")
private Date play_time;
@Column(columnDefinition="datetime'")
private Date create_time;
/**
* 无参数构造方法
*/
public Fc_review_doubtful () {
super();
}
/**
* 全参数构造方法
* @param id
* @param review_id 影片ID
* @param user_id 评委ID
* @param doubtful_text 疑点介绍
* @param play_time 疑点时间
* @param create_time
*/
public Fc_review_doubtful(Integer id, Integer review_id, Integer user_id, String doubtful_text, Date play_time, Date create_time) {
this.id = id;
this.review_id = review_id;
this.user_id = user_id;
this.doubtful_text = doubtful_text;
this.play_time = play_time;
this.create_time = create_time;
}
public void setId(Integer id) {
this.id = id;
}
......
......@@ -2,6 +2,8 @@ package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id;
import java.util.Date;
......@@ -14,61 +16,29 @@ public class Fc_review_history implements java.io.Serializable {
private static final long serialVersionUID = 1L;
@Column(columnDefinition="int(11)'")
@Id
private Integer id;
/**
* 参审影片ID
*/
@Column(columnDefinition="int(11) COMMENT '参审影片ID'")
private Integer film_id;
@Column(columnDefinition="int(11)'")
private Integer review_id;
/**
* 影片性质
*/
@Column(columnDefinition="int(11) COMMENT '影片性质'")
private Integer enroll_type_id;
/**
* 审片轮数,第几轮审片
*/
@Column(columnDefinition="int(11) COMMENT '审片轮数,第几轮审片'")
private Integer review_round;
/**
* 审片结论 1通过 2否决 3参赛 4参赛备选 5参展
*/
@Column(columnDefinition="int(11) COMMENT '审片结论 1通过 2否决 3参赛 4参赛备选 5参展'")
private Integer review_state;
@Column(columnDefinition="datetime'")
private Date create_time;
/**
* 无参数构造方法
*/
public Fc_review_history () {
super();
}
/**
* 全参数构造方法
* @param id
* @param film_id 参审影片ID
* @param review_id
* @param enroll_type_id 影片性质
* @param review_round 审片轮数,第几轮审片
* @param review_state 审片结论 1通过 2否决 3参赛 4参赛备选 5参展
* @param create_time
*/
public Fc_review_history(Integer id, Integer film_id, Integer review_id, Integer enroll_type_id, Integer review_round, Integer review_state, Date create_time) {
this.id = id;
this.film_id = film_id;
this.review_id = review_id;
this.enroll_type_id = enroll_type_id;
this.review_round = review_round;
this.review_state = review_state;
this.create_time = create_time;
}
public void setId(Integer id) {
this.id = id;
}
......
......@@ -2,6 +2,8 @@ package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id;
import java.util.Date;
......@@ -14,101 +16,50 @@ public class Fc_review_record implements java.io.Serializable {
private static final long serialVersionUID = 1L;
/**
* 影片ID
*/
@Column(columnDefinition="int(11) COMMENT '影片ID'")
@Id
private Integer id;
/**
* 评选轮数
*/
@Column(columnDefinition="int(11) COMMENT '评选轮数'")
private Integer review_id;
/**
* 评委ID
*/
@Column(columnDefinition="int(11) COMMENT '评委ID'")
private Integer user_id;
/**
* 观看时长(毫秒)
*/
@Column(columnDefinition="bigint(11) COMMENT '观看时长(毫秒)'")
private Long view_time;
/**
* 评选轮数
*/
@Column(columnDefinition="int(11) COMMENT '评选轮数'")
private Integer review_round;
/**
* 审片状态 1通过,2否决,3参赛,4参赛备选,5参展
*/
@Column(columnDefinition="int(11) COMMENT '审片状态 1通过,2否决,3参赛,4参赛备选,5参展'")
private Integer review_state;
/**
* 得分分数
*/
@Column(columnDefinition="double(10,2) COMMENT '得分分数'")
private Double review_score;
/**
* 影片评论
*/
@Column(columnDefinition="text COMMENT '影片评论'")
private String review_text;
@Column(columnDefinition="text'")
private String review_text_1;
@Column(columnDefinition="text'")
private String review_text_2;
@Column(columnDefinition="text'")
private String review_text_3;
@Column(columnDefinition="text'")
private String review_text_4;
@Column(columnDefinition="datetime'")
private Date create_time;
@Column(columnDefinition="datetime'")
private Date review_time;
/**
* 无参数构造方法
*/
public Fc_review_record () {
super();
}
/**
* 全参数构造方法
* @param id 影片ID
* @param review_id 评选轮数
* @param user_id 评委ID
* @param view_time 观看时长(毫秒)
* @param review_round 评选轮数
* @param review_state 审片状态 1通过,2否决,3参赛,4参赛备选,5参展
* @param review_score 得分分数
* @param review_text 影片评论
* @param review_text_1
* @param review_text_2
* @param review_text_3
* @param review_text_4
* @param create_time
* @param review_time
*/
public Fc_review_record(Integer id, Integer review_id, Integer user_id, Long view_time, Integer review_round, Integer review_state, Double review_score, String review_text, String review_text_1, String review_text_2, String review_text_3, String review_text_4, Date create_time, Date review_time) {
this.id = id;
this.review_id = review_id;
this.user_id = user_id;
this.view_time = view_time;
this.review_round = review_round;
this.review_state = review_state;
this.review_score = review_score;
this.review_text = review_text;
this.review_text_1 = review_text_1;
this.review_text_2 = review_text_2;
this.review_text_3 = review_text_3;
this.review_text_4 = review_text_4;
this.create_time = create_time;
this.review_time = review_time;
}
public void setId(Integer id) {
this.id = id;
}
......
......@@ -2,6 +2,8 @@ package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id;
/**
......@@ -12,49 +14,20 @@ public class Fc_review_record_ext implements java.io.Serializable {
private static final long serialVersionUID = 1L;
/**
* 影片ID
*/
@Column(columnDefinition="int(11) COMMENT '影片ID'")
@Id
private Integer id;
/**
* 评委评审记录ID
*/
@Column(columnDefinition="int(11) COMMENT '评委评审记录ID'")
private Integer record_id;
/**
* 获奖标题 例如: 最佳男演员-张三
*/
@Column(columnDefinition="varchar(255) COMMENT '获奖标题 例如: 最佳男演员-张三'")
private String ext_title;
/**
* 奖项评分
*/
@Column(columnDefinition="double(10,2) COMMENT '奖项评分'")
private Double ext_score;
/**
* 无参数构造方法
*/
public Fc_review_record_ext () {
super();
}
/**
* 全参数构造方法
* @param id 影片ID
* @param record_id 评委评审记录ID
* @param ext_title 获奖标题 例如: 最佳男演员-张三
* @param ext_score 奖项评分
*/
public Fc_review_record_ext(Integer id, Integer record_id, String ext_title, Double ext_score) {
this.id = id;
this.record_id = record_id;
this.ext_title = ext_title;
this.ext_score = ext_score;
}
public void setId(Integer id) {
this.id = id;
}
......
......@@ -2,6 +2,8 @@ package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id;
import java.util.Date;
......@@ -14,165 +16,71 @@ public class Fc_user implements java.io.Serializable {
private static final long serialVersionUID = 1L;
@Column(columnDefinition="int(11) unsigned'")
@Id
private Integer uid;
/**
* 用户名
*/
@Column(columnDefinition="varchar(255) COMMENT '用户名'")
private String username;
/**
* 用户密码
*/
@Column(columnDefinition="varchar(255) COMMENT '用户密码'")
private String password;
/**
* 真实名称
*/
@Column(columnDefinition="varchar(255) COMMENT '真实名称'")
private String realname;
/**
* 随机数
*/
@Column(columnDefinition="varchar(255) COMMENT '随机数'")
private String salt;
/**
* 见状态码
*/
@Column(columnDefinition="tinyint(50) COMMENT '见状态码'")
private Integer state;
/**
* 用户组id
*/
@Column(columnDefinition="int(10) COMMENT '用户组id'")
private Integer group_id;
/**
* 单位名称
*/
@Column(columnDefinition="varchar(255) COMMENT '单位名称'")
private String company;
/**
* 职业
*/
@Column(columnDefinition="varchar(255) COMMENT '职业'")
private String job;
/**
* 性别 1男 2女
*/
@Column(columnDefinition="tinyint(2) COMMENT '性别 1男 2女'")
private Integer sex;
/**
* 居住地址
*/
@Column(columnDefinition="varchar(255) COMMENT '居住地址'")
private String address;
/**
* 电子邮件
*/
@Column(columnDefinition="varchar(255) COMMENT '电子邮件'")
private String email;
/**
* 联系电话
*/
@Column(columnDefinition="varchar(255) COMMENT '联系电话'")
private String tel;
/**
* 用户登陆 session_id
*/
@Column(columnDefinition="varchar(255) COMMENT '用户登陆 session_id'")
private String token;
/**
* 设置到期时间
*/
@Column(columnDefinition="date COMMENT '设置到期时间'")
private Date expire_date;
/**
* 最后一次登陆时间
*/
@Column(columnDefinition="varchar(50) COMMENT '最后一次登陆时间'")
private String last_login_ip;
/**
* 最后一次登录时间
*/
@Column(columnDefinition="datetime COMMENT '最后一次登录时间'")
private Date last_login_time;
/**
* 管理员id
*/
@Column(columnDefinition="int(11) unsigned COMMENT '管理员id'")
private Integer adminid;
/**
* 创建者ip
*/
@Column(columnDefinition="varchar(50) COMMENT '创建者ip'")
private String create_ip;
/**
* 创建时间
*/
@Column(columnDefinition="datetime COMMENT '创建时间'")
private Date create_time;
/**
* 最后修改时间
*/
@Column(columnDefinition="datetime COMMENT '最后修改时间'")
private Date lastuptime;
/**
* 无参数构造方法
*/
public Fc_user () {
super();
}
/**
* 全参数构造方法
* @param uid
* @param username 用户名
* @param password 用户密码
* @param realname 真实名称
* @param salt 随机数
* @param state 见状态码
* @param group_id 用户组id
* @param company 单位名称
* @param job 职业
* @param sex 性别 1男 2女
* @param address 居住地址
* @param email 电子邮件
* @param tel 联系电话
* @param token 用户登陆 session_id
* @param expire_date 设置到期时间
* @param last_login_ip 最后一次登陆时间
* @param last_login_time 最后一次登录时间
* @param adminid 管理员id
* @param create_ip 创建者ip
* @param create_time 创建时间
* @param lastuptime 最后修改时间
*/
public Fc_user(Integer uid, String username, String password, String realname, String salt, Integer state, Integer group_id, String company, String job, Integer sex, String address, String email, String tel, String token, Date expire_date, String last_login_ip, Date last_login_time, Integer adminid, String create_ip, Date create_time, Date lastuptime) {
this.uid = uid;
this.username = username;
this.password = password;
this.realname = realname;
this.salt = salt;
this.state = state;
this.group_id = group_id;
this.company = company;
this.job = job;
this.sex = sex;
this.address = address;
this.email = email;
this.tel = tel;
this.token = token;
this.expire_date = expire_date;
this.last_login_ip = last_login_ip;
this.last_login_time = last_login_time;
this.adminid = adminid;
this.create_ip = create_ip;
this.create_time = create_time;
this.lastuptime = lastuptime;
}
public void setUid(Integer uid) {
this.uid = uid;
}
......
......@@ -2,6 +2,8 @@ package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id;
import java.util.Date;
......@@ -14,70 +16,29 @@ public class Fc_user_group implements java.io.Serializable {
private static final long serialVersionUID = 1L;
/**
* 用户组id
*/
@Column(columnDefinition="int(10) unsigned COMMENT '用户组id'")
@Id
private Integer group_id;
/**
* 小组名称
*/
@Column(columnDefinition="varchar(255) COMMENT '小组名称'")
private String group_name;
/**
* 工作介绍
*/
@Column(columnDefinition="text COMMENT '工作介绍'")
private String job_desc;
/**
* 小组状态
*/
@Column(columnDefinition="tinyint(2) COMMENT '小组状态'")
private Integer state;
/**
* 管理员id
*/
@Column(columnDefinition="int(11) unsigned COMMENT '管理员id'")
private Integer adminid;
/**
* 创建者ip
*/
@Column(columnDefinition="varchar(255) COMMENT '创建者ip'")
private String create_ip;
/**
* 创建时间
*/
@Column(columnDefinition="datetime COMMENT '创建时间'")
private Date create_time;
/**
* 无参数构造方法
*/
public Fc_user_group () {
super();
}
/**
* 全参数构造方法
* @param group_id 用户组id
* @param group_name 小组名称
* @param job_desc 工作介绍
* @param state 小组状态
* @param adminid 管理员id
* @param create_ip 创建者ip
* @param create_time 创建时间
*/
public Fc_user_group(Integer group_id, String group_name, String job_desc, Integer state, Integer adminid, String create_ip, Date create_time) {
this.group_id = group_id;
this.group_name = group_name;
this.job_desc = job_desc;
this.state = state;
this.adminid = adminid;
this.create_ip = create_ip;
this.create_time = create_time;
}
public void setGroup_id(Integer group_id) {
this.group_id = group_id;
}
......
......@@ -2,6 +2,8 @@ package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id;
/**
......@@ -12,30 +14,15 @@ public class Fc_user_group_fun implements java.io.Serializable {
private static final long serialVersionUID = 1L;
@Column(columnDefinition="int(11)'")
@Id
private Integer group_id;
@Column(columnDefinition="int(11)'")
@Id
private Integer fun_id;
/**
* 无参数构造方法
*/
public Fc_user_group_fun () {
super();
}
/**
* 全参数构造方法
* @param group_id
* @param fun_id
*/
public Fc_user_group_fun(Integer group_id, Integer fun_id) {
this.group_id = group_id;
this.fun_id = fun_id;
}
public void setGroup_id(Integer group_id) {
this.group_id = group_id;
}
......
......@@ -12,40 +12,23 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.alibaba.fastjson.JSON;
import com.egolm.common.ExcelUtil;
import com.egolm.common.StringUtil;
import com.egolm.common.Util;
import com.egolm.common.jdbc.JUtil;
import com.egolm.common.jdbc.JdbcTemplate;
import com.egolm.film.bean.Fc_member_film;
@Component
public class Export {
private String db_name;
private Connection conn;
static {
try {
Class.forName("com.mysql.jdbc.Driver");
} catch (Exception e) {
e.printStackTrace();
}
}
public Export(String db_host, String db_name, String username, String password) throws SQLException {
this.db_name = db_name;
this.conn = DriverManager.getConnection("jdbc:mysql://" + db_host + "/information_schema?useSSL=false&useUnicode=true&characterEncoding=utf8" , username, password);
}
private List<Map<String, Object>> getTableDesc(String tableName) throws SQLException {
String sql = "SELECT DISTINCT C.COLUMN_NAME, C.COLUMN_TYPE, C.COLUMN_COMMENT, CU.CONSTRAINT_NAME FROM COLUMNS C LEFT JOIN KEY_COLUMN_USAGE CU ON CU.TABLE_SCHEMA = C.TABLE_SCHEMA AND CU.TABLE_NAME = C.TABLE_NAME AND CU.COLUMN_NAME = C.COLUMN_NAME WHERE C.TABLE_SCHEMA = '" + this.db_name + "' AND C.TABLE_NAME = '" + tableName + "'";
return this.queryForList(sql);
}
@Autowired
private JdbcTemplate jdbcTemplate;
private List<Map<String, Object>> queryForList(String sql) throws SQLException {
Statement statement = conn.createStatement();
ResultSet resultSet = statement.executeQuery(sql);
return JUtil.resultSetToList(resultSet);
}
static Map<String, String> types = new HashMap<String, String>();
static {
types.put("director", "导演");
......@@ -65,15 +48,15 @@ public class Export {
types.put("supportingActor", "男配角");
types.put("supportingActress", "女配角");
}
private List<Map<String, Object>> queryDataList(String tableName) throws SQLException {
String sql = "select t.* from " + this.db_name + "." + tableName + " t";
String sql0 = "select group_concat(fp.playactor_name) text, fp.film_id, fp.playactor_type from " + this.db_name + ".fc_member_film_playactor fp group by fp.film_id, fp.playactor_type";
String sql1 = "select group_concat(fi.issuer_company, ' ', fi.issuer_company_en) text, fi.film_id from " + this.db_name + ".fc_member_film_issuer fi group by fi.film_id";
String sql2 = "select group_concat(fs.show_filmfest) text, fs.film_id from " + this.db_name + ".fc_member_film_show fs group by fs.film_id";
List<Map<String, Object>> list = this.queryForList(sql);
List<Map<String, Object>> playactors = this.queryForList(sql0);
List<Map<String, Object>> issuers = this.queryForList(sql1);
List<Map<String, Object>> shows = this.queryForList(sql2);
private List<Map<String, Object>> queryDataList() {
String sql = "select t.* from fc_member_film t";
String sql0 = "select group_concat(fp.playactor_name) text, fp.film_id, fp.playactor_type from fc_member_film_playactor fp group by fp.film_id, fp.playactor_type";
String sql1 = "select group_concat(fi.issuer_company, ' ', fi.issuer_company_en) text, fi.film_id from fc_member_film_issuer fi group by fi.film_id";
String sql2 = "select group_concat(fs.show_filmfest) text, fs.film_id from fc_member_film_show fs group by fs.film_id";
List<Map<String, Object>> list = jdbcTemplate.queryForList(sql);
List<Map<String, Object>> playactors = jdbcTemplate.queryForList(sql0);
List<Map<String, Object>> issuers = jdbcTemplate.queryForList(sql1);
List<Map<String, Object>> shows = jdbcTemplate.queryForList(sql2);
Map<String, Map<String, Object>> playactorMM = Util.listToMM(playactors, ",", "film_id", "playactor_type");
Map<String, Map<String, Object>> issuerMM = Util.listToMM(issuers, ",", "film_id");
Map<String, Map<String, Object>> showMM = Util.listToMM(shows, ",", "film_id");
......@@ -92,40 +75,23 @@ public class Export {
return list;
}
static String json = "[{\"COLUMN_NAME\":\"id\",\"COLUMN_TYPE\":\"bigint(11) unsigned\",\"COLUMN_COMMENT\":\"\",\"CONSTRAINT_NAME\":\"PRIMARY\"},{\"COLUMN_NAME\":\"film_no\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"电影编号\"},{\"COLUMN_NAME\":\"origion_name\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"原片名\"},{\"COLUMN_NAME\":\"en_name\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"英文名称\"},{\"COLUMN_NAME\":\"cn_name\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"中文片名\"},{\"COLUMN_NAME\":\"type\",\"COLUMN_TYPE\":\"tinyint(10)\",\"COLUMN_COMMENT\":\"类型 1 电影 2电视\"},{\"COLUMN_NAME\":\"film_group_id\",\"COLUMN_TYPE\":\"bigint(20) unsigned\",\"COLUMN_COMMENT\":\"影片内容分组id\"},{\"COLUMN_NAME\":\"film_type\",\"COLUMN_TYPE\":\"int(10)\",\"COLUMN_COMMENT\":\"影片类型\"},{\"COLUMN_NAME\":\"film_type_name\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"导入时影片类型名称\"},{\"COLUMN_NAME\":\"film_type_name_short\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"短片类型 不知道什么用 但在操作时会填这个值\"},{\"COLUMN_NAME\":\"show_date\",\"COLUMN_TYPE\":\"varchar(100)\",\"COLUMN_COMMENT\":\"放映时间\"},{\"COLUMN_NAME\":\"show_time\",\"COLUMN_TYPE\":\"bigint(20)\",\"COLUMN_COMMENT\":\"上映时间\"},{\"COLUMN_NAME\":\"first_show_date\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"首次上映时间\"},{\"COLUMN_NAME\":\"first_show_city\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"首次上映城市\"},{\"COLUMN_NAME\":\"first_show_channel\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"首映频道\"},{\"COLUMN_NAME\":\"is_apply_other_filmfest\",\"COLUMN_TYPE\":\"int(1)\",\"COLUMN_COMMENT\":\"是否同时参加其他电影节\"},{\"COLUMN_NAME\":\"other_filmfest_name\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"同时参加的电影节的名字\"},{\"COLUMN_NAME\":\"film_medium\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"影片色彩\"},{\"COLUMN_NAME\":\"completion_date\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"完成日期\"},{\"COLUMN_NAME\":\"film_country\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"制片国\"},{\"COLUMN_NAME\":\"co_production_country\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"合拍国\"},{\"COLUMN_NAME\":\"film_producers\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"制片人\"},{\"COLUMN_NAME\":\"production_company\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"制片公司\"},{\"COLUMN_NAME\":\"enroll_type_name\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"报名性质\"},{\"COLUMN_NAME\":\"enroll_type\",\"COLUMN_TYPE\":\"tinyint(2)\",\"COLUMN_COMMENT\":\"报名类型\"},{\"COLUMN_NAME\":\"is_like_show\",\"COLUMN_TYPE\":\"tinyint(2)\",\"COLUMN_COMMENT\":\"是否愿意参展\"},{\"COLUMN_NAME\":\"create_time\",\"COLUMN_TYPE\":\"bigint(20) unsigned\",\"COLUMN_COMMENT\":\"添加时间\"},{\"COLUMN_NAME\":\"member_id\",\"COLUMN_TYPE\":\"int(10) unsigned\",\"COLUMN_COMMENT\":\"管理员id\"},{\"COLUMN_NAME\":\"create_ip\",\"COLUMN_TYPE\":\"varchar(50)\",\"COLUMN_COMMENT\":\"创建ip\"},{\"COLUMN_NAME\":\"state\",\"COLUMN_TYPE\":\"tinyint(2) unsigned\",\"COLUMN_COMMENT\":\"状态 1未提交 2 已提交\"},{\"COLUMN_NAME\":\"prize\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"该片已参加过的电影节及所获奖项\"},{\"COLUMN_NAME\":\"dialogue_lang\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"对白语言\"},{\"COLUMN_NAME\":\"subtitle_lang\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"字幕语言\"},{\"COLUMN_NAME\":\"play_shanghai\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"该片在上海电影节放映是\"},{\"COLUMN_NAME\":\"has_joined_award\",\"COLUMN_TYPE\":\"text\",\"COLUMN_COMMENT\":\"已参加过奖项\"},{\"COLUMN_NAME\":\"intro\",\"COLUMN_TYPE\":\"text\",\"COLUMN_COMMENT\":\"影片简介\"},{\"COLUMN_NAME\":\"en_intro\",\"COLUMN_TYPE\":\"text\",\"COLUMN_COMMENT\":\"影片简介英文\"},{\"COLUMN_NAME\":\"last_modify_time\",\"COLUMN_TYPE\":\"bigint(20) unsigned\",\"COLUMN_COMMENT\":\"最后修改时间\"},{\"COLUMN_NAME\":\"film_side_demand\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"片方要求\"},{\"COLUMN_NAME\":\"film_total_time\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"影片时长\"},{\"COLUMN_NAME\":\"is_show\",\"COLUMN_TYPE\":\"tinyint(2)\",\"COLUMN_COMMENT\":\"是否显示 1显示 2不显示\"},{\"COLUMN_NAME\":\"film_apply_company\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"影片申请公司\"},{\"COLUMN_NAME\":\"film_apply_realname\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"影片人姓名\"},{\"COLUMN_NAME\":\"film_apply_job\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"影片人职务\"},{\"COLUMN_NAME\":\"film_apply_email\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"影片申请人邮箱\"},{\"COLUMN_NAME\":\"film_apply_tel\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"影片申请人电话\"},{\"COLUMN_NAME\":\"film_apply_mobile\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"影片申请人手机\"},{\"COLUMN_NAME\":\"film_apply_country\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"影片申请国籍\"},{\"COLUMN_NAME\":\"film_contract_realname\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"联系人姓名\"},{\"COLUMN_NAME\":\"film_contract_job\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"联系人职务\"},{\"COLUMN_NAME\":\"film_contract_mobile\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"联系人手机\"},{\"COLUMN_NAME\":\"film_contract_email\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"联系人邮箱\"},{\"COLUMN_NAME\":\"enroll_type_name_other\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"报名性质\"},{\"COLUMN_NAME\":\"film_format\",\"COLUMN_TYPE\":\"varchar(10)\",\"COLUMN_COMMENT\":\"样片形式 0为移动存储 1为在线\"},{\"COLUMN_NAME\":\"film_format_url\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"样片url\"},{\"COLUMN_NAME\":\"film_format_passw\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"样片url密码\"},{\"COLUMN_NAME\":\"film_format_other\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"样片url其他\"},{\"COLUMN_NAME\":\"film_is_original\",\"COLUMN_TYPE\":\"varchar(10)\",\"COLUMN_COMMENT\":\"是否原创 0原创 1改编\"},{\"COLUMN_NAME\":\"film_original\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"原著/原IP\"},{\"COLUMN_NAME\":\"lang\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"语言\"},{\"COLUMN_NAME\":\"apply_state\",\"COLUMN_TYPE\":\"tinyint(2) unsigned\",\"COLUMN_COMMENT\":\"初审状态 1 未受理, 2 初审通过,3 初审否决\"},{\"COLUMN_NAME\":\"film_district\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"区域\"},{\"COLUMN_NAME\":\"is_check_director\",\"COLUMN_TYPE\":\"tinyint(2) unsigned\",\"COLUMN_COMMENT\":\"状态\"},{\"COLUMN_NAME\":\"pass_time\",\"COLUMN_TYPE\":\"bigint(20) unsigned\",\"COLUMN_COMMENT\":\"通过时间\"},{\"COLUMN_NAME\":\"tv_steps\",\"COLUMN_TYPE\":\"varchar(25)\",\"COLUMN_COMMENT\":\"节目级数\"},{\"COLUMN_NAME\":\"tv_upstar_channel\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"上星频道\"},{\"COLUMN_NAME\":\"tv_upstar_time\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"上星日期\"},{\"COLUMN_NAME\":\"tv_posters\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"上传海报\"},{\"COLUMN_NAME\":\"plays_is_agree\",\"COLUMN_TYPE\":\"varchar(32)\",\"COLUMN_COMMENT\":\"播放及宣传 yes 同意 no不同意\"},{\"COLUMN_NAME\":\"plays_is_agree1\",\"COLUMN_TYPE\":\"varchar(32)\",\"COLUMN_COMMENT\":\"播放及宣传 yes 同意 no不同意\"},{\"COLUMN_NAME\":\"plays_data\",\"COLUMN_TYPE\":\"varchar(255)\",\"COLUMN_COMMENT\":\"播放及宣传 资料\"},{\"COLUMN_NAME\":\"first_check_result\",\"COLUMN_TYPE\":\"int(1)\",\"COLUMN_COMMENT\":\"第一步检测结果 1为 true 0为 false\"},{\"COLUMN_NAME\":\"upload_id\",\"COLUMN_TYPE\":\"varchar(64)\",\"COLUMN_COMMENT\":\"上传影片标记\"},{\"COLUMN_NAME\":\"upload_state\",\"COLUMN_TYPE\":\"int(11)\",\"COLUMN_COMMENT\":\"上传影片状态(0上传中,1已完成)\"},{\"COLUMN_NAME\":\"upload_time\",\"COLUMN_TYPE\":\"datetime\",\"COLUMN_COMMENT\":\"上传影片时间\"}]\r\n";
public void export() throws SQLException, FileNotFoundException {
// List<Map<String, Object>> desc = this.getTableDesc("fc_member_film");
// System.out.println(JSON.toJSONString(desc));
List<Object> desc = JSON.parseArray(json);
List<Map<String, Object>> list = this.queryDataList("fc_member_film");
List<String> argsList = new ArrayList<String>();
List<String> titleList = new ArrayList<String>();
for(Object obj : desc) {
Map<String, Object> map = (Map<String, Object>) obj;
String columnName = (String)map.get("COLUMN_NAME");
argsList.add(columnName);
String columnComment = (String)map.get("COLUMN_COMMENT");
if(StringUtil.isBlank(columnComment)) {
titleList.add(columnName);
} else {
titleList.add(columnComment + "" + columnName);
}
}
for(String key : types.keySet()) {
argsList.add(key);
titleList.add(types.get(key));
}
argsList.add("issuser");
titleList.add("发行方");
argsList.add("show");
titleList.add("参加过的电视节");
ExcelUtil.excel(new FileOutputStream("/data/export.xls"), argsList.toArray(new String[argsList.size()]), titleList.toArray(new String[titleList.size()]), null, list);
}
public static void main(String[] args) throws Exception {
Export exp = new Export("10.10.0.111", "tv", "root", "egolm#2018");
exp.export();
public void export() {
// String[] attrs = Util.clzAttributes(Fc_member_film.class);
// List<Map<String, Object>> list = this.queryDataList();
// List<String> argsList = new ArrayList<String>();
// for(String attr : attrs) {
// argsList.add(attr);
// }
//
// for(String key : types.keySet()) {
// argsList.add(key);
// titleList.add(types.get(key));
// }
// argsList.add("issuser");
// titleList.add("发行方");
// argsList.add("show");
// titleList.add("参加过的电视节");
// ExcelUtil.excel(new FileOutputStream("/data/export.xls"), argsList.toArray(new String[argsList.size()]), titleList.toArray(new String[titleList.size()]), null, list);
}
}
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