mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-12-16 04:36:35 +08:00
release: v1.9.0
This commit is contained in:
@@ -105,9 +105,6 @@ func (m *machineAppImpl) SaveMachine(ctx context.Context, param *dto.SaveMachine
|
||||
if err == nil {
|
||||
return errorx.NewBiz("该机器信息已存在")
|
||||
}
|
||||
if m.CountByCond(&entity.Machine{Name: me.Name}) > 0 {
|
||||
return errorx.NewBiz("该名称已存在")
|
||||
}
|
||||
|
||||
// 新增机器,默认启用状态
|
||||
me.Status = entity.MachineStatusEnable
|
||||
|
||||
Reference in New Issue
Block a user