Change http method to get

revert-70aa11f8
Pahansith 5 years ago
parent a3f44b43b4
commit f01448d396

@ -79,7 +79,7 @@ public interface DeviceManagementConfigService {
@GET @GET
@ApiOperation( @ApiOperation(
produces = MediaType.APPLICATION_JSON, produces = MediaType.APPLICATION_JSON,
httpMethod = "POST", httpMethod = "GET",
value = "Getting General device Configurations", value = "Getting General device Configurations",
notes = "This API is responsible for send device configuration data to an IOT device when the " + notes = "This API is responsible for send device configuration data to an IOT device when the " +
"device starts provisioning", "device starts provisioning",

@ -354,10 +354,10 @@ public abstract class AbstractDeviceDAOImpl implements DeviceDAO {
"p.DEVICE_TYPE_NAME, " + "p.DEVICE_TYPE_NAME, " +
"p.TENANT_ID"; "p.TENANT_ID";
AtomicInteger iterationCount = new AtomicInteger(0); int iterationCount = 0;
StringBuilder propertyQuery = new StringBuilder(" "); StringBuilder propertyQuery = new StringBuilder(" ");
for (Map.Entry<String, String> stringStringEntry : deviceProps.entrySet()) { 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 ") propertyQuery.append("JOIN DM_DEVICE_PROPERTIES ")
.append(tempTableId).append(" ").append("ON p.DEVICE_IDENTIFICATION = ") .append(tempTableId).append(" ").append("ON p.DEVICE_IDENTIFICATION = ")
.append(tempTableId).append(".DEVICE_IDENTIFICATION ") .append(tempTableId).append(".DEVICE_IDENTIFICATION ")

Loading…
Cancel
Save