新增计算量相关td表结构修改
This commit is contained in:
parent
5aaead0786
commit
d6d52d6517
@ -203,12 +203,11 @@ public class SysIotModelServiceImpl implements SysIotModelService {
|
||||
throw new ServiceException("物模型属性code已经存在");
|
||||
}
|
||||
}
|
||||
sysIotModelFieldMapper.updateById(sysIotModelField);
|
||||
|
||||
SysIotModelField oldSysIotField = sysIotModelFieldMapper.selectById(sysIotModelFieldDto.getId());
|
||||
if (oldSysIotField == null) {
|
||||
throw new ServiceException("未查找到该条记录");
|
||||
}
|
||||
sysIotModelFieldMapper.updateById(sysIotModelField);
|
||||
if (!oldSysIotField.getAttributeCode().equals(sysIotModelField.getAttributeCode()) || !oldSysIotField.getDataType().equals(sysIotModelField.getDataType()) || Objects.equals(oldSysIotField.getHighSpeed(), sysIotModelField.getHighSpeed())) {
|
||||
//更新td表结构
|
||||
updateTDStableOrColumn(sysIotModelField, oldSysIotField);
|
||||
|
Loading…
Reference in New Issue
Block a user