LierdaYdscExample.java 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598
  1. package com.huimv.lierda.dataobject;
  2. import java.util.ArrayList;
  3. import java.util.Date;
  4. import java.util.HashMap;
  5. import java.util.Iterator;
  6. import java.util.List;
  7. import java.util.Map;
  8. public class LierdaYdscExample {
  9. /**
  10. * This field was generated by Apache iBATIS ibator.
  11. * This field corresponds to the database table lierda_ydsc
  12. *
  13. * @ibatorgenerated Fri Sep 20 15:50:20 CST 2019
  14. */
  15. protected String orderByClause;
  16. /**
  17. * This field was generated by Apache iBATIS ibator.
  18. * This field corresponds to the database table lierda_ydsc
  19. *
  20. * @ibatorgenerated Fri Sep 20 15:50:20 CST 2019
  21. */
  22. protected List<Criteria> oredCriteria;
  23. /**
  24. * This field was generated by Apache iBATIS ibator.
  25. * This field corresponds to the database table lierda_ydsc
  26. *
  27. * @ibatorgenerated Fri Sep 20 15:50:20 CST 2019
  28. */
  29. protected int start = -1;
  30. /**
  31. * This field was generated by Apache iBATIS ibator.
  32. * This field corresponds to the database table lierda_ydsc
  33. *
  34. * @ibatorgenerated Fri Sep 20 15:50:20 CST 2019
  35. */
  36. protected int limit = -1;
  37. /**
  38. * This method was generated by Apache iBATIS ibator.
  39. * This method corresponds to the database table lierda_ydsc
  40. *
  41. * @ibatorgenerated Fri Sep 20 15:50:20 CST 2019
  42. */
  43. public LierdaYdscExample() {
  44. oredCriteria = new ArrayList<Criteria>();
  45. }
  46. /**
  47. * This method was generated by Apache iBATIS ibator.
  48. * This method corresponds to the database table lierda_ydsc
  49. *
  50. * @ibatorgenerated Fri Sep 20 15:50:20 CST 2019
  51. */
  52. protected LierdaYdscExample(LierdaYdscExample example) {
  53. this.orderByClause = example.orderByClause;
  54. this.oredCriteria = example.oredCriteria;
  55. }
  56. /**
  57. * This method was generated by Apache iBATIS ibator.
  58. * This method corresponds to the database table lierda_ydsc
  59. *
  60. * @ibatorgenerated Fri Sep 20 15:50:20 CST 2019
  61. */
  62. public void setOrderByClause(String orderByClause) {
  63. this.orderByClause = orderByClause;
  64. }
  65. /**
  66. * This method was generated by Apache iBATIS ibator.
  67. * This method corresponds to the database table lierda_ydsc
  68. *
  69. * @ibatorgenerated Fri Sep 20 15:50:20 CST 2019
  70. */
  71. public String getOrderByClause() {
  72. return orderByClause;
  73. }
  74. /**
  75. * This method was generated by Apache iBATIS ibator.
  76. * This method corresponds to the database table lierda_ydsc
  77. *
  78. * @ibatorgenerated Fri Sep 20 15:50:20 CST 2019
  79. */
  80. public List<Criteria> getOredCriteria() {
  81. return oredCriteria;
  82. }
  83. /**
  84. * This method was generated by Apache iBATIS ibator.
  85. * This method corresponds to the database table lierda_ydsc
  86. *
  87. * @ibatorgenerated Fri Sep 20 15:50:20 CST 2019
  88. */
  89. public void or(Criteria criteria) {
  90. oredCriteria.add(criteria);
  91. }
  92. /**
  93. * This method was generated by Apache iBATIS ibator.
  94. * This method corresponds to the database table lierda_ydsc
  95. *
  96. * @ibatorgenerated Fri Sep 20 15:50:20 CST 2019
  97. */
  98. public Criteria createCriteria() {
  99. Criteria criteria = createCriteriaInternal();
  100. if (oredCriteria.size() == 0) {
  101. oredCriteria.add(criteria);
  102. }
  103. return criteria;
  104. }
  105. /**
  106. * This method was generated by Apache iBATIS ibator.
  107. * This method corresponds to the database table lierda_ydsc
  108. *
  109. * @ibatorgenerated Fri Sep 20 15:50:20 CST 2019
  110. */
  111. protected Criteria createCriteriaInternal() {
  112. Criteria criteria = new Criteria();
  113. return criteria;
  114. }
  115. /**
  116. * This method was generated by Apache iBATIS ibator.
  117. * This method corresponds to the database table lierda_ydsc
  118. *
  119. * @ibatorgenerated Fri Sep 20 15:50:20 CST 2019
  120. */
  121. public void clear() {
  122. oredCriteria.clear();
  123. }
  124. /**
  125. * This method was generated by Apache iBATIS ibator.
  126. * This method corresponds to the database table lierda_ydsc
  127. *
  128. * @ibatorgenerated Fri Sep 20 15:50:20 CST 2019
  129. */
  130. public void setStart(int start) {
  131. this.start=start;
  132. }
  133. /**
  134. * This method was generated by Apache iBATIS ibator.
  135. * This method corresponds to the database table lierda_ydsc
  136. *
  137. * @ibatorgenerated Fri Sep 20 15:50:20 CST 2019
  138. */
  139. public int getStart() {
  140. return start;
  141. }
  142. /**
  143. * This method was generated by Apache iBATIS ibator.
  144. * This method corresponds to the database table lierda_ydsc
  145. *
  146. * @ibatorgenerated Fri Sep 20 15:50:20 CST 2019
  147. */
  148. public void setLimit(int limit) {
  149. this.limit=limit;
  150. }
  151. /**
  152. * This method was generated by Apache iBATIS ibator.
  153. * This method corresponds to the database table lierda_ydsc
  154. *
  155. * @ibatorgenerated Fri Sep 20 15:50:20 CST 2019
  156. */
  157. public int getLimit() {
  158. return limit;
  159. }
  160. /**
  161. * This class was generated by Apache iBATIS ibator.
  162. * This class corresponds to the database table lierda_ydsc
  163. *
  164. * @ibatorgenerated Fri Sep 20 15:50:20 CST 2019
  165. */
  166. public static class Criteria {
  167. protected List<String> criteriaWithoutValue;
  168. protected List<Map<String, Object>> criteriaWithSingleValue;
  169. protected List<Map<String, Object>> criteriaWithListValue;
  170. protected List<Map<String, Object>> criteriaWithBetweenValue;
  171. protected Criteria() {
  172. super();
  173. criteriaWithoutValue = new ArrayList<String>();
  174. criteriaWithSingleValue = new ArrayList<Map<String, Object>>();
  175. criteriaWithListValue = new ArrayList<Map<String, Object>>();
  176. criteriaWithBetweenValue = new ArrayList<Map<String, Object>>();
  177. }
  178. public boolean isValid() {
  179. return criteriaWithoutValue.size() > 0
  180. || criteriaWithSingleValue.size() > 0
  181. || criteriaWithListValue.size() > 0
  182. || criteriaWithBetweenValue.size() > 0;
  183. }
  184. public List<String> getCriteriaWithoutValue() {
  185. return criteriaWithoutValue;
  186. }
  187. public List<Map<String, Object>> getCriteriaWithSingleValue() {
  188. return criteriaWithSingleValue;
  189. }
  190. public List<Map<String, Object>> getCriteriaWithListValue() {
  191. return criteriaWithListValue;
  192. }
  193. public List<Map<String, Object>> getCriteriaWithBetweenValue() {
  194. return criteriaWithBetweenValue;
  195. }
  196. protected void addCriterion(String condition) {
  197. if (condition == null) {
  198. throw new RuntimeException("Value for condition cannot be null");
  199. }
  200. criteriaWithoutValue.add(condition);
  201. }
  202. protected void addCriterion(String condition, Object value, String property) {
  203. if (value == null) {
  204. throw new RuntimeException("Value for " + property + " cannot be null");
  205. }
  206. Map<String, Object> map = new HashMap<String, Object>();
  207. map.put("condition", condition);
  208. map.put("value", value);
  209. criteriaWithSingleValue.add(map);
  210. }
  211. protected void addCriterion(String condition, List<? extends Object> values, String property) {
  212. if (values == null || values.size() == 0) {
  213. throw new RuntimeException("Value list for " + property + " cannot be null or empty");
  214. }
  215. Map<String, Object> map = new HashMap<String, Object>();
  216. map.put("condition", condition);
  217. map.put("values", values);
  218. criteriaWithListValue.add(map);
  219. }
  220. protected void addCriterion(String condition, Object value1, Object value2, String property) {
  221. if (value1 == null || value2 == null) {
  222. throw new RuntimeException("Between values for " + property + " cannot be null");
  223. }
  224. List<Object> list = new ArrayList<Object>();
  225. list.add(value1);
  226. list.add(value2);
  227. Map<String, Object> map = new HashMap<String, Object>();
  228. map.put("condition", condition);
  229. map.put("values", list);
  230. criteriaWithBetweenValue.add(map);
  231. }
  232. protected void addCriterionForJDBCDate(String condition, Date value, String property) {
  233. addCriterion(condition, new java.sql.Date(value.getTime()), property);
  234. }
  235. protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
  236. if (values == null || values.size() == 0) {
  237. throw new RuntimeException("Value list for " + property + " cannot be null or empty");
  238. }
  239. List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
  240. Iterator<Date> iter = values.iterator();
  241. while (iter.hasNext()) {
  242. dateList.add(new java.sql.Date(iter.next().getTime()));
  243. }
  244. addCriterion(condition, dateList, property);
  245. }
  246. protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
  247. if (value1 == null || value2 == null) {
  248. throw new RuntimeException("Between values for " + property + " cannot be null");
  249. }
  250. addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
  251. }
  252. public Criteria andIdIsNull() {
  253. addCriterion("ID is null");
  254. return this;
  255. }
  256. public Criteria andIdIsNotNull() {
  257. addCriterion("ID is not null");
  258. return this;
  259. }
  260. public Criteria andIdEqualTo(Integer value) {
  261. addCriterion("ID =", value, "id");
  262. return this;
  263. }
  264. public Criteria andIdNotEqualTo(Integer value) {
  265. addCriterion("ID <>", value, "id");
  266. return this;
  267. }
  268. public Criteria andIdGreaterThan(Integer value) {
  269. addCriterion("ID >", value, "id");
  270. return this;
  271. }
  272. public Criteria andIdGreaterThanOrEqualTo(Integer value) {
  273. addCriterion("ID >=", value, "id");
  274. return this;
  275. }
  276. public Criteria andIdLessThan(Integer value) {
  277. addCriterion("ID <", value, "id");
  278. return this;
  279. }
  280. public Criteria andIdLessThanOrEqualTo(Integer value) {
  281. addCriterion("ID <=", value, "id");
  282. return this;
  283. }
  284. public Criteria andIdIn(List<Integer> values) {
  285. addCriterion("ID in", values, "id");
  286. return this;
  287. }
  288. public Criteria andIdNotIn(List<Integer> values) {
  289. addCriterion("ID not in", values, "id");
  290. return this;
  291. }
  292. public Criteria andIdBetween(Integer value1, Integer value2) {
  293. addCriterion("ID between", value1, value2, "id");
  294. return this;
  295. }
  296. public Criteria andIdNotBetween(Integer value1, Integer value2) {
  297. addCriterion("ID not between", value1, value2, "id");
  298. return this;
  299. }
  300. public Criteria andMacIsNull() {
  301. addCriterion("MAC is null");
  302. return this;
  303. }
  304. public Criteria andMacIsNotNull() {
  305. addCriterion("MAC is not null");
  306. return this;
  307. }
  308. public Criteria andMacEqualTo(String value) {
  309. addCriterion("MAC =", value, "mac");
  310. return this;
  311. }
  312. public Criteria andMacNotEqualTo(String value) {
  313. addCriterion("MAC <>", value, "mac");
  314. return this;
  315. }
  316. public Criteria andMacGreaterThan(String value) {
  317. addCriterion("MAC >", value, "mac");
  318. return this;
  319. }
  320. public Criteria andMacGreaterThanOrEqualTo(String value) {
  321. addCriterion("MAC >=", value, "mac");
  322. return this;
  323. }
  324. public Criteria andMacLessThan(String value) {
  325. addCriterion("MAC <", value, "mac");
  326. return this;
  327. }
  328. public Criteria andMacLessThanOrEqualTo(String value) {
  329. addCriterion("MAC <=", value, "mac");
  330. return this;
  331. }
  332. public Criteria andMacLike(String value) {
  333. addCriterion("MAC like", value, "mac");
  334. return this;
  335. }
  336. public Criteria andMacNotLike(String value) {
  337. addCriterion("MAC not like", value, "mac");
  338. return this;
  339. }
  340. public Criteria andMacIn(List<String> values) {
  341. addCriterion("MAC in", values, "mac");
  342. return this;
  343. }
  344. public Criteria andMacNotIn(List<String> values) {
  345. addCriterion("MAC not in", values, "mac");
  346. return this;
  347. }
  348. public Criteria andMacBetween(String value1, String value2) {
  349. addCriterion("MAC between", value1, value2, "mac");
  350. return this;
  351. }
  352. public Criteria andMacNotBetween(String value1, String value2) {
  353. addCriterion("MAC not between", value1, value2, "mac");
  354. return this;
  355. }
  356. public Criteria andDqmsIsNull() {
  357. addCriterion("DQMS is null");
  358. return this;
  359. }
  360. public Criteria andDqmsIsNotNull() {
  361. addCriterion("DQMS is not null");
  362. return this;
  363. }
  364. public Criteria andDqmsEqualTo(Integer value) {
  365. addCriterion("DQMS =", value, "dqms");
  366. return this;
  367. }
  368. public Criteria andDqmsNotEqualTo(Integer value) {
  369. addCriterion("DQMS <>", value, "dqms");
  370. return this;
  371. }
  372. public Criteria andDqmsGreaterThan(Integer value) {
  373. addCriterion("DQMS >", value, "dqms");
  374. return this;
  375. }
  376. public Criteria andDqmsGreaterThanOrEqualTo(Integer value) {
  377. addCriterion("DQMS >=", value, "dqms");
  378. return this;
  379. }
  380. public Criteria andDqmsLessThan(Integer value) {
  381. addCriterion("DQMS <", value, "dqms");
  382. return this;
  383. }
  384. public Criteria andDqmsLessThanOrEqualTo(Integer value) {
  385. addCriterion("DQMS <=", value, "dqms");
  386. return this;
  387. }
  388. public Criteria andDqmsIn(List<Integer> values) {
  389. addCriterion("DQMS in", values, "dqms");
  390. return this;
  391. }
  392. public Criteria andDqmsNotIn(List<Integer> values) {
  393. addCriterion("DQMS not in", values, "dqms");
  394. return this;
  395. }
  396. public Criteria andDqmsBetween(Integer value1, Integer value2) {
  397. addCriterion("DQMS between", value1, value2, "dqms");
  398. return this;
  399. }
  400. public Criteria andDqmsNotBetween(Integer value1, Integer value2) {
  401. addCriterion("DQMS not between", value1, value2, "dqms");
  402. return this;
  403. }
  404. public Criteria andScsjIsNull() {
  405. addCriterion("SCSJ is null");
  406. return this;
  407. }
  408. public Criteria andScsjIsNotNull() {
  409. addCriterion("SCSJ is not null");
  410. return this;
  411. }
  412. public Criteria andScsjEqualTo(Date value) {
  413. addCriterionForJDBCDate("SCSJ =", value, "scsj");
  414. return this;
  415. }
  416. public Criteria andScsjNotEqualTo(Date value) {
  417. addCriterionForJDBCDate("SCSJ <>", value, "scsj");
  418. return this;
  419. }
  420. public Criteria andScsjGreaterThan(Date value) {
  421. addCriterionForJDBCDate("SCSJ >", value, "scsj");
  422. return this;
  423. }
  424. public Criteria andScsjGreaterThanOrEqualTo(Date value) {
  425. addCriterionForJDBCDate("SCSJ >=", value, "scsj");
  426. return this;
  427. }
  428. public Criteria andScsjLessThan(Date value) {
  429. addCriterionForJDBCDate("SCSJ <", value, "scsj");
  430. return this;
  431. }
  432. public Criteria andScsjLessThanOrEqualTo(Date value) {
  433. addCriterionForJDBCDate("SCSJ <=", value, "scsj");
  434. return this;
  435. }
  436. public Criteria andScsjIn(List<Date> values) {
  437. addCriterionForJDBCDate("SCSJ in", values, "scsj");
  438. return this;
  439. }
  440. public Criteria andScsjNotIn(List<Date> values) {
  441. addCriterionForJDBCDate("SCSJ not in", values, "scsj");
  442. return this;
  443. }
  444. public Criteria andScsjBetween(Date value1, Date value2) {
  445. addCriterionForJDBCDate("SCSJ between", value1, value2, "scsj");
  446. return this;
  447. }
  448. public Criteria andScsjNotBetween(Date value1, Date value2) {
  449. addCriterionForJDBCDate("SCSJ not between", value1, value2, "scsj");
  450. return this;
  451. }
  452. public Criteria andXsIsNull() {
  453. addCriterion("XS is null");
  454. return this;
  455. }
  456. public Criteria andXsIsNotNull() {
  457. addCriterion("XS is not null");
  458. return this;
  459. }
  460. public Criteria andXsEqualTo(Integer value) {
  461. addCriterion("XS =", value, "xs");
  462. return this;
  463. }
  464. public Criteria andXsNotEqualTo(Integer value) {
  465. addCriterion("XS <>", value, "xs");
  466. return this;
  467. }
  468. public Criteria andXsGreaterThan(Integer value) {
  469. addCriterion("XS >", value, "xs");
  470. return this;
  471. }
  472. public Criteria andXsGreaterThanOrEqualTo(Integer value) {
  473. addCriterion("XS >=", value, "xs");
  474. return this;
  475. }
  476. public Criteria andXsLessThan(Integer value) {
  477. addCriterion("XS <", value, "xs");
  478. return this;
  479. }
  480. public Criteria andXsLessThanOrEqualTo(Integer value) {
  481. addCriterion("XS <=", value, "xs");
  482. return this;
  483. }
  484. public Criteria andXsIn(List<Integer> values) {
  485. addCriterion("XS in", values, "xs");
  486. return this;
  487. }
  488. public Criteria andXsNotIn(List<Integer> values) {
  489. addCriterion("XS not in", values, "xs");
  490. return this;
  491. }
  492. public Criteria andXsBetween(Integer value1, Integer value2) {
  493. addCriterion("XS between", value1, value2, "xs");
  494. return this;
  495. }
  496. public Criteria andXsNotBetween(Integer value1, Integer value2) {
  497. addCriterion("XS not between", value1, value2, "xs");
  498. return this;
  499. }
  500. }
  501. }