| | |
| | | } |
| | | } |
| | | |
| | | if (!Cools.isEmpty(where.getCondition()) && !Cools.isEmpty(cls)) { |
| | | Field[] fields = null; |
| | | if (!Cools.isEmpty(cls)) { |
| | | fields = Cools.getAllFields(cls); |
| | | for (Field field : fields) { |
| | | if ("createTime".equals(field.getName())) { |
| | | queryWrapper.orderByDesc(Utils.toSymbolCase(field.getName(), '_')); |
| | | } |
| | | } |
| | | } |
| | | |
| | | if (!Cools.isEmpty(where.getCondition()) && !Cools.isEmpty(fields)) { |
| | | List<String> columns = new ArrayList<>(); |
| | | for (Field field :Cools.getAllFields(cls)){ |
| | | for (Field field : fields){ |
| | | if (Modifier.isFinal(field.getModifiers()) |
| | | || Modifier.isStatic(field.getModifiers()) |
| | | || Modifier.isTransient(field.getModifiers())){ |