minor changes (not functional)
This commit is contained in:
@@ -116,6 +116,7 @@ public class AuditApiResource {
|
||||
if (resource != null) {
|
||||
extraCriteria += " and aud.api_resource = " + ApiParameterHelper.sqlEncodeString(resource);
|
||||
}
|
||||
|
||||
if (resourceId != null) {
|
||||
extraCriteria += " and aud.resource_id = " + resourceId;
|
||||
}
|
||||
|
||||
+1
-1
@@ -78,7 +78,7 @@ public class AuditReadPlatformServiceImpl implements AuditReadPlatformService {
|
||||
String sql = "select " + rm.schema(includeJson);
|
||||
if (StringUtils.isNotBlank(extraCriteria)) sql += " where (" + extraCriteria + ")";
|
||||
sql += " order by aud.id DESC";
|
||||
|
||||
|
||||
return this.jdbcTemplate.query(sql, rm, new Object[] {});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user