Skip to content

Commit

Permalink
fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zifangsky committed Mar 21, 2019
1 parent 0cf075e commit 9e0f911
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ public int updateByPrimaryKey(SysLog log) {
@Override
public List<SysLog> findAll(Long roleId, String queryParam, Holder<PageInfo> pageInfoHolder) {
List<Object> valuesList = new ArrayList<>();
if(queryParam != null){
queryParam = queryParam.replace("%", "");
}else{
queryParam = "";
}

String querySql;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ public void addLog(SysLog log) {

@Override
public List<SysLog> findAll(Long roleId, String queryParam, Holder<PageInfo> pageInfoHolder) {
return logMapper.findAll(roleId, queryParam.replace("%", ""), pageInfoHolder);
return logMapper.findAll(roleId, queryParam, pageInfoHolder);
}
}

0 comments on commit 9e0f911

Please sign in to comment.