mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fixed EMM-1001
This commit is contained in:
parent
d779022123
commit
d95a198ad6
@ -609,7 +609,7 @@ public abstract class AbstractDeviceDAOImpl implements DeviceDAO {
|
|||||||
stmt.setString(index++, status.toString());
|
stmt.setString(index++, status.toString());
|
||||||
stmt.setInt(index, tenantId);
|
stmt.setInt(index, tenantId);
|
||||||
rs = stmt.executeQuery();
|
rs = stmt.executeQuery();
|
||||||
if (rs.next()) {
|
while (rs.next()) {
|
||||||
enrolments.add(DeviceManagementDAOUtil.loadEnrolment(rs));
|
enrolments.add(DeviceManagementDAOUtil.loadEnrolment(rs));
|
||||||
}
|
}
|
||||||
return enrolments;
|
return enrolments;
|
||||||
|
|||||||
@ -97,7 +97,7 @@ public class OperationManagerImpl implements OperationManager {
|
|||||||
List<EnrolmentInfo> enrolments;
|
List<EnrolmentInfo> enrolments;
|
||||||
try {
|
try {
|
||||||
DeviceManagementDAOFactory.openConnection();
|
DeviceManagementDAOFactory.openConnection();
|
||||||
enrolments = deviceDAO.getEnrolmentsByStatus(deviceIds, EnrolmentInfo.Status.ACTIVE, tenantId);
|
enrolments = deviceDAO.getEnrolmentsByStatus(authorizedDeviceList, EnrolmentInfo.Status.ACTIVE, tenantId);
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
throw new OperationManagementException("Error occurred while opening a connection the data " +
|
throw new OperationManagementException("Error occurred while opening a connection the data " +
|
||||||
"source", e);
|
"source", e);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user