Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
RuoYi Vue
Commits
751ca906
Commit
751ca906
authored
Jun 25, 2021
by
若依
Committed by
Gitee
Jun 25, 2021
Browse files
!251 修复日志列表取消字段排序时的报错问题
Merge pull request !251 from 稚屿/N/A
parents
1ed60c79
1dfeae6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
ruoyi-common/src/main/java/com/ruoyi/common/core/page/PageDomain.java
View file @
751ca906
package
com.ruoyi.common.core.page
;
package
com.ruoyi.common.core.page
;
import
com.ruoyi.common.utils.StringUtils
;
import
com.ruoyi.common.utils.StringUtils
;
/**
/**
* 分页数据
* 分页数据
*
*
* @author ruoyi
* @author ruoyi
*/
*/
public
class
PageDomain
public
class
PageDomain
{
{
/** 当前记录起始索引 */
/** 当前记录起始索引 */
private
Integer
pageNum
;
private
Integer
pageNum
;
/** 每页显示记录数 */
/** 每页显示记录数 */
private
Integer
pageSize
;
private
Integer
pageSize
;
/** 排序列 */
/** 排序列 */
private
String
orderByColumn
;
private
String
orderByColumn
;
/** 排序的方向desc或者asc */
/** 排序的方向desc或者asc */
private
String
isAsc
=
"asc"
;
private
String
isAsc
=
"asc"
;
public
String
getOrderBy
()
public
String
getOrderBy
()
{
{
if
(
StringUtils
.
isEmpty
(
orderByColumn
))
if
(
StringUtils
.
isEmpty
(
orderByColumn
))
{
{
return
""
;
return
""
;
}
}
return
StringUtils
.
toUnderScoreCase
(
orderByColumn
)
+
" "
+
isAsc
;
return
StringUtils
.
toUnderScoreCase
(
orderByColumn
)
+
" "
+
isAsc
;
}
}
public
Integer
getPageNum
()
public
Integer
getPageNum
()
{
{
return
pageNum
;
return
pageNum
;
}
}
public
void
setPageNum
(
Integer
pageNum
)
public
void
setPageNum
(
Integer
pageNum
)
{
{
this
.
pageNum
=
pageNum
;
this
.
pageNum
=
pageNum
;
}
}
public
Integer
getPageSize
()
public
Integer
getPageSize
()
{
{
return
pageSize
;
return
pageSize
;
}
}
public
void
setPageSize
(
Integer
pageSize
)
public
void
setPageSize
(
Integer
pageSize
)
{
{
this
.
pageSize
=
pageSize
;
this
.
pageSize
=
pageSize
;
}
}
public
String
getOrderByColumn
()
public
String
getOrderByColumn
()
{
{
return
orderByColumn
;
return
orderByColumn
;
}
}
public
void
setOrderByColumn
(
String
orderByColumn
)
public
void
setOrderByColumn
(
String
orderByColumn
)
{
{
this
.
orderByColumn
=
orderByColumn
;
this
.
orderByColumn
=
orderByColumn
;
}
}
public
String
getIsAsc
()
public
String
getIsAsc
()
{
{
return
isAsc
;
return
isAsc
;
}
}
public
void
setIsAsc
(
String
isAsc
)
public
void
setIsAsc
(
String
isAsc
)
{
{
// 兼容前端排序类型
if
(
StringUtils
.
isNotEmpty
(
isAsc
))
{
if
(
"ascending"
.
equals
(
isAsc
))
// 兼容前端排序类型
{
if
(
"ascending"
.
equals
(
isAsc
))
isAsc
=
"asc"
;
{
}
isAsc
=
"asc"
;
else
if
(
"descending"
.
equals
(
isAsc
))
}
{
else
if
(
"descending"
.
equals
(
isAsc
))
isAsc
=
"desc"
;
{
}
isAsc
=
"desc"
;
this
.
isAsc
=
isAsc
;
}
}
this
.
isAsc
=
isAsc
;
}
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment