luckyqiang
V2EX  ›  问与答

Java

  •  
  •   luckyqiang · Nov 15, 2018 · 871 views
    This topic created in 2736 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   ·   1142 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 18:12 · PVG 02:12 · LAX 11:12 · JFK 14:12
    ♥ Do have faith in what you're doing.