From d8dc84a3d56df839895f1c417a4d9cbee763d262 Mon Sep 17 00:00:00 2001
From: 高章伟 <gaozhangwei@prec-tech.com>
Date: 星期五, 03 三月 2023 14:50:59 +0800
Subject: [PATCH] gzw 测试环境代码更新

---
 force-app/main/default/classes/LostReportEditAssetController.cls |   15 ++-------------
 1 files changed, 2 insertions(+), 13 deletions(-)

diff --git a/force-app/main/default/classes/LostReportEditAssetController.cls b/force-app/main/default/classes/LostReportEditAssetController.cls
index 0a3281b..e58a713 100644
--- a/force-app/main/default/classes/LostReportEditAssetController.cls
+++ b/force-app/main/default/classes/LostReportEditAssetController.cls
@@ -3,7 +3,6 @@
     public String lrid {get; set;}
     public String assetId {get; set;}
     public PageBean pBean {get; set;}
-    public Boolean Account_Asset_FJZ {get; set;} // 20211227 ljh  SFDC-C933NJ add start
 
     public Map<String, String> DESC_RW {get; private set;}
     public Map<String, String> DESC_RW1 {get; private set;}
@@ -83,7 +82,6 @@
                                         , Fixture_Model_No_F__c
                                         , SerialNumber
                                         , Internal_Asset_number_key__c
-                                        , Account.AgentCode_Ext__c // 20211227 ljh SFDC-C933NJ add
                                      FROM Asset
                                     WHERE Id = :assetId];
             if (assList.size() == 0) {
@@ -91,9 +89,6 @@
                 return;
             }
             Asset ass = assList[0];
-            Boolean aa = assList[0].Account.AgentCode_Ext__c == System.Label.Account_Asset_FJZ;
-            System.debug('zheli:'+aa + assList[0].Account.AgentCode_Ext__c +System.Label.Account_Asset_FJZ);
-            Account_Asset_FJZ = assList[0].Account.AgentCode_Ext__c == System.Label.Account_Asset_FJZ; // 20211227 ljh  SFDC-C933NJ add start
             // Savepoint sp = Database.setSavepoint();
             LostReport__c lr = new LostReport__c();
 
@@ -223,13 +218,12 @@
                                                          Asset__r.Asset_day__c,
                                                          Asset__r.Asset_Value__c,
                                                          Asset__r.RecordTypeId,
-                                                         Asset__r.Account.AgentCode_Ext__c,// 20211227 ljh  SFDC-C933NJ add start
                                                          LostReport__c
                                                     FROM LostReport_Detail__c
                                                    WHERE LostReport__c = :lrid
                                                      AND Asset__c != null];
             pBean.setAssetList(lrdList);
-            Account_Asset_FJZ = lrdList[0].Asset__r.Account.AgentCode_Ext__c == System.Label.Account_Asset_FJZ; // 20211227 ljh  SFDC-C933NJ add start
+
             for (LostReport_Detail__c lrd : lrdList) {
                 if (!assetRecordTypeList.contains(lrd.Asset__r.RecordTypeId)) {
                     assetRecordTypeList.add(lrd.Asset__r.RecordTypeId);
@@ -314,12 +308,6 @@
                     update lrdList;
                 }
             }
-            // 20211215 ljh  SFDC-C933NJ add start
-            System.debug('zheli'+Account_Asset_FJZ);
-            if(Account_Asset_FJZ){
-                pBean.lr.IsFinishPunishObj__c = true;
-            }
-            // 20211215 ljh  SFDC-C933NJ add start
 
             if (String.isNotBlank(saveType) && saveType == '1') {
                 saveMessage = '宸叉彁浜ゅ鎵�';
@@ -541,6 +529,7 @@
         public String Fixture_Model_No_F {get; set;}
         public String SerialNumber {get; set;}
         public String Internal_Asset_number {get; set;}
+
         public PageRowBean() {
             lrd = new LostReport_Detail__c();
             ass = new Asset();

--
Gitblit v1.9.1