fix Page bug

This commit is contained in:
Looly
2020-04-23 09:14:31 +08:00
parent bacecd591f
commit 2b9fb67cd0
3 changed files with 19 additions and 4 deletions

View File

@@ -134,10 +134,7 @@ public class Page implements Serializable {
* @param orders 排序
*/
public void addOrder(Order... orders) {
if (null != this.orders) {
ArrayUtil.append(this.orders, orders);
}
this.orders = orders;
this.orders = ArrayUtil.append(this.orders, orders);
}
// ---------------------------------------------------------- Getters and Setters end