Example #1
0
        /*更新设备告警信息总数*/
        public string UpdateTotalAlarmInfo(string deviceId, int count)
        {
            DeviceModel device = _deviceDao.GetByDeviceId(deviceId);

            device.totalAlarmInfo = count;
            return(_deviceDao.Update(device.Id, device));
        }
Example #2
0
 public int Save(Device device)
 {
     if (device.id > 0)
     {
         return(_deviceDao.Update(device));
     }
     else
     {
         return(_deviceDao.Insert(device));
     }
 }