merge: 合并代码20241211

This commit is contained in:
TsMask committed 2024-12-11 16:15:13 +08:00
1 parent aedea2ce2d
commit 1fa9442c1f
43 files changed
+885 -479

No files matched your search

@@ -149,6 +149,13 @@ func (r *NeHost) DeleteByIds(hostIds []string) (int64, error) {
return 0, fmt.Errorf("neHost.noData")
}
for _, v := range ids {
if v.GroupID == "1" {
// 主机信息操作【%s】失败,禁止操作网元
return 0, fmt.Errorf("neHost.banNE")
}
}
if len(ids) == len(hostIds) {
rows := r.neHostRepository.DeleteByIds(hostIds)
return rows, nil