Faq.java 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580
  1. package com.qxgmat.data.dao.entity;
  2. import java.io.Serializable;
  3. import java.util.Date;
  4. import javax.persistence.*;
  5. @Table(name = "faq")
  6. public class Faq implements Serializable {
  7. @Id
  8. @Column(name = "`id`")
  9. @GeneratedValue(strategy = GenerationType.IDENTITY)
  10. private Integer id;
  11. /**
  12. * 用户id
  13. */
  14. @Column(name = "`user_id`")
  15. private Integer userId;
  16. /**
  17. * 提问者邮箱
  18. */
  19. @Column(name = "`email`")
  20. private String email;
  21. /**
  22. * 回复站内信
  23. */
  24. @Column(name = "`message`")
  25. private Integer message;
  26. /**
  27. * 频道
  28. */
  29. @Column(name = "`channel`")
  30. private String channel;
  31. /**
  32. * 位置
  33. */
  34. @Column(name = "`position`")
  35. private Integer position;
  36. /**
  37. * 处理人
  38. */
  39. @Column(name = "`manager_id`")
  40. private Integer managerId;
  41. /**
  42. * 是否展示
  43. */
  44. @Column(name = "`is_show`")
  45. private Integer isShow;
  46. /**
  47. * 是否用于展示
  48. */
  49. @Column(name = "`is_special`")
  50. private Integer isSpecial;
  51. /**
  52. * 问答状态:0未回答,1回答,忽略
  53. */
  54. @Column(name = "`answer_status`")
  55. private Integer answerStatus;
  56. /**
  57. * 回复时间
  58. */
  59. @Column(name = "`answer_time`")
  60. private Date answerTime;
  61. /**
  62. * 是否系统创建
  63. */
  64. @Column(name = "`is_system`")
  65. private Integer isSystem;
  66. /**
  67. * 排序
  68. */
  69. @Column(name = "`sort`")
  70. private Integer sort;
  71. @Column(name = "`create_time`")
  72. private Date createTime;
  73. /**
  74. * 提问内容
  75. */
  76. @Column(name = "`content`")
  77. private String content;
  78. /**
  79. * 回复内容
  80. */
  81. @Column(name = "`answer`")
  82. private String answer;
  83. private static final long serialVersionUID = 1L;
  84. /**
  85. * @return id
  86. */
  87. public Integer getId() {
  88. return id;
  89. }
  90. /**
  91. * @param id
  92. */
  93. public void setId(Integer id) {
  94. this.id = id;
  95. }
  96. /**
  97. * 获取用户id
  98. *
  99. * @return user_id - 用户id
  100. */
  101. public Integer getUserId() {
  102. return userId;
  103. }
  104. /**
  105. * 设置用户id
  106. *
  107. * @param userId 用户id
  108. */
  109. public void setUserId(Integer userId) {
  110. this.userId = userId;
  111. }
  112. /**
  113. * 获取提问者邮箱
  114. *
  115. * @return email - 提问者邮箱
  116. */
  117. public String getEmail() {
  118. return email;
  119. }
  120. /**
  121. * 设置提问者邮箱
  122. *
  123. * @param email 提问者邮箱
  124. */
  125. public void setEmail(String email) {
  126. this.email = email;
  127. }
  128. /**
  129. * 获取回复站内信
  130. *
  131. * @return message - 回复站内信
  132. */
  133. public Integer getMessage() {
  134. return message;
  135. }
  136. /**
  137. * 设置回复站内信
  138. *
  139. * @param message 回复站内信
  140. */
  141. public void setMessage(Integer message) {
  142. this.message = message;
  143. }
  144. /**
  145. * 获取频道
  146. *
  147. * @return channel - 频道
  148. */
  149. public String getChannel() {
  150. return channel;
  151. }
  152. /**
  153. * 设置频道
  154. *
  155. * @param channel 频道
  156. */
  157. public void setChannel(String channel) {
  158. this.channel = channel;
  159. }
  160. /**
  161. * 获取位置
  162. *
  163. * @return position - 位置
  164. */
  165. public Integer getPosition() {
  166. return position;
  167. }
  168. /**
  169. * 设置位置
  170. *
  171. * @param position 位置
  172. */
  173. public void setPosition(Integer position) {
  174. this.position = position;
  175. }
  176. /**
  177. * 获取处理人
  178. *
  179. * @return manager_id - 处理人
  180. */
  181. public Integer getManagerId() {
  182. return managerId;
  183. }
  184. /**
  185. * 设置处理人
  186. *
  187. * @param managerId 处理人
  188. */
  189. public void setManagerId(Integer managerId) {
  190. this.managerId = managerId;
  191. }
  192. /**
  193. * 获取是否展示
  194. *
  195. * @return is_show - 是否展示
  196. */
  197. public Integer getIsShow() {
  198. return isShow;
  199. }
  200. /**
  201. * 设置是否展示
  202. *
  203. * @param isShow 是否展示
  204. */
  205. public void setIsShow(Integer isShow) {
  206. this.isShow = isShow;
  207. }
  208. /**
  209. * 获取是否用于展示
  210. *
  211. * @return is_special - 是否用于展示
  212. */
  213. public Integer getIsSpecial() {
  214. return isSpecial;
  215. }
  216. /**
  217. * 设置是否用于展示
  218. *
  219. * @param isSpecial 是否用于展示
  220. */
  221. public void setIsSpecial(Integer isSpecial) {
  222. this.isSpecial = isSpecial;
  223. }
  224. /**
  225. * 获取问答状态:0未回答,1回答,忽略
  226. *
  227. * @return answer_status - 问答状态:0未回答,1回答,忽略
  228. */
  229. public Integer getAnswerStatus() {
  230. return answerStatus;
  231. }
  232. /**
  233. * 设置问答状态:0未回答,1回答,忽略
  234. *
  235. * @param answerStatus 问答状态:0未回答,1回答,忽略
  236. */
  237. public void setAnswerStatus(Integer answerStatus) {
  238. this.answerStatus = answerStatus;
  239. }
  240. /**
  241. * 获取回复时间
  242. *
  243. * @return answer_time - 回复时间
  244. */
  245. public Date getAnswerTime() {
  246. return answerTime;
  247. }
  248. /**
  249. * 设置回复时间
  250. *
  251. * @param answerTime 回复时间
  252. */
  253. public void setAnswerTime(Date answerTime) {
  254. this.answerTime = answerTime;
  255. }
  256. /**
  257. * 获取是否系统创建
  258. *
  259. * @return is_system - 是否系统创建
  260. */
  261. public Integer getIsSystem() {
  262. return isSystem;
  263. }
  264. /**
  265. * 设置是否系统创建
  266. *
  267. * @param isSystem 是否系统创建
  268. */
  269. public void setIsSystem(Integer isSystem) {
  270. this.isSystem = isSystem;
  271. }
  272. /**
  273. * 获取排序
  274. *
  275. * @return sort - 排序
  276. */
  277. public Integer getSort() {
  278. return sort;
  279. }
  280. /**
  281. * 设置排序
  282. *
  283. * @param sort 排序
  284. */
  285. public void setSort(Integer sort) {
  286. this.sort = sort;
  287. }
  288. /**
  289. * @return create_time
  290. */
  291. public Date getCreateTime() {
  292. return createTime;
  293. }
  294. /**
  295. * @param createTime
  296. */
  297. public void setCreateTime(Date createTime) {
  298. this.createTime = createTime;
  299. }
  300. /**
  301. * 获取提问内容
  302. *
  303. * @return content - 提问内容
  304. */
  305. public String getContent() {
  306. return content;
  307. }
  308. /**
  309. * 设置提问内容
  310. *
  311. * @param content 提问内容
  312. */
  313. public void setContent(String content) {
  314. this.content = content;
  315. }
  316. /**
  317. * 获取回复内容
  318. *
  319. * @return answer - 回复内容
  320. */
  321. public String getAnswer() {
  322. return answer;
  323. }
  324. /**
  325. * 设置回复内容
  326. *
  327. * @param answer 回复内容
  328. */
  329. public void setAnswer(String answer) {
  330. this.answer = answer;
  331. }
  332. @Override
  333. public String toString() {
  334. StringBuilder sb = new StringBuilder();
  335. sb.append(getClass().getSimpleName());
  336. sb.append(" [");
  337. sb.append("Hash = ").append(hashCode());
  338. sb.append(", id=").append(id);
  339. sb.append(", userId=").append(userId);
  340. sb.append(", email=").append(email);
  341. sb.append(", message=").append(message);
  342. sb.append(", channel=").append(channel);
  343. sb.append(", position=").append(position);
  344. sb.append(", managerId=").append(managerId);
  345. sb.append(", isShow=").append(isShow);
  346. sb.append(", isSpecial=").append(isSpecial);
  347. sb.append(", answerStatus=").append(answerStatus);
  348. sb.append(", answerTime=").append(answerTime);
  349. sb.append(", isSystem=").append(isSystem);
  350. sb.append(", sort=").append(sort);
  351. sb.append(", createTime=").append(createTime);
  352. sb.append(", content=").append(content);
  353. sb.append(", answer=").append(answer);
  354. sb.append("]");
  355. return sb.toString();
  356. }
  357. public static Faq.Builder builder() {
  358. return new Faq.Builder();
  359. }
  360. public static class Builder {
  361. private Faq obj;
  362. public Builder() {
  363. this.obj = new Faq();
  364. }
  365. /**
  366. * @param id
  367. */
  368. public Builder id(Integer id) {
  369. obj.setId(id);
  370. return this;
  371. }
  372. /**
  373. * 设置用户id
  374. *
  375. * @param userId 用户id
  376. */
  377. public Builder userId(Integer userId) {
  378. obj.setUserId(userId);
  379. return this;
  380. }
  381. /**
  382. * 设置提问者邮箱
  383. *
  384. * @param email 提问者邮箱
  385. */
  386. public Builder email(String email) {
  387. obj.setEmail(email);
  388. return this;
  389. }
  390. /**
  391. * 设置回复站内信
  392. *
  393. * @param message 回复站内信
  394. */
  395. public Builder message(Integer message) {
  396. obj.setMessage(message);
  397. return this;
  398. }
  399. /**
  400. * 设置频道
  401. *
  402. * @param channel 频道
  403. */
  404. public Builder channel(String channel) {
  405. obj.setChannel(channel);
  406. return this;
  407. }
  408. /**
  409. * 设置位置
  410. *
  411. * @param position 位置
  412. */
  413. public Builder position(Integer position) {
  414. obj.setPosition(position);
  415. return this;
  416. }
  417. /**
  418. * 设置处理人
  419. *
  420. * @param managerId 处理人
  421. */
  422. public Builder managerId(Integer managerId) {
  423. obj.setManagerId(managerId);
  424. return this;
  425. }
  426. /**
  427. * 设置是否展示
  428. *
  429. * @param isShow 是否展示
  430. */
  431. public Builder isShow(Integer isShow) {
  432. obj.setIsShow(isShow);
  433. return this;
  434. }
  435. /**
  436. * 设置是否用于展示
  437. *
  438. * @param isSpecial 是否用于展示
  439. */
  440. public Builder isSpecial(Integer isSpecial) {
  441. obj.setIsSpecial(isSpecial);
  442. return this;
  443. }
  444. /**
  445. * 设置回复内容
  446. *
  447. * @param answer 回复内容
  448. */
  449. public Builder answer(String answer) {
  450. obj.setAnswer(answer);
  451. return this;
  452. }
  453. /**
  454. * 设置问答状态:0未回答,1回答,忽略
  455. *
  456. * @param answerStatus 问答状态:0未回答,1回答,忽略
  457. */
  458. public Builder answerStatus(Integer answerStatus) {
  459. obj.setAnswerStatus(answerStatus);
  460. return this;
  461. }
  462. /**
  463. * 设置回复时间
  464. *
  465. * @param answerTime 回复时间
  466. */
  467. public Builder answerTime(Date answerTime) {
  468. obj.setAnswerTime(answerTime);
  469. return this;
  470. }
  471. /**
  472. * 设置是否系统创建
  473. *
  474. * @param isSystem 是否系统创建
  475. */
  476. public Builder isSystem(Integer isSystem) {
  477. obj.setIsSystem(isSystem);
  478. return this;
  479. }
  480. /**
  481. * 设置排序
  482. *
  483. * @param sort 排序
  484. */
  485. public Builder sort(Integer sort) {
  486. obj.setSort(sort);
  487. return this;
  488. }
  489. /**
  490. * @param createTime
  491. */
  492. public Builder createTime(Date createTime) {
  493. obj.setCreateTime(createTime);
  494. return this;
  495. }
  496. /**
  497. * 设置提问内容
  498. *
  499. * @param content 提问内容
  500. */
  501. public Builder content(String content) {
  502. obj.setContent(content);
  503. return this;
  504. }
  505. public Faq build() {
  506. return this.obj;
  507. }
  508. }
  509. }