zhangqian
2023-10-20 0a5f9357dcbfc4ebdebfdb4873f1ae1a058133ae
nsq/msg_handler.go
@@ -297,7 +297,7 @@
   }
   detail, err := json.Marshal(record.Details)
   record.Detail = string(detail)
   record.DeviceID = msg.ID
   oldPlcRecord, err := model.NewDevicePlcSearch().SetDeviceId(msg.ID).First()
   if err == gorm.ErrRecordNotFound {
      err = model.NewDevicePlcSearch().Create(&record)