/// <summary>
        /// 重写新增方法,内置修改AlarmStatus表treatmentState内容“1”
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public override Task <AlarmManageStateDto> CreateAsync(UpdateAlarmManageStateDto input)
        {
            var status = _alarmStatusrepository.Where(u => u.Alarm_ID == input.Alarm_ID).FirstOrDefault();

            if (status != null)
            {
                status.TreatmentState = 1;

                _alarmStatusrepository.UpdateAsync(status);
            }


            return(base.CreateAsync(input));
        }
        /// <summary>
        /// 重写修改方法,修改自动更新AlarmStatus.TreatmentState=0
        /// </summary>
        /// <param name="id"></param>
        /// <param name="input"></param>
        /// <returns></returns>
        public override Task <AlarmManageStateDto> UpdateAsync(int id, UpdateAlarmManageStateDto input)
        {
            var status = _alarmStatusrepository.Where(u => u.Alarm_ID == input.Alarm_ID).FirstOrDefault();

            if (status != null)
            {
                if (string.IsNullOrEmpty(input.TreatmentTimeState))
                {
                    status.TreatmentState = 1;
                    _alarmStatusrepository.UpdateAsync(status);
                }
                else
                {
                    status.TreatmentState = 0;
                    _alarmStatusrepository.UpdateAsync(status);
                }
            }


            return(base.UpdateAsync(id, input));
        }