Recommend.java 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. package cn.efunbox.model;
  2. import java.sql.Date;
  3. /**
  4. * 推荐结果
  5. * @author yaobo
  6. *
  7. */
  8. public class Recommend {
  9. private int id; //唯一编号
  10. private int type; //系统类型 1、少儿院线推荐节目
  11. private int age; //年龄:1-99
  12. private int sex; //性别:1为男,0为女
  13. private String film_code;//电影编号
  14. private int times; //点击次数
  15. private int score; //排序得分
  16. private int status; //是否显示:1为显示,-1为隐藏
  17. private int updated; //上次更新排序时间
  18. private int created; //创建时间
  19. /*
  20. CREATE TABLE `film_recmd` (
  21. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '唯一编号',
  22. `type` int(5) DEFAULT '0' COMMENT '系统类型 1、少儿院线推荐节目',
  23. `age` int(5) DEFAULT '5' COMMENT '年龄:1-99',
  24. `sex` int(2) DEFAULT '1' COMMENT '性别:1为男,2为女',
  25. `film_code` varchar(100) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '电影编号',
  26. `times` int(10) DEFAULT '1' COMMENT '点击次数',
  27. `score` int(10) DEFAULT '1' COMMENT '排序得分',
  28. `status` int(5) DEFAULT '1' COMMENT '是否显示:1为显示,-1为隐藏',
  29. `reseted` int(10) DEFAULT '0' COMMENT '上次重置排序得分的时间,如每到一个月积分减半再继续累积',
  30. `updated` int(10) DEFAULT '0' COMMENT '上次更新排序时间',
  31. `created` int(10) DEFAULT '0' COMMENT '创建时间',
  32. PRIMARY KEY (`id`),
  33. KEY `age_sex` (`age`,`sex`),
  34. KEY `score` (`score`)
  35. ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='推荐节目统计结果';
  36. */
  37. /**
  38. * @return the id
  39. */
  40. public int getId() {
  41. return id;
  42. }
  43. /**
  44. * @param id the id to set
  45. */
  46. public void setId(int id) {
  47. this.id = id;
  48. }
  49. /**
  50. * @return the type
  51. */
  52. public int getType() {
  53. return type;
  54. }
  55. /**
  56. * @param type the type to set
  57. */
  58. public void setType(int type) {
  59. this.type = type;
  60. }
  61. /**
  62. * @return the age
  63. */
  64. public int getAge() {
  65. return age;
  66. }
  67. /**
  68. * @param age the age to set
  69. */
  70. public void setAge(int age) {
  71. this.age = age;
  72. }
  73. /**
  74. * @return the sex
  75. */
  76. public int getSex() {
  77. return sex;
  78. }
  79. /**
  80. * @param sex the sex to set
  81. */
  82. public void setSex(int sex) {
  83. this.sex = sex;
  84. }
  85. /**
  86. * @return the film_code
  87. */
  88. public String getFilm_code() {
  89. return film_code;
  90. }
  91. /**
  92. * @param film_code the film_code to set
  93. */
  94. public void setFilm_code(String film_code) {
  95. this.film_code = film_code;
  96. }
  97. /**
  98. * @return the times
  99. */
  100. public int getTimes() {
  101. return times;
  102. }
  103. /**
  104. * @param times the times to set
  105. */
  106. public void setTimes(int times) {
  107. this.times = times;
  108. }
  109. /**
  110. * @return the score
  111. */
  112. public int getScore() {
  113. return score;
  114. }
  115. /**
  116. * @param score the score to set
  117. */
  118. public void setScore(int score) {
  119. this.score = score;
  120. }
  121. /**
  122. * @return the status
  123. */
  124. public int getStatus() {
  125. return status;
  126. }
  127. /**
  128. * @param status the status to set
  129. */
  130. public void setStatus(int status) {
  131. this.status = status;
  132. }
  133. /**
  134. * @return the updated
  135. */
  136. public int getUpdated() {
  137. return updated;
  138. }
  139. /**
  140. * @param updated the updated to set
  141. */
  142. public void setUpdated(int updated) {
  143. this.updated = updated;
  144. }
  145. /**
  146. * @return the created
  147. */
  148. public int getCreated() {
  149. return created;
  150. }
  151. /**
  152. * @param created the created to set
  153. */
  154. public void setCreated(int created) {
  155. this.created = created;
  156. }
  157. @Override
  158. public String toString() {
  159. return "Person [id=" + id + ", film_code=" + film_code + "]";
  160. }
  161. }