From da42e2995c00293af89c71fe5ba6e16cbb77e1b3 Mon Sep 17 00:00:00 2001 From: binxie <137736985@qq.com> Date: 星期五, 16 六月 2023 17:24:31 +0800 Subject: [PATCH] backup code --- force-app/main/default/classes/LexInventoryViewController.cls | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/force-app/main/default/classes/LexInventoryViewController.cls b/force-app/main/default/classes/LexInventoryViewController.cls index cc2ec34..1a4c8fd 100644 --- a/force-app/main/default/classes/LexInventoryViewController.cls +++ b/force-app/main/default/classes/LexInventoryViewController.cls @@ -32,7 +32,7 @@ // }; public static String[] proLimitAndDate = new List<String>{}; - private static Map<String, Date> productkucun = new Map<String, Date>(); + public static Map<String, Date> productkucun = new Map<String, Date>(); public static List<SelectOption> categoryOptionList { get; set; } @AuraEnabled public static Map<String, String> categoryOptionMap { get; set; } @@ -49,7 +49,7 @@ public static String category1 { get; set; } public static Boolean editAble { get; set; } // 缁忛攢鍟嗗湪搴撲骇鍝両D - public static List<String> orderDetZaikuList = new List<String>(); + public static List<String> orderDetZaikuList{set;get;} // 浜у搧 ID public static String ESetId { get; set; } public static String idCheck { get; set; } @@ -69,6 +69,7 @@ // add by rentx 2021-3-10 public LexInventoryViewController() { + orderDetZaikuList = new List<String>(); consumableorderdetailsRecords = new List<ConsumableorderdetailsInfo>(); consumableorderdetailsRecordsview = new List<List<ConsumableorderdetailsInfo>>(); editAble = false; @@ -407,9 +408,11 @@ data.put('consumableorderdetailsRecords', consumableorderdetailsRecords); data.put('hasHos', hasHos); data.put('productLimtAndDate',proLimitAndDate); + data.put('productkucun',productkucun); res.status = 'Success'; res.code = 200; System.debug('res = ' + res); + System.debug('productkucun = ' + productkucun); return res; } @AuraEnabled @@ -528,15 +531,19 @@ Integer pageSizeLWC, Integer pageTokenLWC, String sortFieldLWC, - String sortOrderLWC + String sortOrderLWC, + Map<String, Date> productkucunLWC ) { try { System.debug('orderDetZaikuListLWC===>'+orderDetZaikuListLWC); + System.debug('productkucun===>'+productkucun); pageSize = pageSizeLWC; pageToken = pageTokenLWC; sortField = sortFieldLWC; sortOrder = sortOrderLWC; + productkucun = new Map<String, Date>(); orderDetZaikuList = new List<String>(); + productkucun = productkucunLWC; orderDetZaikuList = orderDetZaikuListLWC; sqlagencyProType = '%' + agencyProType + '%'; @@ -1051,6 +1058,7 @@ } // Data Bean + @TestVisible class ConsumableorderdetailsInfo implements Comparable { @AuraEnabled public Consumable_order_details2__c esd { get; set; } -- Gitblit v1.9.1