feat:1
This commit is contained in:
@@ -37,6 +37,13 @@ public class DicEORestController extends BaseController<DictionaryEO> {
|
||||
public ResponseMessage<PageInfo<DictionaryEO>> page(DictionaryEOPage page) throws Exception {
|
||||
page.setDictionaryCodeOperator("like");
|
||||
page.setDictionaryNameOperator("like");
|
||||
if(org.apache.commons.lang3.StringUtils.isNotBlank(page.getPaixu()) && org.apache.commons.lang3.StringUtils.isNotBlank(page.getShunxu())){
|
||||
String sql = page.getPaixu()+" "+page.getShunxu();
|
||||
page.setSql(sql);
|
||||
}else{
|
||||
String sql = "order_num,u0.id";
|
||||
page.setSql(sql);
|
||||
}
|
||||
List<DictionaryEO> rows = dicEOService.queryAllDicByPage(page);
|
||||
return Result.success(getPageInfo(page.getPager(), rows));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user