diff --git a/src/main/java/com/nis/domain/restful/NtcAttrTypeReport.java b/src/main/java/com/nis/domain/restful/NtcAttrTypeReport.java new file mode 100644 index 0000000..198e2dc --- /dev/null +++ b/src/main/java/com/nis/domain/restful/NtcAttrTypeReport.java @@ -0,0 +1,31 @@ +package com.nis.domain.restful; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.wordnik.swagger.annotations.ApiModelProperty; + +public class NtcAttrTypeReport extends NtcReportEntity{ + + private static final long serialVersionUID = -5609071907676757108L; + + @ApiModelProperty(value="性质", required=true) + protected Integer attrType ; + + protected String searchAttrType; + + public Integer getAttrType() { + return attrType; + } + + public void setAttrType(Integer attrType) { + this.attrType = attrType; + } + @JsonIgnore + public String getSearchAttrType() { + return searchAttrType; + } + + public void setSearchAttrType(String searchAttrType) { + this.searchAttrType = searchAttrType; + } + +} diff --git a/src/main/java/com/nis/domain/restful/NtcDestipCountryReport.java b/src/main/java/com/nis/domain/restful/NtcDestipCountryReport.java new file mode 100644 index 0000000..deb01f7 --- /dev/null +++ b/src/main/java/com/nis/domain/restful/NtcDestipCountryReport.java @@ -0,0 +1,25 @@ +package com.nis.domain.restful; + +import com.wordnik.swagger.annotations.ApiModelProperty; + + +public class NtcDestipCountryReport extends NtcReportEntity{ + + private static final long serialVersionUID = 7911364106357601141L; + @ApiModelProperty(value="所属国家", required=true) + protected String destCountry; + + /** + * @param destCountry the destCountry to set + */ + public void setDestCountry(String destCountry) { + this.destCountry = destCountry; + } + + /** + * @return the destCountry + */ + public String getDestCountry() { + return destCountry; + } +} diff --git a/src/main/java/com/nis/domain/restful/NtcEntranceReport.java b/src/main/java/com/nis/domain/restful/NtcEntranceReport.java new file mode 100644 index 0000000..f3d7cd6 --- /dev/null +++ b/src/main/java/com/nis/domain/restful/NtcEntranceReport.java @@ -0,0 +1,43 @@ +package com.nis.domain.restful; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.wordnik.swagger.annotations.ApiModelProperty; + +public class NtcEntranceReport extends NtcReportEntity { + + private static final long serialVersionUID = -3973713578165502900L; + + @ApiModelProperty(value = "局点(出入口)", required = true) + protected Integer entranceId; + + protected String searchEntrance; + + /** + * @return the entranceId + */ + public Integer getEntranceId() { + return entranceId; + } + + /** + * @param entranceId the entranceId to set + */ + public void setEntranceId(Integer entranceId) { + this.entranceId = entranceId; + } + + @JsonIgnore + /** + * @return the searchEntrance + */ + public String getSearchEntrance() { + return searchEntrance; + } + + /** + * @param searchEntrance the searchEntrance to set + */ + public void setSearchEntrance(String searchEntrance) { + this.searchEntrance = searchEntrance; + } +} diff --git a/src/main/java/com/nis/domain/restful/NtcLwhhReport.java b/src/main/java/com/nis/domain/restful/NtcLwhhReport.java new file mode 100644 index 0000000..e1fb938 --- /dev/null +++ b/src/main/java/com/nis/domain/restful/NtcLwhhReport.java @@ -0,0 +1,42 @@ +package com.nis.domain.restful; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.wordnik.swagger.annotations.ApiModelProperty; + +public class NtcLwhhReport extends NtcReportEntity{ + + private static final long serialVersionUID = -5980925900825684234L; + + @ApiModelProperty(value="性质", required=true) + protected Integer lwhh ; + + protected String searchLwhh; + + + /** + * @param lwhh the lwhh to set + */ + public void setLwhh(Integer lwhh) { + this.lwhh = lwhh; + } + /** + * @return the lwhh + */ + public Integer getLwhh() { + return lwhh; + } + /** + * @return the searchLwhh + */ + @JsonIgnore + public String getSearchLwhh() { + return searchLwhh; + } + + /** + * @param searchLwhh the searchLwhh to set + */ + public void setSearchLwhh(String searchLwhh) { + this.searchLwhh = searchLwhh; + } +} diff --git a/src/main/java/com/nis/domain/restful/NtcServiceReport.java b/src/main/java/com/nis/domain/restful/NtcServiceReport.java new file mode 100644 index 0000000..e92b0df --- /dev/null +++ b/src/main/java/com/nis/domain/restful/NtcServiceReport.java @@ -0,0 +1,8 @@ +package com.nis.domain.restful; + + +public class NtcServiceReport extends NtcReportEntity{ + + private static final long serialVersionUID = -1343092528265818679L; + +} diff --git a/src/main/java/com/nis/domain/restful/NtcSrcipDomesticReport.java b/src/main/java/com/nis/domain/restful/NtcSrcipDomesticReport.java new file mode 100644 index 0000000..6d4ad1a --- /dev/null +++ b/src/main/java/com/nis/domain/restful/NtcSrcipDomesticReport.java @@ -0,0 +1,41 @@ +package com.nis.domain.restful; + +import com.wordnik.swagger.annotations.ApiModelProperty; + + +public class NtcSrcipDomesticReport extends NtcReportEntity{ + + private static final long serialVersionUID = -2146157609572355782L; + @ApiModelProperty(value="所属省", required=true) + protected String srcProvince; + @ApiModelProperty(value="所属市", required=true) + protected String srcCity; + + /** + * @param srcProvince the srcProvince to set + */ + public void setSrcProvince(String srcProvince) { + this.srcProvince = srcProvince; + } + + /** + * @return the srcProvince + */ + public String getSrcProvince() { + return srcProvince; + } + + /** + * @param srcCity the srcCity to set + */ + public void setSrcCity(String srcCity) { + this.srcCity = srcCity; + } + + /** + * @return the srcCity + */ + public String getSrcCity() { + return srcCity; + } +} diff --git a/src/main/java/com/nis/domain/restful/NtcTagReport.java b/src/main/java/com/nis/domain/restful/NtcTagReport.java new file mode 100644 index 0000000..c163c3e --- /dev/null +++ b/src/main/java/com/nis/domain/restful/NtcTagReport.java @@ -0,0 +1,33 @@ +package com.nis.domain.restful; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.wordnik.swagger.annotations.ApiModelProperty; + +public class NtcTagReport extends NtcReportEntity{ + + + private static final long serialVersionUID = -3973713578165502900L; + + @ApiModelProperty(value="标签", required=true) + protected Integer tag; + + protected String searchTag; + + public Integer getTag() { + return tag; + } + + public void setTag(Integer tag) { + this.tag = tag; + } + + @JsonIgnore + public String getSearchTag() { + return searchTag; + } + + public void setSearchTag(String searchTag) { + this.searchTag = searchTag; + } + +} diff --git a/src/main/java/com/nis/web/controller/restful/LogController.java b/src/main/java/com/nis/web/controller/restful/LogController.java index dbfb891..7721c14 100644 --- a/src/main/java/com/nis/web/controller/restful/LogController.java +++ b/src/main/java/com/nis/web/controller/restful/LogController.java @@ -20,20 +20,27 @@ import com.nis.domain.LogEntity; import com.nis.domain.Page; import com.nis.domain.restful.DkBehaviorLog; import com.nis.domain.restful.NtcAppLog; +import com.nis.domain.restful.NtcAttrTypeReport; import com.nis.domain.restful.NtcDdosLog; +import com.nis.domain.restful.NtcDestipCountryReport; import com.nis.domain.restful.NtcDnsLog; +import com.nis.domain.restful.NtcEntranceReport; import com.nis.domain.restful.NtcFtpLog; import com.nis.domain.restful.NtcHttpLog; import com.nis.domain.restful.NtcIpLog; import com.nis.domain.restful.NtcIpsecLog; import com.nis.domain.restful.NtcL2tpLog; +import com.nis.domain.restful.NtcLwhhReport; import com.nis.domain.restful.NtcMailLog; import com.nis.domain.restful.NtcOpenvpnLog; import com.nis.domain.restful.NtcPptpLog; import com.nis.domain.restful.NtcPzReport; import com.nis.domain.restful.NtcReportEntity; +import com.nis.domain.restful.NtcServiceReport; +import com.nis.domain.restful.NtcSrcipDomesticReport; import com.nis.domain.restful.NtcSshLog; import com.nis.domain.restful.NtcSslLog; +import com.nis.domain.restful.NtcTagReport; import com.nis.restful.RestServiceException; import com.nis.util.Configurations; import com.nis.util.Constants; @@ -918,7 +925,7 @@ public class LogController extends BaseRestController { try { resetReportTime(ntcPzReport); //验证实时报表 - ntcReportService.queryReportConditionCheck(saveLogThread, start, ntcPzReport, NtcDdosLog.class, page); + ntcReportService.queryReportConditionCheck(saveLogThread, start, ntcPzReport, NtcPzReport.class, page); //验证serachCfgId ntcReportService.checkNumericCondition(saveLogThread,start,ntcPzReport.getSearchCfgId(),"searchCfgId"); String orderBy = ""; @@ -944,7 +951,261 @@ public class LogController extends BaseRestController { ntcPzReportPage, 0); } + @RequestMapping(value = "/ntcServiceReport", method = RequestMethod.GET) + @ApiOperation(value = "业务类型统计查询服务", httpMethod = "GET", notes = "业务类型统计查询服务,基于业务类型(service)维度聚合") + public Map ntcServiceReport(Page page, NtcServiceReport ntcServiceReport, Model model, HttpServletRequest request, + HttpServletResponse response) { + long start = System.currentTimeMillis(); + SaveRequestLogThread saveLogThread = super.saveRequestLog(servicesRequestLogService, Constants.OPACTION_GET, + request, null); + + Page reportPage = null; + try { + resetReportTime(ntcServiceReport); + ntcReportService.queryReportConditionCheck(saveLogThread, start, ntcServiceReport, NtcServiceReport.class, page); + String orderBy = ""; + if (null != page.getOrderBy() && !page.getOrderBy().equals("")) { + orderBy = Page.getOrderBySql(NtcServiceReport.class.getSimpleName(), page.getOrderBy()); + } else { + orderBy = "report_time"; + } + page.setOrderBy(orderBy); + reportPage = ntcReportService.findNtcServiceReport(new Page(request, response, NtcServiceReport.class), + ntcServiceReport); + } catch (Exception e) { + saveLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + logger.error(e.getMessage()); + if (!(e instanceof RestServiceException)) { + e = new RestServiceException(saveLogThread, System.currentTimeMillis() - start, "业务类型统计查询失败"); + } + throw ((RestServiceException) e); + } + + return serviceLogResponse(saveLogThread, System.currentTimeMillis() - start, request, "业务类型统计查询成功", + reportPage, 0); + } + + @RequestMapping(value = "/ntcTagReport", method = RequestMethod.GET) + @ApiOperation(value = "标签统计查询服务", httpMethod = "GET", notes = "标签统计查询服务,基于标签与业务类型(service)维度聚合") + public Map ntcTagReport(Page page, NtcTagReport ntcTagReport, Model model, HttpServletRequest request, + HttpServletResponse response) { + long start = System.currentTimeMillis(); + SaveRequestLogThread saveLogThread = super.saveRequestLog(servicesRequestLogService, Constants.OPACTION_GET, + request, null); + + Page reportPage = null; + try { + resetReportTime(ntcTagReport); + ntcReportService.queryReportConditionCheck(saveLogThread, start, ntcTagReport, NtcTagReport.class, page); + //验证serachTag + ntcReportService.checkNumericCondition(saveLogThread,start,ntcTagReport.getSearchTag(),"searchTag"); + String orderBy = ""; + if (null != page.getOrderBy() && !page.getOrderBy().equals("")) { + orderBy = Page.getOrderBySql(NtcTagReport.class.getSimpleName(), page.getOrderBy()); + } else { + orderBy = "report_time"; + } + page.setOrderBy(orderBy); + reportPage = ntcReportService.findNtcTagReport(new Page(request, response, NtcTagReport.class), + ntcTagReport); + } catch (Exception e) { + saveLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + logger.error(e.getMessage()); + if (!(e instanceof RestServiceException)) { + e = new RestServiceException(saveLogThread, System.currentTimeMillis() - start, "标签统计查询失败"); + } + throw ((RestServiceException) e); + } + + return serviceLogResponse(saveLogThread, System.currentTimeMillis() - start, request, "标签统计查询成功", + reportPage, 0); + } + @RequestMapping(value = "/ntcAttrTypeReport", method = RequestMethod.GET) + @ApiOperation(value = "性质统计查询服务", httpMethod = "GET", notes = "性质统计查询服务,基于性质与业务类型(service)维度聚合") + public Map ntcAttrTypeReport(Page page, NtcAttrTypeReport ntcAttrTypeReport, Model model, HttpServletRequest request, + HttpServletResponse response) { + long start = System.currentTimeMillis(); + SaveRequestLogThread saveLogThread = super.saveRequestLog(servicesRequestLogService, Constants.OPACTION_GET, + request, null); + + Page reportPage = null; + try { + resetReportTime(ntcAttrTypeReport); + ntcReportService.queryReportConditionCheck(saveLogThread, start, ntcAttrTypeReport, NtcAttrTypeReport.class, page); + //验证searchAttrType + ntcReportService.checkNumericCondition(saveLogThread,start,ntcAttrTypeReport.getSearchAttrType(),"searchAttrType"); + String orderBy = ""; + if (null != page.getOrderBy() && !page.getOrderBy().equals("")) { + orderBy = Page.getOrderBySql(NtcAttrTypeReport.class.getSimpleName(), page.getOrderBy()); + } else { + orderBy = "report_time"; + } + page.setOrderBy(orderBy); + reportPage = ntcReportService.findNtcAttrTypeReport(new Page(request, response, NtcAttrTypeReport.class), + ntcAttrTypeReport); + } catch (Exception e) { + saveLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + logger.error(e.getMessage()); + if (!(e instanceof RestServiceException)) { + e = new RestServiceException(saveLogThread, System.currentTimeMillis() - start, "性质统计查询失败"); + } + throw ((RestServiceException) e); + } + + return serviceLogResponse(saveLogThread, System.currentTimeMillis() - start, request, "性质统计查询成功", + reportPage, 0); + } + + @RequestMapping(value = "/ntcLwhhReport", method = RequestMethod.GET) + @ApiOperation(value = "来文函号统计查询服务", httpMethod = "GET", notes = "来文函号统计查询服务,基于来文函号与业务类型(service)维度聚合") + public Map ntcLwhhReport(Page page, NtcLwhhReport ntcLwhhReport, Model model, HttpServletRequest request, + HttpServletResponse response) { + long start = System.currentTimeMillis(); + SaveRequestLogThread saveLogThread = super.saveRequestLog(servicesRequestLogService, Constants.OPACTION_GET, + request, null); + + Page reportPage = null; + try { + resetReportTime(ntcLwhhReport); + //验证实时报表 + ntcReportService.queryReportConditionCheck(saveLogThread, start, ntcLwhhReport, NtcLwhhReport.class, page); + //验证serachCfgId + ntcReportService.checkNumericCondition(saveLogThread,start,ntcLwhhReport.getSearchLwhh(),"searchLwhh"); + String orderBy = ""; + if (null != page.getOrderBy() && !page.getOrderBy().equals("")) { + orderBy = Page.getOrderBySql(NtcLwhhReport.class.getSimpleName(), page.getOrderBy()); + } else { + orderBy = "report_time"; + } + page.setOrderBy(orderBy); + reportPage = ntcReportService.findNtcLwhhReport(new Page(request, response, NtcLwhhReport.class), + ntcLwhhReport); + } catch (Exception e) { + saveLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + logger.error(e.getMessage()); + if (!(e instanceof RestServiceException)) { + e = new RestServiceException(saveLogThread, System.currentTimeMillis() - start, "来文函号统计查询失败"); + } + throw ((RestServiceException) e); + } + + return serviceLogResponse(saveLogThread, System.currentTimeMillis() - start, request, "来文函号统计查询成功", + reportPage, 0); + } + + @RequestMapping(value = "/ntcSrcipDomesticReport", method = RequestMethod.GET) + @ApiOperation(value = "境内源IP统计查询服务", httpMethod = "GET", notes = "境内源IP统计查询服务,基于源IP所属省、市与业务类型(service)维度聚合") + public Map ntcSrcipDomesticReport(Page page, NtcSrcipDomesticReport ntcSrcipDomesticReport, Model model, HttpServletRequest request, + HttpServletResponse response) { + long start = System.currentTimeMillis(); + SaveRequestLogThread saveLogThread = super.saveRequestLog(servicesRequestLogService, Constants.OPACTION_GET, + request, null); + + Page reportPage = null; + try { + resetReportTime(ntcSrcipDomesticReport); + //验证实时报表 + ntcReportService.queryReportConditionCheck(saveLogThread, start, ntcSrcipDomesticReport, NtcSrcipDomesticReport.class, page); + String orderBy = ""; + if (null != page.getOrderBy() && !page.getOrderBy().equals("")) { + orderBy = Page.getOrderBySql(NtcSrcipDomesticReport.class.getSimpleName(), page.getOrderBy()); + } else { + orderBy = "report_time"; + } + page.setOrderBy(orderBy); + reportPage = ntcReportService.findNtcSrcipDomesticReport(new Page(request, response, NtcSrcipDomesticReport.class), + ntcSrcipDomesticReport); + } catch (Exception e) { + saveLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + logger.error(e.getMessage()); + if (!(e instanceof RestServiceException)) { + e = new RestServiceException(saveLogThread, System.currentTimeMillis() - start, "境内源IP统计查询失败"); + } + throw ((RestServiceException) e); + } + + return serviceLogResponse(saveLogThread, System.currentTimeMillis() - start, request, "境内源IP统计查询成功", + reportPage, 0); + } + + @RequestMapping(value = "/ntcDestipCountryReport", method = RequestMethod.GET) + @ApiOperation(value = "各国家目的IP统计查询服务", httpMethod = "GET", notes = "各国家目的IP统计查询服务,基于目的IP所属国家与业务类型(service)维度聚合") + public Map ntcDestipCountryReport(Page page, NtcDestipCountryReport ntcDestipCountryReport, Model model, HttpServletRequest request, + HttpServletResponse response) { + long start = System.currentTimeMillis(); + SaveRequestLogThread saveLogThread = super.saveRequestLog(servicesRequestLogService, Constants.OPACTION_GET, + request, null); + + Page reportPage = null; + try { + resetReportTime(ntcDestipCountryReport); + //验证实时报表 + ntcReportService.queryReportConditionCheck(saveLogThread, start, ntcDestipCountryReport, NtcDestipCountryReport.class, page); + String orderBy = ""; + if (null != page.getOrderBy() && !page.getOrderBy().equals("")) { + orderBy = Page.getOrderBySql(NtcDestipCountryReport.class.getSimpleName(), page.getOrderBy()); + } else { + orderBy = "report_time"; + } + page.setOrderBy(orderBy); + reportPage = ntcReportService.findNtcDestipCountryReport(new Page(request, response, NtcDestipCountryReport.class), + ntcDestipCountryReport); + } catch (Exception e) { + saveLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + logger.error(e.getMessage()); + if (!(e instanceof RestServiceException)) { + e = new RestServiceException(saveLogThread, System.currentTimeMillis() - start, "各国家目的IP统计查询失败"); + } + throw ((RestServiceException) e); + } + + return serviceLogResponse(saveLogThread, System.currentTimeMillis() - start, request, "各国家目的IP统计查询成功", + reportPage, 0); + } + + @RequestMapping(value = "/ntcEntranceReport", method = RequestMethod.GET) + @ApiOperation(value = "运营商局点统计查询服务", httpMethod = "GET", notes = "运营商局点统计查询服务,基于出入口与业务类型(service)维度聚合") + public Map ntcEntranceReport(Page page, NtcEntranceReport ntcEntranceReport, Model model, HttpServletRequest request, + HttpServletResponse response) { + long start = System.currentTimeMillis(); + SaveRequestLogThread saveLogThread = super.saveRequestLog(servicesRequestLogService, Constants.OPACTION_GET, + request, null); + + Page reportPage = null; + try { + resetReportTime(ntcEntranceReport); + ntcReportService.queryReportConditionCheck(saveLogThread, start, ntcEntranceReport, NtcEntranceReport.class, page); + //验证searchEntrance + ntcReportService.checkNumericCondition(saveLogThread,start,ntcEntranceReport.getSearchEntrance(),"searchEntrance"); + String orderBy = ""; + if (null != page.getOrderBy() && !page.getOrderBy().equals("")) { + orderBy = Page.getOrderBySql(NtcEntranceReport.class.getSimpleName(), page.getOrderBy()); + } else { + orderBy = "report_time"; + } + page.setOrderBy(orderBy); + reportPage = ntcReportService.findNtcEntranceReport(new Page(request, response, NtcEntranceReport.class), + ntcEntranceReport); + } catch (Exception e) { + saveLogThread.setExceptionInfo(e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + logger.error(e.getMessage()); + if (!(e instanceof RestServiceException)) { + e = new RestServiceException(saveLogThread, System.currentTimeMillis() - start, "运营商局点统计查询失败"); + } + throw ((RestServiceException) e); + } + + return serviceLogResponse(saveLogThread, System.currentTimeMillis() - start, request, "运营商局点统计查询成功", + reportPage, 0); + } /** * @Description: * @author (zdx) diff --git a/src/main/java/com/nis/web/dao/NtcReportDao.java b/src/main/java/com/nis/web/dao/NtcReportDao.java index ccf6481..4f95310 100644 --- a/src/main/java/com/nis/web/dao/NtcReportDao.java +++ b/src/main/java/com/nis/web/dao/NtcReportDao.java @@ -2,8 +2,14 @@ package com.nis.web.dao; import java.util.List; -import com.nis.domain.DfReportEntity; +import com.nis.domain.restful.NtcAttrTypeReport; +import com.nis.domain.restful.NtcDestipCountryReport; +import com.nis.domain.restful.NtcEntranceReport; +import com.nis.domain.restful.NtcLwhhReport; import com.nis.domain.restful.NtcPzReport; +import com.nis.domain.restful.NtcServiceReport; +import com.nis.domain.restful.NtcSrcipDomesticReport; +import com.nis.domain.restful.NtcTagReport; /** * @@ -16,5 +22,11 @@ import com.nis.domain.restful.NtcPzReport; @MyBatisDao public interface NtcReportDao extends CrudDao { List findNtcPzReport(NtcPzReport pz); - + List findNtcServiceReport(NtcServiceReport pz); + List findNtcTagReport(NtcTagReport pz); + List findNtcAttrTypeReport(NtcAttrTypeReport pz); + List findNtcLwhhReport(NtcLwhhReport pz); + List findNtcSrcipDomesticReport(NtcSrcipDomesticReport pz); + List findNtcDestipCountryReport(NtcDestipCountryReport pz); + List findNtcEntranceReport(NtcEntranceReport pz); } diff --git a/src/main/java/com/nis/web/dao/NtcReportDao.xml b/src/main/java/com/nis/web/dao/NtcReportDao.xml index 715e854..3ee6922 100644 --- a/src/main/java/com/nis/web/dao/NtcReportDao.xml +++ b/src/main/java/com/nis/web/dao/NtcReportDao.xml @@ -7,6 +7,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SERVICE,SUM,REPORT_TIME @@ -27,10 +70,10 @@ FROM NTC_PZ_REPORT - + - + = STR_TO_DATE(#{searchReportStartTime},'%Y-%m-%d %H:%i:%s')]]> @@ -55,6 +98,280 @@ - + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/java/com/nis/web/service/restful/NtcReportService.java b/src/main/java/com/nis/web/service/restful/NtcReportService.java index bea1546..447d377 100644 --- a/src/main/java/com/nis/web/service/restful/NtcReportService.java +++ b/src/main/java/com/nis/web/service/restful/NtcReportService.java @@ -9,7 +9,14 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.nis.domain.Page; +import com.nis.domain.restful.NtcAttrTypeReport; +import com.nis.domain.restful.NtcDestipCountryReport; +import com.nis.domain.restful.NtcEntranceReport; +import com.nis.domain.restful.NtcLwhhReport; import com.nis.domain.restful.NtcPzReport; +import com.nis.domain.restful.NtcServiceReport; +import com.nis.domain.restful.NtcSrcipDomesticReport; +import com.nis.domain.restful.NtcTagReport; import com.nis.web.dao.NtcReportDao; import com.nis.web.service.BaseLogService; @@ -49,5 +56,40 @@ public class NtcReportService extends BaseLogService { return null; } - + + public Page findNtcServiceReport(Page page, NtcServiceReport entity) + throws Exception { + page.setList(dao.findNtcServiceReport(entity)); + return page; + } + public Page findNtcTagReport(Page page, NtcTagReport entity) + throws Exception { + page.setList(dao.findNtcTagReport(entity)); + return page; + } + public Page findNtcAttrTypeReport(Page page, NtcAttrTypeReport entity) + throws Exception { + page.setList(dao.findNtcAttrTypeReport(entity)); + return page; + } + public Page findNtcLwhhReport(Page page, NtcLwhhReport entity) + throws Exception { + page.setList(dao.findNtcLwhhReport(entity)); + return page; + } + public Page findNtcSrcipDomesticReport(Page page, NtcSrcipDomesticReport entity) + throws Exception { + page.setList(dao.findNtcSrcipDomesticReport(entity)); + return page; + } + public Page findNtcDestipCountryReport(Page page, NtcDestipCountryReport entity) + throws Exception { + page.setList(dao.findNtcDestipCountryReport(entity)); + return page; + } + public Page findNtcEntranceReport(Page page, NtcEntranceReport entity) + throws Exception { + page.setList(dao.findNtcEntranceReport(entity)); + return page; + } }