Commit 678eb28c authored by linruibiao's avatar linruibiao

接口编写

parent fd7bdaf0
...@@ -87,6 +87,9 @@ public class InstrumentPanelGroupServiceImpl extends ServiceImpl<InstrumentPanel ...@@ -87,6 +87,9 @@ public class InstrumentPanelGroupServiceImpl extends ServiceImpl<InstrumentPanel
if (group.getRecordStatus().equals(SlmConstants.DATA_DELETED)) { if (group.getRecordStatus().equals(SlmConstants.DATA_DELETED)) {
throw new SysException("该分组已经被删除,请重新刷新页面进行操作!"); throw new SysException("该分组已经被删除,请重新刷新页面进行操作!");
} }
if(StringUtils.isEmpty(group.getParentId())){
throw new SysException("顶级分组不可删除");
}
group.setRecordStatus(SlmConstants.DATA_DELETED); group.setRecordStatus(SlmConstants.DATA_DELETED);
baseMapper.updateById(group); baseMapper.updateById(group);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment