public List<Record> getStoreDetaiInfo(
     String category_id, int saleType, String storeId, String start_time, String end_time) {
   int dayCount = FormatUtils.getDayCount(start_time, end_time);
   List<Record> list2 =
       storeAnalysis.getStoreDetaiInfo(category_id, storeId, saleType, start_time, end_time);
   List<Record> list = new ArrayList<Record>();
   for (int i = dayCount; i > 0; i--) {
     String time = FormatUtils.getDayTime(-i, end_time);
     boolean flag = false;
     if (list2 != null) {
       for (Record r : list2) {
         if (r.get("day").toString().equals(time)) {
           list.add(r);
           flag = true;
         }
       }
     }
     if (!flag) {
       Record r2 = new Record();
       r2.set("day", time);
       r2.set("storeId", storeId);
       r2.set("avg_price", 0);
       r2.set("total", 0);
       list.add(r2);
     }
   }
   return list;
 }
 public Map<String, List<Record>> getStoreSaleduibi(
     int saleType, String[] storeName, String[] storeIdList, String start_time, String end_time) {
   Map<String, List<Record>> map = new HashMap<String, List<Record>>();
   int dayCount = FormatUtils.getDayCount(start_time, end_time);
   List<Record> list2 =
       storeAnalysis.getStoreSaleduibi(saleType, storeIdList, start_time, end_time);
   for (int j = 0; j < storeIdList.length; j++) {
     List<Record> list = new ArrayList<Record>();
     for (int i = dayCount; i > 0; i--) {
       String time = FormatUtils.getDayTime(-i, end_time);
       boolean flag = false;
       if (list2 != null) {
         for (Record r : list2) {
           if (r.get("day").toString().equals(time) && r.get("store_id").equals(storeIdList[j])) {
             list.add(r);
             flag = true;
           }
         }
       }
       if (!flag) {
         Record r2 = new Record();
         r2.set("day", time);
         r2.set("store_id", storeIdList[j]);
         r2.set("store_name", storeName[j]);
         r2.set("total", 0);
         list.add(r2);
       }
     }
     map.put(storeName[j] + "(" + storeIdList[j] + ")", list);
   }
   return map;
 }