NewsExample.java 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693
  1. package com.estates.model;
  2. import java.util.ArrayList;
  3. import java.util.Date;
  4. import java.util.List;
  5. public class NewsExample {
  6. /**
  7. * This field was generated by MyBatis Generator.
  8. * This field corresponds to the database table mini_news
  9. *
  10. * @mbg.generated Wed Sep 18 15:21:50 CST 2019
  11. */
  12. protected String orderByClause;
  13. /**
  14. * This field was generated by MyBatis Generator.
  15. * This field corresponds to the database table mini_news
  16. *
  17. * @mbg.generated Wed Sep 18 15:21:50 CST 2019
  18. */
  19. protected boolean distinct;
  20. /**
  21. * This field was generated by MyBatis Generator.
  22. * This field corresponds to the database table mini_news
  23. *
  24. * @mbg.generated Wed Sep 18 15:21:50 CST 2019
  25. */
  26. protected List<Criteria> oredCriteria;
  27. /**
  28. * This method was generated by MyBatis Generator.
  29. * This method corresponds to the database table mini_news
  30. *
  31. * @mbg.generated Wed Sep 18 15:21:50 CST 2019
  32. */
  33. public NewsExample() {
  34. oredCriteria = new ArrayList<Criteria>();
  35. }
  36. /**
  37. * This method was generated by MyBatis Generator.
  38. * This method corresponds to the database table mini_news
  39. *
  40. * @mbg.generated Wed Sep 18 15:21:50 CST 2019
  41. */
  42. public void setOrderByClause(String orderByClause) {
  43. this.orderByClause = orderByClause;
  44. }
  45. /**
  46. * This method was generated by MyBatis Generator.
  47. * This method corresponds to the database table mini_news
  48. *
  49. * @mbg.generated Wed Sep 18 15:21:50 CST 2019
  50. */
  51. public String getOrderByClause() {
  52. return orderByClause;
  53. }
  54. /**
  55. * This method was generated by MyBatis Generator.
  56. * This method corresponds to the database table mini_news
  57. *
  58. * @mbg.generated Wed Sep 18 15:21:50 CST 2019
  59. */
  60. public void setDistinct(boolean distinct) {
  61. this.distinct = distinct;
  62. }
  63. /**
  64. * This method was generated by MyBatis Generator.
  65. * This method corresponds to the database table mini_news
  66. *
  67. * @mbg.generated Wed Sep 18 15:21:50 CST 2019
  68. */
  69. public boolean isDistinct() {
  70. return distinct;
  71. }
  72. /**
  73. * This method was generated by MyBatis Generator.
  74. * This method corresponds to the database table mini_news
  75. *
  76. * @mbg.generated Wed Sep 18 15:21:50 CST 2019
  77. */
  78. public List<Criteria> getOredCriteria() {
  79. return oredCriteria;
  80. }
  81. /**
  82. * This method was generated by MyBatis Generator.
  83. * This method corresponds to the database table mini_news
  84. *
  85. * @mbg.generated Wed Sep 18 15:21:50 CST 2019
  86. */
  87. public void or(Criteria criteria) {
  88. oredCriteria.add(criteria);
  89. }
  90. /**
  91. * This method was generated by MyBatis Generator.
  92. * This method corresponds to the database table mini_news
  93. *
  94. * @mbg.generated Wed Sep 18 15:21:50 CST 2019
  95. */
  96. public Criteria or() {
  97. Criteria criteria = createCriteriaInternal();
  98. oredCriteria.add(criteria);
  99. return criteria;
  100. }
  101. /**
  102. * This method was generated by MyBatis Generator.
  103. * This method corresponds to the database table mini_news
  104. *
  105. * @mbg.generated Wed Sep 18 15:21:50 CST 2019
  106. */
  107. public Criteria createCriteria() {
  108. Criteria criteria = createCriteriaInternal();
  109. if (oredCriteria.size() == 0) {
  110. oredCriteria.add(criteria);
  111. }
  112. return criteria;
  113. }
  114. /**
  115. * This method was generated by MyBatis Generator.
  116. * This method corresponds to the database table mini_news
  117. *
  118. * @mbg.generated Wed Sep 18 15:21:50 CST 2019
  119. */
  120. protected Criteria createCriteriaInternal() {
  121. Criteria criteria = new Criteria();
  122. return criteria;
  123. }
  124. /**
  125. * This method was generated by MyBatis Generator.
  126. * This method corresponds to the database table mini_news
  127. *
  128. * @mbg.generated Wed Sep 18 15:21:50 CST 2019
  129. */
  130. public void clear() {
  131. oredCriteria.clear();
  132. orderByClause = null;
  133. distinct = false;
  134. }
  135. /**
  136. * This class was generated by MyBatis Generator.
  137. * This class corresponds to the database table mini_news
  138. *
  139. * @mbg.generated Wed Sep 18 15:21:50 CST 2019
  140. */
  141. protected abstract static class GeneratedCriteria {
  142. protected List<Criterion> criteria;
  143. protected GeneratedCriteria() {
  144. super();
  145. criteria = new ArrayList<Criterion>();
  146. }
  147. public boolean isValid() {
  148. return criteria.size() > 0;
  149. }
  150. public List<Criterion> getAllCriteria() {
  151. return criteria;
  152. }
  153. public List<Criterion> getCriteria() {
  154. return criteria;
  155. }
  156. protected void addCriterion(String condition) {
  157. if (condition == null) {
  158. throw new RuntimeException("Value for condition cannot be null");
  159. }
  160. criteria.add(new Criterion(condition));
  161. }
  162. protected void addCriterion(String condition, Object value, String property) {
  163. if (value == null) {
  164. throw new RuntimeException("Value for " + property + " cannot be null");
  165. }
  166. criteria.add(new Criterion(condition, value));
  167. }
  168. protected void addCriterion(String condition, Object value1, Object value2, String property) {
  169. if (value1 == null || value2 == null) {
  170. throw new RuntimeException("Between values for " + property + " cannot be null");
  171. }
  172. criteria.add(new Criterion(condition, value1, value2));
  173. }
  174. public Criteria andIdIsNull() {
  175. addCriterion("id is null");
  176. return (Criteria) this;
  177. }
  178. public Criteria andIdIsNotNull() {
  179. addCriterion("id is not null");
  180. return (Criteria) this;
  181. }
  182. public Criteria andIdEqualTo(Integer value) {
  183. addCriterion("id =", value, "id");
  184. return (Criteria) this;
  185. }
  186. public Criteria andIdNotEqualTo(Integer value) {
  187. addCriterion("id <>", value, "id");
  188. return (Criteria) this;
  189. }
  190. public Criteria andIdGreaterThan(Integer value) {
  191. addCriterion("id >", value, "id");
  192. return (Criteria) this;
  193. }
  194. public Criteria andIdGreaterThanOrEqualTo(Integer value) {
  195. addCriterion("id >=", value, "id");
  196. return (Criteria) this;
  197. }
  198. public Criteria andIdLessThan(Integer value) {
  199. addCriterion("id <", value, "id");
  200. return (Criteria) this;
  201. }
  202. public Criteria andIdLessThanOrEqualTo(Integer value) {
  203. addCriterion("id <=", value, "id");
  204. return (Criteria) this;
  205. }
  206. public Criteria andIdIn(List<Integer> values) {
  207. addCriterion("id in", values, "id");
  208. return (Criteria) this;
  209. }
  210. public Criteria andIdNotIn(List<Integer> values) {
  211. addCriterion("id not in", values, "id");
  212. return (Criteria) this;
  213. }
  214. public Criteria andIdBetween(Integer value1, Integer value2) {
  215. addCriterion("id between", value1, value2, "id");
  216. return (Criteria) this;
  217. }
  218. public Criteria andIdNotBetween(Integer value1, Integer value2) {
  219. addCriterion("id not between", value1, value2, "id");
  220. return (Criteria) this;
  221. }
  222. public Criteria andNickNameIsNull() {
  223. addCriterion("nick_name is null");
  224. return (Criteria) this;
  225. }
  226. public Criteria andNickNameIsNotNull() {
  227. addCriterion("nick_name is not null");
  228. return (Criteria) this;
  229. }
  230. public Criteria andNickNameEqualTo(String value) {
  231. addCriterion("nick_name =", value, "nickName");
  232. return (Criteria) this;
  233. }
  234. public Criteria andNickNameNotEqualTo(String value) {
  235. addCriterion("nick_name <>", value, "nickName");
  236. return (Criteria) this;
  237. }
  238. public Criteria andNickNameGreaterThan(String value) {
  239. addCriterion("nick_name >", value, "nickName");
  240. return (Criteria) this;
  241. }
  242. public Criteria andNickNameGreaterThanOrEqualTo(String value) {
  243. addCriterion("nick_name >=", value, "nickName");
  244. return (Criteria) this;
  245. }
  246. public Criteria andNickNameLessThan(String value) {
  247. addCriterion("nick_name <", value, "nickName");
  248. return (Criteria) this;
  249. }
  250. public Criteria andNickNameLessThanOrEqualTo(String value) {
  251. addCriterion("nick_name <=", value, "nickName");
  252. return (Criteria) this;
  253. }
  254. public Criteria andNickNameLike(String value) {
  255. addCriterion("nick_name like", value, "nickName");
  256. return (Criteria) this;
  257. }
  258. public Criteria andNickNameNotLike(String value) {
  259. addCriterion("nick_name not like", value, "nickName");
  260. return (Criteria) this;
  261. }
  262. public Criteria andNickNameIn(List<String> values) {
  263. addCriterion("nick_name in", values, "nickName");
  264. return (Criteria) this;
  265. }
  266. public Criteria andNickNameNotIn(List<String> values) {
  267. addCriterion("nick_name not in", values, "nickName");
  268. return (Criteria) this;
  269. }
  270. public Criteria andNickNameBetween(String value1, String value2) {
  271. addCriterion("nick_name between", value1, value2, "nickName");
  272. return (Criteria) this;
  273. }
  274. public Criteria andNickNameNotBetween(String value1, String value2) {
  275. addCriterion("nick_name not between", value1, value2, "nickName");
  276. return (Criteria) this;
  277. }
  278. public Criteria andHeaderPicIsNull() {
  279. addCriterion("header_pic is null");
  280. return (Criteria) this;
  281. }
  282. public Criteria andHeaderPicIsNotNull() {
  283. addCriterion("header_pic is not null");
  284. return (Criteria) this;
  285. }
  286. public Criteria andHeaderPicEqualTo(String value) {
  287. addCriterion("header_pic =", value, "headerPic");
  288. return (Criteria) this;
  289. }
  290. public Criteria andHeaderPicNotEqualTo(String value) {
  291. addCriterion("header_pic <>", value, "headerPic");
  292. return (Criteria) this;
  293. }
  294. public Criteria andHeaderPicGreaterThan(String value) {
  295. addCriterion("header_pic >", value, "headerPic");
  296. return (Criteria) this;
  297. }
  298. public Criteria andHeaderPicGreaterThanOrEqualTo(String value) {
  299. addCriterion("header_pic >=", value, "headerPic");
  300. return (Criteria) this;
  301. }
  302. public Criteria andHeaderPicLessThan(String value) {
  303. addCriterion("header_pic <", value, "headerPic");
  304. return (Criteria) this;
  305. }
  306. public Criteria andHeaderPicLessThanOrEqualTo(String value) {
  307. addCriterion("header_pic <=", value, "headerPic");
  308. return (Criteria) this;
  309. }
  310. public Criteria andHeaderPicLike(String value) {
  311. addCriterion("header_pic like", value, "headerPic");
  312. return (Criteria) this;
  313. }
  314. public Criteria andHeaderPicNotLike(String value) {
  315. addCriterion("header_pic not like", value, "headerPic");
  316. return (Criteria) this;
  317. }
  318. public Criteria andHeaderPicIn(List<String> values) {
  319. addCriterion("header_pic in", values, "headerPic");
  320. return (Criteria) this;
  321. }
  322. public Criteria andHeaderPicNotIn(List<String> values) {
  323. addCriterion("header_pic not in", values, "headerPic");
  324. return (Criteria) this;
  325. }
  326. public Criteria andHeaderPicBetween(String value1, String value2) {
  327. addCriterion("header_pic between", value1, value2, "headerPic");
  328. return (Criteria) this;
  329. }
  330. public Criteria andHeaderPicNotBetween(String value1, String value2) {
  331. addCriterion("header_pic not between", value1, value2, "headerPic");
  332. return (Criteria) this;
  333. }
  334. public Criteria andIndateIsNull() {
  335. addCriterion("indate is null");
  336. return (Criteria) this;
  337. }
  338. public Criteria andIndateIsNotNull() {
  339. addCriterion("indate is not null");
  340. return (Criteria) this;
  341. }
  342. public Criteria andIndateEqualTo(Date value) {
  343. addCriterion("indate =", value, "indate");
  344. return (Criteria) this;
  345. }
  346. public Criteria andIndateNotEqualTo(Date value) {
  347. addCriterion("indate <>", value, "indate");
  348. return (Criteria) this;
  349. }
  350. public Criteria andIndateGreaterThan(Date value) {
  351. addCriterion("indate >", value, "indate");
  352. return (Criteria) this;
  353. }
  354. public Criteria andIndateGreaterThanOrEqualTo(Date value) {
  355. addCriterion("indate >=", value, "indate");
  356. return (Criteria) this;
  357. }
  358. public Criteria andIndateLessThan(Date value) {
  359. addCriterion("indate <", value, "indate");
  360. return (Criteria) this;
  361. }
  362. public Criteria andIndateLessThanOrEqualTo(Date value) {
  363. addCriterion("indate <=", value, "indate");
  364. return (Criteria) this;
  365. }
  366. public Criteria andIndateIn(List<Date> values) {
  367. addCriterion("indate in", values, "indate");
  368. return (Criteria) this;
  369. }
  370. public Criteria andIndateNotIn(List<Date> values) {
  371. addCriterion("indate not in", values, "indate");
  372. return (Criteria) this;
  373. }
  374. public Criteria andIndateBetween(Date value1, Date value2) {
  375. addCriterion("indate between", value1, value2, "indate");
  376. return (Criteria) this;
  377. }
  378. public Criteria andIndateNotBetween(Date value1, Date value2) {
  379. addCriterion("indate not between", value1, value2, "indate");
  380. return (Criteria) this;
  381. }
  382. public Criteria andTypeIsNull() {
  383. addCriterion("type is null");
  384. return (Criteria) this;
  385. }
  386. public Criteria andTypeIsNotNull() {
  387. addCriterion("type is not null");
  388. return (Criteria) this;
  389. }
  390. public Criteria andTypeEqualTo(Integer value) {
  391. addCriterion("type =", value, "type");
  392. return (Criteria) this;
  393. }
  394. public Criteria andTypeNotEqualTo(Integer value) {
  395. addCriterion("type <>", value, "type");
  396. return (Criteria) this;
  397. }
  398. public Criteria andTypeGreaterThan(Integer value) {
  399. addCriterion("type >", value, "type");
  400. return (Criteria) this;
  401. }
  402. public Criteria andTypeGreaterThanOrEqualTo(Integer value) {
  403. addCriterion("type >=", value, "type");
  404. return (Criteria) this;
  405. }
  406. public Criteria andTypeLessThan(Integer value) {
  407. addCriterion("type <", value, "type");
  408. return (Criteria) this;
  409. }
  410. public Criteria andTypeLessThanOrEqualTo(Integer value) {
  411. addCriterion("type <=", value, "type");
  412. return (Criteria) this;
  413. }
  414. public Criteria andTypeIn(List<Integer> values) {
  415. addCriterion("type in", values, "type");
  416. return (Criteria) this;
  417. }
  418. public Criteria andTypeNotIn(List<Integer> values) {
  419. addCriterion("type not in", values, "type");
  420. return (Criteria) this;
  421. }
  422. public Criteria andTypeBetween(Integer value1, Integer value2) {
  423. addCriterion("type between", value1, value2, "type");
  424. return (Criteria) this;
  425. }
  426. public Criteria andTypeNotBetween(Integer value1, Integer value2) {
  427. addCriterion("type not between", value1, value2, "type");
  428. return (Criteria) this;
  429. }
  430. public Criteria andMessageIsNull() {
  431. addCriterion("message is null");
  432. return (Criteria) this;
  433. }
  434. public Criteria andMessageIsNotNull() {
  435. addCriterion("message is not null");
  436. return (Criteria) this;
  437. }
  438. public Criteria andMessageEqualTo(String value) {
  439. addCriterion("message =", value, "message");
  440. return (Criteria) this;
  441. }
  442. public Criteria andMessageNotEqualTo(String value) {
  443. addCriterion("message <>", value, "message");
  444. return (Criteria) this;
  445. }
  446. public Criteria andMessageGreaterThan(String value) {
  447. addCriterion("message >", value, "message");
  448. return (Criteria) this;
  449. }
  450. public Criteria andMessageGreaterThanOrEqualTo(String value) {
  451. addCriterion("message >=", value, "message");
  452. return (Criteria) this;
  453. }
  454. public Criteria andMessageLessThan(String value) {
  455. addCriterion("message <", value, "message");
  456. return (Criteria) this;
  457. }
  458. public Criteria andMessageLessThanOrEqualTo(String value) {
  459. addCriterion("message <=", value, "message");
  460. return (Criteria) this;
  461. }
  462. public Criteria andMessageLike(String value) {
  463. addCriterion("message like", value, "message");
  464. return (Criteria) this;
  465. }
  466. public Criteria andMessageNotLike(String value) {
  467. addCriterion("message not like", value, "message");
  468. return (Criteria) this;
  469. }
  470. public Criteria andMessageIn(List<String> values) {
  471. addCriterion("message in", values, "message");
  472. return (Criteria) this;
  473. }
  474. public Criteria andMessageNotIn(List<String> values) {
  475. addCriterion("message not in", values, "message");
  476. return (Criteria) this;
  477. }
  478. public Criteria andMessageBetween(String value1, String value2) {
  479. addCriterion("message between", value1, value2, "message");
  480. return (Criteria) this;
  481. }
  482. public Criteria andMessageNotBetween(String value1, String value2) {
  483. addCriterion("message not between", value1, value2, "message");
  484. return (Criteria) this;
  485. }
  486. }
  487. /**
  488. * This class was generated by MyBatis Generator.
  489. * This class corresponds to the database table mini_news
  490. *
  491. * @mbg.generated do_not_delete_during_merge Wed Sep 18 15:21:50 CST 2019
  492. */
  493. public static class Criteria extends GeneratedCriteria {
  494. protected Criteria() {
  495. super();
  496. }
  497. }
  498. /**
  499. * This class was generated by MyBatis Generator.
  500. * This class corresponds to the database table mini_news
  501. *
  502. * @mbg.generated Wed Sep 18 15:21:50 CST 2019
  503. */
  504. public static class Criterion {
  505. private String condition;
  506. private Object value;
  507. private Object secondValue;
  508. private boolean noValue;
  509. private boolean singleValue;
  510. private boolean betweenValue;
  511. private boolean listValue;
  512. private String typeHandler;
  513. public String getCondition() {
  514. return condition;
  515. }
  516. public Object getValue() {
  517. return value;
  518. }
  519. public Object getSecondValue() {
  520. return secondValue;
  521. }
  522. public boolean isNoValue() {
  523. return noValue;
  524. }
  525. public boolean isSingleValue() {
  526. return singleValue;
  527. }
  528. public boolean isBetweenValue() {
  529. return betweenValue;
  530. }
  531. public boolean isListValue() {
  532. return listValue;
  533. }
  534. public String getTypeHandler() {
  535. return typeHandler;
  536. }
  537. protected Criterion(String condition) {
  538. super();
  539. this.condition = condition;
  540. this.typeHandler = null;
  541. this.noValue = true;
  542. }
  543. protected Criterion(String condition, Object value, String typeHandler) {
  544. super();
  545. this.condition = condition;
  546. this.value = value;
  547. this.typeHandler = typeHandler;
  548. if (value instanceof List<?>) {
  549. this.listValue = true;
  550. } else {
  551. this.singleValue = true;
  552. }
  553. }
  554. protected Criterion(String condition, Object value) {
  555. this(condition, value, null);
  556. }
  557. protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
  558. super();
  559. this.condition = condition;
  560. this.value = value;
  561. this.secondValue = secondValue;
  562. this.typeHandler = typeHandler;
  563. this.betweenValue = true;
  564. }
  565. protected Criterion(String condition, Object value, Object secondValue) {
  566. this(condition, value, secondValue, null);
  567. }
  568. }
  569. }