src/main/java/org/edgegallery/appstore/infrastructure/persistence/apackage/PushablePackageRepository.java
public List<PushablePackageDto> queryAllPushablePackages(String appName, String sortType,
        String sortItem, String shareType) {
        Map<String, Object> params = new HashMap<>();
        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);
        List<PushablePackageAndAppVo> apps = pushablePackageMapper.getAllPushablePackages(params);
        List<PushablePackageDto> packages = new ArrayList<>();
        apps.forEach(app -> packages.add(new PushablePackageDto(app, context.atpReportUrl)));
        return packages;
    }
/**
     * 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 List<PushablePackageDto> queryAllPushablePackages(String appName, String sortType,
        String sortItem, String shareType) {
        Map<String, Object> params = new HashMap<>();
        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);
        List<PushablePackageAndAppVo> apps = pushablePackageMapper.getAllPushablePackages(params);
        List<PushablePackageDto> packages = new ArrayList<>();
        apps.forEach(app -> packages.add(new PushablePackageDto(app, context.atpReportUrl)));
        return packages;
    }
public List < PushablePackageDto > queryAllPushablePackages ( String appName , String sortType , String sortItem , String shareType ) { Map < String , Object > params = new HashMap < > ( ) ; 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 ) ; List < PushablePackageAndAppVo > apps = pushablePackageMapper . getAllPushablePackages ( params ) ; List < PushablePackageDto > packages = new ArrayList < > ( ) ; apps . forEach ( app -> packages . add ( new PushablePackageDto ( app , context . atpReportUrl ) ) ) ; return packages ; }
query all of the pushable packages.
query all of the pushable packages .