19626
2023-10-31 fd9df05c48c09b4d7f39a3b401882bda226dedea
force-app/main/default/classes/AssetMaintainController.cls
@@ -1,7 +1,7 @@
public with sharing class AssetMaintainController {
    public static Asset StaticAssetQuertResult;
    // 按钮区域
    public String assertQueryCondition {get; private set;}
    public String assertQueryCondition {get;set;}
    public Boolean allBlueFlag {get; private set;}  // 查看全部保有设备蓝色按钮Flag
    public Boolean consumableBlueFlag {get; private set;}  // 查看在库的保有设备蓝色按钮Flag
    public Boolean lendingBlueFlag {get; private set;}  // 查看出借中保有设备蓝色按钮Flag
@@ -1197,11 +1197,24 @@
    }
    private void fillShowList(Integer k){
        // 20231021  chenjingwu lightning改造  Start
        if(!Test.isRunningTest() && allAssetInfoList.size() == 0 && assetFromSearchList.size() > 0 ){
            allAssetInfoList.addAll(assetFromSearchList);
            assetFromSearchList.clear();
        }
        // 20231021  chenjingwu lightning改造  End
        totalNum = allAssetInfoList.size();
        totalPage = (totalNum / selctRecordNum) + (Math.mod(totalNum, selctRecordNum) > 0 ? 1 : 0);  // 总页
        allAssetInfoShowList = new List<AssetInfo>();
        Integer a = (k-1)*selctRecordNum;
        Integer b = Math.min(k*selctRecordNum, allAssetInfoList.size());
        System.debug('allAssetInfoList.size=>' + allAssetInfoList.size());
        System.debug('a=>' + a);
        System.debug('b=>' + b);
        System.debug('k=>' + k);
        System.debug('totalNum=>' + totalNum);
        System.debug('totalPage=>' + totalPage);
        System.debug('selctRecordNum=>' + selctRecordNum);
        for (Integer i = a ; i < b ; i++) {
            allAssetInfoShowList.add(allAssetInfoList[i]);
        }
@@ -1605,6 +1618,7 @@
                    fieldValue = '';
                }
                Boolean meet = false;
                System.debug(fieldValueInRecord + operator + String.valueOf(fieldValue));
                if (operator == '==' && fieldValueInRecord == String.valueOf(fieldValue)) {
                    meet = true;
                }