mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Refactored Operation DAO class
This commit is contained in:
parent
825017a492
commit
6e95451f57
@ -87,8 +87,8 @@ public class OperationDAOImpl implements OperationDAO {
|
||||
PreparedStatement stmt = null;
|
||||
try {
|
||||
Connection connection = OperationManagementDAOFactory.getConnection();
|
||||
stmt = connection.prepareStatement("UPDATE DM_ENROLMENT_OP_MAPPING O SET O.STATUS=? " +
|
||||
"WHERE O.ENROLMENT_ID=? and O.OPERATION_ID=?");
|
||||
stmt = connection.prepareStatement("UPDATE DM_ENROLMENT_OP_MAPPING SET STATUS=? " +
|
||||
"WHERE ENROLMENT_ID=? and OPERATION_ID=?");
|
||||
stmt.setString(1, status.toString());
|
||||
stmt.setInt(2, enrolmentId);
|
||||
stmt.setInt(3, operationId);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user