src/main/java/org/edgegallery/appstore/interfaces/order/facade/OrderServiceFacade.java
public ResponseEntity<Page<OrderDto>> queryOrders(String userId, String userName,
        QueryOrdersReqDto queryOrdersReqDto, String token) {
        Map<String, Object> queryOrderParams = new HashMap<>();
        if (!Consts.SUPER_ADMIN_NAME.equals(userName)) {
            queryOrderParams.put("userId", userId);
        }
        queryOrderParams.put("appId", queryOrdersReqDto.getAppId());
        queryOrderParams.put("orderNum", queryOrdersReqDto.getOrderNum());
        queryOrderParams.put("status", queryOrdersReqDto.getStatus());
        queryOrderParams.put("orderBeginTime", queryOrdersReqDto.getOrderTimeBegin());
        queryOrderParams.put("orderEndTime", queryOrdersReqDto.getOrderTimeEnd());
        queryOrderParams.put("queryCtrl", queryOrdersReqDto.getQueryCtrl());
        LOGGER.info("query order params: {}", queryOrderParams);

        return ResponseEntity.ok(new Page<>(orderService.queryOrders(queryOrderParams, token),
            queryOrdersReqDto.getQueryCtrl().getLimit(), queryOrdersReqDto.getQueryCtrl().getOffset(),
            orderService.getCountByCondition(queryOrderParams)));
    }
/**
     * query order list.
     *
     * @param userId user id
     * @param queryOrdersReqDto query condition
     * @return order list
     */
query order list.
@param userId user id
@param queryOrdersReqDto query condition
@return order list
query order list . @param userId user id @param queryOrdersReqDto query condition @return order list
public ResponseEntity<Page<OrderDto>> queryOrders(String userId, String userName,
        QueryOrdersReqDto queryOrdersReqDto, String token) {
        Map<String, Object> queryOrderParams = new HashMap<>();
        if (!Consts.SUPER_ADMIN_NAME.equals(userName)) {
            queryOrderParams.put("userId", userId);
        }
        queryOrderParams.put("appId", queryOrdersReqDto.getAppId());
        queryOrderParams.put("orderNum", queryOrdersReqDto.getOrderNum());
        queryOrderParams.put("status", queryOrdersReqDto.getStatus());
        queryOrderParams.put("orderBeginTime", queryOrdersReqDto.getOrderTimeBegin());
        queryOrderParams.put("orderEndTime", queryOrdersReqDto.getOrderTimeEnd());
        queryOrderParams.put("queryCtrl", queryOrdersReqDto.getQueryCtrl());
        LOGGER.info("query order params: {}", queryOrderParams);
        return ResponseEntity.ok(new Page<>(orderService.queryOrders(queryOrderParams, token),
            queryOrdersReqDto.getQueryCtrl().getLimit(), queryOrdersReqDto.getQueryCtrl().getOffset(),
            orderService.getCountByCondition(queryOrderParams)));
    }
public ResponseEntity < Page < OrderDto > > queryOrders ( String userId , String userName , QueryOrdersReqDto queryOrdersReqDto , String token ) { Map < String , Object > queryOrderParams = new HashMap < > ( ) ; if ( ! Consts . SUPER_ADMIN_NAME . equals ( userName ) ) { queryOrderParams . put ( "userId" , userId ) ; } queryOrderParams . put ( "appId" , queryOrdersReqDto . getAppId ( ) ) ; queryOrderParams . put ( "orderNum" , queryOrdersReqDto . getOrderNum ( ) ) ; queryOrderParams . put ( "status" , queryOrdersReqDto . getStatus ( ) ) ; queryOrderParams . put ( "orderBeginTime" , queryOrdersReqDto . getOrderTimeBegin ( ) ) ; queryOrderParams . put ( "orderEndTime" , queryOrdersReqDto . getOrderTimeEnd ( ) ) ; queryOrderParams . put ( "queryCtrl" , queryOrdersReqDto . getQueryCtrl ( ) ) ; LOGGER . info ( "query order params: {}" , queryOrderParams ) ; return ResponseEntity . ok ( new Page < > ( orderService . queryOrders ( queryOrderParams , token ) , queryOrdersReqDto . getQueryCtrl ( ) . getLimit ( ) , queryOrdersReqDto . getQueryCtrl ( ) . getOffset ( ) , orderService . getCountByCondition ( queryOrderParams ) ) ) ; }
query order list.
query order list .