Recommend.java 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  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为男,2为女
  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. `updated` int(10) DEFAULT '0' COMMENT '上次更新排序时间',
  30. `created` int(10) DEFAULT '0' COMMENT '创建时间',
  31. PRIMARY KEY (`id`),
  32. KEY `age_sex` (`age`,`sex`),
  33. KEY `score` (`score`)
  34. ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='推荐节目统计结果';
  35. */
  36. /**
  37. * @return the id
  38. */
  39. public int getId() {
  40. return id;
  41. }
  42. /**
  43. * @param id the id to set
  44. */
  45. public void setId(int id) {
  46. this.id = id;
  47. }
  48. /**
  49. * @return the type
  50. */
  51. public int getType() {
  52. return type;
  53. }
  54. /**
  55. * @param type the type to set
  56. */
  57. public void setType(int type) {
  58. this.type = type;
  59. }
  60. /**
  61. * @return the age
  62. */
  63. public int getAge() {
  64. return age;
  65. }
  66. /**
  67. * @param age the age to set
  68. */
  69. public void setAge(int age) {
  70. this.age = age;
  71. }
  72. /**
  73. * @return the sex
  74. */
  75. public int getSex() {
  76. return sex;
  77. }
  78. /**
  79. * @param sex the sex to set
  80. */
  81. public void setSex(int sex) {
  82. this.sex = sex;
  83. }
  84. /**
  85. * @return the film_code
  86. */
  87. public String getFilm_code() {
  88. return film_code;
  89. }
  90. /**
  91. * @param film_code the film_code to set
  92. */
  93. public void setFilm_code(String film_code) {
  94. this.film_code = film_code;
  95. }
  96. /**
  97. * @return the times
  98. */
  99. public int getTimes() {
  100. return times;
  101. }
  102. /**
  103. * @param times the times to set
  104. */
  105. public void setTimes(int times) {
  106. this.times = times;
  107. }
  108. /**
  109. * @return the score
  110. */
  111. public int getScore() {
  112. return score;
  113. }
  114. /**
  115. * @param score the score to set
  116. */
  117. public void setScore(int score) {
  118. this.score = score;
  119. }
  120. /**
  121. * @return the status
  122. */
  123. public int getStatus() {
  124. return status;
  125. }
  126. /**
  127. * @param status the status to set
  128. */
  129. public void setStatus(int status) {
  130. this.status = status;
  131. }
  132. /**
  133. * @return the updated
  134. */
  135. public int getUpdated() {
  136. return updated;
  137. }
  138. /**
  139. * @param updated the updated to set
  140. */
  141. public void setUpdated(int updated) {
  142. this.updated = updated;
  143. }
  144. /**
  145. * @return the created
  146. */
  147. public int getCreated() {
  148. return created;
  149. }
  150. /**
  151. * @param created the created to set
  152. */
  153. public void setCreated(int created) {
  154. this.created = created;
  155. }
  156. @Override
  157. public String toString() {
  158. return "Person [id=" + id + ", film_code=" + film_code + "]";
  159. }
  160. }