Commit 073f98a1 authored by szh's avatar szh

add table

parent 2ceb2c8d
......@@ -36,7 +36,7 @@ func UpdateDevList1(rasp RaspDevList) error {
}
return tx.Commit().Error
}
if err :=tx.Where("addr = ?",rasp.Addr).Updates(
if err :=tx.Model(&dev).Where("addr = ?",rasp.Addr).Updates(
map[string]interface{}{
"pai_version":rasp.PaiVersion,
"update_time":rasp.UpdateTime,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment