1、修复bug

This commit is contained in:
2025-08-28 14:10:05 +08:00
parent f5ade5b632
commit 915c8945c5

View File

@ -273,7 +273,9 @@ func (e *MmMachine) UpdateBatch(req *dto.MmMachineUpdateBatchReq, p *actions.Dat
return err return err
} }
e.Orm.Model(&models.MmWhiteTemplate{}).Where("id in ?", req.Ids).Select("machine_id").Find(&machineIds) if err := e.Orm.Model(&models.MmMachine{}).Where("id in ?", req.Ids).Select("machine_id").Find(&machineIds).Error; err != nil {
e.Log.Errorf("Service UpdateBatch error:%s \r\n", err.Error())
}
switch { switch {
case req.Type == 0: case req.Type == 0: