105040 Update 使用默认主键

This commit is contained in:
lihanbo 2024-12-17 15:11:33 +08:00
parent bd4063346c
commit abeb99c94b
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ namespace Sinvo.EplanHpD.Plugin.Service
public bool SaveMotorLectotypeData(string motorOccId, string data)
{
var motorData = new MotorDataModel { ID = motorOccId, Data = data };
var result = DBHelper.DB.Storageable<MotorDataModel>(motorData).WhereColumns(p => p.ID).ExecuteCommand();
var result = DBHelper.DB.Storageable<MotorDataModel>(motorData).ExecuteCommand();
return result != 0;
}
}