SysAppcodeSQLBuilder.java 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680
  1. package com.miniframe.model.system;
  2. import java.util.ArrayList;
  3. import java.util.List;
  4. public class SysAppcodeSQLBuilder {
  5. protected String orderByClause;
  6. protected boolean distinct;
  7. protected List<Criteria> oredCriteria;
  8. public SysAppcodeSQLBuilder() {
  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 andCodeIdIsNull() {
  84. addCriterion("code_id is null");
  85. return (Criteria) this;
  86. }
  87. public Criteria andCodeIdIsNotNull() {
  88. addCriterion("code_id is not null");
  89. return (Criteria) this;
  90. }
  91. public Criteria andCodeIdEqualTo(String value) {
  92. addCriterion("code_id =", value, "codeId");
  93. return (Criteria) this;
  94. }
  95. public Criteria andCodeIdNotEqualTo(String value) {
  96. addCriterion("code_id <>", value, "codeId");
  97. return (Criteria) this;
  98. }
  99. public Criteria andCodeIdGreaterThan(String value) {
  100. addCriterion("code_id >", value, "codeId");
  101. return (Criteria) this;
  102. }
  103. public Criteria andCodeIdGreaterThanOrEqualTo(String value) {
  104. addCriterion("code_id >=", value, "codeId");
  105. return (Criteria) this;
  106. }
  107. public Criteria andCodeIdLessThan(String value) {
  108. addCriterion("code_id <", value, "codeId");
  109. return (Criteria) this;
  110. }
  111. public Criteria andCodeIdLessThanOrEqualTo(String value) {
  112. addCriterion("code_id <=", value, "codeId");
  113. return (Criteria) this;
  114. }
  115. public Criteria andCodeIdLike(String value) {
  116. addCriterion("code_id like", value, "codeId");
  117. return (Criteria) this;
  118. }
  119. public Criteria andCodeIdNotLike(String value) {
  120. addCriterion("code_id not like", value, "codeId");
  121. return (Criteria) this;
  122. }
  123. public Criteria andCodeIdIn(List<String> values) {
  124. addCriterion("code_id in", values, "codeId");
  125. return (Criteria) this;
  126. }
  127. public Criteria andCodeIdNotIn(List<String> values) {
  128. addCriterion("code_id not in", values, "codeId");
  129. return (Criteria) this;
  130. }
  131. public Criteria andCodeIdBetween(String value1, String value2) {
  132. addCriterion("code_id between", value1, value2, "codeId");
  133. return (Criteria) this;
  134. }
  135. public Criteria andCodeIdNotBetween(String value1, String value2) {
  136. addCriterion("code_id not between", value1, value2, "codeId");
  137. return (Criteria) this;
  138. }
  139. public Criteria andSysidIsNull() {
  140. addCriterion("sysid is null");
  141. return (Criteria) this;
  142. }
  143. public Criteria andSysidIsNotNull() {
  144. addCriterion("sysid is not null");
  145. return (Criteria) this;
  146. }
  147. public Criteria andSysidEqualTo(String value) {
  148. addCriterion("sysid =", value, "sysid");
  149. return (Criteria) this;
  150. }
  151. public Criteria andSysidNotEqualTo(String value) {
  152. addCriterion("sysid <>", value, "sysid");
  153. return (Criteria) this;
  154. }
  155. public Criteria andSysidGreaterThan(String value) {
  156. addCriterion("sysid >", value, "sysid");
  157. return (Criteria) this;
  158. }
  159. public Criteria andSysidGreaterThanOrEqualTo(String value) {
  160. addCriterion("sysid >=", value, "sysid");
  161. return (Criteria) this;
  162. }
  163. public Criteria andSysidLessThan(String value) {
  164. addCriterion("sysid <", value, "sysid");
  165. return (Criteria) this;
  166. }
  167. public Criteria andSysidLessThanOrEqualTo(String value) {
  168. addCriterion("sysid <=", value, "sysid");
  169. return (Criteria) this;
  170. }
  171. public Criteria andSysidLike(String value) {
  172. addCriterion("sysid like", value, "sysid");
  173. return (Criteria) this;
  174. }
  175. public Criteria andSysidNotLike(String value) {
  176. addCriterion("sysid not like", value, "sysid");
  177. return (Criteria) this;
  178. }
  179. public Criteria andSysidIn(List<String> values) {
  180. addCriterion("sysid in", values, "sysid");
  181. return (Criteria) this;
  182. }
  183. public Criteria andSysidNotIn(List<String> values) {
  184. addCriterion("sysid not in", values, "sysid");
  185. return (Criteria) this;
  186. }
  187. public Criteria andSysidBetween(String value1, String value2) {
  188. addCriterion("sysid between", value1, value2, "sysid");
  189. return (Criteria) this;
  190. }
  191. public Criteria andSysidNotBetween(String value1, String value2) {
  192. addCriterion("sysid not between", value1, value2, "sysid");
  193. return (Criteria) this;
  194. }
  195. public Criteria andCodeTypeIsNull() {
  196. addCriterion("code_type is null");
  197. return (Criteria) this;
  198. }
  199. public Criteria andCodeTypeIsNotNull() {
  200. addCriterion("code_type is not null");
  201. return (Criteria) this;
  202. }
  203. public Criteria andCodeTypeEqualTo(String value) {
  204. addCriterion("code_type =", value, "codeType");
  205. return (Criteria) this;
  206. }
  207. public Criteria andCodeTypeNotEqualTo(String value) {
  208. addCriterion("code_type <>", value, "codeType");
  209. return (Criteria) this;
  210. }
  211. public Criteria andCodeTypeGreaterThan(String value) {
  212. addCriterion("code_type >", value, "codeType");
  213. return (Criteria) this;
  214. }
  215. public Criteria andCodeTypeGreaterThanOrEqualTo(String value) {
  216. addCriterion("code_type >=", value, "codeType");
  217. return (Criteria) this;
  218. }
  219. public Criteria andCodeTypeLessThan(String value) {
  220. addCriterion("code_type <", value, "codeType");
  221. return (Criteria) this;
  222. }
  223. public Criteria andCodeTypeLessThanOrEqualTo(String value) {
  224. addCriterion("code_type <=", value, "codeType");
  225. return (Criteria) this;
  226. }
  227. public Criteria andCodeTypeLike(String value) {
  228. addCriterion("code_type like", value, "codeType");
  229. return (Criteria) this;
  230. }
  231. public Criteria andCodeTypeNotLike(String value) {
  232. addCriterion("code_type not like", value, "codeType");
  233. return (Criteria) this;
  234. }
  235. public Criteria andCodeTypeIn(List<String> values) {
  236. addCriterion("code_type in", values, "codeType");
  237. return (Criteria) this;
  238. }
  239. public Criteria andCodeTypeNotIn(List<String> values) {
  240. addCriterion("code_type not in", values, "codeType");
  241. return (Criteria) this;
  242. }
  243. public Criteria andCodeTypeBetween(String value1, String value2) {
  244. addCriterion("code_type between", value1, value2, "codeType");
  245. return (Criteria) this;
  246. }
  247. public Criteria andCodeTypeNotBetween(String value1, String value2) {
  248. addCriterion("code_type not between", value1, value2, "codeType");
  249. return (Criteria) this;
  250. }
  251. public Criteria andCodeNameIsNull() {
  252. addCriterion("code_name is null");
  253. return (Criteria) this;
  254. }
  255. public Criteria andCodeNameIsNotNull() {
  256. addCriterion("code_name is not null");
  257. return (Criteria) this;
  258. }
  259. public Criteria andCodeNameEqualTo(String value) {
  260. addCriterion("code_name =", value, "codeName");
  261. return (Criteria) this;
  262. }
  263. public Criteria andCodeNameNotEqualTo(String value) {
  264. addCriterion("code_name <>", value, "codeName");
  265. return (Criteria) this;
  266. }
  267. public Criteria andCodeNameGreaterThan(String value) {
  268. addCriterion("code_name >", value, "codeName");
  269. return (Criteria) this;
  270. }
  271. public Criteria andCodeNameGreaterThanOrEqualTo(String value) {
  272. addCriterion("code_name >=", value, "codeName");
  273. return (Criteria) this;
  274. }
  275. public Criteria andCodeNameLessThan(String value) {
  276. addCriterion("code_name <", value, "codeName");
  277. return (Criteria) this;
  278. }
  279. public Criteria andCodeNameLessThanOrEqualTo(String value) {
  280. addCriterion("code_name <=", value, "codeName");
  281. return (Criteria) this;
  282. }
  283. public Criteria andCodeNameLike(String value) {
  284. addCriterion("code_name like", value, "codeName");
  285. return (Criteria) this;
  286. }
  287. public Criteria andCodeNameNotLike(String value) {
  288. addCriterion("code_name not like", value, "codeName");
  289. return (Criteria) this;
  290. }
  291. public Criteria andCodeNameIn(List<String> values) {
  292. addCriterion("code_name in", values, "codeName");
  293. return (Criteria) this;
  294. }
  295. public Criteria andCodeNameNotIn(List<String> values) {
  296. addCriterion("code_name not in", values, "codeName");
  297. return (Criteria) this;
  298. }
  299. public Criteria andCodeNameBetween(String value1, String value2) {
  300. addCriterion("code_name between", value1, value2, "codeName");
  301. return (Criteria) this;
  302. }
  303. public Criteria andCodeNameNotBetween(String value1, String value2) {
  304. addCriterion("code_name not between", value1, value2, "codeName");
  305. return (Criteria) this;
  306. }
  307. public Criteria andCodeValueIsNull() {
  308. addCriterion("code_value is null");
  309. return (Criteria) this;
  310. }
  311. public Criteria andCodeValueIsNotNull() {
  312. addCriterion("code_value is not null");
  313. return (Criteria) this;
  314. }
  315. public Criteria andCodeValueEqualTo(String value) {
  316. addCriterion("code_value =", value, "codeValue");
  317. return (Criteria) this;
  318. }
  319. public Criteria andCodeValueNotEqualTo(String value) {
  320. addCriterion("code_value <>", value, "codeValue");
  321. return (Criteria) this;
  322. }
  323. public Criteria andCodeValueGreaterThan(String value) {
  324. addCriterion("code_value >", value, "codeValue");
  325. return (Criteria) this;
  326. }
  327. public Criteria andCodeValueGreaterThanOrEqualTo(String value) {
  328. addCriterion("code_value >=", value, "codeValue");
  329. return (Criteria) this;
  330. }
  331. public Criteria andCodeValueLessThan(String value) {
  332. addCriterion("code_value <", value, "codeValue");
  333. return (Criteria) this;
  334. }
  335. public Criteria andCodeValueLessThanOrEqualTo(String value) {
  336. addCriterion("code_value <=", value, "codeValue");
  337. return (Criteria) this;
  338. }
  339. public Criteria andCodeValueLike(String value) {
  340. addCriterion("code_value like", value, "codeValue");
  341. return (Criteria) this;
  342. }
  343. public Criteria andCodeValueNotLike(String value) {
  344. addCriterion("code_value not like", value, "codeValue");
  345. return (Criteria) this;
  346. }
  347. public Criteria andCodeValueIn(List<String> values) {
  348. addCriterion("code_value in", values, "codeValue");
  349. return (Criteria) this;
  350. }
  351. public Criteria andCodeValueNotIn(List<String> values) {
  352. addCriterion("code_value not in", values, "codeValue");
  353. return (Criteria) this;
  354. }
  355. public Criteria andCodeValueBetween(String value1, String value2) {
  356. addCriterion("code_value between", value1, value2, "codeValue");
  357. return (Criteria) this;
  358. }
  359. public Criteria andCodeValueNotBetween(String value1, String value2) {
  360. addCriterion("code_value not between", value1, value2, "codeValue");
  361. return (Criteria) this;
  362. }
  363. public Criteria andCodeDescIsNull() {
  364. addCriterion("code_desc is null");
  365. return (Criteria) this;
  366. }
  367. public Criteria andCodeDescIsNotNull() {
  368. addCriterion("code_desc is not null");
  369. return (Criteria) this;
  370. }
  371. public Criteria andCodeDescEqualTo(String value) {
  372. addCriterion("code_desc =", value, "codeDesc");
  373. return (Criteria) this;
  374. }
  375. public Criteria andCodeDescNotEqualTo(String value) {
  376. addCriterion("code_desc <>", value, "codeDesc");
  377. return (Criteria) this;
  378. }
  379. public Criteria andCodeDescGreaterThan(String value) {
  380. addCriterion("code_desc >", value, "codeDesc");
  381. return (Criteria) this;
  382. }
  383. public Criteria andCodeDescGreaterThanOrEqualTo(String value) {
  384. addCriterion("code_desc >=", value, "codeDesc");
  385. return (Criteria) this;
  386. }
  387. public Criteria andCodeDescLessThan(String value) {
  388. addCriterion("code_desc <", value, "codeDesc");
  389. return (Criteria) this;
  390. }
  391. public Criteria andCodeDescLessThanOrEqualTo(String value) {
  392. addCriterion("code_desc <=", value, "codeDesc");
  393. return (Criteria) this;
  394. }
  395. public Criteria andCodeDescLike(String value) {
  396. addCriterion("code_desc like", value, "codeDesc");
  397. return (Criteria) this;
  398. }
  399. public Criteria andCodeDescNotLike(String value) {
  400. addCriterion("code_desc not like", value, "codeDesc");
  401. return (Criteria) this;
  402. }
  403. public Criteria andCodeDescIn(List<String> values) {
  404. addCriterion("code_desc in", values, "codeDesc");
  405. return (Criteria) this;
  406. }
  407. public Criteria andCodeDescNotIn(List<String> values) {
  408. addCriterion("code_desc not in", values, "codeDesc");
  409. return (Criteria) this;
  410. }
  411. public Criteria andCodeDescBetween(String value1, String value2) {
  412. addCriterion("code_desc between", value1, value2, "codeDesc");
  413. return (Criteria) this;
  414. }
  415. public Criteria andCodeDescNotBetween(String value1, String value2) {
  416. addCriterion("code_desc not between", value1, value2, "codeDesc");
  417. return (Criteria) this;
  418. }
  419. public Criteria andCodeOrderIsNull() {
  420. addCriterion("code_order is null");
  421. return (Criteria) this;
  422. }
  423. public Criteria andCodeOrderIsNotNull() {
  424. addCriterion("code_order is not null");
  425. return (Criteria) this;
  426. }
  427. public Criteria andCodeOrderEqualTo(Integer value) {
  428. addCriterion("code_order =", value, "codeOrder");
  429. return (Criteria) this;
  430. }
  431. public Criteria andCodeOrderNotEqualTo(Integer value) {
  432. addCriterion("code_order <>", value, "codeOrder");
  433. return (Criteria) this;
  434. }
  435. public Criteria andCodeOrderGreaterThan(Integer value) {
  436. addCriterion("code_order >", value, "codeOrder");
  437. return (Criteria) this;
  438. }
  439. public Criteria andCodeOrderGreaterThanOrEqualTo(Integer value) {
  440. addCriterion("code_order >=", value, "codeOrder");
  441. return (Criteria) this;
  442. }
  443. public Criteria andCodeOrderLessThan(Integer value) {
  444. addCriterion("code_order <", value, "codeOrder");
  445. return (Criteria) this;
  446. }
  447. public Criteria andCodeOrderLessThanOrEqualTo(Integer value) {
  448. addCriterion("code_order <=", value, "codeOrder");
  449. return (Criteria) this;
  450. }
  451. public Criteria andCodeOrderIn(List<Integer> values) {
  452. addCriterion("code_order in", values, "codeOrder");
  453. return (Criteria) this;
  454. }
  455. public Criteria andCodeOrderNotIn(List<Integer> values) {
  456. addCriterion("code_order not in", values, "codeOrder");
  457. return (Criteria) this;
  458. }
  459. public Criteria andCodeOrderBetween(Integer value1, Integer value2) {
  460. addCriterion("code_order between", value1, value2, "codeOrder");
  461. return (Criteria) this;
  462. }
  463. public Criteria andCodeOrderNotBetween(Integer value1, Integer value2) {
  464. addCriterion("code_order not between", value1, value2, "codeOrder");
  465. return (Criteria) this;
  466. }
  467. }
  468. public static class Criteria extends GeneratedCriteria {
  469. protected Criteria() {
  470. super();
  471. }
  472. }
  473. public static class Criterion {
  474. private String condition;
  475. private Object value;
  476. private Object secondValue;
  477. private boolean noValue;
  478. private boolean singleValue;
  479. private boolean betweenValue;
  480. private boolean listValue;
  481. private String typeHandler;
  482. public String getCondition() {
  483. return condition;
  484. }
  485. public Object getValue() {
  486. return value;
  487. }
  488. public Object getSecondValue() {
  489. return secondValue;
  490. }
  491. public boolean isNoValue() {
  492. return noValue;
  493. }
  494. public boolean isSingleValue() {
  495. return singleValue;
  496. }
  497. public boolean isBetweenValue() {
  498. return betweenValue;
  499. }
  500. public boolean isListValue() {
  501. return listValue;
  502. }
  503. public String getTypeHandler() {
  504. return typeHandler;
  505. }
  506. protected Criterion(String condition) {
  507. super();
  508. this.condition = condition;
  509. this.typeHandler = null;
  510. this.noValue = true;
  511. }
  512. protected Criterion(String condition, Object value, String typeHandler) {
  513. super();
  514. this.condition = condition;
  515. this.value = value;
  516. this.typeHandler = typeHandler;
  517. if (value instanceof List<?>) {
  518. this.listValue = true;
  519. } else {
  520. this.singleValue = true;
  521. }
  522. }
  523. protected Criterion(String condition, Object value) {
  524. this(condition, value, null);
  525. }
  526. protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
  527. super();
  528. this.condition = condition;
  529. this.value = value;
  530. this.secondValue = secondValue;
  531. this.typeHandler = typeHandler;
  532. this.betweenValue = true;
  533. }
  534. protected Criterion(String condition, Object value, Object secondValue) {
  535. this(condition, value, secondValue, null);
  536. }
  537. }
  538. }