Commit 9dbe236d authored by zhangyong's avatar zhangyong

1

parent 5c5d909b
...@@ -134,7 +134,7 @@ public class LinkListController { ...@@ -134,7 +134,7 @@ public class LinkListController {
Page page = new Page(); Page page = new Page();
page.setIndex(Long.valueOf(index)); page.setIndex(Long.valueOf(index));
page.setLimit(Long.valueOf(limit)); page.setLimit(Long.valueOf(limit));
page.setLimitKey(" dLastUpdateTime desc "); page.setLimitKey(" lastUpdateTime desc ");
List<Map<String,Object>> tLinkList = linkListService.query(params, page); List<Map<String,Object>> tLinkList = linkListService.query(params, page);
......
...@@ -107,7 +107,7 @@ public class LinkListServiceImpl implements LinkListService { ...@@ -107,7 +107,7 @@ public class LinkListServiceImpl implements LinkListService {
+ " FROM tLinkList WHERE nTag&1=0 "; + " FROM tLinkList WHERE nTag&1=0 ";
if(params != null && params.size()> 0) { if(params != null && params.size()> 0) {
String queryMsg = params.get("queryMsg")+""; String queryMsg = params.get("queryMsg")+"";
if(StringUtil.isNotEmpty(queryMsg)) { if(StringUtil.isNotUndefinedAndNull(queryMsg)) {
sql += " and (sLinkNO like '%"+queryMsg+"%' or sLinkName like '%"+queryMsg+"%' or sLinkType like '%"+queryMsg+"%') "; sql += " and (sLinkNO like '%"+queryMsg+"%' or sLinkName like '%"+queryMsg+"%' or sLinkType like '%"+queryMsg+"%') ";
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment