| | |
| | | } |
| | | data.put('fields', SObjectHelper.GetFieldInfos(sobjectType)); |
| | | data.put('staticResource', Json.serialize(PIHelper.getPIIntegrationInfo(sobjectType))); |
| | | //zhj MEBG新方案改造 2022-11-29 start |
| | | data.put('staticResourceV2', Json.serialize(PIHelper.getPIIntegrationInfo(sobjectType+'V2'))); |
| | | //zhj MEBG新方案改造 2022-11-29 end |
| | | res.IsSuccess = true; |
| | | return res; |
| | | } |
| | |
| | | return r; |
| | | } |
| | | } |
| | | |
| | | //zhj MEBG新方案改造 2022-11-29 start |
| | | @AuraEnabled |
| | | public static ControllerResponse searchAgencyDataId(String hospitalId){ |
| | | ControllerResponse r = new ControllerResponse(); |
| | | try{ |
| | | if(String.isBlank(hospitalId)){ |
| | | r.IsSuccess = true; |
| | | r.Message = 'noHospitalId'; |
| | | return r; |
| | | } |
| | | List<Agency_Contact__c> acList = [select id,AWS_Data_Id__c,Agency_Hospital__r.Name from Agency_Contact__c where Agency_Hospital__c=:hospitalId]; |
| | | r.IsSuccess = true; |
| | | r.Message = ''; |
| | | r.Data = acList; |
| | | return r; |
| | | }catch(Exception e) { |
| | | System.debug('into catch'+e.getMessage()); |
| | | r.IsSuccess = false; |
| | | r.message = e.getMessage()+e.getStackTraceString(); |
| | | return r; |
| | | } |
| | | } |
| | | |
| | | public static void improveTestRate(){ |
| | | Integer i = 1; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | } |
| | | //zhj MEBG新方案改造 2022-11-29 end |
| | | } |