DPumpSQLBuilder.java 32 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030
  1. package com.miniframe.model.system;
  2. import java.util.ArrayList;
  3. import java.util.List;
  4. public class DPumpSQLBuilder {
  5. protected String orderByClause;
  6. protected boolean distinct;
  7. protected List<Criteria> oredCriteria;
  8. public DPumpSQLBuilder() {
  9. oredCriteria = new ArrayList<Criteria>();
  10. }
  11. public void setOrderByClause(String orderByClause) {
  12. this.orderByClause = orderByClause;
  13. }
  14. public String getOrderByClause() {
  15. return orderByClause;
  16. }
  17. public void setDistinct(boolean distinct) {
  18. this.distinct = distinct;
  19. }
  20. public boolean isDistinct() {
  21. return distinct;
  22. }
  23. public List<Criteria> getOredCriteria() {
  24. return oredCriteria;
  25. }
  26. public void or(Criteria criteria) {
  27. oredCriteria.add(criteria);
  28. }
  29. public Criteria or() {
  30. Criteria criteria = createCriteriaInternal();
  31. oredCriteria.add(criteria);
  32. return criteria;
  33. }
  34. public Criteria createCriteria() {
  35. Criteria criteria = createCriteriaInternal();
  36. if (oredCriteria.size() == 0) {
  37. oredCriteria.add(criteria);
  38. }
  39. return criteria;
  40. }
  41. protected Criteria createCriteriaInternal() {
  42. Criteria criteria = new Criteria();
  43. return criteria;
  44. }
  45. public void clear() {
  46. oredCriteria.clear();
  47. orderByClause = null;
  48. distinct = false;
  49. }
  50. protected abstract static class GeneratedCriteria {
  51. protected List<Criterion> criteria;
  52. protected GeneratedCriteria() {
  53. super();
  54. criteria = new ArrayList<Criterion>();
  55. }
  56. public boolean isValid() {
  57. return criteria.size() > 0;
  58. }
  59. public List<Criterion> getAllCriteria() {
  60. return criteria;
  61. }
  62. public List<Criterion> getCriteria() {
  63. return criteria;
  64. }
  65. protected void addCriterion(String condition) {
  66. if (condition == null) {
  67. throw new RuntimeException("Value for condition cannot be null");
  68. }
  69. criteria.add(new Criterion(condition));
  70. }
  71. protected void addCriterion(String condition, Object value, String property) {
  72. if (value == null) {
  73. throw new RuntimeException("Value for " + property + " cannot be null");
  74. }
  75. criteria.add(new Criterion(condition, value));
  76. }
  77. protected void addCriterion(String condition, Object value1, Object value2, String property) {
  78. if (value1 == null || value2 == null) {
  79. throw new RuntimeException("Between values for " + property + " cannot be null");
  80. }
  81. criteria.add(new Criterion(condition, value1, value2));
  82. }
  83. public Criteria andIdIsNull() {
  84. addCriterion("id is null");
  85. return (Criteria) this;
  86. }
  87. public Criteria andIdIsNotNull() {
  88. addCriterion("id is not null");
  89. return (Criteria) this;
  90. }
  91. public Criteria andIdEqualTo(Integer value) {
  92. addCriterion("id =", value, "id");
  93. return (Criteria) this;
  94. }
  95. public Criteria andIdNotEqualTo(Integer value) {
  96. addCriterion("id <>", value, "id");
  97. return (Criteria) this;
  98. }
  99. public Criteria andIdGreaterThan(Integer value) {
  100. addCriterion("id >", value, "id");
  101. return (Criteria) this;
  102. }
  103. public Criteria andIdGreaterThanOrEqualTo(Integer value) {
  104. addCriterion("id >=", value, "id");
  105. return (Criteria) this;
  106. }
  107. public Criteria andIdLessThan(Integer value) {
  108. addCriterion("id <", value, "id");
  109. return (Criteria) this;
  110. }
  111. public Criteria andIdLessThanOrEqualTo(Integer value) {
  112. addCriterion("id <=", value, "id");
  113. return (Criteria) this;
  114. }
  115. public Criteria andIdIn(List<Integer> values) {
  116. addCriterion("id in", values, "id");
  117. return (Criteria) this;
  118. }
  119. public Criteria andIdNotIn(List<Integer> values) {
  120. addCriterion("id not in", values, "id");
  121. return (Criteria) this;
  122. }
  123. public Criteria andIdBetween(Integer value1, Integer value2) {
  124. addCriterion("id between", value1, value2, "id");
  125. return (Criteria) this;
  126. }
  127. public Criteria andIdNotBetween(Integer value1, Integer value2) {
  128. addCriterion("id not between", value1, value2, "id");
  129. return (Criteria) this;
  130. }
  131. public Criteria andPidIsNull() {
  132. addCriterion("pid is null");
  133. return (Criteria) this;
  134. }
  135. public Criteria andPidIsNotNull() {
  136. addCriterion("pid is not null");
  137. return (Criteria) this;
  138. }
  139. public Criteria andPidEqualTo(Integer value) {
  140. addCriterion("pid =", value, "pid");
  141. return (Criteria) this;
  142. }
  143. public Criteria andPidNotEqualTo(Integer value) {
  144. addCriterion("pid <>", value, "pid");
  145. return (Criteria) this;
  146. }
  147. public Criteria andPidGreaterThan(Integer value) {
  148. addCriterion("pid >", value, "pid");
  149. return (Criteria) this;
  150. }
  151. public Criteria andPidGreaterThanOrEqualTo(Integer value) {
  152. addCriterion("pid >=", value, "pid");
  153. return (Criteria) this;
  154. }
  155. public Criteria andPidLessThan(Integer value) {
  156. addCriterion("pid <", value, "pid");
  157. return (Criteria) this;
  158. }
  159. public Criteria andPidLessThanOrEqualTo(Integer value) {
  160. addCriterion("pid <=", value, "pid");
  161. return (Criteria) this;
  162. }
  163. public Criteria andPidIn(List<Integer> values) {
  164. addCriterion("pid in", values, "pid");
  165. return (Criteria) this;
  166. }
  167. public Criteria andPidNotIn(List<Integer> values) {
  168. addCriterion("pid not in", values, "pid");
  169. return (Criteria) this;
  170. }
  171. public Criteria andPidBetween(Integer value1, Integer value2) {
  172. addCriterion("pid between", value1, value2, "pid");
  173. return (Criteria) this;
  174. }
  175. public Criteria andPidNotBetween(Integer value1, Integer value2) {
  176. addCriterion("pid not between", value1, value2, "pid");
  177. return (Criteria) this;
  178. }
  179. public Criteria andPnameIsNull() {
  180. addCriterion("pname is null");
  181. return (Criteria) this;
  182. }
  183. public Criteria andPnameIsNotNull() {
  184. addCriterion("pname is not null");
  185. return (Criteria) this;
  186. }
  187. public Criteria andPnameEqualTo(String value) {
  188. addCriterion("pname =", value, "pname");
  189. return (Criteria) this;
  190. }
  191. public Criteria andPnameNotEqualTo(String value) {
  192. addCriterion("pname <>", value, "pname");
  193. return (Criteria) this;
  194. }
  195. public Criteria andPnameGreaterThan(String value) {
  196. addCriterion("pname >", value, "pname");
  197. return (Criteria) this;
  198. }
  199. public Criteria andPnameGreaterThanOrEqualTo(String value) {
  200. addCriterion("pname >=", value, "pname");
  201. return (Criteria) this;
  202. }
  203. public Criteria andPnameLessThan(String value) {
  204. addCriterion("pname <", value, "pname");
  205. return (Criteria) this;
  206. }
  207. public Criteria andPnameLessThanOrEqualTo(String value) {
  208. addCriterion("pname <=", value, "pname");
  209. return (Criteria) this;
  210. }
  211. public Criteria andPnameLike(String value) {
  212. addCriterion("pname like", value, "pname");
  213. return (Criteria) this;
  214. }
  215. public Criteria andPnameNotLike(String value) {
  216. addCriterion("pname not like", value, "pname");
  217. return (Criteria) this;
  218. }
  219. public Criteria andPnameIn(List<String> values) {
  220. addCriterion("pname in", values, "pname");
  221. return (Criteria) this;
  222. }
  223. public Criteria andPnameNotIn(List<String> values) {
  224. addCriterion("pname not in", values, "pname");
  225. return (Criteria) this;
  226. }
  227. public Criteria andPnameBetween(String value1, String value2) {
  228. addCriterion("pname between", value1, value2, "pname");
  229. return (Criteria) this;
  230. }
  231. public Criteria andPnameNotBetween(String value1, String value2) {
  232. addCriterion("pname not between", value1, value2, "pname");
  233. return (Criteria) this;
  234. }
  235. public Criteria andPcodeIsNull() {
  236. addCriterion("pcode is null");
  237. return (Criteria) this;
  238. }
  239. public Criteria andPcodeIsNotNull() {
  240. addCriterion("pcode is not null");
  241. return (Criteria) this;
  242. }
  243. public Criteria andPcodeEqualTo(String value) {
  244. addCriterion("pcode =", value, "pcode");
  245. return (Criteria) this;
  246. }
  247. public Criteria andPcodeNotEqualTo(String value) {
  248. addCriterion("pcode <>", value, "pcode");
  249. return (Criteria) this;
  250. }
  251. public Criteria andPcodeGreaterThan(String value) {
  252. addCriterion("pcode >", value, "pcode");
  253. return (Criteria) this;
  254. }
  255. public Criteria andPcodeGreaterThanOrEqualTo(String value) {
  256. addCriterion("pcode >=", value, "pcode");
  257. return (Criteria) this;
  258. }
  259. public Criteria andPcodeLessThan(String value) {
  260. addCriterion("pcode <", value, "pcode");
  261. return (Criteria) this;
  262. }
  263. public Criteria andPcodeLessThanOrEqualTo(String value) {
  264. addCriterion("pcode <=", value, "pcode");
  265. return (Criteria) this;
  266. }
  267. public Criteria andPcodeLike(String value) {
  268. addCriterion("pcode like", value, "pcode");
  269. return (Criteria) this;
  270. }
  271. public Criteria andPcodeNotLike(String value) {
  272. addCriterion("pcode not like", value, "pcode");
  273. return (Criteria) this;
  274. }
  275. public Criteria andPcodeIn(List<String> values) {
  276. addCriterion("pcode in", values, "pcode");
  277. return (Criteria) this;
  278. }
  279. public Criteria andPcodeNotIn(List<String> values) {
  280. addCriterion("pcode not in", values, "pcode");
  281. return (Criteria) this;
  282. }
  283. public Criteria andPcodeBetween(String value1, String value2) {
  284. addCriterion("pcode between", value1, value2, "pcode");
  285. return (Criteria) this;
  286. }
  287. public Criteria andPcodeNotBetween(String value1, String value2) {
  288. addCriterion("pcode not between", value1, value2, "pcode");
  289. return (Criteria) this;
  290. }
  291. public Criteria andAidIsNull() {
  292. addCriterion("aid is null");
  293. return (Criteria) this;
  294. }
  295. public Criteria andAidIsNotNull() {
  296. addCriterion("aid is not null");
  297. return (Criteria) this;
  298. }
  299. public Criteria andAidEqualTo(Integer value) {
  300. addCriterion("aid =", value, "aid");
  301. return (Criteria) this;
  302. }
  303. public Criteria andAidNotEqualTo(Integer value) {
  304. addCriterion("aid <>", value, "aid");
  305. return (Criteria) this;
  306. }
  307. public Criteria andAidGreaterThan(Integer value) {
  308. addCriterion("aid >", value, "aid");
  309. return (Criteria) this;
  310. }
  311. public Criteria andAidGreaterThanOrEqualTo(Integer value) {
  312. addCriterion("aid >=", value, "aid");
  313. return (Criteria) this;
  314. }
  315. public Criteria andAidLessThan(Integer value) {
  316. addCriterion("aid <", value, "aid");
  317. return (Criteria) this;
  318. }
  319. public Criteria andAidLessThanOrEqualTo(Integer value) {
  320. addCriterion("aid <=", value, "aid");
  321. return (Criteria) this;
  322. }
  323. public Criteria andAidIn(List<Integer> values) {
  324. addCriterion("aid in", values, "aid");
  325. return (Criteria) this;
  326. }
  327. public Criteria andAidNotIn(List<Integer> values) {
  328. addCriterion("aid not in", values, "aid");
  329. return (Criteria) this;
  330. }
  331. public Criteria andAidBetween(Integer value1, Integer value2) {
  332. addCriterion("aid between", value1, value2, "aid");
  333. return (Criteria) this;
  334. }
  335. public Criteria andAidNotBetween(Integer value1, Integer value2) {
  336. addCriterion("aid not between", value1, value2, "aid");
  337. return (Criteria) this;
  338. }
  339. public Criteria andSiteIsNull() {
  340. addCriterion("site is null");
  341. return (Criteria) this;
  342. }
  343. public Criteria andSiteIsNotNull() {
  344. addCriterion("site is not null");
  345. return (Criteria) this;
  346. }
  347. public Criteria andSiteEqualTo(Float value) {
  348. addCriterion("site =", value, "site");
  349. return (Criteria) this;
  350. }
  351. public Criteria andSiteNotEqualTo(Float value) {
  352. addCriterion("site <>", value, "site");
  353. return (Criteria) this;
  354. }
  355. public Criteria andSiteGreaterThan(Float value) {
  356. addCriterion("site >", value, "site");
  357. return (Criteria) this;
  358. }
  359. public Criteria andSiteGreaterThanOrEqualTo(Float value) {
  360. addCriterion("site >=", value, "site");
  361. return (Criteria) this;
  362. }
  363. public Criteria andSiteLessThan(Float value) {
  364. addCriterion("site <", value, "site");
  365. return (Criteria) this;
  366. }
  367. public Criteria andSiteLessThanOrEqualTo(Float value) {
  368. addCriterion("site <=", value, "site");
  369. return (Criteria) this;
  370. }
  371. public Criteria andSiteIn(List<Float> values) {
  372. addCriterion("site in", values, "site");
  373. return (Criteria) this;
  374. }
  375. public Criteria andSiteNotIn(List<Float> values) {
  376. addCriterion("site not in", values, "site");
  377. return (Criteria) this;
  378. }
  379. public Criteria andSiteBetween(Float value1, Float value2) {
  380. addCriterion("site between", value1, value2, "site");
  381. return (Criteria) this;
  382. }
  383. public Criteria andSiteNotBetween(Float value1, Float value2) {
  384. addCriterion("site not between", value1, value2, "site");
  385. return (Criteria) this;
  386. }
  387. public Criteria andNameIsNull() {
  388. addCriterion("name is null");
  389. return (Criteria) this;
  390. }
  391. public Criteria andNameIsNotNull() {
  392. addCriterion("name is not null");
  393. return (Criteria) this;
  394. }
  395. public Criteria andNameEqualTo(String value) {
  396. addCriterion("name =", value, "name");
  397. return (Criteria) this;
  398. }
  399. public Criteria andNameNotEqualTo(String value) {
  400. addCriterion("name <>", value, "name");
  401. return (Criteria) this;
  402. }
  403. public Criteria andNameGreaterThan(String value) {
  404. addCriterion("name >", value, "name");
  405. return (Criteria) this;
  406. }
  407. public Criteria andNameGreaterThanOrEqualTo(String value) {
  408. addCriterion("name >=", value, "name");
  409. return (Criteria) this;
  410. }
  411. public Criteria andNameLessThan(String value) {
  412. addCriterion("name <", value, "name");
  413. return (Criteria) this;
  414. }
  415. public Criteria andNameLessThanOrEqualTo(String value) {
  416. addCriterion("name <=", value, "name");
  417. return (Criteria) this;
  418. }
  419. public Criteria andNameLike(String value) {
  420. addCriterion("name like", value, "name");
  421. return (Criteria) this;
  422. }
  423. public Criteria andNameNotLike(String value) {
  424. addCriterion("name not like", value, "name");
  425. return (Criteria) this;
  426. }
  427. public Criteria andNameIn(List<String> values) {
  428. addCriterion("name in", values, "name");
  429. return (Criteria) this;
  430. }
  431. public Criteria andNameNotIn(List<String> values) {
  432. addCriterion("name not in", values, "name");
  433. return (Criteria) this;
  434. }
  435. public Criteria andNameBetween(String value1, String value2) {
  436. addCriterion("name between", value1, value2, "name");
  437. return (Criteria) this;
  438. }
  439. public Criteria andNameNotBetween(String value1, String value2) {
  440. addCriterion("name not between", value1, value2, "name");
  441. return (Criteria) this;
  442. }
  443. public Criteria andOpenhigIsNull() {
  444. addCriterion("openhig is null");
  445. return (Criteria) this;
  446. }
  447. public Criteria andOpenhigIsNotNull() {
  448. addCriterion("openhig is not null");
  449. return (Criteria) this;
  450. }
  451. public Criteria andOpenhigEqualTo(Float value) {
  452. addCriterion("openhig =", value, "openhig");
  453. return (Criteria) this;
  454. }
  455. public Criteria andOpenhigNotEqualTo(Float value) {
  456. addCriterion("openhig <>", value, "openhig");
  457. return (Criteria) this;
  458. }
  459. public Criteria andOpenhigGreaterThan(Float value) {
  460. addCriterion("openhig >", value, "openhig");
  461. return (Criteria) this;
  462. }
  463. public Criteria andOpenhigGreaterThanOrEqualTo(Float value) {
  464. addCriterion("openhig >=", value, "openhig");
  465. return (Criteria) this;
  466. }
  467. public Criteria andOpenhigLessThan(Float value) {
  468. addCriterion("openhig <", value, "openhig");
  469. return (Criteria) this;
  470. }
  471. public Criteria andOpenhigLessThanOrEqualTo(Float value) {
  472. addCriterion("openhig <=", value, "openhig");
  473. return (Criteria) this;
  474. }
  475. public Criteria andOpenhigIn(List<Float> values) {
  476. addCriterion("openhig in", values, "openhig");
  477. return (Criteria) this;
  478. }
  479. public Criteria andOpenhigNotIn(List<Float> values) {
  480. addCriterion("openhig not in", values, "openhig");
  481. return (Criteria) this;
  482. }
  483. public Criteria andOpenhigBetween(Float value1, Float value2) {
  484. addCriterion("openhig between", value1, value2, "openhig");
  485. return (Criteria) this;
  486. }
  487. public Criteria andOpenhigNotBetween(Float value1, Float value2) {
  488. addCriterion("openhig not between", value1, value2, "openhig");
  489. return (Criteria) this;
  490. }
  491. public Criteria andClosehigIsNull() {
  492. addCriterion("closehig is null");
  493. return (Criteria) this;
  494. }
  495. public Criteria andClosehigIsNotNull() {
  496. addCriterion("closehig is not null");
  497. return (Criteria) this;
  498. }
  499. public Criteria andClosehigEqualTo(Float value) {
  500. addCriterion("closehig =", value, "closehig");
  501. return (Criteria) this;
  502. }
  503. public Criteria andClosehigNotEqualTo(Float value) {
  504. addCriterion("closehig <>", value, "closehig");
  505. return (Criteria) this;
  506. }
  507. public Criteria andClosehigGreaterThan(Float value) {
  508. addCriterion("closehig >", value, "closehig");
  509. return (Criteria) this;
  510. }
  511. public Criteria andClosehigGreaterThanOrEqualTo(Float value) {
  512. addCriterion("closehig >=", value, "closehig");
  513. return (Criteria) this;
  514. }
  515. public Criteria andClosehigLessThan(Float value) {
  516. addCriterion("closehig <", value, "closehig");
  517. return (Criteria) this;
  518. }
  519. public Criteria andClosehigLessThanOrEqualTo(Float value) {
  520. addCriterion("closehig <=", value, "closehig");
  521. return (Criteria) this;
  522. }
  523. public Criteria andClosehigIn(List<Float> values) {
  524. addCriterion("closehig in", values, "closehig");
  525. return (Criteria) this;
  526. }
  527. public Criteria andClosehigNotIn(List<Float> values) {
  528. addCriterion("closehig not in", values, "closehig");
  529. return (Criteria) this;
  530. }
  531. public Criteria andClosehigBetween(Float value1, Float value2) {
  532. addCriterion("closehig between", value1, value2, "closehig");
  533. return (Criteria) this;
  534. }
  535. public Criteria andClosehigNotBetween(Float value1, Float value2) {
  536. addCriterion("closehig not between", value1, value2, "closehig");
  537. return (Criteria) this;
  538. }
  539. public Criteria andOnoffIsNull() {
  540. addCriterion("onoff is null");
  541. return (Criteria) this;
  542. }
  543. public Criteria andOnoffIsNotNull() {
  544. addCriterion("onoff is not null");
  545. return (Criteria) this;
  546. }
  547. public Criteria andOnoffEqualTo(Integer value) {
  548. addCriterion("onoff =", value, "onoff");
  549. return (Criteria) this;
  550. }
  551. public Criteria andOnoffNotEqualTo(Integer value) {
  552. addCriterion("onoff <>", value, "onoff");
  553. return (Criteria) this;
  554. }
  555. public Criteria andOnoffGreaterThan(Integer value) {
  556. addCriterion("onoff >", value, "onoff");
  557. return (Criteria) this;
  558. }
  559. public Criteria andOnoffGreaterThanOrEqualTo(Integer value) {
  560. addCriterion("onoff >=", value, "onoff");
  561. return (Criteria) this;
  562. }
  563. public Criteria andOnoffLessThan(Integer value) {
  564. addCriterion("onoff <", value, "onoff");
  565. return (Criteria) this;
  566. }
  567. public Criteria andOnoffLessThanOrEqualTo(Integer value) {
  568. addCriterion("onoff <=", value, "onoff");
  569. return (Criteria) this;
  570. }
  571. public Criteria andOnoffIn(List<Integer> values) {
  572. addCriterion("onoff in", values, "onoff");
  573. return (Criteria) this;
  574. }
  575. public Criteria andOnoffNotIn(List<Integer> values) {
  576. addCriterion("onoff not in", values, "onoff");
  577. return (Criteria) this;
  578. }
  579. public Criteria andOnoffBetween(Integer value1, Integer value2) {
  580. addCriterion("onoff between", value1, value2, "onoff");
  581. return (Criteria) this;
  582. }
  583. public Criteria andOnoffNotBetween(Integer value1, Integer value2) {
  584. addCriterion("onoff not between", value1, value2, "onoff");
  585. return (Criteria) this;
  586. }
  587. public Criteria andCodeIsNull() {
  588. addCriterion("code is null");
  589. return (Criteria) this;
  590. }
  591. public Criteria andCodeIsNotNull() {
  592. addCriterion("code is not null");
  593. return (Criteria) this;
  594. }
  595. public Criteria andCodeEqualTo(String value) {
  596. addCriterion("code =", value, "code");
  597. return (Criteria) this;
  598. }
  599. public Criteria andCodeNotEqualTo(String value) {
  600. addCriterion("code <>", value, "code");
  601. return (Criteria) this;
  602. }
  603. public Criteria andCodeGreaterThan(String value) {
  604. addCriterion("code >", value, "code");
  605. return (Criteria) this;
  606. }
  607. public Criteria andCodeGreaterThanOrEqualTo(String value) {
  608. addCriterion("code >=", value, "code");
  609. return (Criteria) this;
  610. }
  611. public Criteria andCodeLessThan(String value) {
  612. addCriterion("code <", value, "code");
  613. return (Criteria) this;
  614. }
  615. public Criteria andCodeLessThanOrEqualTo(String value) {
  616. addCriterion("code <=", value, "code");
  617. return (Criteria) this;
  618. }
  619. public Criteria andCodeLike(String value) {
  620. addCriterion("code like", value, "code");
  621. return (Criteria) this;
  622. }
  623. public Criteria andCodeNotLike(String value) {
  624. addCriterion("code not like", value, "code");
  625. return (Criteria) this;
  626. }
  627. public Criteria andCodeIn(List<String> values) {
  628. addCriterion("code in", values, "code");
  629. return (Criteria) this;
  630. }
  631. public Criteria andCodeNotIn(List<String> values) {
  632. addCriterion("code not in", values, "code");
  633. return (Criteria) this;
  634. }
  635. public Criteria andCodeBetween(String value1, String value2) {
  636. addCriterion("code between", value1, value2, "code");
  637. return (Criteria) this;
  638. }
  639. public Criteria andCodeNotBetween(String value1, String value2) {
  640. addCriterion("code not between", value1, value2, "code");
  641. return (Criteria) this;
  642. }
  643. public Criteria andPumpbaseidIsNull() {
  644. addCriterion("pumpbaseid is null");
  645. return (Criteria) this;
  646. }
  647. public Criteria andPumpbaseidIsNotNull() {
  648. addCriterion("pumpbaseid is not null");
  649. return (Criteria) this;
  650. }
  651. public Criteria andPumpbaseidEqualTo(Integer value) {
  652. addCriterion("pumpbaseid =", value, "pumpbaseid");
  653. return (Criteria) this;
  654. }
  655. public Criteria andPumpbaseidNotEqualTo(Integer value) {
  656. addCriterion("pumpbaseid <>", value, "pumpbaseid");
  657. return (Criteria) this;
  658. }
  659. public Criteria andPumpbaseidGreaterThan(Integer value) {
  660. addCriterion("pumpbaseid >", value, "pumpbaseid");
  661. return (Criteria) this;
  662. }
  663. public Criteria andPumpbaseidGreaterThanOrEqualTo(Integer value) {
  664. addCriterion("pumpbaseid >=", value, "pumpbaseid");
  665. return (Criteria) this;
  666. }
  667. public Criteria andPumpbaseidLessThan(Integer value) {
  668. addCriterion("pumpbaseid <", value, "pumpbaseid");
  669. return (Criteria) this;
  670. }
  671. public Criteria andPumpbaseidLessThanOrEqualTo(Integer value) {
  672. addCriterion("pumpbaseid <=", value, "pumpbaseid");
  673. return (Criteria) this;
  674. }
  675. public Criteria andPumpbaseidIn(List<Integer> values) {
  676. addCriterion("pumpbaseid in", values, "pumpbaseid");
  677. return (Criteria) this;
  678. }
  679. public Criteria andPumpbaseidNotIn(List<Integer> values) {
  680. addCriterion("pumpbaseid not in", values, "pumpbaseid");
  681. return (Criteria) this;
  682. }
  683. public Criteria andPumpbaseidBetween(Integer value1, Integer value2) {
  684. addCriterion("pumpbaseid between", value1, value2, "pumpbaseid");
  685. return (Criteria) this;
  686. }
  687. public Criteria andPumpbaseidNotBetween(Integer value1, Integer value2) {
  688. addCriterion("pumpbaseid not between", value1, value2, "pumpbaseid");
  689. return (Criteria) this;
  690. }
  691. public Criteria andSiteremarkIsNull() {
  692. addCriterion("siteremark is null");
  693. return (Criteria) this;
  694. }
  695. public Criteria andSiteremarkIsNotNull() {
  696. addCriterion("siteremark is not null");
  697. return (Criteria) this;
  698. }
  699. public Criteria andSiteremarkEqualTo(String value) {
  700. addCriterion("siteremark =", value, "siteremark");
  701. return (Criteria) this;
  702. }
  703. public Criteria andSiteremarkNotEqualTo(String value) {
  704. addCriterion("siteremark <>", value, "siteremark");
  705. return (Criteria) this;
  706. }
  707. public Criteria andSiteremarkGreaterThan(String value) {
  708. addCriterion("siteremark >", value, "siteremark");
  709. return (Criteria) this;
  710. }
  711. public Criteria andSiteremarkGreaterThanOrEqualTo(String value) {
  712. addCriterion("siteremark >=", value, "siteremark");
  713. return (Criteria) this;
  714. }
  715. public Criteria andSiteremarkLessThan(String value) {
  716. addCriterion("siteremark <", value, "siteremark");
  717. return (Criteria) this;
  718. }
  719. public Criteria andSiteremarkLessThanOrEqualTo(String value) {
  720. addCriterion("siteremark <=", value, "siteremark");
  721. return (Criteria) this;
  722. }
  723. public Criteria andSiteremarkLike(String value) {
  724. addCriterion("siteremark like", value, "siteremark");
  725. return (Criteria) this;
  726. }
  727. public Criteria andSiteremarkNotLike(String value) {
  728. addCriterion("siteremark not like", value, "siteremark");
  729. return (Criteria) this;
  730. }
  731. public Criteria andSiteremarkIn(List<String> values) {
  732. addCriterion("siteremark in", values, "siteremark");
  733. return (Criteria) this;
  734. }
  735. public Criteria andSiteremarkNotIn(List<String> values) {
  736. addCriterion("siteremark not in", values, "siteremark");
  737. return (Criteria) this;
  738. }
  739. public Criteria andSiteremarkBetween(String value1, String value2) {
  740. addCriterion("siteremark between", value1, value2, "siteremark");
  741. return (Criteria) this;
  742. }
  743. public Criteria andSiteremarkNotBetween(String value1, String value2) {
  744. addCriterion("siteremark not between", value1, value2, "siteremark");
  745. return (Criteria) this;
  746. }
  747. }
  748. public static class Criteria extends GeneratedCriteria {
  749. protected Criteria() {
  750. super();
  751. }
  752. }
  753. public static class Criterion {
  754. private String condition;
  755. private Object value;
  756. private Object secondValue;
  757. private boolean noValue;
  758. private boolean singleValue;
  759. private boolean betweenValue;
  760. private boolean listValue;
  761. private String typeHandler;
  762. public String getCondition() {
  763. return condition;
  764. }
  765. public Object getValue() {
  766. return value;
  767. }
  768. public Object getSecondValue() {
  769. return secondValue;
  770. }
  771. public boolean isNoValue() {
  772. return noValue;
  773. }
  774. public boolean isSingleValue() {
  775. return singleValue;
  776. }
  777. public boolean isBetweenValue() {
  778. return betweenValue;
  779. }
  780. public boolean isListValue() {
  781. return listValue;
  782. }
  783. public String getTypeHandler() {
  784. return typeHandler;
  785. }
  786. protected Criterion(String condition) {
  787. super();
  788. this.condition = condition;
  789. this.typeHandler = null;
  790. this.noValue = true;
  791. }
  792. protected Criterion(String condition, Object value, String typeHandler) {
  793. super();
  794. this.condition = condition;
  795. this.value = value;
  796. this.typeHandler = typeHandler;
  797. if (value instanceof List<?>) {
  798. this.listValue = true;
  799. } else {
  800. this.singleValue = true;
  801. }
  802. }
  803. protected Criterion(String condition, Object value) {
  804. this(condition, value, null);
  805. }
  806. protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
  807. super();
  808. this.condition = condition;
  809. this.value = value;
  810. this.secondValue = secondValue;
  811. this.typeHandler = typeHandler;
  812. this.betweenValue = true;
  813. }
  814. protected Criterion(String condition, Object value, Object secondValue) {
  815. this(condition, value, secondValue, null);
  816. }
  817. }
  818. }