| | |
| | | }
|
| | |
|
| | | public QueryWrapper<T> buildWrapper(Consumer<QueryWrapper<T>> consumer) {
|
| | | return this.buildWrapper(false, consumer);
|
| | | return this.buildWrapper(false, consumer, false);
|
| | | }
|
| | |
|
| | | public QueryWrapper<T> ignoreWrapper(boolean order) {
|
| | | return this.buildWrapper(false, null, order);
|
| | | }
|
| | |
|
| | | public QueryWrapper<T> buildWrapper(boolean like) {
|
| | | return this.buildWrapper(like, null);
|
| | | return this.buildWrapper(like, null, false);
|
| | | }
|
| | |
|
| | | @SuppressWarnings("all")
|
| | | public QueryWrapper<T> buildWrapper(boolean like, Consumer<QueryWrapper<T>> consumer) {
|
| | | public QueryWrapper<T> buildWrapper(boolean like, Consumer<QueryWrapper<T>> consumer, boolean order) {
|
| | | QueryWrapper<T> queryWrapper = new QueryWrapper<>();
|
| | | Map<String, Object> map = where.getMap();
|
| | | for (String key : map.keySet()) {
|
| | |
| | | }
|
| | |
|
| | | Field[] fields = null;
|
| | | if (!Cools.isEmpty(cls)) {
|
| | | if (!Cools.isEmpty(cls) && !order) {
|
| | | fields = Cools.getAllFields(cls);
|
| | | for (Field field : fields) {
|
| | | if ("id".equals(field.getName())) {
|