/// <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 DeleteJC_EmergencylinkageconfigByAnalysisModelId(EmergencyLinkageConfigGetByAnalysisModelIdRequest emergencyLinkageConfigGetByAnalysisModelIdRequest) { return(_EmergencyLinkageConfigService.DeleteJC_EmergencylinkageconfigByAnalysisModelId(emergencyLinkageConfigGetByAnalysisModelIdRequest)); }