19626
2023-10-23 1727a4f4d02e429475608e60f142a63bc24127bc
force-app/main/default/classes/CheckAllOlympusAssetController.cls
@@ -424,6 +424,7 @@
        if (beipinCunFangDi=='广州 备品中心' || beipinCunFangDi=='北京 备品中心' || beipinCunFangDi=='上海 备品中心') {
            angecylookrole =true;
        }
        System.debug('angecylookrole===' + angecylookrole);
        setAssetFieldSetInfo();//20210628 1650 you 挪个位置
        if (UserInfo.getProfileId() == System.Label.ProfileId_SystemAdmin || System.Label.ProfileId_EquCenAdmin.contains(UserInfo.getProfileId())) {
            internalAssetLocationLogin = FixtureUtil.bieCunFangDiOpsMap.get('备品管理中心')[0].getValue();  // SelectOption('All', '--全部--')
@@ -758,6 +759,7 @@
        }
        System.debug('oldAssetInfoList===' + oldAssetInfoList);
        checkedAssetInfoNum = oldAssetInfoList.size();
        System.debug('oldAssetInfoListSize===' + oldAssetInfoList.size());
        allAssetInfoList.clear();
        totalFixDataNum = oldAssetInfoList.size(); // 打勾固定数据数量
@@ -968,6 +970,7 @@
        }
        System.debug('currPage===' + currPage);
        System.debug('totalPage===' + totalPage);
        System.debug('selctRecordNum===' + selctRecordNum);
        if (selRecordOption != NONE) {
            // selRecordOption = String.valueOf(Integer.valueOf(selRecordOption) + checkedAssetInfoNum);
            if (currPage == 1) {
@@ -977,7 +980,12 @@
                soqlAsset += ' limit ' + selRecordOption + ' offset ' + String.valueOf((currPage - 1) * selctRecordNum - checkedAssetInfoNum);
                System.debug('Last page;');
            } else {
                soqlAsset += ' limit ' + selRecordOption + ' offset ' + String.valueOf((currPage - 1) * selctRecordNum - checkedAssetInfoNum);
                if(oldAssetInfoList.size() > 10 && currPage == 2){
                    soqlAsset += ' limit ' + selRecordOption + ' offset ' + String.valueOf((currPage) * selctRecordNum - checkedAssetInfoNum);
                }else{
                    soqlAsset += ' limit ' + selRecordOption + ' offset ' + String.valueOf((currPage - 1) * selctRecordNum - checkedAssetInfoNum);
                }
            }
        }
        // 最终检索结果