Commit 207d896f authored by linruibiao's avatar linruibiao

接口编写

parent e9d1ff23
Pipeline #9335 failed with stages
in 21 seconds
......@@ -84,13 +84,15 @@ public class InstrumentPanelGroupServiceImpl extends ServiceImpl<InstrumentPanel
@Override
@Transactional(rollbackFor = Exception.class)
public String delGroup(@NonNull String groupId) {
public String delGroup(@NonNull String groupId, boolean isDelTenant) {
InstrumentPanelGroup group = baseMapper.selectById(groupId);
if (group.getRecordStatus().equals(SlmConstants.DATA_DELETED)) {
throw new SysException("该分组已经被删除,请重新刷新页面进行操作!");
}
if(StringUtils.isEmpty(group.getParentId())){
throw new SysException("顶级分组不可删除");
if(!isDelTenant) {
if (StringUtils.isEmpty(group.getParentId())) {
throw new SysException("顶级分组不可删除");
}
}
group.setRecordStatus(SlmConstants.DATA_DELETED);
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