Pre Merge pull request !397 from thirty_pan/N/A

This commit is contained in:
thirty_pan 2022-07-19 07:39:24 +00:00 committed by Gitee
commit 0eac9c8880
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 6 additions and 1 deletions

View File

@ -30,7 +30,12 @@ public class PageDomain
{ {
return ""; return "";
} }
return StringUtils.toUnderScoreCase(orderByColumn) + " " + isAsc; if("asc".equals(StringUtils.toUnderScoreCase(isAsc))||"desc".equals(StringUtils.toUnderScoreCase(isAsc))){
return StringUtils.toUnderScoreCase(orderByColumn) + " " + isAsc;
}else{
return StringUtils.toUnderScoreCase(orderByColumn) + " asc";
}
} }
public Integer getPageNum() public Integer getPageNum()