From 715152a0932fe16d743766c141527bc4634087f4 Mon Sep 17 00:00:00 2001
From: 涂煌豪 <tuhuanghao@prec-tech.com>
Date: 星期二, 12 四月 2022 16:58:22 +0800
Subject: [PATCH] WLIG-CC78MX  【委托】NFM105接口增加OTS运单号字段

---
 force-app/main/default/triggers/SyncProduct2.trigger |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/force-app/main/default/triggers/SyncProduct2.trigger b/force-app/main/default/triggers/SyncProduct2.trigger
index 3e47de9..f434683 100644
--- a/force-app/main/default/triggers/SyncProduct2.trigger
+++ b/force-app/main/default/triggers/SyncProduct2.trigger
@@ -13,8 +13,8 @@
         for (Product2 pr2 : Trigger.new) {
             if (Trigger.isInsert
                     || Trigger.isUpdate
-                            && (pr2.Name != Trigger.oldMap.get(pr2.Id).get('Name')
-                                    || pr2.Asset_Model_No__c != Trigger.oldMap.get(pr2.Id).get('Asset_Model_No__c')
+                            && (pr2.Name.equals(Trigger.oldMap.get(pr2.Id).get('Name'))
+                                    || pr2.Asset_Model_No__c.equals(Trigger.oldMap.get(pr2.Id).get('Asset_Model_No__c'))
                                     || pr2.IsActive != Trigger.oldMap.get(pr2.Id).get('IsActive')
                                     || pr2.SFDA_Status__c != Trigger.oldMap.get(pr2.Id).get('SFDA_Status__c')))
             pr2s.add(pr2);

--
Gitblit v1.9.1