luckyqiang
V2EX  ›  问与答

Java

  •  
  •   luckyqiang · Nov 15, 2018 · 915 views
    This topic created in 2764 days ago, the information mentioned may be changed or developed.
    请教各位 V2ER 一下,这段 java 代码有问题吗?

    public void queryProductInfo(ProductReq req) {
    int group = 27; //分成 27 组
    List<String> productList = req.getProductList();
    for (int i = 0; i < group; i++) {
    List<String> subList = productList.subList(i * 100, (i + 1) * 100);
    req.setProductList(subList);
    productDAO.queryProductInfo(req)
    }
    }
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3432 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 10:43 · PVG 18:43 · LAX 03:43 · JFK 06:43
    ♥ Do have faith in what you're doing.