fix
zhangqian
2023-10-26 72721bf221e6f90fb830bf28133c7588e30e1d30
service/device_plc.go
@@ -22,14 +22,17 @@
   DevicePlc, err := model.NewDevicePlcSearch().SetDeviceId(conf.Conf.System.DeviceId).First()
   if err == gorm.ErrRecordNotFound {
      return &model.DevicePlc{
         DeviceID:   "",
         Brand:      "",
         Method:     "",
         Address:    "",
         Port:       0,
         BaudRate:   0,
         SerialName: "",
         DataBit:    0,
         StopBit:    0,
         Parity:     0,
         IsOpen:     false,
         Detail:     "",
         Details:    make([]*model.DevicePlcAddress, 0),
      }, ecode.OK
   }