|
|
@ -180,6 +180,9 @@ public class GenericApplicationDAOImpl extends AbstractDAOImpl implements Applic
|
|
|
|
if (deviceTypeId != -1) {
|
|
|
|
if (deviceTypeId != -1) {
|
|
|
|
sql += "AND AP_APP.DEVICE_TYPE_ID = ? ";
|
|
|
|
sql += "AND AP_APP.DEVICE_TYPE_ID = ? ";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (filter.isNotRetired()) {
|
|
|
|
|
|
|
|
sql += "AND AP_APP.STATUS != 'RETIRED' ";
|
|
|
|
|
|
|
|
}
|
|
|
|
sql += "GROUP BY AP_APP.ID ORDER BY AP_APP.ID ";
|
|
|
|
sql += "GROUP BY AP_APP.ID ORDER BY AP_APP.ID ";
|
|
|
|
if (StringUtils.isNotEmpty(filter.getSortBy())) {
|
|
|
|
if (StringUtils.isNotEmpty(filter.getSortBy())) {
|
|
|
|
sql += filter.getSortBy() +" ";
|
|
|
|
sql += filter.getSortBy() +" ";
|
|
|
@ -308,6 +311,9 @@ public class GenericApplicationDAOImpl extends AbstractDAOImpl implements Applic
|
|
|
|
if (deviceTypeId != -1) {
|
|
|
|
if (deviceTypeId != -1) {
|
|
|
|
sql += " AND AP_APP.DEVICE_TYPE_ID = ?";
|
|
|
|
sql += " AND AP_APP.DEVICE_TYPE_ID = ?";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (filter.isNotRetired()) {
|
|
|
|
|
|
|
|
sql += " AND AP_APP.STATUS != 'RETIRED'";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
conn = this.getDBConnection();
|
|
|
|
conn = this.getDBConnection();
|
|
|
|