/// <summary>
        /// 新增应急联动
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        public string AddEmergencyLinkageConfig(EmergencyLinkageConfigBusinessModel data)
        {
            try
            {
                string error = "";

                //1.删除
                BasicResponse deleteByAnalysisModelIdResult =
                    emergencyLinkageConfigService.DeleteJC_EmergencylinkageconfigByAnalysisModelId(
                        new EmergencyLinkageConfigGetByAnalysisModelIdRequest()
                {
                    AnalysisModelId = data.AnalysisModelId
                }
                        );

                //2.新增
                // 调用接口
                BasicResponse <JC_EmergencyLinkageConfigInfo> analysisTemplateResult =
                    emergencyLinkageConfigService.AddJC_Emergencylinkageconfig(
                        new EmergencyLinkageConfigAddRequest()
                {
                    JC_EmergencyLinkageConfigInfo = data.EmergencyLinkageConfigInfo
                });

                if (analysisTemplateResult.IsSuccess == false)
                {
                    error = analysisTemplateResult.Message;
                }
                else
                {
                    if (analysisTemplateResult.Code != 100)
                    {
                        error = analysisTemplateResult.Message;
                    }
                    else
                    {
                        error = "100";
                    }
                }


                return(error);
            }
            catch (Exception ex)
            {
                return(ex.Message);
            }
        }
 public BasicResponse <JC_EmergencyLinkageConfigInfo> AddJC_Emergencylinkageconfig(EmergencyLinkageConfigAddRequest jC_Emergencylinkageconfigrequest)
 {
     return(_EmergencyLinkageConfigService.AddJC_Emergencylinkageconfig(jC_Emergencylinkageconfigrequest));
 }