From 03523642de0c4f319d90d0aec8a756f9e80e6a7e Mon Sep 17 00:00:00 2001
From: Li Jun <buli@deloitte.com.cn>
Date: 星期四, 17 三月 2022 21:27:47 +0800
Subject: [PATCH] PIPLFunctionDeployV2
---
force-app/main/default/classes/StraightBackAddressController.cls | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/force-app/main/default/classes/StraightBackAddressController.cls b/force-app/main/default/classes/StraightBackAddressController.cls
index e63368a..c2a0a89 100644
--- a/force-app/main/default/classes/StraightBackAddressController.cls
+++ b/force-app/main/default/classes/StraightBackAddressController.cls
@@ -100,7 +100,9 @@
* 寮�濮嬫柟娉�
*/
public PageReference init(){
+ System.debug('RepairId-----'+RepairId);
String RepairSql = makeTextRepairSql(RepairId);
+ System.debug('RepairSql-----'+RepairSql);
try{
pc = Database.query(RepairSql);
system.debug('pc = ' + pc);
@@ -142,6 +144,8 @@
}catch(exception e){
//澶辫触鎻愮ず
ApexPages.addMessages(e);
+ System.debug(e.getMessage());
+ System.debug(e.getlineNumber());
}
insUpdData = new Address__c();
newCon = new Contact();
@@ -232,7 +236,7 @@
try{
//淇濆瓨鏁版嵁鍒颁慨鐞嗚〃涓�
Repair__c rc = new Repair__c();
- rc.id=RepairId;
+ rc.id = RepairId;
rc.Address_AWS_Data_Id__c = tableData[i].address.AWS_Data_Id__c;
rc.Contact_AWS_Data_Id__c = contactawsDataId;
rc.address_Contacts__c = contactsName;
@@ -350,12 +354,14 @@
List<Address__c> dataList = Database.query(AddressSql);
if(dataList != null && dataList.size()> 0){
indexCou += dataList.size();
+ System.debug('dataList-----'+dataList);
for(Integer i = 0;i<dataList.size();i++){
String createID = dataList[i].CreatedByid;
createId = createId.substring(0,15);
//鍔炰簨澶勭殑鍦板潃涓嶅彲淇敼
+
if(dataList[i].Address_Classification__c == '鍔炰簨澶�'){
- tableData.add(new AddressData(dataList[i],'none','none','inline'));
+ tableData.add(new AddressData(dataList[i],'none','none','inline'));
}else{
//鍙兘鏀硅嚜宸卞垱寤虹殑鍦板潃鏁版嵁锛岀郴缁熺鐞嗗憳銆丟PI_绯荤粺绠$悊鍛楴ew 娌¢檺鍒�
if(loginPerson == createId ||loginPerson == '00e10000000dzzG' ||loginPerson == '00e10000000Y3o5'){
@@ -470,7 +476,6 @@
}
}
//鍒ゆ柇鑱旂郴浜烘槸鍚﹂兘涓虹┖
-
if(insUpdData.Contacts__c == null || String.isBlank(insUpdData.Contacts__c)){
//鍒ゆ柇鏂板缓鑱旂郴浜烘槸鍚︿负绌�
if(insUpdData.Create_Contacts__c == null || String.isBlank(insUpdData.Create_Contacts__c)){
--
Gitblit v1.9.1