Commit aef933292a3d259e0d4a710964e5f9388192c3fb
1 parent
3a88a59b
排序字段兼容
Showing
1 changed file
with
7 additions
and
0 deletions
urbanops-framework/urbanops-common/src/main/java/com/zteits/urbanops/framework/common/pojo/PageParam.java
| @@ -69,4 +69,11 @@ public class PageParam implements Serializable { | @@ -69,4 +69,11 @@ public class PageParam implements Serializable { | ||
| 69 | } | 69 | } |
| 70 | } | 70 | } |
| 71 | 71 | ||
| 72 | + public void setOrderByColumn(String orderByColumn) { | ||
| 73 | + if (!StringUtils.hasText(orderByColumn)) { | ||
| 74 | + this.orderByColumn = "id"; | ||
| 75 | + return; | ||
| 76 | + } | ||
| 77 | + | ||
| 78 | + } | ||
| 72 | } | 79 | } |