高章伟
2023-03-02 e3c02c03dd2de442bbced87236f60a13a1cd154e
force-app/main/default/classes/PrintConsumblePDFController.cls
@@ -122,7 +122,14 @@
                nowRightAsstModelNo = '';
            }
            nameStringArray = new List<String>();
            repeatCount = (nowName.length() / nameMax) + ( Math.mod( nowName.length(), nameMax) > 0 ? 1 : 0);
            // 20220824 ljh SWAG-CHKAMM update start
            // repeatCount = (nowName.length() / nameMax) + ( Math.mod( nowName.length(), nameMax) > 0 ? 1 : 0);
            if(String.isBlank(nowName)){
                repeatCount = 1;
            }else{
                repeatCount = (nowName.length() / nameMax) + ( Math.mod( nowName.length(), nameMax) > 0 ? 1 : 0);
            }
            // 20220824 ljh SWAG-CHKAMM update end
            //ApexPages.addmessage(new ApexPages.message(ApexPages.severity.WARNING, 'repeatCount!' + repeatCount));
            // 生产企业 注释原代码
            // nowCompany = itemsOrg[i].Consumable_Product__r.Product2__r.ProduceCompany_F__c;