public List<Record> getStoreSaleTotal( int seqType, String category_id, String store_name, String[] channel, int pageNumber, int saleType, String start_time, String end_time) { long record_total = storeAnalysis.getStoreTotalPageSize(category_id, store_name, channel, start_time, end_time); List<Record> list = storeAnalysis.getStoreSaleTotal( seqType, category_id, store_name, channel, pageNumber, saleType, start_time, end_time); if (list.size() > 0) { list.get(0).set("total_page", Math.ceil(record_total / (AllSaleGood.PAGESIZE * 1.0))); for (Record record : list) { int sale_flag = Double.valueOf(record.get("goods_sales_flag").toString()).intValue(); if (sale_flag >= 0) { record.set("icon1", "up"); } else { record.set("goods_sales_flag", -sale_flag); record.set("icon1", "down"); } } } return list; }