|
@@ -60,7 +60,7 @@ public class DeviceTypeController {
|
|
|
@ApiOperation(value = "批量同步设备类型")
|
|
|
public AjaxMessage<Integer> batchAdd() {
|
|
|
int result = 0;
|
|
|
- DeviceTypeDto deviceTypeDto = restTemplate.getForObject("http://114.135.61.188:48322/unit/profiles/list", DeviceTypeDto.class);
|
|
|
+ DeviceTypeDto deviceTypeDto = restTemplate.getForObject(requestUrl, DeviceTypeDto.class);
|
|
|
//判断是否存在,不存在则进行添加
|
|
|
for (DeviceTypeEntity item : deviceTypeDto.getData()) {
|
|
|
if (deviceTypeService.findListByName(item).size() == 0) {
|