From 4420517bbbffea48cabe7a7dcdf2e1c4b440fc85 Mon Sep 17 00:00:00 2001
From: GWY <guweiyi@prec-tech.com>
Date: 星期一, 30 五月 2022 16:15:26 +0800
Subject: [PATCH] 两个LS特殊条件在说明的增减
---
force-app/main/default/classes/NewAndEditUserFaultInfoController.cls | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/force-app/main/default/classes/NewAndEditUserFaultInfoController.cls b/force-app/main/default/classes/NewAndEditUserFaultInfoController.cls
index d45f3f2..85135d6 100644
--- a/force-app/main/default/classes/NewAndEditUserFaultInfoController.cls
+++ b/force-app/main/default/classes/NewAndEditUserFaultInfoController.cls
@@ -29,6 +29,7 @@
//contact淇℃伅锛堟悳绱㈡煡璇uery url鐢級
staticResourceContact = JSON.serialize(PIHelper.getPIIntegrationInfo('Contact'));
SObject obj = controller.getRecord();
+ system.debug('obj.id=='+obj.id);
if(obj.Id == null){
//鍒濆鍖栧姞杞藉��
obj.put('OwnerId', UserInfo.getUserId());
@@ -37,6 +38,7 @@
System.debug('userFaultInfo: ' + userFaultInfo);
if (userFaultInfo.CONTACT__c != null) {
List<Contact> contact = [select AWS_Data_Id__c,Name from Contact where id=:userFaultInfo.CONTACT__c];
+ System.debug('contact: ' + contact);
if(contact.size()>0){
if (contact[0].AWS_Data_Id__c != null && contact[0].AWS_Data_Id__c != '') {
contactAWSDataId = contact[0].AWS_Data_Id__c;
@@ -50,6 +52,7 @@
}
if (userFaultInfo.UFContact__c != null) {
List<Contact> contact = [select AWS_Data_Id__c,Name from Contact where id=:userFaultInfo.UFContact__c];
+ System.debug('contacts: ' + contact);
if(contact.size()>0){
if (contact[0].AWS_Data_Id__c != null && contact[0].AWS_Data_Id__c != '') {
endUserDAWSDataId = contact[0].AWS_Data_Id__c;
--
Gitblit v1.9.1