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