Change http method to get

revert-70aa11f8
Pahansith 5 years ago
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…
Cancel
Save