From b5c5eb130ca0848124f9d136af4be142ad5aac07 Mon Sep 17 00:00:00 2001 From: binxie <137736985@qq.com> Date: 星期一, 26 六月 2023 14:42:02 +0800 Subject: [PATCH] backup0626 --- force-app/main/default/classes/LexOutboundorderImportController.cls | 17 +++++++++-------- 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/force-app/main/default/classes/LexOutboundorderImportController.cls b/force-app/main/default/classes/LexOutboundorderImportController.cls index aad8163..a1f00f6 100644 --- a/force-app/main/default/classes/LexOutboundorderImportController.cls +++ b/force-app/main/default/classes/LexOutboundorderImportController.cls @@ -50,7 +50,6 @@ res.status = 'Success'; res.code = 200; res.msg = ''; - System.debug('res:' + res); return res; } @@ -103,7 +102,7 @@ barcodePieceMap.put(csvRecordData[6], Integer.valueOf(csvRecordData[7])); } } - String[] csvRecordDataStr = new String[13]; + String[] csvRecordDataStr = new List<String>(13); for (Integer j = 0; j < csvRecordData.size(); j++) { csvRecordDataStr[j] = csvRecordData[j]; } @@ -191,8 +190,8 @@ data.put('saveFLGbln', saveFLGbln); data.put('csvRecordStr', csvRecordStr); data.put('barcodeList', barcodeList); - data.put('secondAgencyMap', secondAgencyMap); - data.put('hospitalSysMap', hospitalSysMap); + data.put('secondAgencyMap',secondAgencyMap); + data.put('hospitalSysMap',hospitalSysMap); res.status = 'Success'; res.code = 200; res.msg = errorMsg; @@ -588,7 +587,7 @@ res.entity = data; csvRecordStr = csvRecordStrLwc; - orderRecords = (List<ConsumableorderdetailsInfo>) JSON.deserialize(orderRecordsLwc, List<ConsumableorderdetailsInfo>.class); + orderRecords = (List<ConsumableorderdetailsInfo>)JSON.deserialize(orderRecordsLwc, List<ConsumableorderdetailsInfo>.class); System.debug('orderRecords = ' + orderRecords); sqlagencyProType = sqlagencyProTypeLwc; userWorkLocation = userWorkLocationLwc; @@ -754,7 +753,9 @@ string[] csvRecordData = csvRecordStr[i]; if (orderdetMap.containsKey(csvRecordData[0] + csvRecordData[12] + csvRecordData[9])) { orderdetMap.put( - csvRecordData[0] + csvRecordData[12] + csvRecordData[9], + csvRecordData[0] + + csvRecordData[12] + + csvRecordData[9], orderdetMap.get(csvRecordData[0] + csvRecordData[12] + csvRecordData[9]) + Decimal.valueOf(csvRecordData[7]) ); continue; @@ -785,7 +786,7 @@ // ApexPages.addMessages(e); // return null; errorMsg += e.getMessage() + ' ' + e.getLineNumber() + ';'; - System.debug('orderdetRecords = null ' + e.getLineNumber()); + System.debug('orderdetRecords = null ' + e.getLineNumber()); return null; } } @@ -863,7 +864,7 @@ return null; } } - @TestVisible + class ConsumableorderdetailsInfo implements Comparable { @AuraEnabled public Consumable_order__c order { get; set; } -- Gitblit v1.9.1