das接口修改
This commit is contained in:
parent
b95332dd9b
commit
170b15c5c2
@ -226,12 +226,12 @@ public class SysIotModelController {
|
||||
|
||||
/** 物模型导入 */
|
||||
@PostMapping("/import")
|
||||
public R<Void> importSysIotModel(String iotModelId, @RequestParam("file") MultipartFile file) throws IOException {
|
||||
public R<Void> importSysIotModel(String id, @RequestParam("file") MultipartFile file) throws IOException {
|
||||
|
||||
if (StringUtils.isEmpty(iotModelId)) {
|
||||
if (StringUtils.isEmpty(id)) {
|
||||
throw new ServiceException("请选择需要导入的物模型属性信息");
|
||||
}
|
||||
sysIotModelService.importSysIotModel(iotModelId, file);
|
||||
sysIotModelService.importSysIotModel(id, file);
|
||||
return R.success();
|
||||
}
|
||||
|
||||
|
@ -198,16 +198,6 @@ public class DataServiceImpl implements DataService {
|
||||
configUpdateVo.setEquipments(equipments);
|
||||
ObjectMapper mapper = new ObjectMapper();
|
||||
JsonNode jsonNode = mapper.valueToTree(configUpdateVo);
|
||||
long time = System.currentTimeMillis();
|
||||
|
||||
// TerminalMessage configUpdate = TerminalMessage.builder()
|
||||
// .cmd("configUpdate")
|
||||
// .cmdId(String.valueOf(nodeId))
|
||||
// .time(time)
|
||||
// .data(jsonNode)
|
||||
// .build();
|
||||
// nodeMessageHandler.sendActionMessage(Long.valueOf(nodeId), configUpdate);
|
||||
|
||||
return jsonNode;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user