/// <summary>
/// 删除
/// </summary>
/// <param name="ids"></param>
public int Delete(string ids)
{
try
{
string[] id = ids.Split(',');
string str = "";
for (int i = 0; i < id.Length; i++)
{
str += "'" + id[i] + "',";
}
str = str.TrimEnd(',');
string sql = "delete from [dbo].[DM_DeviceInfo] where Id in (" + str + ")";
return DbHelperSQL.ExecuteSql(sql);
}
catch (Exception ex)
{
return -1;
}
}