src/main/java/org/edgegallery/appstore/infrastructure/persistence/apackage/PushablePackageRepository.java
public Page<PushablePackageDto> queryAllPushablePackagesV2(int limit, int offset, String appName, String sortType,
        String sortItem, String shareType) {
        Map<String, Object> params = new HashMap<>();
        params.put("limit", limit);
        params.put("offset", offset);
        params.put("appName", appName);
        if ("push".equals(shareType)) {
            params.put(LATEST_PUSH_TIME, LATEST_PUSH_TIME);
        } else {
            params.put(CREATE_TIME, CREATE_TIME);
        }
        params.put("sortItem", sortItem);
        params.put("sortType", sortType);
        long total = pushablePackageMapper.getAllPushablePackagesCount(params);
        List<PushablePackageAndAppVo> apps = pushablePackageMapper.getAllPushablePackagesV2(params);
        List<PushablePackageDto> packages = new ArrayList<>();
        apps.forEach(app -> packages.add(new PushablePackageDto(app, context.atpReportUrl)));
        return new Page<>(packages, limit, offset, total);
    }
/**
     * query all of the pushable packages.
     *
     * @return pushable packages list
     */
query all of the pushable packages.
@return pushable packages list
query all of the pushable packages . @return pushable packages list
public Page<PushablePackageDto> queryAllPushablePackagesV2(int limit, int offset, String appName, String sortType,
        String sortItem, String shareType) {
        Map<String, Object> params = new HashMap<>();
        params.put("limit", limit);
        params.put("offset", offset);
        params.put("appName", appName);
        if ("push".equals(shareType)) {
            params.put(LATEST_PUSH_TIME, LATEST_PUSH_TIME);
        } else {
            params.put(CREATE_TIME, CREATE_TIME);
        }
        params.put("sortItem", sortItem);
        params.put("sortType", sortType);
        long total = pushablePackageMapper.getAllPushablePackagesCount(params);
        List<PushablePackageAndAppVo> apps = pushablePackageMapper.getAllPushablePackagesV2(params);
        List<PushablePackageDto> packages = new ArrayList<>();
        apps.forEach(app -> packages.add(new PushablePackageDto(app, context.atpReportUrl)));
        return new Page<>(packages, limit, offset, total);
    }
public Page < PushablePackageDto > queryAllPushablePackagesV2 ( int limit , int offset , String appName , String sortType , String sortItem , String shareType ) { Map < String , Object > params = new HashMap < > ( ) ; params . put ( "limit" , limit ) ; params . put ( "offset" , offset ) ; params . put ( "appName" , appName ) ; if ( "push" . equals ( shareType ) ) { params . put ( LATEST_PUSH_TIME , LATEST_PUSH_TIME ) ; } else { params . put ( CREATE_TIME , CREATE_TIME ) ; } params . put ( "sortItem" , sortItem ) ; params . put ( "sortType" , sortType ) ; long total = pushablePackageMapper . getAllPushablePackagesCount ( params ) ; List < PushablePackageAndAppVo > apps = pushablePackageMapper . getAllPushablePackagesV2 ( params ) ; List < PushablePackageDto > packages = new ArrayList < > ( ) ; apps . forEach ( app -> packages . add ( new PushablePackageDto ( app , context . atpReportUrl ) ) ) ; return new Page < > ( packages , limit , offset , total ) ; }
query all of the pushable packages.
query all of the pushable packages .