zoukankan      html  css  js  c++  java
  • 接口&调用接口

    接口:

        /**
         * 分页查询
         * @param request
         * @param pageable
         * @return
         */
        @GetMapping("/query-baseProductBuyPrice")
        public ResponseEntity<Page<BaseProductBuyPriceDto>> queryBaseProductBuyPricePageDatas(HttpServletRequest request, Pageable pageable);

    实现类:

        @Override
        public ResponseEntity<Page<BaseProductBuyPriceDto>> queryBaseProductBuyPricePageDatas(HttpServletRequest request, Pageable pageable) {
            try{
                Map<String, Object> searchParams = new HashMap<String, Object>();
                String ts = request.getParameter("ts");
                if(StringUtils.isNotBlank(ts)){
                    Date date = new Date( Long.parseLong(ts));
                    searchParams.put("GTE_1~ts", date);
                    searchParams.put("GTE_1~provider.ts", date);
                }
                searchParams.put("NOTEQ_isEnable", 0);
                Page<BaseProductBuyPriceDto> fabSchemeDtoPages = baseProductBuyPriceService.findAll(searchParams,pageable,true);
                return HeaderUtil.createInfoResponse(null, fabSchemeDtoPages);
            }catch (Exception e){
                return HeaderUtil.createErrorResponse(e.getMessage(), null);
            }
        }

    调用接口:

    http://10.10.10.10/occ-mdm/api/mdm/BaseProductBuyPrice/query-baseProductBuyPrice?ts=1568610029000&page=0&size=300
    

      

  • 相关阅读:
    nyoj 42 一笔画 欧拉通路
    布丰投针实验1
    poj 1328 贪心
    uva 10026 贪心
    zoj 1375 贪心
    uva 103 经典DAG变形
    uva 11088 暴力枚举子集/状压dp
    jsp分页功能
    static静态变量的理解
    Vector & ArrayList 的主要区别
  • 原文地址:https://www.cnblogs.com/tangshengwei/p/11528436.html
Copyright © 2011-2022 走看看