From 962519811b7c4be07f30d09e791798b0ea79d3ae Mon Sep 17 00:00:00 2001
From: 黄千龙 <huangqianlong@prec-tech.com>
Date: 星期三, 08 三月 2023 09:54:02 +0800
Subject: [PATCH] 同步代码

---
 force-app/main/default/classes/NFM624Rest.cls |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/force-app/main/default/classes/NFM624Rest.cls b/force-app/main/default/classes/NFM624Rest.cls
index 3dda7d2..93a2f1c 100644
--- a/force-app/main/default/classes/NFM624Rest.cls
+++ b/force-app/main/default/classes/NFM624Rest.cls
@@ -202,9 +202,11 @@
                 }
                 //鏌ヨ甯傚尯Id 
                 Map < String, String > CityMap = new Map < String, String > (); //甯侻ap
-                List < Address_Level2__c > citytempList = [select Id, Name from Address_Level2__c where Name IN: CityList];
+                //鐪佸競瀵瑰簲璇ュ叧绯� LY 20230206 start
+                List < Address_Level2__c > citytempList = [select Id, Name,Level1_Name__c  from Address_Level2__c where Name IN: CityList];
                 for (Address_Level2__c temp: citytempList) {
-                    CityMap.put(temp.Name, temp.Id);
+                    CityMap.put(temp.Level1_Name__c+temp.Name, temp.Id);
+                //鐪佸競瀵瑰簲璇ュ叧绯� LY 20230206 end
                 }
  
                 //鏌ヨ鍖婚櫌鎵�鏈変汉
@@ -586,7 +588,10 @@
                             //Ly 鐪佹枃鏈祴鍊� start
                             hp.State_Text__c = gedata.State; //  鐪�(鏂囨湰)
                             //Ly 鐪佹枃鏈祴鍊� end
-                            hp.City_Master__c = CityMap.get(gedata.City); //     甯�
+                            //鐪佸競瀵瑰簲璇ュ叧绯� LY 20230206 start
+                            //hp.City_Master__c = CityMap.get(gedata.City); //     甯�
+                            hp.City_Master__c = CityMap.get(gedata.State+gedata.City); //     甯�
+                            //鐪佸競瀵瑰簲璇ュ叧绯� LY 20230206 end
                             hp.Hospital_Source__c = '鏅烘収鍖荤枟';
                             upsertAccountList.add(hp);
                             System.debug('upsertAccountList'+upsertAccountList);

--
Gitblit v1.9.1