Commit c6a1b83d authored by Quxl's avatar Quxl

第一次提交

parents
/target/
/.settings/
/.classpath
/.project
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.egolm</groupId>
<artifactId>siff-film-api</artifactId>
<version>0.0.1-SNAPSHOT</version>
<properties>
<start-class>com.egolm.film.FilmApplication</start-class>
</properties>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.9.RELEASE</version>
</parent>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.38</version>
</dependency>
<dependency>
<groupId>com.egolm</groupId>
<artifactId>common</artifactId>
<version>0.0.1-RELEASE</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.1.6</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.6.1</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>2.6.1</version>
</dependency>
<dependency>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache</artifactId>
</dependency>
<dependency>
<groupId>javax.activation</groupId>
<artifactId>activation</artifactId>
<version>1.1</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>${start-class}</mainClass>
<layout>ZIP</layout>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
package com.egolm.film;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.ApplicationContext;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
@EnableCaching
@EnableSwagger2
@SpringBootApplication
@EnableTransactionManagement
public class FilmApplication {
private static ApplicationContext applicationContext;
public static void main(String[] args) {
applicationContext = SpringApplication.run(FilmApplication.class, args);
}
public static ApplicationContext getApplicationContext() {
return applicationContext;
}
public static Object getBean(String name){
return getApplicationContext().getBean(name);
}
public static <T> T getBean(Class<T> clazz){
return getApplicationContext().getBean(clazz);
}
public static <T> T getBean(String name, Class<T> clazz){
return getApplicationContext().getBean(name, clazz);
}
}
package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Id;
/**
* @author Quxl
* @since 2018-09-29
* @version v-1.0
*/
@Entity(name="fc_admin")
public class Fc_admin implements java.io.Serializable {
private static final long serialVersionUID = 1L;
@Id
private Integer adminid;
/**
* 用户名
*/
private String username;
/**
* 密码
*/
private String password;
/**
* 真实名称
*/
private String realname;
/**
* 随机数
*/
private String salt;
/**
* 创建时间
*/
private Long create_time;
/**
* 创建ip
*/
private String create_ip;
/**
* 登陆时间
*/
private Long login_time;
/**
* 登陆ip
*/
private String login_ip;
/**
* 状态 1正常 2禁用
*/
private Byte state;
/**
* 管理员组
*/
private Integer group_id;
/**
* 创建者adminid
*/
private Integer create_admin_id;
/**
* 用户登陆 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, Byte 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;
}
public Integer getAdminid() {
return adminid;
}
public void setUsername(String username) {
this.username = username;
}
public String getUsername() {
return username;
}
public void setPassword(String password) {
this.password = password;
}
public String getPassword() {
return password;
}
public void setRealname(String realname) {
this.realname = realname;
}
public String getRealname() {
return realname;
}
public void setSalt(String salt) {
this.salt = salt;
}
public String getSalt() {
return salt;
}
public void setCreate_time(Long create_time) {
this.create_time = create_time;
}
public Long getCreate_time() {
return create_time;
}
public void setCreate_ip(String create_ip) {
this.create_ip = create_ip;
}
public String getCreate_ip() {
return create_ip;
}
public void setLogin_time(Long login_time) {
this.login_time = login_time;
}
public Long getLogin_time() {
return login_time;
}
public void setLogin_ip(String login_ip) {
this.login_ip = login_ip;
}
public String getLogin_ip() {
return login_ip;
}
public void setState(Byte state) {
this.state = state;
}
public Byte getState() {
return state;
}
public void setGroup_id(Integer group_id) {
this.group_id = group_id;
}
public Integer getGroup_id() {
return group_id;
}
public void setCreate_admin_id(Integer create_admin_id) {
this.create_admin_id = create_admin_id;
}
public Integer getCreate_admin_id() {
return create_admin_id;
}
public void setToken(String token) {
this.token = token;
}
public String getToken() {
return token;
}
}
package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Id;
/**
* @author Quxl
* @since 2018-09-29
* @version v-1.0
*/
@Entity(name="fc_admin_group")
public class Fc_admin_group implements java.io.Serializable {
private static final long serialVersionUID = 1L;
/**
* 用户组id
*/
@Id
private Integer group_id;
/**
* 小组名称
*/
private String group_name;
/**
* 创建时间
*/
private Long create_time;
/**
* 创建者ip
*/
private String create_ip;
/**
* 创建者uid
*/
private Integer adminid;
/**
* 小组状态
*/
private Byte state;
/**
* 权限
*/
private String power;
/**
* 成员数量
*/
private Long user_num;
/**
* 群组权限
*/
private String group_power;
/**
* 无参数构造方法
*/
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 power 权限
* @param user_num 成员数量
* @param group_power 群组权限
*/
public Fc_admin_group(Integer group_id, String group_name, Long create_time, String create_ip, Integer adminid, Byte state, String power, Long user_num, String group_power) {
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.power = power;
this.user_num = user_num;
this.group_power = group_power;
}
public void setGroup_id(Integer group_id) {
this.group_id = group_id;
}
public Integer getGroup_id() {
return group_id;
}
public void setGroup_name(String group_name) {
this.group_name = group_name;
}
public String getGroup_name() {
return group_name;
}
public void setCreate_time(Long create_time) {
this.create_time = create_time;
}
public Long getCreate_time() {
return create_time;
}
public void setCreate_ip(String create_ip) {
this.create_ip = create_ip;
}
public String getCreate_ip() {
return create_ip;
}
public void setAdminid(Integer adminid) {
this.adminid = adminid;
}
public Integer getAdminid() {
return adminid;
}
public void setState(Byte state) {
this.state = state;
}
public Byte getState() {
return state;
}
public void setPower(String power) {
this.power = power;
}
public String getPower() {
return power;
}
public void setUser_num(Long user_num) {
this.user_num = user_num;
}
public Long getUser_num() {
return user_num;
}
public void setGroup_power(String group_power) {
this.group_power = group_power;
}
public String getGroup_power() {
return group_power;
}
}
package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Id;
/**
* @author Quxl
* @since 2018-09-29
* @version v-1.0
*/
@Entity(name="fc_admin_logs")
public class Fc_admin_logs implements java.io.Serializable {
private static final long serialVersionUID = 1L;
/**
* 日志id
*/
@Id
private Long log_id;
private Byte log_type;
private Long log_time;
/**
* 记录内容
*/
private String log_content;
/**
* 操作者uid
*/
private String log_ip;
/**
* 管理员id
*/
private Long adminid;
/**
* 操作时用户所在组
*/
private Integer group_id;
/**
* 浏览器类型
*/
private String user_agent;
/**
* 关联id
*/
private Long relation_id;
/**
* 无参数构造方法
*/
public Fc_admin_logs () {
super();
}
/**
* 全参数构造方法
* @param log_id 日志id
* @param log_type
* @param log_time
* @param log_content 记录内容
* @param log_ip 操作者uid
* @param adminid 管理员id
* @param group_id 操作时用户所在组
* @param user_agent 浏览器类型
* @param relation_id 关联id
*/
public Fc_admin_logs(Long log_id, Byte log_type, Long log_time, String log_content, String log_ip, Long adminid, Integer group_id, String user_agent, Long relation_id) {
this.log_id = log_id;
this.log_type = log_type;
this.log_time = log_time;
this.log_content = log_content;
this.log_ip = log_ip;
this.adminid = adminid;
this.group_id = group_id;
this.user_agent = user_agent;
this.relation_id = relation_id;
}
public void setLog_id(Long log_id) {
this.log_id = log_id;
}
public Long getLog_id() {
return log_id;
}
public void setLog_type(Byte log_type) {
this.log_type = log_type;
}
public Byte getLog_type() {
return log_type;
}
public void setLog_time(Long log_time) {
this.log_time = log_time;
}
public Long getLog_time() {
return log_time;
}
public void setLog_content(String log_content) {
this.log_content = log_content;
}
public String getLog_content() {
return log_content;
}
public void setLog_ip(String log_ip) {
this.log_ip = log_ip;
}
public String getLog_ip() {
return log_ip;
}
public void setAdminid(Long adminid) {
this.adminid = adminid;
}
public Long getAdminid() {
return adminid;
}
public void setGroup_id(Integer group_id) {
this.group_id = group_id;
}
public Integer getGroup_id() {
return group_id;
}
public void setUser_agent(String user_agent) {
this.user_agent = user_agent;
}
public String getUser_agent() {
return user_agent;
}
public void setRelation_id(Long relation_id) {
this.relation_id = relation_id;
}
public Long getRelation_id() {
return relation_id;
}
}
package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Id;
/**
* @author Quxl
* @since 2018-09-29
* @version v-1.0
*/
@Entity(name="fc_excel_state")
public class Fc_excel_state implements java.io.Serializable {
private static final long serialVersionUID = 1L;
@Id
private Integer id;
private String type_name;
private String intro;
private Short state;
/**
* 无参数构造方法
*/
public Fc_excel_state () {
super();
}
/**
* 全参数构造方法
* @param id
* @param type_name
* @param intro
* @param state
*/
public Fc_excel_state(Integer id, String type_name, String intro, Short state) {
this.id = id;
this.type_name = type_name;
this.intro = intro;
this.state = state;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getId() {
return id;
}
public void setType_name(String type_name) {
this.type_name = type_name;
}
public String getType_name() {
return type_name;
}
public void setIntro(String intro) {
this.intro = intro;
}
public String getIntro() {
return intro;
}
public void setState(Short state) {
this.state = state;
}
public Short getState() {
return state;
}
}
package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Id;
/**
* @author Quxl
* @since 2018-09-29
* @version v-1.0
*/
@Entity(name="fc_file_check")
public class Fc_file_check implements java.io.Serializable {
private static final long serialVersionUID = 1L;
/**
* 文件自增id
*/
@Id
private Integer id;
/**
* 文件或文件夹名称
*/
private String name;
/**
* 1 是 2 目录
*/
private Byte is_file;
/**
* 父类id
*/
private Integer parent_id;
/**
* 文件MD5值
*/
private String file_md5;
/**
* 全路径,值针对项目路径而言
*/
private String full_path;
/**
* 无参数构造方法
*/
public Fc_file_check () {
super();
}
/**
* 全参数构造方法
* @param id 文件自增id
* @param name 文件或文件夹名称
* @param is_file 1 是 2 目录
* @param parent_id 父类id
* @param file_md5 文件MD5值
* @param full_path 全路径,值针对项目路径而言
*/
public Fc_file_check(Integer id, String name, Byte is_file, Integer parent_id, String file_md5, String full_path) {
this.id = id;
this.name = name;
this.is_file = is_file;
this.parent_id = parent_id;
this.file_md5 = file_md5;
this.full_path = full_path;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getId() {
return id;
}
public void setName(String name) {
this.name = name;
}
public String getName() {
return name;
}
public void setIs_file(Byte is_file) {
this.is_file = is_file;
}
public Byte getIs_file() {
return is_file;
}
public void setParent_id(Integer parent_id) {
this.parent_id = parent_id;
}
public Integer getParent_id() {
return parent_id;
}
public void setFile_md5(String file_md5) {
this.file_md5 = file_md5;
}
public String getFile_md5() {
return file_md5;
}
public void setFull_path(String full_path) {
this.full_path = full_path;
}
public String getFull_path() {
return full_path;
}
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Id;
/**
* @author Quxl
* @since 2018-09-29
* @version v-1.0
*/
@Entity(name="fc_film_admin_review")
public class Fc_film_admin_review implements java.io.Serializable {
private static final long serialVersionUID = 1L;
@Id
private Long id;
private Long film_id;
/**
* 原状态
*/
private Integer old_state;
/**
* 修改之后的状态
*/
private Integer state;
/**
* 管理员ip
*/
private String adminip;
/**
* 创建时间
*/
private Long create_time;
/**
* 备注
*/
private String remark;
/**
* 无参数构造方法
*/
public Fc_film_admin_review () {
super();
}
/**
* 全参数构造方法
* @param id
* @param film_id
* @param old_state 原状态
* @param state 修改之后的状态
* @param adminip 管理员ip
* @param create_time 创建时间
* @param remark 备注
*/
public Fc_film_admin_review(Long id, Long film_id, Integer old_state, Integer state, String adminip, Long create_time, String remark) {
this.id = id;
this.film_id = film_id;
this.old_state = old_state;
this.state = state;
this.adminip = adminip;
this.create_time = create_time;
this.remark = remark;
}
public void setId(Long id) {
this.id = id;
}
public Long getId() {
return id;
}
public void setFilm_id(Long film_id) {
this.film_id = film_id;
}
public Long getFilm_id() {
return film_id;
}
public void setOld_state(Integer old_state) {
this.old_state = old_state;
}
public Integer getOld_state() {
return old_state;
}
public void setState(Integer state) {
this.state = state;
}
public Integer getState() {
return state;
}
public void setAdminip(String adminip) {
this.adminip = adminip;
}
public String getAdminip() {
return adminip;
}
public void setCreate_time(Long create_time) {
this.create_time = create_time;
}
public Long getCreate_time() {
return create_time;
}
public void setRemark(String remark) {
this.remark = remark;
}
public String getRemark() {
return remark;
}
}
package com.egolm.film.bean;
import javax.persistence.Entity;
/**
* @author Quxl
* @since 2018-09-29
* @version v-1.0
*/
@Entity(name="fc_film_allot")
public class Fc_film_allot implements java.io.Serializable {
private static final long serialVersionUID = 1L;
private Long film_id;
private Long uid;
/**
* 评审环节
*/
private Integer review_round;
/**
* 记录时间
*/
private Long push_time;
/**
* 管理员id
*/
private Long adminid;
/**
* 修改时间
*/
private Long update_time;
/**
* 是否复审 1是 0不是
*/
private Byte is_recheck;
/**
* 1最后复审
*/
private Byte review_last_recheck;
/**
* 1待评审 2已超时 3已开始 4已结束
*/
private Byte allot_state;
/**
* 无参数构造方法
*/
public Fc_film_allot () {
super();
}
/**
* 全参数构造方法
* @param film_id
* @param uid
* @param review_round 评审环节
* @param push_time 记录时间
* @param adminid 管理员id
* @param update_time 修改时间
* @param is_recheck 是否复审 1是 0不是
* @param review_last_recheck 1最后复审
* @param allot_state 1待评审 2已超时 3已开始 4已结束
*/
public Fc_film_allot(Long film_id, Long uid, Integer review_round, Long push_time, Long adminid, Long update_time, Byte is_recheck, Byte review_last_recheck, Byte allot_state) {
this.film_id = film_id;
this.uid = uid;
this.review_round = review_round;
this.push_time = push_time;
this.adminid = adminid;
this.update_time = update_time;
this.is_recheck = is_recheck;
this.review_last_recheck = review_last_recheck;
this.allot_state = allot_state;
}
public void setFilm_id(Long film_id) {
this.film_id = film_id;
}
public Long getFilm_id() {
return film_id;
}
public void setUid(Long uid) {
this.uid = uid;
}
public Long getUid() {
return uid;
}
public void setReview_round(Integer review_round) {
this.review_round = review_round;
}
public Integer getReview_round() {
return review_round;
}
public void setPush_time(Long push_time) {
this.push_time = push_time;
}
public Long getPush_time() {
return push_time;
}
public void setAdminid(Long adminid) {
this.adminid = adminid;
}
public Long getAdminid() {
return adminid;
}
public void setUpdate_time(Long update_time) {
this.update_time = update_time;
}
public Long getUpdate_time() {
return update_time;
}
public void setIs_recheck(Byte is_recheck) {
this.is_recheck = is_recheck;
}
public Byte getIs_recheck() {
return is_recheck;
}
public void setReview_last_recheck(Byte review_last_recheck) {
this.review_last_recheck = review_last_recheck;
}
public Byte getReview_last_recheck() {
return review_last_recheck;
}
public void setAllot_state(Byte allot_state) {
this.allot_state = allot_state;
}
public Byte getAllot_state() {
return allot_state;
}
}
This diff is collapsed.
package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Id;
/**
* @author Quxl
* @since 2018-09-29
* @version v-1.0
*/
@Entity(name="fc_film_archive")
public class Fc_film_archive implements java.io.Serializable {
private static final long serialVersionUID = 1L;
@Id
private Long film_id;
/**
* 影片分组id
*/
private Integer film_group_id;
/**
* 添加时间
*/
private Long addtime;
/**
* 管理员id
*/
private Long adminid;
/**
* 最后修改时间
*/
private Integer lastuptime;
/**
* 无参数构造方法
*/
public Fc_film_archive () {
super();
}
/**
* 全参数构造方法
* @param film_id
* @param film_group_id 影片分组id
* @param addtime 添加时间
* @param adminid 管理员id
* @param lastuptime 最后修改时间
*/
public Fc_film_archive(Long film_id, Integer film_group_id, Long addtime, Long adminid, Integer lastuptime) {
this.film_id = film_id;
this.film_group_id = film_group_id;
this.addtime = addtime;
this.adminid = adminid;
this.lastuptime = lastuptime;
}
public void setFilm_id(Long film_id) {
this.film_id = film_id;
}
public Long getFilm_id() {
return film_id;
}
public void setFilm_group_id(Integer film_group_id) {
this.film_group_id = film_group_id;
}
public Integer getFilm_group_id() {
return film_group_id;
}
public void setAddtime(Long addtime) {
this.addtime = addtime;
}
public Long getAddtime() {
return addtime;
}
public void setAdminid(Long adminid) {
this.adminid = adminid;
}
public Long getAdminid() {
return adminid;
}
public void setLastuptime(Integer lastuptime) {
this.lastuptime = lastuptime;
}
public Integer getLastuptime() {
return lastuptime;
}
}
package com.egolm.film.bean;
import javax.persistence.Entity;
/**
* @author Quxl
* @since 2018-09-29
* @version v-1.0
*/
@Entity(name="fc_film_argue")
public class Fc_film_argue implements java.io.Serializable {
private static final long serialVersionUID = 1L;
/**
* 影片id
*/
private Long film_id;
/**
* 争议环节
*/
private Byte round;
/**
* 争议状态 1争议中 2已解决
*/
private Byte argue_state;
/**
* 创建时间
*/
private Long create_time;
/**
* 次数
*/
private Byte times;
/**
* 0 未分配 1已分配
*/
private Byte is_argue_allot;
/**
* 无参数构造方法
*/
public Fc_film_argue () {
super();
}
/**
* 全参数构造方法
* @param film_id 影片id
* @param round 争议环节
* @param argue_state 争议状态 1争议中 2已解决
* @param create_time 创建时间
* @param times 次数
* @param is_argue_allot 0 未分配 1已分配
*/
public Fc_film_argue(Long film_id, Byte round, Byte argue_state, Long create_time, Byte times, Byte is_argue_allot) {
this.film_id = film_id;
this.round = round;
this.argue_state = argue_state;
this.create_time = create_time;
this.times = times;
this.is_argue_allot = is_argue_allot;
}
public void setFilm_id(Long film_id) {
this.film_id = film_id;
}
public Long getFilm_id() {
return film_id;
}
public void setRound(Byte round) {
this.round = round;
}
public Byte getRound() {
return round;
}
public void setArgue_state(Byte argue_state) {
this.argue_state = argue_state;
}
public Byte getArgue_state() {
return argue_state;
}
public void setCreate_time(Long create_time) {
this.create_time = create_time;
}
public Long getCreate_time() {
return create_time;
}
public void setTimes(Byte times) {
this.times = times;
}
public Byte getTimes() {
return times;
}
public void setIs_argue_allot(Byte is_argue_allot) {
this.is_argue_allot = is_argue_allot;
}
public Byte getIs_argue_allot() {
return is_argue_allot;
}
}
package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Id;
/**
* @author Quxl
* @since 2018-09-29
* @version v-1.0
*/
@Entity(name="fc_film_doubtful_point")
public class Fc_film_doubtful_point implements java.io.Serializable {
private static final long serialVersionUID = 1L;
@Id
private Long id;
/**
* 影片id
*/
private Long film_id;
/**
* 用户uid
*/
private Long uid;
/**
* 第几回合
*/
private Integer round;
/**
* 疑点类型
*/
private Integer type;
/**
* 疑点内容
*/
private String type_content;
/**
* 播放时间
*/
private String play_time;
/**
* 创建时间
*/
private Long create_time;
/**
* 创建ip
*/
private String create_ip;
/**
* 添加次数
*/
private Long times;
/**
* 无参数构造方法
*/
public Fc_film_doubtful_point () {
super();
}
/**
* 全参数构造方法
* @param id
* @param film_id 影片id
* @param uid 用户uid
* @param round 第几回合
* @param type 疑点类型
* @param type_content 疑点内容
* @param play_time 播放时间
* @param create_time 创建时间
* @param create_ip 创建ip
* @param times 添加次数
*/
public Fc_film_doubtful_point(Long id, Long film_id, Long uid, Integer round, Integer type, String type_content, String play_time, Long create_time, String create_ip, Long times) {
this.id = id;
this.film_id = film_id;
this.uid = uid;
this.round = round;
this.type = type;
this.type_content = type_content;
this.play_time = play_time;
this.create_time = create_time;
this.create_ip = create_ip;
this.times = times;
}
public void setId(Long id) {
this.id = id;
}
public Long getId() {
return id;
}
public void setFilm_id(Long film_id) {
this.film_id = film_id;
}
public Long getFilm_id() {
return film_id;
}
public void setUid(Long uid) {
this.uid = uid;
}
public Long getUid() {
return uid;
}
public void setRound(Integer round) {
this.round = round;
}
public Integer getRound() {
return round;
}
public void setType(Integer type) {
this.type = type;
}
public Integer getType() {
return type;
}
public void setType_content(String type_content) {
this.type_content = type_content;
}
public String getType_content() {
return type_content;
}
public void setPlay_time(String play_time) {
this.play_time = play_time;
}
public String getPlay_time() {
return play_time;
}
public void setCreate_time(Long create_time) {
this.create_time = create_time;
}
public Long getCreate_time() {
return create_time;
}
public void setCreate_ip(String create_ip) {
this.create_ip = create_ip;
}
public String getCreate_ip() {
return create_ip;
}
public void setTimes(Long times) {
this.times = times;
}
public Long getTimes() {
return times;
}
}
package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Id;
/**
* @author Quxl
* @since 2018-09-29
* @version v-1.0
*/
@Entity(name="fc_film_file")
public class Fc_film_file implements java.io.Serializable {
private static final long serialVersionUID = 1L;
/**
* 自增id
*/
@Id
private Long fid;
/**
* 电影id
*/
private Long film_id;
/**
* 级数
*/
private Integer level;
/**
* 影片时长
*/
private String file_time;
/**
* 影片路径
*/
private String file_path;
/**
* 无参数构造方法
*/
public Fc_film_file () {
super();
}
/**
* 全参数构造方法
* @param fid 自增id
* @param film_id 电影id
* @param level 级数
* @param file_time 影片时长
* @param file_path 影片路径
*/
public Fc_film_file(Long fid, Long film_id, Integer level, String file_time, String file_path) {
this.fid = fid;
this.film_id = film_id;
this.level = level;
this.file_time = file_time;
this.file_path = file_path;
}
public void setFid(Long fid) {
this.fid = fid;
}
public Long getFid() {
return fid;
}
public void setFilm_id(Long film_id) {
this.film_id = film_id;
}
public Long getFilm_id() {
return film_id;
}
public void setLevel(Integer level) {
this.level = level;
}
public Integer getLevel() {
return level;
}
public void setFile_time(String file_time) {
this.file_time = file_time;
}
public String getFile_time() {
return file_time;
}
public void setFile_path(String file_path) {
this.file_path = file_path;
}
public String getFile_path() {
return file_path;
}
}
package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Id;
/**
* @author Quxl
* @since 2018-09-29
* @version v-1.0
*/
@Entity(name="fc_film_group")
public class Fc_film_group implements java.io.Serializable {
private static final long serialVersionUID = 1L;
/**
* 影片分类
*/
@Id
private Long group_id;
/**
* 父类id
*/
private Long pid;
/**
* 分组名称
*/
private String group_name;
/**
* 排序
*/
private Long sort;
/**
* 创建时间
*/
private Long create_time;
/**
* 创建者id
*/
private Long adminid;
/**
* 创建者ip
*/
private String create_ip;
/**
* 影片数量
*/
private Long film_total;
/**
* 深度
*/
private Long depth;
/**
* 父类ids 所有层级
*/
private String pids;
/**
* 无参数构造方法
*/
public Fc_film_group () {
super();
}
/**
* 全参数构造方法
* @param group_id 影片分类
* @param pid 父类id
* @param group_name 分组名称
* @param sort 排序
* @param create_time 创建时间
* @param adminid 创建者id
* @param create_ip 创建者ip
* @param film_total 影片数量
* @param depth 深度
* @param pids 父类ids 所有层级
*/
public Fc_film_group(Long group_id, Long pid, String group_name, Long sort, Long create_time, Long adminid, String create_ip, Long film_total, Long depth, String pids) {
this.group_id = group_id;
this.pid = pid;
this.group_name = group_name;
this.sort = sort;
this.create_time = create_time;
this.adminid = adminid;
this.create_ip = create_ip;
this.film_total = film_total;
this.depth = depth;
this.pids = pids;
}
public void setGroup_id(Long group_id) {
this.group_id = group_id;
}
public Long getGroup_id() {
return group_id;
}
public void setPid(Long pid) {
this.pid = pid;
}
public Long getPid() {
return pid;
}
public void setGroup_name(String group_name) {
this.group_name = group_name;
}
public String getGroup_name() {
return group_name;
}
public void setSort(Long sort) {
this.sort = sort;
}
public Long getSort() {
return sort;
}
public void setCreate_time(Long create_time) {
this.create_time = create_time;
}
public Long getCreate_time() {
return create_time;
}
public void setAdminid(Long adminid) {
this.adminid = adminid;
}
public Long getAdminid() {
return adminid;
}
public void setCreate_ip(String create_ip) {
this.create_ip = create_ip;
}
public String getCreate_ip() {
return create_ip;
}
public void setFilm_total(Long film_total) {
this.film_total = film_total;
}
public Long getFilm_total() {
return film_total;
}
public void setDepth(Long depth) {
this.depth = depth;
}
public Long getDepth() {
return depth;
}
public void setPids(String pids) {
this.pids = pids;
}
public String getPids() {
return pids;
}
}
This diff is collapsed.
package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Id;
/**
* @author Quxl
* @since 2018-09-29
* @version v-1.0
*/
@Entity(name="fc_film_import_error")
public class Fc_film_import_error implements java.io.Serializable {
private static final long serialVersionUID = 1L;
@Id
private Long id;
/**
* 编号
*/
private String film_no;
/**
* 创建时间
*/
private Long create_time;
private Long upload_file_id;
/**
* 1系统出错 2管理员跳过
*/
private Byte type;
private Long adminid;
/**
* 管理员ip
*/
private String adminip;
/**
* 无参数构造方法
*/
public Fc_film_import_error () {
super();
}
/**
* 全参数构造方法
* @param id
* @param film_no 编号
* @param create_time 创建时间
* @param upload_file_id
* @param type 1系统出错 2管理员跳过
* @param adminid
* @param adminip 管理员ip
*/
public Fc_film_import_error(Long id, String film_no, Long create_time, Long upload_file_id, Byte type, Long adminid, String adminip) {
this.id = id;
this.film_no = film_no;
this.create_time = create_time;
this.upload_file_id = upload_file_id;
this.type = type;
this.adminid = adminid;
this.adminip = adminip;
}
public void setId(Long id) {
this.id = id;
}
public Long getId() {
return id;
}
public void setFilm_no(String film_no) {
this.film_no = film_no;
}
public String getFilm_no() {
return film_no;
}
public void setCreate_time(Long create_time) {
this.create_time = create_time;
}
public Long getCreate_time() {
return create_time;
}
public void setUpload_file_id(Long upload_file_id) {
this.upload_file_id = upload_file_id;
}
public Long getUpload_file_id() {
return upload_file_id;
}
public void setType(Byte type) {
this.type = type;
}
public Byte getType() {
return type;
}
public void setAdminid(Long adminid) {
this.adminid = adminid;
}
public Long getAdminid() {
return adminid;
}
public void setAdminip(String adminip) {
this.adminip = adminip;
}
public String getAdminip() {
return adminip;
}
}
package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Id;
/**
* @author Quxl
* @since 2018-09-29
* @version v-1.0
*/
@Entity(name="fc_film_import_time")
public class Fc_film_import_time implements java.io.Serializable {
private static final long serialVersionUID = 1L;
@Id
private Long tid;
/**
* 创建时间
*/
private Long create_time;
private Long adminid;
/**
* 无参数构造方法
*/
public Fc_film_import_time () {
super();
}
/**
* 全参数构造方法
* @param tid
* @param create_time 创建时间
* @param adminid
*/
public Fc_film_import_time(Long tid, Long create_time, Long adminid) {
this.tid = tid;
this.create_time = create_time;
this.adminid = adminid;
}
public void setTid(Long tid) {
this.tid = tid;
}
public Long getTid() {
return tid;
}
public void setCreate_time(Long create_time) {
this.create_time = create_time;
}
public Long getCreate_time() {
return create_time;
}
public void setAdminid(Long adminid) {
this.adminid = adminid;
}
public Long getAdminid() {
return adminid;
}
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
package com.egolm.film.config;
public class Constant {
}
package com.egolm.film.config;
import javax.sql.DataSource;
import org.springframework.boot.autoconfigure.jdbc.DataSourceBuilder;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.jdbc.datasource.DataSourceTransactionManager;
import org.springframework.transaction.PlatformTransactionManager;
import com.alibaba.druid.pool.DruidDataSource;
import com.egolm.common.jdbc.JdbcTemplate;
import com.egolm.common.jdbc.dialect.MySqlDialect;
@Configuration
public class DataSourceConfig {
@Bean
@Primary
@ConfigurationProperties(prefix = "spring.datasource")
public DataSource getDataSource() {
return DataSourceBuilder.create().type(DruidDataSource.class).build();
}
@Bean
@Primary
public PlatformTransactionManager getTransactionManager(DataSource dataSource) {
return new DataSourceTransactionManager(dataSource);
}
@Bean
@Primary
public JdbcTemplate getJdbcTemplate(DataSource dataSource) {
JdbcTemplate jdbcTemplate = new JdbcTemplate();
jdbcTemplate.setDataSource(dataSource);
jdbcTemplate.setDialect(new MySqlDialect());
jdbcTemplate.setSql_level(3);
return jdbcTemplate;
}
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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