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;
/**
......@@ -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;
}
......
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