mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Change http method to get
This commit is contained in:
parent
a3f44b43b4
commit
f01448d396
@ -79,7 +79,7 @@ public interface DeviceManagementConfigService {
|
||||
@GET
|
||||
@ApiOperation(
|
||||
produces = MediaType.APPLICATION_JSON,
|
||||
httpMethod = "POST",
|
||||
httpMethod = "GET",
|
||||
value = "Getting General device Configurations",
|
||||
notes = "This API is responsible for send device configuration data to an IOT device when the " +
|
||||
"device starts provisioning",
|
||||
|
||||
@ -354,10 +354,10 @@ public abstract class AbstractDeviceDAOImpl implements DeviceDAO {
|
||||
"p.DEVICE_TYPE_NAME, " +
|
||||
"p.TENANT_ID";
|
||||
|
||||
AtomicInteger iterationCount = new AtomicInteger(0);
|
||||
int iterationCount = 0;
|
||||
StringBuilder propertyQuery = new StringBuilder(" ");
|
||||
for (Map.Entry<String, String> stringStringEntry : deviceProps.entrySet()) {
|
||||
String tempTableId = "t".concat(Integer.toString(iterationCount.getAndIncrement()));
|
||||
String tempTableId = "t".concat(Integer.toString(iterationCount++));
|
||||
propertyQuery.append("JOIN DM_DEVICE_PROPERTIES ")
|
||||
.append(tempTableId).append(" ").append("ON p.DEVICE_IDENTIFICATION = ")
|
||||
.append(tempTableId).append(".DEVICE_IDENTIFICATION ")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user