Exemple #1
0
 public void pictureFile() {
   List<Chart> list = chartDao.pictureFile(new HashMap());
   if (null != list && list.size() > 0) {
     System.out.println("图片文件记录");
     int i = 0;
     for (Chart chart : list) {
       System.out.println("Name:" + chart.getName());
       System.out.println("Total:" + chart.getTotal());
       i++;
     }
   }
 }
Exemple #2
0
 public void articleDoc() {
   List<Chart> list = chartDao.articleDoc(new HashMap());
   if (null != list && list.size() > 0) {
     System.out.println("下载记录");
     int i = 0;
     for (Chart chart : list) {
       System.out.println("Name:" + chart.getName());
       System.out.println("Total:" + chart.getTotal());
       i++;
     }
   }
 }
Exemple #3
0
 public void find() {
   HashMap map = new HashMap();
   map.put("limit", 10);
   map.put("tableName", "TBL_ARTICLE");
   List<Chart> list = chartDao.find(map);
   if (null != list && list.size() > 0) {
     for (Chart chart : list) {
       System.out.println("TableName:" + chart.getTableName());
       System.out.println("Name:" + chart.getName());
       System.out.println("Total:" + chart.getTotal());
     }
   }
 }
Exemple #4
0
 @Test
 public void insert() {
   String tableName = "TBL_PIC_FILE";
   List<Chart> list = chartDao.pictureFile(new HashMap());
   if (null != list && list.size() > 0) {
     System.out.println("图片文件记录");
     int i = 0;
     for (Chart chart : list) {
       chart.setChartType("DAY");
       chart.setTableName(tableName);
       int result = chartDao.insert(chart);
       if (result > 0) {
         System.out.println(">> 添加" + tableName + "数据记录成功!" + result);
       }
       i++;
     }
   }
 }