class IndustryToStocksMapper extends AbstractMapper<Industry, List<Stock>> {

    /**
     * @param strategy 超时等待策略（null则设置为默认等待策略）
     */
    public IndustryToStocksMapper(TimeWaitingStrategy strategy) {
        super(strategy);
    }

    public IndustryToStocksMapper() {
        this(null);
    }

    @Override
    public List<Stock> mapLogic(Industry industry) throws Exception {<FILL_FUNCTION_BODY>}


    private List<Stock> parserJson(JsonNode node) {

        List<Stock> stocks = new ArrayList<>();

        JsonNode data = node.get("data");
        for (JsonNode jsonNode : data.get("list")) {
            Stock stock = new Stock(jsonNode.get("name").asText(), jsonNode.get("symbol").asText());
            stocks.add(stock);
        }
        return stocks;

    }


}


        if(industry == null || industry == EmptyObject.emptyIndustry) return new ArrayList<>();

        String target = URLMapper.INDUSTRY_JSON.toString();
        RequestParaBuilder builder = new RequestParaBuilder(target);
        builder.addParameter("page", 1)
                .addParameter("size", 500)
                .addParameter("order", "desc")
                .addParameter("order_by", "percent")
                .addParameter("exchange", "CN")
                .addParameter("market", "CN");
        String info = industry.getIndustryInfo();
        if (info.startsWith("#")) info = info.substring(1);
        for (String s : info.split("&")) {
            String[] keyAndVal = s.split("=");
            if ("level2code".equalsIgnoreCase(keyAndVal[0])) {
                builder.addParameter("ind_code", keyAndVal[1]);
            }
        }
        builder.addParameter("_", System.currentTimeMillis());
        URL url = new URL(builder.build());

        String json = request(url);
        JsonNode jsonNode = mapper.readTree(json);

        return parserJson(jsonNode);

    
<methods>public void <init>(org.decaywood.timeWaitingStrategy.TimeWaitingStrategy) ,public void <init>(org.decaywood.timeWaitingStrategy.TimeWaitingStrategy, java.lang.String) ,public List<org.decaywood.entity.Stock> apply(org.decaywood.entity.Industry) <variables>