Merge branch 'develop' of http://10.0.6.99/common/maat_service.git into develop

This commit is contained in:
zhangdongxu
2018-02-28 10:15:49 +08:00
180 changed files with 44 additions and 23038 deletions

View File

@@ -1815,7 +1815,9 @@ public class ConfigSourcesService extends BaseService {
if (null != compileList && compileList.size() > 0) {
for (ConfigCompile config : compileList) {
String msg = checkCompileOptForUpdate(config);
if (config.getOpTime()==null) {
config.setOpTime(opTime);
}
if (!msg.equals("ok")) {
thread.setExceptionInfo(msg + sb.toString());
throw new RestServiceException(thread, System.currentTimeMillis() - start, msg + sb.toString(),

View File

@@ -1,57 +0,0 @@
package com.nis.web.service.restful;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.nis.domain.Page;
import com.nis.domain.restful.DfDjNestLog;
import com.nis.restful.RestBusinessCode;
import com.nis.restful.RestServiceException;
import com.nis.util.StringUtil;
import com.nis.web.dao.DfDjNestLogDao;
import com.nis.web.service.BaseLogService;
import com.nis.web.service.SaveRequestLogThread;
/**
* @ClassName: DfDjNestLogService
* @Description: TODO(这里用一句话描述这个类的作用)
* @author (zbc)
* @date 2016年11月11日 下午4:40:00
* @version V1.0
*/
@Service
public class DfDjNestLogService extends BaseLogService {
protected final Logger logger = Logger.getLogger(this.getClass());
@Autowired
protected DfDjNestLogDao dao;
public Page<DfDjNestLog> findDfDjNestLogPage(Page<DfDjNestLog> page, DfDjNestLog entity) {
entity.setPage(page);
page.setList(dao.findDfDjNestLogPage(entity));
return page;
}
public void queryConditionCheck(SaveRequestLogThread thread, long start, DfDjNestLog entity, Class<DfDjNestLog> clazz, Page<?> page) {
if(StringUtil.isBlank(entity.getSearchLayerId())) {
throw new RestServiceException(thread, System.currentTimeMillis() - start, "searchLayerId查询参数不能为空",
RestBusinessCode.missing_args.getValue());
}
try {
checkCloumnIsExist(thread,start,clazz, page);
} catch (RestServiceException e) {
logger.error(e);
throw e;
} catch (Exception e) {
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
logger.error(e);
throw new RestServiceException(thread, System.currentTimeMillis() - start, "请求参数错误");
}
}
}

View File

@@ -1,144 +0,0 @@
package com.nis.web.service.restful;
import java.sql.SQLException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.nis.domain.Page;
import com.nis.domain.restful.DfJitAffairDestReport;
import com.nis.domain.restful.DfJitAffairSrcReport;
import com.nis.domain.restful.DfJitFlDestReport;
import com.nis.domain.restful.DfJitFlSrcReport;
import com.nis.domain.restful.DfJitGuaranteeDestReport;
import com.nis.domain.restful.DfJitGuaranteeSrcReport;
import com.nis.domain.restful.DfJitIdDestReport;
import com.nis.domain.restful.DfJitIdSrcReport;
import com.nis.domain.restful.DfJitMissionDestReport;
import com.nis.domain.restful.DfJitMissionSrcReport;
import com.nis.domain.restful.DfJitTagDestReport;
import com.nis.domain.restful.DfJitTagSrcReport;
import com.nis.restful.RestBusinessCode;
import com.nis.restful.RestServiceException;
import com.nis.util.StringUtil;
import com.nis.web.dao.DfJitLogSearchDao;
import com.nis.web.service.BaseLogService;
import com.nis.web.service.SaveRequestLogThread;
@Service
public class DfJitLogSearchService extends BaseLogService {
@Autowired
private DfJitLogSearchDao dfJitLogSearchDao;
public Page<DfJitFlSrcReport> findDfJitFlSrcReport(Page<DfJitFlSrcReport> page, DfJitFlSrcReport entity)
throws SQLException {
entity.setPage(page);
page.setList(dfJitLogSearchDao.findDfJitFlSrcReport(entity));
return page;
}
public Page<DfJitFlDestReport> findDfJitFlDestReport(Page<DfJitFlDestReport> page, DfJitFlDestReport entity)
throws SQLException {
entity.setPage(page);
page.setList(dfJitLogSearchDao.findDfJitFlDestReport(entity));
return page;
}
public Page<DfJitAffairSrcReport> findDfJitAffairSrcReport(Page<DfJitAffairSrcReport> page,
DfJitAffairSrcReport entity) throws SQLException {
entity.setPage(page);
page.setList(dfJitLogSearchDao.findDfJitAffairSrcReport(entity));
return page;
}
public Page<DfJitAffairDestReport> findDfJitAffairDestReport(Page<DfJitAffairDestReport> page,
DfJitAffairDestReport entity) throws SQLException {
entity.setPage(page);
page.setList(dfJitLogSearchDao.findDfJitAffairDestReport(entity));
return page;
}
public Page<DfJitMissionSrcReport> findDfJitMissionSrcReport(Page<DfJitMissionSrcReport> page,
DfJitMissionSrcReport entity) throws SQLException {
entity.setPage(page);
page.setList(dfJitLogSearchDao.findDfJitMissionSrcReport(entity));
return page;
}
public Page<DfJitMissionDestReport> findDfJitMissionDestReport(Page<DfJitMissionDestReport> page,
DfJitMissionDestReport entity) throws SQLException {
entity.setPage(page);
page.setList(dfJitLogSearchDao.findDfJitMissionDestReport(entity));
return page;
}
public Page<DfJitGuaranteeSrcReport> findDfJitGuaranteeSrcReport(Page<DfJitGuaranteeSrcReport> page,
DfJitGuaranteeSrcReport entity) throws SQLException {
entity.setPage(page);
page.setList(dfJitLogSearchDao.findDfJitGuaranteeSrcReport(entity));
return page;
}
public Page<DfJitGuaranteeDestReport> findDfJitGuaranteeDestReport(Page<DfJitGuaranteeDestReport> page,
DfJitGuaranteeDestReport entity) throws SQLException {
entity.setPage(page);
page.setList(dfJitLogSearchDao.findDfJitGuaranteeDestReport(entity));
return page;
}
public Page<DfJitTagSrcReport> findDfJitTagSrcReport(Page<DfJitTagSrcReport> page, DfJitTagSrcReport entity)
throws SQLException {
entity.setPage(page);
page.setList(dfJitLogSearchDao.findDfJitTagSrcReport(entity));
return page;
}
public Page<DfJitTagDestReport> findDfJitTagDestReport(Page<DfJitTagDestReport> page, DfJitTagDestReport entity)
throws SQLException {
entity.setPage(page);
page.setList(dfJitLogSearchDao.findDfJitTagDestReport(entity));
return page;
}
public Page<DfJitIdSrcReport> findDfJitIdSrcReport(Page<DfJitIdSrcReport> page, DfJitIdSrcReport entity)
throws SQLException {
entity.setPage(page);
page.setList(dfJitLogSearchDao.findDfJitIdSrcReport(entity));
return page;
}
public Page<DfJitIdDestReport> findDfJitIdDestReport(Page<DfJitIdDestReport> page, DfJitIdDestReport entity)
throws SQLException {
entity.setPage(page);
page.setList(dfJitLogSearchDao.findDfJitIdDestReport(entity));
return page;
}
public void queryDfJitFlCheck(SaveRequestLogThread thread,long start,String searchFl, String searchXz) {
try {
if (!StringUtil.isBlank(searchFl)) {
Integer.parseInt(searchFl);
}
} catch (NumberFormatException e) {
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
throw new RestServiceException(thread,System.currentTimeMillis()-start,"searchFl参数格式错误", RestBusinessCode.param_formate_error.getValue());
} catch (Exception e) {
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
throw new RestServiceException(thread,System.currentTimeMillis()-start,"searchFl参数错误");
}
try {
if (!StringUtil.isBlank(searchXz)) {
Integer.parseInt(searchXz);
}
} catch (NumberFormatException e) {
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
throw new RestServiceException(thread,System.currentTimeMillis()-start,"searchXz参数格式错误", RestBusinessCode.param_formate_error.getValue());
} catch (Exception e) {
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
throw new RestServiceException(thread,System.currentTimeMillis()-start,"searchXz参数错误");
}
}
}

View File

@@ -1,122 +0,0 @@
package com.nis.web.service.restful;
import java.sql.SQLException;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.nis.domain.Page;
import com.nis.domain.restful.DfAttrTypeReport;
import com.nis.domain.restful.DfDestIpCountryReport;
import com.nis.domain.restful.DfDestIpReport;
import com.nis.domain.restful.DfEntranceReport;
import com.nis.domain.restful.DfLwhhAttrReport;
import com.nis.domain.restful.DfLwhhReport;
import com.nis.domain.restful.DfLwhhTagReport;
import com.nis.domain.restful.DfPzReport;
import com.nis.domain.restful.DfPzReportStat;
import com.nis.domain.restful.DfServiceReport;
import com.nis.domain.restful.DfSrcIpAttrReport;
import com.nis.domain.restful.DfSrcIpDomeSticReport;
import com.nis.domain.restful.DfSrcIpReport;
import com.nis.domain.restful.DfSrcIpTagReport;
import com.nis.domain.restful.DfTagReport;
import com.nis.web.dao.DfMultiDimensionalReportDao;
import com.nis.web.dao.DfReportDao;
import com.nis.web.service.BaseLogService;
/**
*
* @ClassName: DfMultiDimensionsReportService
* @Description: TODO(df多维实时统计)
* @author (DDM)
* @date 2017年8月4日下午3:14:07
* @version V1.0
*/
@Service
public class DfMultiDimensionalReportService extends BaseLogService {
/**
* 持久层对象
*/
@Autowired
protected DfMultiDimensionalReportDao dao;
public Page<DfLwhhAttrReport> findDfLwhhAttrReportPage(Page<DfLwhhAttrReport> page, DfLwhhAttrReport entity) throws SQLException {
entity.setPage(page);
List<DfLwhhAttrReport> dfLwhhAttrReports = dao.findDfLwhhAttrReport(entity);
if (null != dfLwhhAttrReports && dfLwhhAttrReports.size() > 0) {
for (DfLwhhAttrReport dfLwhhAttrReport : dfLwhhAttrReports) {
if (null != dfLwhhAttrReport.getAsum() && dfLwhhAttrReport.getAsum() != 0) {
dfLwhhAttrReport.setAbsum(dfLwhhAttrReport.getAsum());
} else if ((null == dfLwhhAttrReport.getAsum() || dfLwhhAttrReport.getAsum() == 0)
&& (null != dfLwhhAttrReport.getBsum() && dfLwhhAttrReport.getBsum() != 0)) {
dfLwhhAttrReport.setAbsum(dfLwhhAttrReport.getBsum());
} else {
dfLwhhAttrReport.setAbsum(0l);
}
}
}
page.setList(dfLwhhAttrReports);
return page;
}
public Page<DfLwhhTagReport> findDfLwhhTagReportPage(Page<DfLwhhTagReport> page, DfLwhhTagReport entity) throws SQLException {
entity.setPage(page);
List<DfLwhhTagReport> dfLwhhTagReports = dao.findDfLwhhTagReportPage(entity);
if (null != dfLwhhTagReports && dfLwhhTagReports.size() > 0) {
for (DfLwhhTagReport dfLwhhTagReport : dfLwhhTagReports) {
if (null != dfLwhhTagReport.getAsum() && dfLwhhTagReport.getAsum() != 0) {
dfLwhhTagReport.setAbsum(dfLwhhTagReport.getAsum());
} else if ((null == dfLwhhTagReport.getAsum() || dfLwhhTagReport.getAsum() == 0)
&& (null != dfLwhhTagReport.getBsum() && dfLwhhTagReport.getBsum() != 0)) {
dfLwhhTagReport.setAbsum(dfLwhhTagReport.getBsum());
} else {
dfLwhhTagReport.setAbsum(0l);
}
}
}
page.setList(dfLwhhTagReports);
return page;
}
public Page<DfSrcIpAttrReport> findDfSrcIpAttrReportPage(Page<DfSrcIpAttrReport> page, DfSrcIpAttrReport entity) throws SQLException {
entity.setPage(page);
List<DfSrcIpAttrReport> dfSrcIpAttrReports = dao.findDfSrcIpAttrReportPage(entity);
if (null != dfSrcIpAttrReports && dfSrcIpAttrReports.size() > 0) {
for (DfSrcIpAttrReport dfSrcIpAttrReport : dfSrcIpAttrReports) {
if (null != dfSrcIpAttrReport.getAsum() && dfSrcIpAttrReport.getAsum() != 0) {
dfSrcIpAttrReport.setAbsum(dfSrcIpAttrReport.getAsum());
} else if ((null == dfSrcIpAttrReport.getAsum() || dfSrcIpAttrReport.getAsum() == 0)
&& (null != dfSrcIpAttrReport.getBsum() && dfSrcIpAttrReport.getBsum() != 0)) {
dfSrcIpAttrReport.setAbsum(dfSrcIpAttrReport.getBsum());
} else {
dfSrcIpAttrReport.setAbsum(0l);
}
}
}
page.setList(dfSrcIpAttrReports);
return page;
}
public Page<DfSrcIpTagReport> findDfSrcIpTagReportPage(Page<DfSrcIpTagReport> page, DfSrcIpTagReport entity) throws SQLException {
entity.setPage(page);
List<DfSrcIpTagReport> dfSrcIpTagReports = dao.findDfSrcIpTagReportPage(entity);
if (null != dfSrcIpTagReports && dfSrcIpTagReports.size() > 0) {
for (DfSrcIpTagReport dfSrcIpTagReport : dfSrcIpTagReports) {
if (null != dfSrcIpTagReport.getAsum() && dfSrcIpTagReport.getAsum() != 0) {
dfSrcIpTagReport.setAbsum(dfSrcIpTagReport.getAsum());
} else if ((null == dfSrcIpTagReport.getAsum() || dfSrcIpTagReport.getAsum() == 0)
&& (null != dfSrcIpTagReport.getBsum() && dfSrcIpTagReport.getBsum() != 0)) {
dfSrcIpTagReport.setAbsum(dfSrcIpTagReport.getBsum());
} else {
dfSrcIpTagReport.setAbsum(0l);
}
}
}
page.setList(dfSrcIpTagReports);
return page;
}
}

View File

@@ -1,83 +0,0 @@
package com.nis.web.service.restful;
import java.sql.SQLException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.nis.domain.Page;
import com.nis.domain.restful.DfLwhhAttrDaily;
import com.nis.domain.restful.DfLwhhAttrMonth;
import com.nis.domain.restful.DfLwhhTagDaily;
import com.nis.domain.restful.DfLwhhTagMonth;
import com.nis.domain.restful.DfSrcIpAttrDaily;
import com.nis.domain.restful.DfSrcIpAttrMonth;
import com.nis.domain.restful.DfSrcIpTagDaily;
import com.nis.domain.restful.DfSrcIpTagMonth;
import com.nis.web.dao.DfMultiDimensionalStatLogDao;
import com.nis.web.service.BaseLogService;
/**
*
* @ClassName: DfMultiDimensionsReportService
* @Description: TODO(df多维实时统计)
* @author (DDM)
* @date 2017年8月4日下午3:14:07
* @version V1.0
*/
@Service
public class DfMultiDimensionalStatLogService extends BaseLogService {
/**
* 持久层对象
*/
@Autowired
protected DfMultiDimensionalStatLogDao dao;
public Page<DfLwhhAttrDaily> dfLwhhAttrDaily(Page<DfLwhhAttrDaily> page, DfLwhhAttrDaily entity) throws SQLException{
entity.setPage(page);
page.setList(dao.dfLwhhAttrDaily(entity));
return page;
}
public Page<DfLwhhAttrMonth> dfLwhhAttrMonth(Page<DfLwhhAttrMonth> page, DfLwhhAttrMonth entity) throws SQLException{
entity.setPage(page);
page.setList(dao.dfLwhhAttrMonth(entity));
return page;
}
public Page<DfLwhhTagDaily> dfLwhhTagDaily(Page<DfLwhhTagDaily> page, DfLwhhTagDaily entity) throws SQLException{
entity.setPage(page);
page.setList(dao.dfLwhhTagDaily(entity));
return page;
}
public Page<DfLwhhTagMonth> dfLwhhTagMonth(Page<DfLwhhTagMonth> page, DfLwhhTagMonth entity) throws SQLException{
entity.setPage(page);
page.setList(dao.dfLwhhTagMonth(entity));
return page;
}
public Page<DfSrcIpAttrDaily> dfSrcIpAttrDaily(Page<DfSrcIpAttrDaily> page, DfSrcIpAttrDaily entity) throws SQLException{
entity.setPage(page);
page.setList(dao.dfSrcIpAttrDaily(entity));
return page;
}
public Page<DfSrcIpAttrMonth> dfSrcIpAttrMonth(Page<DfSrcIpAttrMonth> page, DfSrcIpAttrMonth entity) throws SQLException{
entity.setPage(page);
page.setList(dao.dfSrcIpAttrMonth(entity));
return page;
}
public Page<DfSrcIpTagDaily> dfSrcIpTagDaily(Page<DfSrcIpTagDaily> page, DfSrcIpTagDaily entity) throws SQLException{
entity.setPage(page);
page.setList(dao.dfSrcIpTagDaily(entity));
return page;
}
public Page<DfSrcIpTagMonth> dfSrcIpTagMonth(Page<DfSrcIpTagMonth> page, DfSrcIpTagMonth entity) throws SQLException{
entity.setPage(page);
page.setList(dao.dfSrcIpTagMonth(entity));
return page;
}
}

View File

@@ -1,277 +0,0 @@
package com.nis.web.service.restful;
import java.sql.SQLException;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.nis.domain.Page;
import com.nis.domain.restful.DfAttrTypeReport;
import com.nis.domain.restful.DfDestIpCountryReport;
import com.nis.domain.restful.DfDestIpReport;
import com.nis.domain.restful.DfEntranceReport;
import com.nis.domain.restful.DfLwhhReport;
import com.nis.domain.restful.DfPzReport;
import com.nis.domain.restful.DfPzReportStat;
import com.nis.domain.restful.DfServiceReport;
import com.nis.domain.restful.DfSrcIpDomeSticReport;
import com.nis.domain.restful.DfSrcIpReport;
import com.nis.domain.restful.DfTagReport;
import com.nis.web.dao.DfReportDao;
import com.nis.web.service.BaseLogService;
/**
*
* @ClassName: DfReportService
* @Description: TODO(一句话描述这个类)
* @author (DDM)
* @date 2016年10月31日上午11:54:46
* @version V1.0
*/
@Service
public class DfReportService extends BaseLogService {
/**
* 持久层对象
*/
@Autowired
protected DfReportDao dao;
/**
*
*
* @Title: findDfPzReportPage
* @Description: TODO(这里用一句话描述这个方法的作用)
* @param @param
* page
* @param @param
* entity
* @param @return
* @param @throws
* SQLException
* @return Map 返回类型
* @author DDM
* @version V1.0
*/
public Page<DfPzReport> findDfPzReportPage(Page<DfPzReport> page, DfPzReport entity) throws SQLException {
entity.setPage(page);
page.setList(dao.findDfPzReport(entity));
return page;
}
public Page<DfAttrTypeReport> findAttrTypeReport(Page<DfAttrTypeReport> page, DfAttrTypeReport entity)
throws SQLException {
entity.setPage(page);
List<DfAttrTypeReport> findAttrTypeReport = dao.findAttrTypeReport(entity);
page.setList(findAttrTypeReport);
return page;
}
public Page<DfSrcIpDomeSticReport> findSrcIpDomeSticReport(Page<DfSrcIpDomeSticReport> page,
DfSrcIpDomeSticReport entity) throws SQLException {
entity.setPage(page);
List<DfSrcIpDomeSticReport> findSrcIpDomeSticReport = dao.findSrcIpDomeSticReport(entity);
if (null != findSrcIpDomeSticReport && findSrcIpDomeSticReport.size() > 0) {
for (DfSrcIpDomeSticReport dfSrcIpDomeSticReport : findSrcIpDomeSticReport) {
if (null != dfSrcIpDomeSticReport.getAsum() && dfSrcIpDomeSticReport.getAsum() != 0) {
dfSrcIpDomeSticReport.setAbsum(dfSrcIpDomeSticReport.getAsum());
} else if ((null == dfSrcIpDomeSticReport.getAsum() || dfSrcIpDomeSticReport.getAsum() == 0)
&& (null != dfSrcIpDomeSticReport.getBsum() && dfSrcIpDomeSticReport.getBsum() != 0)) {
dfSrcIpDomeSticReport.setAbsum(dfSrcIpDomeSticReport.getBsum());
} else {
dfSrcIpDomeSticReport.setAbsum(0l);
}
}
}
page.setList(findSrcIpDomeSticReport);
return page;
}
public Page<DfDestIpCountryReport> findDestIpCountryReport(Page<DfDestIpCountryReport> page,
DfDestIpCountryReport entity) throws SQLException {
entity.setPage(page);
List<DfDestIpCountryReport> destIpCountryReport = dao.findDestIpCountryReport(entity);
if (null != destIpCountryReport && destIpCountryReport.size() > 0) {
for (DfDestIpCountryReport dfDestIpCountryReport : destIpCountryReport) {
if (null != dfDestIpCountryReport.getAsum() && dfDestIpCountryReport.getAsum() != 0) {
dfDestIpCountryReport.setAbsum(dfDestIpCountryReport.getAsum());
} else if ((null == dfDestIpCountryReport.getAsum() || dfDestIpCountryReport.getAsum() == 0)
&& (null != dfDestIpCountryReport.getBsum() && dfDestIpCountryReport.getBsum() != 0)) {
dfDestIpCountryReport.setAbsum(dfDestIpCountryReport.getBsum());
} else {
dfDestIpCountryReport.setAbsum(0l);
}
}
}
page.setList(destIpCountryReport);
return page;
}
public Page<DfEntranceReport> findDfEntranceReport(Page<DfEntranceReport> page, DfEntranceReport entity)
throws SQLException {
entity.setPage(page);
List<DfEntranceReport> findDfEntranceReport = dao.findDfEntranceReport(entity);
if (null != findDfEntranceReport && findDfEntranceReport.size() > 0) {
for (DfEntranceReport dfEntranceReport : findDfEntranceReport) {
if (null != dfEntranceReport.getAsum() && dfEntranceReport.getAsum() != 0) {
dfEntranceReport.setAbsum(dfEntranceReport.getAsum());
} else if ((null == dfEntranceReport.getAsum() || dfEntranceReport.getAsum() == 0)
&& (null != dfEntranceReport.getBsum() && dfEntranceReport.getBsum() != 0)) {
dfEntranceReport.setAbsum(dfEntranceReport.getBsum());
} else {
dfEntranceReport.setAbsum(0l);
}
}
}
page.setList(findDfEntranceReport);
return page;
}
public Page<DfLwhhReport> findDfLwhhReport(Page<DfLwhhReport> page, DfLwhhReport entity) throws SQLException {
entity.setPage(page);
List<DfLwhhReport> findDfLwhhReport = dao.findDfLwhhReport(entity);
if (null != findDfLwhhReport && findDfLwhhReport.size() > 0) {
for (DfLwhhReport dfLwhhReport : findDfLwhhReport) {
if (null != dfLwhhReport.getAsum() && dfLwhhReport.getAsum() != 0) {
dfLwhhReport.setAbsum(dfLwhhReport.getAsum());
} else if ((null == dfLwhhReport.getAsum() || dfLwhhReport.getAsum() == 0)
&& (null != dfLwhhReport.getBsum() && dfLwhhReport.getBsum() != 0)) {
dfLwhhReport.setAbsum(dfLwhhReport.getBsum());
} else {
dfLwhhReport.setAbsum(0l);
}
}
}
page.setList(findDfLwhhReport);
return page;
}
public Page<DfTagReport> findDfTagReport(Page<DfTagReport> page, DfTagReport entity) throws SQLException {
entity.setPage(page);
List<DfTagReport> findDfTagReport = dao.findDfTagReport(entity);
page.setList(findDfTagReport);
return page;
}
public Page<DfPzReport> findDfPriTagReport(Page<DfPzReport> page, DfPzReport entity) throws SQLException {
entity.setPage(page);
List<DfPzReport> findDfPzReport = dao.findDfPzReport(entity);
if (null != findDfPzReport && findDfPzReport.size() > 0) {
for (DfPzReport dfPzReport : findDfPzReport) {
if (null != dfPzReport.getAsum() && dfPzReport.getAsum() != 0) {
dfPzReport.setAbsum(dfPzReport.getAsum());
} else if ((null == dfPzReport.getAsum() || dfPzReport.getAsum() == 0)
&& (null != dfPzReport.getBsum() && dfPzReport.getBsum() != 0)) {
dfPzReport.setAbsum(dfPzReport.getBsum());
} else {
dfPzReport.setAbsum(0l);
}
}
}
page.setList(findDfPzReport);
return page;
}
public Page<DfPzReportStat> findDfPzReportStatPage(Page<DfPzReportStat> page, DfPzReportStat entity)
throws SQLException {
entity.setPage(page);
page.setList(dao.findDfPzReportStat(entity));
return page;
}
public Page<DfPzReportStat> findDfPzReportStatMinutesPage(Page<DfPzReportStat> page, DfPzReportStat entity)
throws SQLException {
entity.setPage(page);
page.setList(dao.findDfPzReportStatMinutes(entity));
return page;
}
public Long findDfPzReportSumStat(Page<DfPzReportStat> page, DfPzReportStat entity) throws SQLException {
return dao.findDfPzReportSum(entity);
}
/**
* @Title: findDfSrcIpReport
* @Description: TODO(这里用一句话描述这个方法的作用)
* @param @param
* page
* @param @param
* entity
* @param @return
* @param @throws
* SQLException
* @return Map 返回类型
* @author DDM
* @version V1.0
*/
public Page<DfSrcIpReport> findDfSrcIpReport(Page<DfSrcIpReport> page, DfSrcIpReport entity) {
entity.setPage(page);
page.setList(dao.findDfSrcIpReport(entity));
return page;
}
/**
* @Title: findDfDestIpReport
* @Description: TODO(这里用一句话描述这个方法的作用)
* @param @param
* page
* @param @param
* entity
* @param @return
* @param @throws
* SQLException
* @return Map 返回类型
* @author DDM
* @version V1.0
*/
public Page<DfDestIpReport> findDfDestIpReport(Page<DfDestIpReport> page, DfDestIpReport entity) {
entity.setPage(page);
page.setList(dao.findDfDestIpReport(entity));
return page;
}
/**
*
*
* @Title: findDfServiceReportPage
* @Description: TODO(这里用一句话描述这个方法的作用)
* @param @param
* page
* @param @param
* entity
* @param @return
* @param @throws
* SQLException
* @return Map 返回类型
* @author DDM
* @version V1.0
*/
public Page<DfServiceReport> findDfServiceReportPage(Page<DfServiceReport> page, DfServiceReport entity)
throws SQLException {
entity.setPage(page);
page.setList(dao.findDfServiceReport(entity));
return page;
}
/**
* @Title: findDfTagReportPage
* @Description: TODO(这里用一句话描述这个方法的作用)
* @param @param
* page
* @param @param
* entity
* @param @return
* @param @throws
* SQLException
* @return Map 返回类型
* @author DDM
* @version V1.0
*/
public Page<DfTagReport> findDfTagReportPage(Page<DfTagReport> page, DfTagReport entity) throws SQLException {
entity.setPage(page);
List<DfTagReport> findDfTagReportPage = dao.findDfTagReportPage(entity);
page.setList(findDfTagReportPage);
return page;
}
}

View File

@@ -1,203 +0,0 @@
/**
* @Title: DfStatLogService.java
* @Package com.nis.web.service.restful
* @Description: TODO(用一句话描述该文件做什么)
* @author ddm
* @date 2016年9月13日 上午11:50:12
* @version V1.0
*/
package com.nis.web.service.restful;
import java.sql.SQLException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.nis.domain.Page;
import com.nis.domain.restful.DfAttrStatLogDaily;
import com.nis.domain.restful.DfAttrStatLogMonth;
import com.nis.domain.restful.DfDestIpCounrtyStatLogDaily;
import com.nis.domain.restful.DfDestIpCounrtyStatLogMonth;
import com.nis.domain.restful.DfEntrStatLogDaily;
import com.nis.domain.restful.DfEntrStatLogMonth;
import com.nis.domain.restful.DfLwhhStatLogDaily;
import com.nis.domain.restful.DfLwhhStatLogMonth;
import com.nis.domain.restful.DfSrcIpDomesticStatLogDaily;
import com.nis.domain.restful.DfSrcIpDomesticStatLogMonth;
import com.nis.domain.restful.DfStatLogDaily;
import com.nis.domain.restful.DfStatLogMonth;
import com.nis.domain.restful.DfTagStatLogDaily;
import com.nis.domain.restful.DfTagStatLogMonth;
import com.nis.web.dao.DfStatLogDao;
import com.nis.web.service.BaseLogService;
/**
* @ClassName: DfStatLogService
* @Description: TODO(这里用一句话描述这个类的作用)
* @author (ddm)
* @date 2016年9月13日 上午11:50:12
* @version V1.0
*/
@Service
public class DfStatLogService extends BaseLogService{
/**
* 持久层对象
*/
@Autowired
protected DfStatLogDao dao;
/**
* 查询端口封堵分页数据
* @param page 分页对象
* @param entity
* @return
*/
public Page<DfStatLogDaily> dfStatLogDaily(Page<DfStatLogDaily> page, DfStatLogDaily entity) throws SQLException{
entity.setPage(page);
page.setList(dao.dfStatLogDaily(entity));
return page;
}
/**
* 查询端口封堵分页数据
* @param page 分页对象
* @param entity
* @return
*/
public Page<DfStatLogMonth> dfStatLogMonth(Page<DfStatLogMonth> page, DfStatLogMonth entity) throws SQLException{
entity.setPage(page);
page.setList(dao.dfStatLogMonth(entity));
return page;
}
/**
* 查询标签日报表
* @param page 分页对象
* @param entity
* @return
*/
public Page<DfTagStatLogDaily> dfTagStatLogDaily(Page<DfTagStatLogDaily> page, DfTagStatLogDaily entity) throws SQLException{
entity.setPage(page);
page.setList(dao.dfTagStatLogDaily(entity));
return page;
}
/**
* 查询标签月报表
* @param page 分页对象
* @param entity
* @return
*/
public Page<DfTagStatLogMonth> dfTagStatLogMonth(Page<DfTagStatLogMonth> page, DfTagStatLogMonth entity) throws SQLException{
entity.setPage(page);
page.setList(dao.dfTagStatLogMonth(entity));
return page;
}
/**
* 查询性质日报表
* @param page 分页对象
* @param entity
* @return
*/
public Page<DfAttrStatLogDaily> dfAttrStatLogDaily(Page<DfAttrStatLogDaily> page, DfAttrStatLogDaily entity) throws SQLException{
entity.setPage(page);
page.setList(dao.dfAttrStatLogDaily(entity));
return page;
}
/**
* 查询性质月报表
* @param page 分页对象
* @param entity
* @return
*/
public Page<DfAttrStatLogMonth> dfAttrStatLogMonth(Page<DfAttrStatLogMonth> page, DfAttrStatLogMonth entity) throws SQLException{
entity.setPage(page);
page.setList(dao.dfAttrStatLogMonth(entity));
return page;
}
/**
* 查询局点日报表
* @param page 分页对象
* @param entity
* @return
*/
public Page<DfEntrStatLogDaily> dfEntrStatLogDaily(Page<DfEntrStatLogDaily> page, DfEntrStatLogDaily entity) throws SQLException{
entity.setPage(page);
page.setList(dao.dfEntrStatLogDaily(entity));
return page;
}
/**
* 查询局点月报表
* @param page 分页对象
* @param entity
* @return
*/
public Page<DfEntrStatLogMonth> dfEntrStatLogMonth(Page<DfEntrStatLogMonth> page, DfEntrStatLogMonth entity) throws SQLException{
entity.setPage(page);
page.setList(dao.dfEntrStatLogMonth(entity));
return page;
}
/**
* 查询来文函号日报表
* @param page 分页对象
* @param entity
* @return
*/
public Page<DfLwhhStatLogDaily> dfLwhhStatLogDaily(Page<DfLwhhStatLogDaily> page, DfLwhhStatLogDaily entity) throws SQLException{
entity.setPage(page);
page.setList(dao.dfLwhhStatLogDaily(entity));
return page;
}
/**
* 查询来文函号月报表
* @param page 分页对象
* @param entity
* @return
*/
public Page<DfLwhhStatLogMonth> dfLwhhStatLogMonth(Page<DfLwhhStatLogMonth> page, DfLwhhStatLogMonth entity) throws SQLException{
entity.setPage(page);
page.setList(dao.dfLwhhStatLogMonth(entity));
return page;
}
/**
* 查询境内源ip日报表
* @param page 分页对象
* @param entity
* @return
*/
public Page<DfSrcIpDomesticStatLogDaily> dfSrcIpDomesticStatLogDaily(Page<DfSrcIpDomesticStatLogDaily> page, DfSrcIpDomesticStatLogDaily entity) throws SQLException{
entity.setPage(page);
page.setList(dao.dfSrcIpDomesticStatLogDaily(entity));
return page;
}
/**
* 查询境内源ip月报表
* @param page 分页对象
* @param entity
* @return
*/
public Page<DfSrcIpDomesticStatLogMonth> dfSrcIpDomesticStatLogMonth(Page<DfSrcIpDomesticStatLogMonth> page, DfSrcIpDomesticStatLogMonth entity) throws SQLException{
entity.setPage(page);
page.setList(dao.dfSrcIpDomesticStatLogMonth(entity));
return page;
}
/**
* 查询国家目的ip日报表
* @param page 分页对象
* @param entity
* @return
*/
public Page<DfDestIpCounrtyStatLogDaily> dfDestIpCounrtyStatLogDaily(Page<DfDestIpCounrtyStatLogDaily> page, DfDestIpCounrtyStatLogDaily entity) throws SQLException{
entity.setPage(page);
page.setList(dao.dfDestIpCounrtyStatLogDaily(entity));
return page;
}
/**
* 查询国家目的ip月报表
* @param page 分页对象
* @param entity
* @return
*/
public Page<DfDestIpCounrtyStatLogMonth> dfDestIpCounrtyStatLogMonth(Page<DfDestIpCounrtyStatLogMonth> page, DfDestIpCounrtyStatLogMonth entity) throws SQLException{
entity.setPage(page);
page.setList(dao.dfDestIpCounrtyStatLogMonth(entity));
return page;
}
}

View File

@@ -1,122 +0,0 @@
package com.nis.web.service.restful;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.nis.domain.Page;
import com.nis.domain.StatLogEntity;
import com.nis.domain.restful.DfDjLogStatistics;
import com.nis.domain.restful.DfDjPzLogStatistics;
import com.nis.restful.RestBusinessCode;
import com.nis.restful.RestServiceException;
import com.nis.util.StringUtil;
import com.nis.web.dao.DfDjLogStatDao;
import com.nis.web.service.BaseLogService;
import com.nis.web.service.SaveRequestLogThread;
/**
* @ClassName: DfdjLogStatService
* @Description: 封堵/监测日志统计查询
* @author (zbc)
* @date 2016年11月14日 下午4:00:00
* @version V1.0
*/
@Service
@SuppressWarnings({ "rawtypes" })
public class DfdjLogStatService extends BaseLogService {
private static SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
@Autowired
protected DfDjLogStatDao dao;
public DfDjLogStatistics findDfLogStatistics(DfDjLogStatistics entity) {
List<DfDjLogStatistics> list = dao.findDfLogStatistics(entity);
return entity;
}
public Page<DfDjPzLogStatistics> findDfPzLogStatistics(Page<DfDjPzLogStatistics> page, DfDjPzLogStatistics entity) {
entity.setPage(page);
page.setList(dao.findDfPzLogStatistics(entity));
return page;
}
public DfDjLogStatistics findDjLogStatistics(DfDjLogStatistics entity) {
List<DfDjLogStatistics> list = dao.findDjLogStatistics(entity);
return entity;
}
public Page<DfDjPzLogStatistics> findDjPzLogStatistics(Page<DfDjPzLogStatistics> page, DfDjPzLogStatistics entity) {
entity.setPage(page);
page.setList(dao.findDjPzLogStatistics(entity));
return page;
}
@Override
public void queryConditionCheck(SaveRequestLogThread thread, long start, StatLogEntity entity, Class clazz, Page page) {
/*
* searchConfigId为多条件格式
*/
try {
if (!StringUtil.isBlank(entity.getSearchStatStartTime())) {
sdf.parse(entity.getSearchStatStartTime());
}
} catch (ParseException e) {
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
logger.error(e);
throw new RestServiceException(thread, System.currentTimeMillis() - start, "searchStatStartTime参数格式错误",
RestBusinessCode.param_formate_error.getValue());
} catch (Exception e) {
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
logger.error(e);
throw new RestServiceException(thread, System.currentTimeMillis() - start, "searchStatStartTime参数格式错误");
}
try {
if (!StringUtil.isBlank(entity.getSearchStatEndTime())) {
sdf.parse(entity.getSearchStatEndTime());
}
} catch (ParseException e) {
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
logger.error(e);
throw new RestServiceException(thread, System.currentTimeMillis() - start, "searchStatEndTime参数格式错误",
RestBusinessCode.param_formate_error.getValue());
} catch (Exception e) {
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
logger.error(e);
throw new RestServiceException(thread, System.currentTimeMillis() - start, "searchStatEndTime参数错误");
}
try {
if (!StringUtil.isBlank(entity.getSearchService())) {
Integer.parseInt(entity.getSearchService());
}
} catch (NumberFormatException e) {
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
logger.error(e);
throw new RestServiceException(thread, System.currentTimeMillis() - start, "searchService参数格式错误",
RestBusinessCode.param_formate_error.getValue());
} catch (Exception e) {
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
logger.error(e);
throw new RestServiceException(thread, System.currentTimeMillis() - start, "searchService参数错误");
}
try {
checkCloumnIsExist(thread,start,clazz, page);
} catch (RestServiceException e) {
logger.error(e);
throw e;
} catch (Exception e) {
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
logger.error(e);
throw new RestServiceException(thread, System.currentTimeMillis() - start, "请求参数错误");
}
}
}

View File

@@ -1,150 +0,0 @@
package com.nis.web.service.restful;
import java.sql.SQLException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.nis.domain.Page;
import com.nis.domain.restful.DjCkStatLog;
import com.nis.domain.restful.DjJitAffairDestReport;
import com.nis.domain.restful.DjJitAffairSrcReport;
import com.nis.domain.restful.DjJitFlDestReport;
import com.nis.domain.restful.DjJitFlSrcReport;
import com.nis.domain.restful.DjJitGuaranteeDestReport;
import com.nis.domain.restful.DjJitGuaranteeSrcReport;
import com.nis.domain.restful.DjJitIdDestReport;
import com.nis.domain.restful.DjJitIdSrcReport;
import com.nis.domain.restful.DjJitMissionDestReport;
import com.nis.domain.restful.DjJitMissionSrcReport;
import com.nis.domain.restful.DjJitTagDestReport;
import com.nis.domain.restful.DjJitTagSrcReport;
import com.nis.restful.RestBusinessCode;
import com.nis.restful.RestServiceException;
import com.nis.util.StringUtil;
import com.nis.web.dao.DjJitLogSearchDao;
import com.nis.web.service.BaseLogService;
import com.nis.web.service.SaveRequestLogThread;
@Service
public class DjJitLogSearchService extends BaseLogService {
@Autowired
private DjJitLogSearchDao djJitLogSearchDao;
public Page<DjJitFlSrcReport> findDjJitFlSrcReport(Page<DjJitFlSrcReport> page, DjJitFlSrcReport entity)
throws SQLException {
entity.setPage(page);
page.setList(djJitLogSearchDao.findDjJitFlSrcReport(entity));
return page;
}
public Page<DjJitFlDestReport> findDjJitFlDestReport(Page<DjJitFlDestReport> page, DjJitFlDestReport entity)
throws SQLException {
entity.setPage(page);
page.setList(djJitLogSearchDao.findDjJitFlDestReport(entity));
return page;
}
public Page<DjJitAffairSrcReport> findDjJitAffairSrcReport(Page<DjJitAffairSrcReport> page,
DjJitAffairSrcReport entity) throws SQLException {
entity.setPage(page);
page.setList(djJitLogSearchDao.findDjJitAffairSrcReport(entity));
return page;
}
public Page<DjJitAffairDestReport> findDjJitAffairDestReport(Page<DjJitAffairDestReport> page,
DjJitAffairDestReport entity) throws SQLException {
entity.setPage(page);
page.setList(djJitLogSearchDao.findDjJitAffairDestReport(entity));
return page;
}
public Page<DjJitMissionSrcReport> findDjJitMissionSrcReport(Page<DjJitMissionSrcReport> page,
DjJitMissionSrcReport entity) throws SQLException {
entity.setPage(page);
page.setList(djJitLogSearchDao.findDjJitMissionSrcReport(entity));
return page;
}
public Page<DjJitMissionDestReport> findDjJitMissionDestReport(Page<DjJitMissionDestReport> page,
DjJitMissionDestReport entity) throws SQLException {
entity.setPage(page);
page.setList(djJitLogSearchDao.findDjJitMissionDestReport(entity));
return page;
}
public Page<DjJitGuaranteeSrcReport> findDjJitGuaranteeSrcReport(Page<DjJitGuaranteeSrcReport> page,
DjJitGuaranteeSrcReport entity) throws SQLException {
entity.setPage(page);
page.setList(djJitLogSearchDao.findDjJitGuaranteeSrcReport(entity));
return page;
}
public Page<DjJitGuaranteeDestReport> findDjJitGuaranteeDestReport(Page<DjJitGuaranteeDestReport> page,
DjJitGuaranteeDestReport entity) throws SQLException {
entity.setPage(page);
page.setList(djJitLogSearchDao.findDjJitGuaranteeDestReport(entity));
return page;
}
public Page<DjJitTagSrcReport> findDjJitTagSrcReport(Page<DjJitTagSrcReport> page, DjJitTagSrcReport entity)
throws SQLException {
entity.setPage(page);
page.setList(djJitLogSearchDao.findDjJitTagSrcReport(entity));
return page;
}
public Page<DjJitTagDestReport> findDjJitTagDestReport(Page<DjJitTagDestReport> page, DjJitTagDestReport entity)
throws SQLException {
entity.setPage(page);
page.setList(djJitLogSearchDao.findDjJitTagDestReport(entity));
return page;
}
public Page<DjJitIdSrcReport> findDjJitIdSrcReport(Page<DjJitIdSrcReport> page, DjJitIdSrcReport entity)
throws SQLException {
entity.setPage(page);
page.setList(djJitLogSearchDao.findDjJitIdSrcReport(entity));
return page;
}
public Page<DjJitIdDestReport> findDjJitIdDestReport(Page<DjJitIdDestReport> page, DjJitIdDestReport entity)
throws SQLException {
entity.setPage(page);
page.setList(djJitLogSearchDao.findDjJitIdDestReport(entity));
return page;
}
public Page<DjCkStatLog> findDjCkStatLog(Page<DjCkStatLog> page, DjCkStatLog entity) throws SQLException {
entity.setPage(page);
page.setList(djJitLogSearchDao.findDjCkStatLog(entity));
return page;
}
public void queryDjJitFlCheck(SaveRequestLogThread thread,long start,String searchFl, String searchXz) {
try {
if (!StringUtil.isBlank(searchFl)) {
Integer.parseInt(searchFl);
}
} catch (NumberFormatException e) {
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
throw new RestServiceException(thread,System.currentTimeMillis()-start,"searchFl参数格式错误", RestBusinessCode.param_formate_error.getValue());
} catch (Exception e) {
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
throw new RestServiceException(thread,System.currentTimeMillis()-start,"searchFl参数错误");
}
try {
if (!StringUtil.isBlank(searchXz)) {
Integer.parseInt(searchXz);
}
} catch (NumberFormatException e) {
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
throw new RestServiceException(thread,System.currentTimeMillis()-start,"searchXz参数格式错误", RestBusinessCode.param_formate_error.getValue());
} catch (Exception e) {
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
throw new RestServiceException(thread,System.currentTimeMillis()-start,"searchXz参数错误");
}
}
}

View File

@@ -1,112 +0,0 @@
package com.nis.web.service.restful;
import java.sql.SQLException;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.nis.domain.Page;
import com.nis.domain.restful.DjLwhhAttrReport;
import com.nis.domain.restful.DjLwhhReport;
import com.nis.domain.restful.DjLwhhTagReport;
import com.nis.domain.restful.DjSrcIpAttrReport;
import com.nis.domain.restful.DjSrcIpTagReport;
import com.nis.web.dao.DjMultiDimensionalReportDao;
import com.nis.web.dao.DjReportDao;
import com.nis.web.service.BaseLogService;
/**
*
* @ClassName: DjMultiDimensionsReportService
* @Description: TODO(dj多维实时统计)
* @author (DDM)
* @date 2017年8月4日下午3:14:07
* @version V1.0
*/
@Service
public class DjMultiDimensionalReportService extends BaseLogService {
/**
* 持久层对象
*/
@Autowired
protected DjMultiDimensionalReportDao dao;
public Page<DjLwhhAttrReport> findDjLwhhAttrReportPage(Page<DjLwhhAttrReport> page, DjLwhhAttrReport entity) throws SQLException {
entity.setPage(page);
List<DjLwhhAttrReport> djLwhhAttrReports = dao.findDjLwhhAttrReport(entity);
if (null != djLwhhAttrReports && djLwhhAttrReports.size() > 0) {
for (DjLwhhAttrReport djLwhhAttrReport : djLwhhAttrReports) {
if (null != djLwhhAttrReport.getAsum() && djLwhhAttrReport.getAsum() != 0) {
djLwhhAttrReport.setAbsum(djLwhhAttrReport.getAsum());
} else if ((null == djLwhhAttrReport.getAsum() || djLwhhAttrReport.getAsum() == 0)
&& (null != djLwhhAttrReport.getBsum() && djLwhhAttrReport.getBsum() != 0)) {
djLwhhAttrReport.setAbsum(djLwhhAttrReport.getBsum());
} else {
djLwhhAttrReport.setAbsum(0l);
}
}
}
page.setList(djLwhhAttrReports);
return page;
}
public Page<DjLwhhTagReport> findDjLwhhTagReportPage(Page<DjLwhhTagReport> page, DjLwhhTagReport entity) throws SQLException {
entity.setPage(page);
List<DjLwhhTagReport> djLwhhTagReports = dao.findDjLwhhTagReportPage(entity);
if (null != djLwhhTagReports && djLwhhTagReports.size() > 0) {
for (DjLwhhTagReport djLwhhTagReport : djLwhhTagReports) {
if (null != djLwhhTagReport.getAsum() && djLwhhTagReport.getAsum() != 0) {
djLwhhTagReport.setAbsum(djLwhhTagReport.getAsum());
} else if ((null == djLwhhTagReport.getAsum() || djLwhhTagReport.getAsum() == 0)
&& (null != djLwhhTagReport.getBsum() && djLwhhTagReport.getBsum() != 0)) {
djLwhhTagReport.setAbsum(djLwhhTagReport.getBsum());
} else {
djLwhhTagReport.setAbsum(0l);
}
}
}
page.setList(djLwhhTagReports);
return page;
}
public Page<DjSrcIpAttrReport> findDjSrcIpAttrReportPage(Page<DjSrcIpAttrReport> page, DjSrcIpAttrReport entity) throws SQLException {
entity.setPage(page);
List<DjSrcIpAttrReport> djSrcIpAttrReports = dao.findDjSrcIpAttrReportPage(entity);
if (null != djSrcIpAttrReports && djSrcIpAttrReports.size() > 0) {
for (DjSrcIpAttrReport djSrcIpAttrReport : djSrcIpAttrReports) {
if (null != djSrcIpAttrReport.getAsum() && djSrcIpAttrReport.getAsum() != 0) {
djSrcIpAttrReport.setAbsum(djSrcIpAttrReport.getAsum());
} else if ((null == djSrcIpAttrReport.getAsum() || djSrcIpAttrReport.getAsum() == 0)
&& (null != djSrcIpAttrReport.getBsum() && djSrcIpAttrReport.getBsum() != 0)) {
djSrcIpAttrReport.setAbsum(djSrcIpAttrReport.getBsum());
} else {
djSrcIpAttrReport.setAbsum(0l);
}
}
}
page.setList(djSrcIpAttrReports);
return page;
}
public Page<DjSrcIpTagReport> findDjSrcIpTagReportPage(Page<DjSrcIpTagReport> page, DjSrcIpTagReport entity) throws SQLException {
entity.setPage(page);
List<DjSrcIpTagReport> djSrcIpTagReports = dao.findDjSrcIpTagReportPage(entity);
if (null != djSrcIpTagReports && djSrcIpTagReports.size() > 0) {
for (DjSrcIpTagReport djSrcIpTagReport : djSrcIpTagReports) {
if (null != djSrcIpTagReport.getAsum() && djSrcIpTagReport.getAsum() != 0) {
djSrcIpTagReport.setAbsum(djSrcIpTagReport.getAsum());
} else if ((null == djSrcIpTagReport.getAsum() || djSrcIpTagReport.getAsum() == 0)
&& (null != djSrcIpTagReport.getBsum() && djSrcIpTagReport.getBsum() != 0)) {
djSrcIpTagReport.setAbsum(djSrcIpTagReport.getBsum());
} else {
djSrcIpTagReport.setAbsum(0l);
}
}
}
page.setList(djSrcIpTagReports);
return page;
}
}

View File

@@ -1,83 +0,0 @@
package com.nis.web.service.restful;
import java.sql.SQLException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.nis.domain.Page;
import com.nis.domain.restful.DjLwhhAttrDaily;
import com.nis.domain.restful.DjLwhhAttrMonth;
import com.nis.domain.restful.DjLwhhTagDaily;
import com.nis.domain.restful.DjLwhhTagMonth;
import com.nis.domain.restful.DjSrcIpAttrDaily;
import com.nis.domain.restful.DjSrcIpAttrMonth;
import com.nis.domain.restful.DjSrcIpTagDaily;
import com.nis.domain.restful.DjSrcIpTagMonth;
import com.nis.web.dao.DjMultiDimensionalStatLogDao;
import com.nis.web.service.BaseLogService;
/**
*
* @ClassName: DjMultiDimensionsReportService
* @Description: TODO(dj多维实时统计)
* @author (DDM)
* @date 2017年8月4日下午3:14:07
* @version V1.0
*/
@Service
public class DjMultiDimensionalStatLogService extends BaseLogService {
/**
* 持久层对象
*/
@Autowired
protected DjMultiDimensionalStatLogDao dao;
public Page<DjLwhhAttrDaily> djLwhhAttrDaily(Page<DjLwhhAttrDaily> page, DjLwhhAttrDaily entity) throws SQLException{
entity.setPage(page);
page.setList(dao.djLwhhAttrDaily(entity));
return page;
}
public Page<DjLwhhAttrMonth> djLwhhAttrMonth(Page<DjLwhhAttrMonth> page, DjLwhhAttrMonth entity) throws SQLException{
entity.setPage(page);
page.setList(dao.djLwhhAttrMonth(entity));
return page;
}
public Page<DjLwhhTagDaily> djLwhhTagDaily(Page<DjLwhhTagDaily> page, DjLwhhTagDaily entity) throws SQLException{
entity.setPage(page);
page.setList(dao.djLwhhTagDaily(entity));
return page;
}
public Page<DjLwhhTagMonth> djLwhhTagMonth(Page<DjLwhhTagMonth> page, DjLwhhTagMonth entity) throws SQLException{
entity.setPage(page);
page.setList(dao.djLwhhTagMonth(entity));
return page;
}
public Page<DjSrcIpAttrDaily> djSrcIpAttrDaily(Page<DjSrcIpAttrDaily> page, DjSrcIpAttrDaily entity) throws SQLException{
entity.setPage(page);
page.setList(dao.djSrcIpAttrDaily(entity));
return page;
}
public Page<DjSrcIpAttrMonth> djSrcIpAttrMonth(Page<DjSrcIpAttrMonth> page, DjSrcIpAttrMonth entity) throws SQLException{
entity.setPage(page);
page.setList(dao.djSrcIpAttrMonth(entity));
return page;
}
public Page<DjSrcIpTagDaily> djSrcIpTagDaily(Page<DjSrcIpTagDaily> page, DjSrcIpTagDaily entity) throws SQLException{
entity.setPage(page);
page.setList(dao.djSrcIpTagDaily(entity));
return page;
}
public Page<DjSrcIpTagMonth> djSrcIpTagMonth(Page<DjSrcIpTagMonth> page, DjSrcIpTagMonth entity) throws SQLException{
entity.setPage(page);
page.setList(dao.djSrcIpTagMonth(entity));
return page;
}
}

View File

@@ -1,186 +0,0 @@
package com.nis.web.service.restful;
import java.sql.SQLException;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.nis.domain.Page;
import com.nis.domain.restful.DjPzReportStat;
import com.nis.domain.restful.DjAttrTypeReport;
import com.nis.domain.restful.DjDestIpCountryReport;
import com.nis.domain.restful.DjEntranceReport;
import com.nis.domain.restful.DjLwhhReport;
import com.nis.domain.restful.DjSrcIpDomeSticReport;
import com.nis.domain.restful.DjTagReport;
import com.nis.domain.restful.DjPzReport;
import com.nis.web.dao.DjReportDao;
import com.nis.web.service.BaseLogService;
/**
*
* @ClassName: DjReportService
* @Description: TODO(一句话描述这个类)
* @author (ZBC)
* @date 2016年11月22日下午06:00:00
* @version V1.0
*/
@Service
public class DjReportService extends BaseLogService {
/**
* 持久层对象
*/
@Autowired
protected DjReportDao dao;
/**
* @Title: findDjPzReportPage
* @param page
* @param djPzReport
* @return
*/
public Page<DjPzReport> findDjPzReportPage(Page<DjPzReport> page, DjPzReport entity) {
entity.setPage(page);
page.setList(dao.findDjPzReport(entity));
return page;
}
public Page<DjPzReportStat> findDjPzReportStatPage(Page<DjPzReportStat> page, DjPzReportStat entity)
throws SQLException {
entity.setPage(page);
page.setList(dao.findDjPzReportStat(entity));
return page;
}
public Page<DjPzReportStat> findDjPzReportStatMinutesPage(Page<DjPzReportStat> page, DjPzReportStat entity)
throws SQLException {
entity.setPage(page);
page.setList(dao.findDjPzReportStatMinutes(entity));
return page;
}
public Page<DjPzReport> findDjPzPrivPage(Page<DjPzReport> page, DjPzReport entity) throws SQLException {
entity.setPage(page);
List<DjPzReport> findDjPzPrivPage = dao.findDjPzPrivPage(entity);
if (null != findDjPzPrivPage && findDjPzPrivPage.size() > 0) {
for (DjPzReport djPzReport : findDjPzPrivPage) {
if (null != djPzReport.getAsum() && djPzReport.getAsum() != 0) {
djPzReport.setAbsum(djPzReport.getAsum());
} else if ((null == djPzReport.getAsum() || djPzReport.getAsum() == 0)
&& (null != djPzReport.getBsum() && djPzReport.getBsum() != 0)) {
djPzReport.setAbsum(djPzReport.getBsum());
} else {
djPzReport.setAbsum(0l);
}
}
}
page.setList(findDjPzPrivPage);
return page;
}
public Long findDjPzReportSumStat(Page<DjPzReportStat> page, DjPzReportStat entity) throws SQLException {
return dao.findDjPzReportSum(entity);
}
public Page<DjAttrTypeReport> findAttrTypeReport(Page<DjAttrTypeReport> page, DjAttrTypeReport entity)
throws SQLException {
entity.setPage(page);
List<DjAttrTypeReport> findAttrTypeReport = dao.findAttrTypeReport(entity);
page.setList(findAttrTypeReport);
return page;
}
public Page<DjSrcIpDomeSticReport> findSrcIpDomeSticReport(Page<DjSrcIpDomeSticReport> page,
DjSrcIpDomeSticReport entity) throws SQLException {
entity.setPage(page);
List<DjSrcIpDomeSticReport> findSrcIpDomeSticReport = dao.findSrcIpDomeSticReport(entity);
if (null != findSrcIpDomeSticReport && findSrcIpDomeSticReport.size() > 0) {
for (DjSrcIpDomeSticReport djSrcIpDomeSticReport : findSrcIpDomeSticReport) {
if (null != djSrcIpDomeSticReport.getAsum() && djSrcIpDomeSticReport.getAsum() != 0) {
djSrcIpDomeSticReport.setAbsum(djSrcIpDomeSticReport.getAsum());
} else if ((null == djSrcIpDomeSticReport.getAsum() || djSrcIpDomeSticReport.getAsum() == 0)
&& (null != djSrcIpDomeSticReport.getBsum() && djSrcIpDomeSticReport.getBsum() != 0)) {
djSrcIpDomeSticReport.setAbsum(djSrcIpDomeSticReport.getBsum());
} else {
djSrcIpDomeSticReport.setAbsum(0l);
}
}
}
page.setList(findSrcIpDomeSticReport);
return page;
}
public Page<DjDestIpCountryReport> findDestIpCountryReport(Page<DjDestIpCountryReport> page,
DjDestIpCountryReport entity) throws SQLException {
entity.setPage(page);
List<DjDestIpCountryReport> destIpCountryReport = dao.findDestIpCountryReport(entity);
if (null != destIpCountryReport && destIpCountryReport.size() > 0) {
for (DjDestIpCountryReport djDestIpCountryReport : destIpCountryReport) {
if (null != djDestIpCountryReport.getAsum() && djDestIpCountryReport.getAsum() != 0) {
djDestIpCountryReport.setAbsum(djDestIpCountryReport.getAsum());
} else if ((null == djDestIpCountryReport.getAsum() || djDestIpCountryReport.getAsum() == 0)
&& (null != djDestIpCountryReport.getBsum() && djDestIpCountryReport.getBsum() != 0)) {
djDestIpCountryReport.setAbsum(djDestIpCountryReport.getBsum());
} else {
djDestIpCountryReport.setAbsum(0l);
}
}
}
page.setList(destIpCountryReport);
return page;
}
public Page<DjEntranceReport> findDjEntranceReport(Page<DjEntranceReport> page, DjEntranceReport entity)
throws SQLException {
entity.setPage(page);
List<DjEntranceReport> findDjEntranceReport = dao.findDjEntranceReport(entity);
if (null != findDjEntranceReport && findDjEntranceReport.size() > 0) {
for (DjEntranceReport djEntranceReport : findDjEntranceReport) {
if (null != djEntranceReport.getAsum() && djEntranceReport.getAsum() != 0) {
djEntranceReport.setAbsum(djEntranceReport.getAsum());
} else if ((null == djEntranceReport.getAsum() || djEntranceReport.getAsum() == 0)
&& (null != djEntranceReport.getBsum() && djEntranceReport.getBsum() != 0)) {
djEntranceReport.setAbsum(djEntranceReport.getBsum());
} else {
djEntranceReport.setAbsum(0l);
}
}
}
page.setList(findDjEntranceReport);
return page;
}
public Page<DjLwhhReport> findDjLwhhReport(Page<DjLwhhReport> page, DjLwhhReport entity) throws SQLException {
entity.setPage(page);
List<DjLwhhReport> findDjLwhhReport = dao.findDjLwhhReport(entity);
if (null != findDjLwhhReport && findDjLwhhReport.size() > 0) {
for (DjLwhhReport djLwhhReport : findDjLwhhReport) {
if (null != djLwhhReport.getAsum() && djLwhhReport.getAsum() != 0) {
djLwhhReport.setAbsum(djLwhhReport.getAsum());
} else if ((null == djLwhhReport.getAsum() || djLwhhReport.getAsum() == 0)
&& (null != djLwhhReport.getBsum() && djLwhhReport.getBsum() != 0)) {
djLwhhReport.setAbsum(djLwhhReport.getBsum());
} else {
djLwhhReport.setAbsum(0l);
}
}
}
page.setList(findDjLwhhReport);
return page;
}
public Page<DjTagReport> findDjTagReportPage(Page<DjTagReport> page, DjTagReport entity) throws SQLException {
entity.setPage(page);
List<DjTagReport> findDjTagReportPage = dao.findDjTagReportPage(entity);
page.setList(findDjTagReportPage);
return page;
}
}

View File

@@ -1,203 +0,0 @@
/**
* @Title: DjStatLogService.java
* @Package com.nis.web.service.restful
* @Description: TODO(用一句话描述该文件做什么)
* @author ddm
* @date 2016年9月13日 上午11:50:12
* @version V1.0
*/
package com.nis.web.service.restful;
import java.sql.SQLException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.nis.domain.Page;
import com.nis.domain.restful.DjAttrStatLogDaily;
import com.nis.domain.restful.DjAttrStatLogMonth;
import com.nis.domain.restful.DjDestIpCounrtyStatLogDaily;
import com.nis.domain.restful.DjDestIpCounrtyStatLogMonth;
import com.nis.domain.restful.DjEntrStatLogDaily;
import com.nis.domain.restful.DjEntrStatLogMonth;
import com.nis.domain.restful.DjLwhhStatLogDaily;
import com.nis.domain.restful.DjLwhhStatLogMonth;
import com.nis.domain.restful.DjSrcIpDomesticStatLogDaily;
import com.nis.domain.restful.DjSrcIpDomesticStatLogMonth;
import com.nis.domain.restful.DjStatLogDaily;
import com.nis.domain.restful.DjStatLogMonth;
import com.nis.domain.restful.DjTagStatLogDaily;
import com.nis.domain.restful.DjTagStatLogMonth;
import com.nis.web.dao.DjStatLogDao;
import com.nis.web.service.BaseLogService;
/**
* @ClassName: DjStatLogService
* @Description: TODO(这里用一句话描述这个类的作用)
* @author (ddm)
* @date 2016年9月13日 上午11:50:12
* @version V1.0
*/
@Service
public class DjStatLogService extends BaseLogService{
/**
* 持久层对象
*/
@Autowired
protected DjStatLogDao dao;
/**
* 查询端口封堵分页数据
* @param page 分页对象
* @param entity
* @return
*/
public Page<DjStatLogDaily> djStatLogDaily(Page<DjStatLogDaily> page, DjStatLogDaily entity) throws SQLException{
entity.setPage(page);
page.setList(dao.djStatLogDaily(entity));
return page;
}
/**
* 查询端口封堵分页数据
* @param page 分页对象
* @param entity
* @return
*/
public Page<DjStatLogMonth> djStatLogMonth(Page<DjStatLogMonth> page, DjStatLogMonth entity) throws SQLException{
entity.setPage(page);
page.setList(dao.djStatLogMonth(entity));
return page;
}
/**
* 查询标签日报表
* @param page 分页对象
* @param entity
* @return
*/
public Page<DjTagStatLogDaily> djTagStatLogDaily(Page<DjTagStatLogDaily> page, DjTagStatLogDaily entity) throws SQLException{
entity.setPage(page);
page.setList(dao.djTagStatLogDaily(entity));
return page;
}
/**
* 查询标签月报表
* @param page 分页对象
* @param entity
* @return
*/
public Page<DjTagStatLogMonth> djTagStatLogMonth(Page<DjTagStatLogMonth> page, DjTagStatLogMonth entity) throws SQLException{
entity.setPage(page);
page.setList(dao.djTagStatLogMonth(entity));
return page;
}
/**
* 查询性质日报表
* @param page 分页对象
* @param entity
* @return
*/
public Page<DjAttrStatLogDaily> djAttrStatLogDaily(Page<DjAttrStatLogDaily> page, DjAttrStatLogDaily entity) throws SQLException{
entity.setPage(page);
page.setList(dao.djAttrStatLogDaily(entity));
return page;
}
/**
* 查询性质月报表
* @param page 分页对象
* @param entity
* @return
*/
public Page<DjAttrStatLogMonth> djAttrStatLogMonth(Page<DjAttrStatLogMonth> page, DjAttrStatLogMonth entity) throws SQLException{
entity.setPage(page);
page.setList(dao.djAttrStatLogMonth(entity));
return page;
}
/**
* 查询局点日报表
* @param page 分页对象
* @param entity
* @return
*/
public Page<DjEntrStatLogDaily> djEntrStatLogDaily(Page<DjEntrStatLogDaily> page, DjEntrStatLogDaily entity) throws SQLException{
entity.setPage(page);
page.setList(dao.djEntrStatLogDaily(entity));
return page;
}
/**
* 查询局点月报表
* @param page 分页对象
* @param entity
* @return
*/
public Page<DjEntrStatLogMonth> djEntrStatLogMonth(Page<DjEntrStatLogMonth> page, DjEntrStatLogMonth entity) throws SQLException{
entity.setPage(page);
page.setList(dao.djEntrStatLogMonth(entity));
return page;
}
/**
* 查询来文函号日报表
* @param page 分页对象
* @param entity
* @return
*/
public Page<DjLwhhStatLogDaily> djLwhhStatLogDaily(Page<DjLwhhStatLogDaily> page, DjLwhhStatLogDaily entity) throws SQLException{
entity.setPage(page);
page.setList(dao.djLwhhStatLogDaily(entity));
return page;
}
/**
* 查询来文函号月报表
* @param page 分页对象
* @param entity
* @return
*/
public Page<DjLwhhStatLogMonth> djLwhhStatLogMonth(Page<DjLwhhStatLogMonth> page, DjLwhhStatLogMonth entity) throws SQLException{
entity.setPage(page);
page.setList(dao.djLwhhStatLogMonth(entity));
return page;
}
/**
* 查询境内源ip日报表
* @param page 分页对象
* @param entity
* @return
*/
public Page<DjSrcIpDomesticStatLogDaily> djSrcIpDomesticStatLogDaily(Page<DjSrcIpDomesticStatLogDaily> page, DjSrcIpDomesticStatLogDaily entity) throws SQLException{
entity.setPage(page);
page.setList(dao.djSrcIpDomesticStatLogDaily(entity));
return page;
}
/**
* 查询境内源ip月报表
* @param page 分页对象
* @param entity
* @return
*/
public Page<DjSrcIpDomesticStatLogMonth> djSrcIpDomesticStatLogMonth(Page<DjSrcIpDomesticStatLogMonth> page, DjSrcIpDomesticStatLogMonth entity) throws SQLException{
entity.setPage(page);
page.setList(dao.djSrcIpDomesticStatLogMonth(entity));
return page;
}
/**
* 查询国家目的ip日报表
* @param page 分页对象
* @param entity
* @return
*/
public Page<DjDestIpCounrtyStatLogDaily> djDestIpCounrtyStatLogDaily(Page<DjDestIpCounrtyStatLogDaily> page, DjDestIpCounrtyStatLogDaily entity) throws SQLException{
entity.setPage(page);
page.setList(dao.djDestIpCounrtyStatLogDaily(entity));
return page;
}
/**
* 查询国家目的ip月报表
* @param page 分页对象
* @param entity
* @return
*/
public Page<DjDestIpCounrtyStatLogMonth> djDestIpCounrtyStatLogMonth(Page<DjDestIpCounrtyStatLogMonth> page, DjDestIpCounrtyStatLogMonth entity) throws SQLException{
entity.setPage(page);
page.setList(dao.djDestIpCounrtyStatLogMonth(entity));
return page;
}
}

View File

@@ -202,6 +202,43 @@ public class UpdateCompileByJDBCThread implements Runnable {
}
}
/**
*
* @Description: 根据compileId更新与之对应的group关系表的生效状态
* @author (zdx)
* @date 2017年8月16日 上午9:46:44
* @param compileList
* @param conn
* @param opTime
* @param msgList
*/
public static void updateGroupByCompileId(List<ConfigCompile> compileList, Connection conn, Date opTime,
List<Exception> msgList) {
if (null != compileList && compileList.size() > 0) {
try {
StringBuffer sb = new StringBuffer();
sb.append("update CONFIG_GROUP set IS_VALID=?,op_time=?,LAST_UPDATE=sysdate where COMPILE_ID=? ");
conn.setAutoCommit(false);
PreparedStatement ps = conn.prepareStatement(sb.toString());
for (ConfigCompile compile : compileList) {
Object[] obj = new Object[] { compile.getIsValid(), opTime,compile.getCompileId() };
for (int x = 0; x < obj.length; x++) {
if (x == 1) {
ps.setTimestamp(x + 1, utileDate2TimeStamp(opTime));
} else {
ps.setObject(x + 1, obj[x]);
}
}
ps.addBatch();
}
ps.executeBatch();
} catch (Exception e) {
logger.error(e);
msgList.add(e);
}
}
}
public static void updateGroup(List<ConfigGroupRelation> groupList, Connection conn, Date opTime,
List<Exception> msgList) {
if (null != groupList && groupList.size() > 0) {
@@ -551,6 +588,10 @@ public class UpdateCompileByJDBCThread implements Runnable {
updateDigestRegion(tableName, digestRegionList, conn, opTime, msgList);
}
if((null !=compileList && compileList.size() > 0)&&(null != groupList && groupList.size()==0)){
updateGroupByCompileId(compileList, conn, opTime, msgList);
}
if((null !=compileList && compileList.size() > 0)&&(null != groupList && groupList.size()==0)){
updateGroupByCompileId(compileList, conn, opTime, msgList);
}

View File

@@ -1,50 +0,0 @@
/**
*@Title: DmbCkService.java
*@Package com.nis.web.service.restful
*@Description TODO
*@author wx
*@date 2016年9月7日 下午3:28:44
*@version 版本号
*/
package com.nis.web.service.restful.jk;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.nis.domain.restful.jk.JkDmbCk;
import com.nis.web.dao.jk.JkDmbCkDao;
import com.nis.web.service.CrudService;
/**
* @ClassName: DmbCkService.java
* @Description: TODO
* @author (wx)
* @date 2016年9月7日 下午3:28:44
* @version V1.0
*/
@Service
public class JkDmbCkService extends CrudService<JkDmbCkDao, JkDmbCk> {
@Autowired
public JkDmbCkDao jkDmbCkDao;
public JkDmbCk findById(long id) {
return get(id);
}
public void saveDmbCkBatch(List<JkDmbCk> entity) {
// TODO Auto-generated method stub
super.saveBatch(entity,JkDmbCkDao.class);
}
public void updateDmbCkBatch(List<JkDmbCk> entity) {
// TODO Auto-generated method stub
super.updateBatch(entity, JkDmbCkDao.class);
}
public void removeDmbCk(long id) {
jkDmbCkDao.delete(id);
}
public void removeDmbCkBatch(List<JkDmbCk> entity) {
super.deleteBatch(entity, JkDmbCkDao.class);
}
}

View File

@@ -1,51 +0,0 @@
/**
*@Title: JkFdZbService.java
*@Package com.nis.web.service.restful
*@Description TODO
*@author wx
*@date 2016年9月7日 下午3:28:44
*@version 版本号
*/
package com.nis.web.service.restful.jk;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.nis.domain.Page;
import com.nis.domain.restful.jk.JkFdZb;
import com.nis.web.dao.jk.JkFdZbDao;
import com.nis.web.service.CrudService;
/**
* @ClassName: JkFdZbService.java
* @Description: TODO
* @author (DDM)
* @date 2016年10月19日 下午21:28:44
* @version V1.0
*/
@Service
public class JkFdZbService extends CrudService<JkFdZbDao, JkFdZb> {
@Autowired
public JkFdZbDao dmbCkDao;
public Page<JkFdZb> getJkFdZb(Page<JkFdZb> page, JkFdZb entity) {
return findPage(page, entity);
}
public JkFdZb findById(long zbId) {
return get(zbId);
}
public void saveJkFdZbBatch(List<JkFdZb> entity) {
super.saveBatch(entity,JkFdZbDao.class);
}
public void updateJkFdZbBatch(List<JkFdZb> entity) {
super.updateBatch(entity, JkFdZbDao.class);
}
public void removeJkFdZb(long zbId) {
dmbCkDao.delete(zbId);
}
public void removeJkFdZbBatch(List<JkFdZb> entity) {
super.deleteBatch(entity, JkFdZbDao.class);
}
}

View File

@@ -1,44 +0,0 @@
/**
*@Title: JkFfjInfoService.java
*@Package com.nis.web.service.restful
*@Description TODO
*@author (zbc)
*@date 2016年10月19日 下午20:04:16
*@version 版本号
*/
package com.nis.web.service.restful.jk;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.nis.domain.Page;
import com.nis.domain.restful.jk.JkFdZb;
import com.nis.domain.restful.jk.JkFfjInfo;
import com.nis.web.dao.jk.JkFdZbDao;
import com.nis.web.dao.jk.JkFfjInfoDao;
import com.nis.web.service.CrudService;
/**
* @ClassName: JkFfjInfoService.java
* @Description: TODO
* @author (zbc)
* @date 2016年10月19日 下午20:04:16
* @version V1.0
*/
@Service
public class JkFfjInfoService extends CrudService<JkFfjInfoDao, JkFfjInfo> {
@Autowired
public JkFfjInfoDao jkFfjInfoDao;
public void saveJkFfjBatch(List<JkFfjInfo> entity) {
super.saveBatch(entity, JkFfjInfoDao.class);
}
public void updateJkFfjBatch(List<JkFfjInfo> entity) {
super.updateBatch(entity, JkFfjInfoDao.class);
}
}

View File

@@ -1,42 +0,0 @@
/**
*@Title: JkFfjInfoService.java
*@Package com.nis.web.service.restful
*@Description TODO
*@author (zbc)
*@date 2016年10月19日 下午20:04:16
*@version 版本号
*/
package com.nis.web.service.restful.jk;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.nis.domain.restful.jk.JkFwqInfo;
import com.nis.web.dao.jk.JkFwqInfoDao;
import com.nis.web.service.CrudService;
/**
* @ClassName: JkFfjInfoService.java
* @Description: TODO
* @author (zbc)
* @date 2016年10月19日 下午20:04:16
* @version V1.0
*/
@Service
public class JkFwqInfoService extends CrudService<JkFwqInfoDao, JkFwqInfo> {
@Autowired
public JkFwqInfoDao jkFwqInfoDao;
public void savejkFwqInfoBatch(List<JkFwqInfo> entity) {
super.saveBatch(entity, JkFwqInfoDao.class);
}
public void updatejkFwqInfoBatch(List<JkFwqInfo> entity) {
super.updateBatch(entity, JkFwqInfoDao.class);
}
}

View File

@@ -1,50 +0,0 @@
/**
*@Title: JkLyqService.java
*@Package com.nis.web.service.restful
*@Description TODO
*@author wx
*@date 2016年9月7日 下午3:28:44
*@version 版本号
*/
package com.nis.web.service.restful.jk;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.nis.domain.restful.jk.JkLyq;
import com.nis.web.dao.jk.JkLyqDao;
import com.nis.web.service.CrudService;
import com.nis.web.service.SaveRequestLogThread;
/**
* @ClassName: JkLyqService.java
* @Description: TODO
* @author (wx)
* @date 2016年9月7日 下午3:28:44
* @version V1.0
*/
@Service
public class JkLyqService extends CrudService<JkLyqDao, JkLyq> {
@Autowired
public JkLyqDao jkLyqDao;
public JkLyq findById(long id) {
return get(id);
}
public void saveJkLyqBatch(List<JkLyq> entity) {
// TODO Auto-generated method stub
super.saveBatch(entity,JkLyqDao.class);
}
public void updateJkLyqBatch(List<JkLyq> entity) {
// TODO Auto-generated method stub
super.updateBatch(entity, JkLyqDao.class);
}
public void removeJkLyq(long id) {
jkLyqDao.delete(id);
}
public void removeJkLyqBatch(List<JkLyq> entity) {
super.deleteBatch(entity, JkLyqDao.class);
}
}