luckyqiang
V2EX  ›  问与答

Java

  •  
  •   luckyqiang · Nov 15, 2018 · 878 views
    This topic created in 2738 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   ·   3064 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 09:05 · PVG 17:05 · LAX 02:05 · JFK 05:05
    ♥ Do have faith in what you're doing.