/// <summary> /// 获取报警配置相关的人员信息 /// </summary> /// <param name="jC_AlarmNotificationPersonnelrequest">获取报警配置相关的人员信息请求对象</param> /// <returns>报警配置相关的人员信息</returns> public BasicResponse <List <JC_AlarmNotificationPersonnelInfo> > GetJC_AlarmNotificationPersonnelListByAlarmConfigId(AlarmNotificationPersonnelGetListByAlarmConfigIdRequest jC_AlarmNotificationPersonnelListByAlarmConfigIdRequest) { var result = _Repository.GetJC_AlarmNotificationPersonnelListByAlarmConfigId(jC_AlarmNotificationPersonnelListByAlarmConfigIdRequest.AlarmConfigId); var jC_AlarmNotificationPersonnelresponse = new BasicResponse <List <JC_AlarmNotificationPersonnelInfo> >(); IList <JC_AlarmNotificationPersonnelInfo> responseData = ObjectConverter.CopyList <JC_AlarmNotificationPersonnelModel, JC_AlarmNotificationPersonnelInfo>(result); jC_AlarmNotificationPersonnelresponse.Data = responseData.ToList(); return(jC_AlarmNotificationPersonnelresponse); }
public BasicResponse <JC_AlarmNotificationPersonnelConfigInfo> GetJC_AlarmNotificationPersonnelConfigById(AlarmNotificationPersonnelConfigGetRequest jC_Alarmnotificationpersonnelconfigrequest) { var result = _Repository.GetJC_AlarmNotificationPersonnelConfigById(jC_Alarmnotificationpersonnelconfigrequest.Id); var jC_AlarmnotificationpersonnelconfigInfo = ObjectConverter.Copy <JC_AlarmnotificationpersonnelconfigModel, JC_AlarmNotificationPersonnelConfigInfo>(result); IList <JC_AlarmNotificationPersonnelModel> alarmNotificationPersonnelModelList = _AlarmNotificationPersonnelRepository.GetJC_AlarmNotificationPersonnelListByAlarmConfigId(jC_AlarmnotificationpersonnelconfigInfo.Id); if (alarmNotificationPersonnelModelList != null) { jC_AlarmnotificationpersonnelconfigInfo.JC_AlarmNotificationPersonnelInfoList = ObjectConverter.CopyList <JC_AlarmNotificationPersonnelModel, JC_AlarmNotificationPersonnelInfo>(alarmNotificationPersonnelModelList).ToList(); } var jC_Alarmnotificationpersonnelconfigresponse = new BasicResponse <JC_AlarmNotificationPersonnelConfigInfo>(); jC_Alarmnotificationpersonnelconfigresponse.Data = jC_AlarmnotificationpersonnelconfigInfo; return(jC_Alarmnotificationpersonnelconfigresponse); }