123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206 |
- package cn.efunbox.model;
- import java.sql.Date;
- /**
- * 推荐结果
- * @author yaobo
- *
- */
- public class Recommend {
-
- private int id; //唯一编号
- private int type; //系统类型 1、少儿院线推荐节目
- private int age; //年龄:1-99
- private int sex; //性别:1为男,0为女
- private String film_code;//电影编号
- private int times; //点击次数
- private int score; //排序得分
- private int status; //是否显示:1为显示,-1为隐藏
- private int updated; //上次更新排序时间
- private int created; //创建时间
-
- /*
- CREATE TABLE `film_recmd` (
- `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '唯一编号',
- `type` int(5) DEFAULT '0' COMMENT '系统类型 1、少儿院线推荐节目',
- `age` int(5) DEFAULT '5' COMMENT '年龄:1-99',
- `sex` int(2) DEFAULT '1' COMMENT '性别:1为男,2为女',
- `film_code` varchar(100) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '电影编号',
- `times` int(10) DEFAULT '1' COMMENT '点击次数',
- `score` int(10) DEFAULT '1' COMMENT '排序得分',
- `status` int(5) DEFAULT '1' COMMENT '是否显示:1为显示,-1为隐藏',
- `reseted` int(10) DEFAULT '0' COMMENT '上次重置排序得分的时间,如每到一个月积分减半再继续累积',
- `updated` int(10) DEFAULT '0' COMMENT '上次更新排序时间',
- `created` int(10) DEFAULT '0' COMMENT '创建时间',
- PRIMARY KEY (`id`),
- KEY `age_sex` (`age`,`sex`),
- KEY `score` (`score`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='推荐节目统计结果';
- */
-
- /**
- * @return the id
- */
- public int getId() {
- return id;
- }
- /**
- * @param id the id to set
- */
- public void setId(int id) {
- this.id = id;
- }
- /**
- * @return the type
- */
- public int getType() {
- return type;
- }
- /**
- * @param type the type to set
- */
- public void setType(int type) {
- this.type = type;
- }
- /**
- * @return the age
- */
- public int getAge() {
- return age;
- }
- /**
- * @param age the age to set
- */
- public void setAge(int age) {
- this.age = age;
- }
- /**
- * @return the sex
- */
- public int getSex() {
- return sex;
- }
- /**
- * @param sex the sex to set
- */
- public void setSex(int sex) {
- this.sex = sex;
- }
- /**
- * @return the film_code
- */
- public String getFilm_code() {
- return film_code;
- }
- /**
- * @param film_code the film_code to set
- */
- public void setFilm_code(String film_code) {
- this.film_code = film_code;
- }
- /**
- * @return the times
- */
- public int getTimes() {
- return times;
- }
- /**
- * @param times the times to set
- */
- public void setTimes(int times) {
- this.times = times;
- }
- /**
- * @return the score
- */
- public int getScore() {
- return score;
- }
- /**
- * @param score the score to set
- */
- public void setScore(int score) {
- this.score = score;
- }
- /**
- * @return the status
- */
- public int getStatus() {
- return status;
- }
- /**
- * @param status the status to set
- */
- public void setStatus(int status) {
- this.status = status;
- }
- /**
- * @return the updated
- */
- public int getUpdated() {
- return updated;
- }
- /**
- * @param updated the updated to set
- */
- public void setUpdated(int updated) {
- this.updated = updated;
- }
- /**
- * @return the created
- */
- public int getCreated() {
- return created;
- }
- /**
- * @param created the created to set
- */
- public void setCreated(int created) {
- this.created = created;
- }
-
- @Override
- public String toString() {
- return "Person [id=" + id + ", film_code=" + film_code + "]";
- }
- }
|