package com.dianping.cat.report.task.alert.summary;

import com.dianping.cat.home.alert.summary.entity.AlertSummary;

public class AlertSummaryManager {

	public void insert(AlertSummary alertSummary) {
	   
   }

}

@@ -46,16 +46,131 @@
 mmary;%0A%0A
+import org.unidal.dal.jdbc.DalException;%0Aimport org.unidal.lookup.annotation.Inject;%0A%0Aimport com.dianping.cat.Cat;%0A
 import c
@@ -194,28 +194,72 @@
 ome.
+d
 al
-ert.summary.entity
+.report.AlertSummary;%0Aimport com.dianping.cat.home.dal.report
 .Ale
@@ -267,16 +267,19 @@
 tSummary
+Dao
 ;%0A%0Apubli
@@ -314,64 +314,517 @@
 %7B%0A%0A%09
-public void insert(AlertSummary alertSummary) %7B%0A%09   %0A   
+@Inject%0A%09private AlertSummaryDao m_alertSummaryDao;%0A%0A%09public void insert(com.dianping.cat.home.alert.summary.entity.AlertSummary alertSummary) %7B%0A%09%09AlertSummary summary = new AlertSummary();%0A%09%09String content = alertSummary.toString();%0A%0A%09%09summary.setDomain(alertSummary.getDomain());%0A%09%09summary.setAlertTime(alertSummary.getAlertDate());%0A%09%09summary.setContent(content);%0A%0A%09%09try %7B%0A%09%09%09m_alertSummaryDao.insert(summary);%0A%09%09%7D catch (DalException e) %7B%0A%09%09%09Cat.logError(%22insert alert summary error: %22 + content, e);%0A%09%09%7D%0A%09
 %7D%0A%0A%7D

add AlertSummaryManager