删除多余代码,修改框架配置
This commit is contained in:
@@ -1,120 +0,0 @@
|
||||
/**
|
||||
* @Title: ControlLog.java
|
||||
* @Package com.nis.domain
|
||||
* @Description: TODO(用一句话描述该文件做什么)
|
||||
* @author (darnell)
|
||||
* @date 2016年8月15日 下午4:11:12
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.domain;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.wordnik.swagger.annotations.ApiModel;
|
||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* @ClassName: ControlLog
|
||||
* @Description: TODO(这里用一句话描述这个类的作用)
|
||||
* @author (darnell)
|
||||
* @date 2016年8月15日 下午4:11:12
|
||||
* @version V1.0
|
||||
*/
|
||||
@ApiModel
|
||||
public class ControlLog extends BaseEntity<ControlLog> {
|
||||
/**
|
||||
* @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)
|
||||
*/
|
||||
private static final long serialVersionUID = 7644628891063420679L;
|
||||
/**
|
||||
*/
|
||||
@ApiModelProperty(value="域名", required=true)
|
||||
private String domain;
|
||||
@ApiModelProperty(value="标题", required=true)
|
||||
private String title;
|
||||
@ApiModelProperty(value="源IP", required=true)
|
||||
private String srcIp;
|
||||
@ApiModelProperty(value="应答IP", required=true)
|
||||
private String resIp;
|
||||
@ApiModelProperty(value="状态", required=true)
|
||||
private Integer status;
|
||||
@ApiModelProperty(value="操作时间", required=true)
|
||||
private Date optTime;
|
||||
/**
|
||||
* @return domain
|
||||
*/
|
||||
public String getDomain() {
|
||||
return domain;
|
||||
}
|
||||
/**
|
||||
* @param domain 要设置的 domain
|
||||
*/
|
||||
public void setDomain(String domain) {
|
||||
this.domain = domain;
|
||||
}
|
||||
/**
|
||||
* @return title
|
||||
*/
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
/**
|
||||
* @param title 要设置的 title
|
||||
*/
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
/**
|
||||
* @return srcIp
|
||||
*/
|
||||
public String getSrcIp() {
|
||||
return srcIp;
|
||||
}
|
||||
/**
|
||||
* @param srcIp 要设置的 srcIp
|
||||
*/
|
||||
public void setSrcIp(String srcIp) {
|
||||
this.srcIp = srcIp;
|
||||
}
|
||||
/**
|
||||
* @return resIp
|
||||
*/
|
||||
public String getResIp() {
|
||||
return resIp;
|
||||
}
|
||||
/**
|
||||
* @param resIp 要设置的 resIp
|
||||
*/
|
||||
public void setResIp(String resIp) {
|
||||
this.resIp = resIp;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return status
|
||||
*/
|
||||
public Integer getStatus() {
|
||||
return status;
|
||||
}
|
||||
/**
|
||||
* @param status 要设置的 status
|
||||
*/
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
/**
|
||||
* @return optTime
|
||||
*/
|
||||
public Date getOptTime() {
|
||||
return optTime;
|
||||
}
|
||||
/**
|
||||
* @param optTime 要设置的 optTime
|
||||
*/
|
||||
public void setOptTime(Date optTime) {
|
||||
this.optTime = optTime;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -1,179 +0,0 @@
|
||||
/**
|
||||
* @Title: LogEntity.java
|
||||
* @Package com.nis.domain
|
||||
* @Description: TODO(用一句话描述该文件做什么)
|
||||
* @author (darnell)
|
||||
* @date 2016年9月1日 上午10:16:54
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.domain;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.Map;
|
||||
import javax.xml.bind.annotation.XmlTransient;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.google.common.collect.Maps;
|
||||
import com.nis.util.JsonDateSerializer;
|
||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
*
|
||||
* @ClassName: DfJitLogEntity
|
||||
* @Description: TODO(实时统计公共实体部分)
|
||||
* @author (rkg)
|
||||
* @date 2016年9月13日下午2:54:12
|
||||
* @version V1.0
|
||||
*/
|
||||
public abstract class DfJitLogEntity<T> implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "id", required = true)
|
||||
protected Long statId;
|
||||
@ApiModelProperty(value = "统计时间", required = true)
|
||||
protected Date reportTime;
|
||||
@ApiModelProperty(value = "ip所属国家", required = false)
|
||||
protected String nation;
|
||||
@ApiModelProperty(value = "ip所属省", required = false)
|
||||
protected String province;
|
||||
@ApiModelProperty(value = "ip所属市", required = false)
|
||||
protected String city;
|
||||
@ApiModelProperty(value = "日志数量", required = true)
|
||||
protected Long sum;
|
||||
@ApiModelProperty(value = "业务类型", required = true)
|
||||
protected Integer service;
|
||||
|
||||
/**
|
||||
* 公共查询部分
|
||||
*/
|
||||
protected String searchReportStartTime;
|
||||
protected String searchReportEndTime;
|
||||
protected String searchService;
|
||||
|
||||
/**
|
||||
* 当前实体分页对象
|
||||
*/
|
||||
protected Page<T> page;
|
||||
|
||||
/**
|
||||
* 自定义SQL(SQL标识,SQL内容)
|
||||
*/
|
||||
protected Map<String, String> sqlMap;
|
||||
|
||||
public DfJitLogEntity() {
|
||||
super();
|
||||
}
|
||||
|
||||
public Long getStatId() {
|
||||
return statId;
|
||||
}
|
||||
|
||||
public void setStatId(Long statId) {
|
||||
this.statId = statId;
|
||||
}
|
||||
|
||||
@JsonSerialize(using = JsonDateSerializer.class)
|
||||
public Date getReportTime() {
|
||||
return reportTime;
|
||||
}
|
||||
|
||||
public void setReportTime(Date reportTime) {
|
||||
this.reportTime = reportTime;
|
||||
}
|
||||
|
||||
public String getNation() {
|
||||
return nation;
|
||||
}
|
||||
|
||||
public void setNation(String nation) {
|
||||
this.nation = nation;
|
||||
}
|
||||
|
||||
public String getProvince() {
|
||||
return province;
|
||||
}
|
||||
|
||||
public void setProvince(String province) {
|
||||
this.province = province;
|
||||
}
|
||||
|
||||
public String getCity() {
|
||||
return city;
|
||||
}
|
||||
|
||||
public void setCity(String city) {
|
||||
this.city = city;
|
||||
}
|
||||
|
||||
|
||||
public Long getSum() {
|
||||
return sum;
|
||||
}
|
||||
|
||||
public void setSum(Long sum) {
|
||||
this.sum = sum;
|
||||
}
|
||||
|
||||
public Integer getService() {
|
||||
return service;
|
||||
}
|
||||
|
||||
public void setService(Integer service) {
|
||||
this.service = service;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String getSearchReportStartTime() {
|
||||
return searchReportStartTime;
|
||||
}
|
||||
|
||||
public void setSearchReportStartTime(String searchReportStartTime) {
|
||||
this.searchReportStartTime = searchReportStartTime;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String getSearchReportEndTime() {
|
||||
return searchReportEndTime;
|
||||
}
|
||||
|
||||
public void setSearchReportEndTime(String searchReportEndTime) {
|
||||
this.searchReportEndTime = searchReportEndTime;
|
||||
}
|
||||
|
||||
|
||||
@JsonIgnore
|
||||
public String getSearchService() {
|
||||
return searchService;
|
||||
}
|
||||
|
||||
public void setSearchService(String searchService) {
|
||||
this.searchService = searchService;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
@XmlTransient
|
||||
public Page<T> getPage() {
|
||||
if (page == null) {
|
||||
page = new Page<T>();
|
||||
}
|
||||
return page;
|
||||
}
|
||||
|
||||
public void setPage(Page<T> page) {
|
||||
this.page = page;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
@XmlTransient
|
||||
public Map<String, String> getSqlMap() {
|
||||
if (sqlMap == null) {
|
||||
sqlMap = Maps.newHashMap();
|
||||
}
|
||||
return sqlMap;
|
||||
}
|
||||
|
||||
public void setSqlMap(Map<String, String> sqlMap) {
|
||||
this.sqlMap = sqlMap;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,149 +0,0 @@
|
||||
package com.nis.domain;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.xml.bind.annotation.XmlTransient;
|
||||
|
||||
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.google.common.collect.Maps;
|
||||
import com.nis.domain.Page;
|
||||
import com.nis.util.Configurations;
|
||||
import com.nis.util.JsonDateSerializer;
|
||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||
|
||||
public class DfReportEntity<T> implements Serializable {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 2990823464993846973L;
|
||||
@ApiModelProperty(value = "A系统", required = true)
|
||||
protected Long asum;
|
||||
@ApiModelProperty(value = "B系统", required = true)
|
||||
protected Long bsum;
|
||||
@ApiModelProperty(value = "C系统", required = true)
|
||||
protected Long csum;
|
||||
@ApiModelProperty(value = "统计时间", required = true)
|
||||
protected Date reportTime;
|
||||
|
||||
@ApiModelProperty(value = "全A+单B", required = true)
|
||||
protected Long absum;
|
||||
|
||||
public Long getAsum() {
|
||||
return asum;
|
||||
}
|
||||
|
||||
public void setAsum(Long asum) {
|
||||
this.asum = asum;
|
||||
}
|
||||
|
||||
public Long getBsum() {
|
||||
return bsum;
|
||||
}
|
||||
|
||||
public void setBsum(Long bsum) {
|
||||
this.bsum = bsum;
|
||||
}
|
||||
|
||||
@JsonSerialize(using = JsonDateSerializer.class)
|
||||
public Date getReportTime() {
|
||||
return reportTime;
|
||||
}
|
||||
|
||||
public void setReportTime(Date reportTime) {
|
||||
this.reportTime = reportTime;
|
||||
}
|
||||
|
||||
protected String searchReportStartTime;
|
||||
protected String searchReportEndTime;
|
||||
|
||||
@JsonIgnore
|
||||
public String getSearchReportStartTime() {
|
||||
return searchReportStartTime;
|
||||
}
|
||||
|
||||
public void setSearchReportStartTime(String searchReportStartTime) {
|
||||
this.searchReportStartTime = searchReportStartTime;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String getSearchReportEndTime() {
|
||||
return searchReportEndTime;
|
||||
}
|
||||
|
||||
public void setSearchReportEndTime(String searchReportEndTime) {
|
||||
this.searchReportEndTime = searchReportEndTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* 当前实体分页对象
|
||||
*/
|
||||
protected Page<T> page;
|
||||
|
||||
/**
|
||||
* 自定义SQL(SQL标识,SQL内容)
|
||||
*/
|
||||
protected Map<String, String> sqlMap;
|
||||
|
||||
@JsonIgnore
|
||||
@XmlTransient
|
||||
public Page<T> getPage() {
|
||||
if (page == null) {
|
||||
page = new Page<T>();
|
||||
}
|
||||
return page;
|
||||
}
|
||||
|
||||
public Page<T> setPage(Page<T> page) {
|
||||
this.page = page;
|
||||
return page;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
@XmlTransient
|
||||
public Map<String, String> getSqlMap() {
|
||||
if (sqlMap == null) {
|
||||
sqlMap = Maps.newHashMap();
|
||||
}
|
||||
return sqlMap;
|
||||
}
|
||||
|
||||
public void setSqlMap(Map<String, String> sqlMap) {
|
||||
this.sqlMap = sqlMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取数据库名称
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String getDbName() {
|
||||
return Configurations.getStringProperty("jdbc.type", "mysql");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return ReflectionToStringBuilder.toString(this);
|
||||
}
|
||||
|
||||
public Long getAbsum() {
|
||||
return absum;
|
||||
}
|
||||
|
||||
public void setAbsum(Long absum) {
|
||||
this.absum = absum;
|
||||
}
|
||||
|
||||
public Long getCsum() {
|
||||
return csum;
|
||||
}
|
||||
|
||||
public void setCsum(Long csum) {
|
||||
this.csum = csum;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,841 +0,0 @@
|
||||
/**
|
||||
* @Title: LogEntity.java
|
||||
* @Package com.nis.domain
|
||||
* @Description: TODO(用一句话描述该文件做什么)
|
||||
* @author (darnell)
|
||||
* @date 2016年9月1日 上午10:16:54
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.domain;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.xml.bind.annotation.XmlTransient;
|
||||
|
||||
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.google.common.collect.Maps;
|
||||
import com.nis.util.Configurations;
|
||||
import com.nis.util.JsonDateSerializer;
|
||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* @ClassName: LogEntity
|
||||
* @Description: TODO(日志公共实体部分)
|
||||
* @author (darnell)
|
||||
* @date 2016年9月1日 上午10:16:54
|
||||
* @version V1.0
|
||||
*/
|
||||
public abstract class LogEntity<T> implements Serializable {
|
||||
|
||||
/**
|
||||
* @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value="日志编号", required=true)
|
||||
protected Long id;
|
||||
|
||||
@ApiModelProperty(value="配置ID", required=true)
|
||||
protected Long cfgId;
|
||||
@ApiModelProperty(value="发现时间", required=true)
|
||||
protected Date foundTime;
|
||||
@ApiModelProperty(value="接收时间", required=true)
|
||||
protected Date recvTime;
|
||||
/*@ApiModelProperty(value="外层嵌套关联信息ID", required=true)
|
||||
protected Long overId;*/
|
||||
@ApiModelProperty(value="外层嵌套关联信息ID", required=true)
|
||||
protected String overId;
|
||||
@ApiModelProperty(value="协议类型", required=true)
|
||||
protected String protocol;
|
||||
@ApiModelProperty(value="服务端ip地址", required=true)
|
||||
protected String serverIp;
|
||||
@ApiModelProperty(value="客户端ip地址", required=true)
|
||||
protected String clientIp;
|
||||
@ApiModelProperty(value="服务端端口", required=true)
|
||||
protected Integer serverPort;
|
||||
@ApiModelProperty(value="客户端端口", required=true)
|
||||
protected Integer clientPort;
|
||||
@ApiModelProperty(value="嵌套协议类型", required=true)
|
||||
protected String nestProtocol;
|
||||
@ApiModelProperty(value="嵌套服务端ip地址", required=true)
|
||||
protected String nestServerIp;
|
||||
@ApiModelProperty(value="嵌套客户端ip地址", required=true)
|
||||
protected String nestClientIp;
|
||||
@ApiModelProperty(value="嵌套服务端端口", required=true)
|
||||
protected Integer nestServerPort;
|
||||
@ApiModelProperty(value="嵌套客户端端口", required=true)
|
||||
protected Integer nestClientPort;
|
||||
@ApiModelProperty(value="业务类型", required=true)
|
||||
protected Integer serviceType;
|
||||
@ApiModelProperty(value="出入口编号", required=true)
|
||||
protected Long entranceId;
|
||||
@ApiModelProperty(value="处理机IP", required=true)
|
||||
protected String cljIp;
|
||||
@ApiModelProperty(value="封堵包记录文件", required=true)
|
||||
protected String injectedPktFile;
|
||||
|
||||
@ApiModelProperty(value="存放现场日志文件的URL地址", required=true)
|
||||
protected String sceneFile;
|
||||
@ApiModelProperty(value="管控动作", required=true)
|
||||
protected Integer action;
|
||||
@ApiModelProperty(value="服务端地址定位信息", required=true)
|
||||
protected String serverLocate;
|
||||
@ApiModelProperty(value="客户端地址定位信息", required=true)
|
||||
protected String clientLocate;
|
||||
|
||||
|
||||
protected Long foundTimeCluster;
|
||||
protected Long recvTimeCluster;
|
||||
|
||||
|
||||
|
||||
|
||||
protected String searchFoundStartTime;
|
||||
protected String searchFoundEndTime;
|
||||
protected Long searchFoundStartTimeCluster;
|
||||
protected Long searchFoundEndTimeCluster;
|
||||
protected String searchCfgId;
|
||||
protected String searchProtocol;
|
||||
protected String searchServiceType;
|
||||
protected String searchServerIp;
|
||||
protected String searchClientIp;
|
||||
protected String searchEntranceId;
|
||||
protected String searchCljIp;
|
||||
protected String tableName;//神通数据库根据A/B版,动态切换表名
|
||||
|
||||
@JsonIgnore
|
||||
public Long getFoundTimeCluster() {
|
||||
return foundTimeCluster;
|
||||
}
|
||||
@JsonIgnore
|
||||
public Long getRecvTimeCluster() {
|
||||
return recvTimeCluster;
|
||||
}
|
||||
public void setFoundTimeCluster(Long foundTimeCluster) {
|
||||
this.foundTimeCluster = foundTimeCluster;
|
||||
}
|
||||
public void setRecvTimeCluster(Long recvTimeCluster) {
|
||||
this.recvTimeCluster = recvTimeCluster;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Long getSearchFoundStartTimeCluster() {
|
||||
return searchFoundStartTimeCluster;
|
||||
}
|
||||
public void setSearchFoundStartTimeCluster(Long searchFoundStartTimeCluster) {
|
||||
this.searchFoundStartTimeCluster = searchFoundStartTimeCluster;
|
||||
}
|
||||
@JsonIgnore
|
||||
public Long getSearchFoundEndTimeCluster() {
|
||||
return searchFoundEndTimeCluster;
|
||||
}
|
||||
public void setSearchFoundEndTimeCluster(Long searchFoundEndTimeCluster) {
|
||||
this.searchFoundEndTimeCluster = searchFoundEndTimeCluster;
|
||||
}
|
||||
@JsonIgnore
|
||||
public String getTableName() {
|
||||
return tableName;
|
||||
}
|
||||
public void setTableName(String tableName) {
|
||||
this.tableName = tableName;
|
||||
}
|
||||
public String getOverId() {
|
||||
return overId;
|
||||
}
|
||||
public void setOverId(String overId) {
|
||||
this.overId = overId;
|
||||
}
|
||||
/**
|
||||
* 当前实体分页对象
|
||||
*/
|
||||
protected Page<T> page;
|
||||
|
||||
/**
|
||||
* 自定义SQL(SQL标识,SQL内容)
|
||||
*/
|
||||
protected Map<String, String> sqlMap;
|
||||
|
||||
/**
|
||||
* @Title:
|
||||
* @Description: TODO
|
||||
* @param 入参
|
||||
*/
|
||||
public LogEntity() {
|
||||
super();
|
||||
}
|
||||
|
||||
public String getInjectedPktFile() {
|
||||
return injectedPktFile;
|
||||
}
|
||||
|
||||
public void setInjectedPktFile(String injectedPktFile) {
|
||||
this.injectedPktFile = injectedPktFile;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return id
|
||||
*/
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param id 要设置的 id
|
||||
*/
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return cfgId
|
||||
*/
|
||||
public Long getCfgId() {
|
||||
return cfgId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param cfgId 要设置的 cfgId
|
||||
*/
|
||||
public void setCfgId(Long cfgId) {
|
||||
this.cfgId = cfgId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return foundTime
|
||||
*/
|
||||
@JsonSerialize(using=JsonDateSerializer.class)
|
||||
public Date getFoundTime() {
|
||||
if(foundTime ==null && this.foundTimeCluster != null){
|
||||
foundTime=new Date(this.foundTimeCluster*1000);
|
||||
}
|
||||
return foundTime;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param foundTime 要设置的 foundTime
|
||||
*/
|
||||
public void setFoundTime(Date foundTime) {
|
||||
this.foundTime = foundTime;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return recvTime
|
||||
*/
|
||||
@JsonSerialize(using=JsonDateSerializer.class)
|
||||
public Date getRecvTime() {
|
||||
if(recvTime ==null && this.recvTimeCluster != null){
|
||||
recvTime=new Date(this.recvTimeCluster*1000);
|
||||
}
|
||||
return recvTime;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param recvTime 要设置的 recvTime
|
||||
*/
|
||||
public void setRecvTime(Date recvTime) {
|
||||
this.recvTime = recvTime;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return overId
|
||||
*/
|
||||
/*public Long getOverId() {
|
||||
return overId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
*//**
|
||||
* @param overId 要设置的 overId
|
||||
*//*
|
||||
public void setOverId(Long overId) {
|
||||
this.overId = overId;
|
||||
}*/
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return protocol
|
||||
*/
|
||||
public String getProtocol() {
|
||||
return protocol;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param protocol 要设置的 protocol
|
||||
*/
|
||||
public void setProtocol(String protocol) {
|
||||
this.protocol = protocol;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return serverIp
|
||||
*/
|
||||
public String getServerIp() {
|
||||
return serverIp;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param serverIp 要设置的 serverIp
|
||||
*/
|
||||
public void setServerIp(String serverIp) {
|
||||
this.serverIp = serverIp;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return clientIp
|
||||
*/
|
||||
public String getClientIp() {
|
||||
return clientIp;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param clientIp 要设置的 clientIp
|
||||
*/
|
||||
public void setClientIp(String clientIp) {
|
||||
this.clientIp = clientIp;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return serverPort
|
||||
*/
|
||||
public Integer getServerPort() {
|
||||
return serverPort;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param serverPort 要设置的 serverPort
|
||||
*/
|
||||
public void setServerPort(Integer serverPort) {
|
||||
this.serverPort = serverPort;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return clientPort
|
||||
*/
|
||||
public Integer getClientPort() {
|
||||
return clientPort;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param clientPort 要设置的 clientPort
|
||||
*/
|
||||
public void setClientPort(Integer clientPort) {
|
||||
this.clientPort = clientPort;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return nestProtocol
|
||||
*/
|
||||
public String getNestProtocol() {
|
||||
return nestProtocol;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param nestProtocol 要设置的 nestProtocol
|
||||
*/
|
||||
public void setNestProtocol(String nestProtocol) {
|
||||
this.nestProtocol = nestProtocol;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return nestServerIp
|
||||
*/
|
||||
public String getNestServerIp() {
|
||||
return nestServerIp;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param nestServerIp 要设置的 nestServerIp
|
||||
*/
|
||||
public void setNestServerIp(String nestServerIp) {
|
||||
this.nestServerIp = nestServerIp;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return nestClientIp
|
||||
*/
|
||||
public String getNestClientIp() {
|
||||
return nestClientIp;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param nestClientIp 要设置的 nestClientIp
|
||||
*/
|
||||
public void setNestClientIp(String nestClientIp) {
|
||||
this.nestClientIp = nestClientIp;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return nestServerPort
|
||||
*/
|
||||
public Integer getNestServerPort() {
|
||||
return nestServerPort;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param nestServerPort 要设置的 nestServerPort
|
||||
*/
|
||||
public void setNestServerPort(Integer nestServerPort) {
|
||||
this.nestServerPort = nestServerPort;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return nestClientPort
|
||||
*/
|
||||
public Integer getNestClientPort() {
|
||||
return nestClientPort;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param nestClientPort 要设置的 nestClientPort
|
||||
*/
|
||||
public void setNestClientPort(Integer nestClientPort) {
|
||||
this.nestClientPort = nestClientPort;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return serviceType
|
||||
*/
|
||||
public Integer getServiceType() {
|
||||
return serviceType;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param serviceType 要设置的 serviceType
|
||||
*/
|
||||
public void setServiceType(Integer serviceType) {
|
||||
this.serviceType = serviceType;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return entranceId
|
||||
*/
|
||||
public Long getEntranceId() {
|
||||
return entranceId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param entranceId 要设置的 entranceId
|
||||
*/
|
||||
public void setEntranceId(Long entranceId) {
|
||||
this.entranceId = entranceId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return cljIp
|
||||
*/
|
||||
public String getCljIp() {
|
||||
return cljIp;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param cljIp 要设置的 cljIp
|
||||
*/
|
||||
public void setCljIp(String cljIp) {
|
||||
this.cljIp = cljIp;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public String getServerLocate() {
|
||||
return serverLocate;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public void setServerLocate(String serverLocate) {
|
||||
this.serverLocate = serverLocate;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public String getClientLocate() {
|
||||
return clientLocate;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public void setClientLocate(String clientLocate) {
|
||||
this.clientLocate = clientLocate;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@JsonIgnore
|
||||
@XmlTransient
|
||||
public Page<T> getPage() {
|
||||
if (page == null){
|
||||
page = new Page<T>();
|
||||
}
|
||||
return page;
|
||||
}
|
||||
|
||||
public Page<T> setPage(Page<T> page) {
|
||||
this.page = page;
|
||||
return page;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
@XmlTransient
|
||||
public Map<String, String> getSqlMap() {
|
||||
if (sqlMap == null){
|
||||
sqlMap = Maps.newHashMap();
|
||||
}
|
||||
return sqlMap;
|
||||
}
|
||||
|
||||
public void setSqlMap(Map<String, String> sqlMap) {
|
||||
this.sqlMap = sqlMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取数据库名称
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String getDbName(){
|
||||
return Configurations.getStringProperty("jdbc.type", "mysql");
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (null == obj) {
|
||||
return false;
|
||||
}
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (!getClass().equals(obj.getClass())) {
|
||||
return false;
|
||||
}
|
||||
LogEntity<?> that = (LogEntity<?>) obj;
|
||||
return null == this.getId() ? false : this.getId().equals(that.getId());
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return searchFoundStartTime
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String getSearchFoundStartTime() {
|
||||
return searchFoundStartTime;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param searchFoundStartTime 要设置的 searchFoundStartTime
|
||||
*/
|
||||
public void setSearchFoundStartTime(String searchFoundStartTime) {
|
||||
this.searchFoundStartTime = searchFoundStartTime;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return searchFoundEndTime
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String getSearchFoundEndTime() {
|
||||
return searchFoundEndTime;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param searchFoundEndTime 要设置的 searchFoundEndTime
|
||||
*/
|
||||
public void setSearchFoundEndTime(String searchFoundEndTime) {
|
||||
this.searchFoundEndTime = searchFoundEndTime;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return searchCfgId
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String getSearchCfgId() {
|
||||
return searchCfgId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param searchCfgId 要设置的 searchCfgId
|
||||
*/
|
||||
public void setSearchCfgId(String searchCfgId) {
|
||||
this.searchCfgId = searchCfgId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return searchProtocol
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String getSearchProtocol() {
|
||||
return searchProtocol;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param searchProtocol 要设置的 searchProtocol
|
||||
*/
|
||||
public void setSearchProtocol(String searchProtocol) {
|
||||
this.searchProtocol = searchProtocol;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return searchServerIp
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String getSearchServerIp() {
|
||||
return searchServerIp;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param searchServerIp 要设置的 searchServerIp
|
||||
*/
|
||||
public void setSearchServerIp(String searchServerIp) {
|
||||
this.searchServerIp = searchServerIp;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return searchClientIp
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String getSearchClientIp() {
|
||||
return searchClientIp;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param searchClientIp 要设置的 searchClientIp
|
||||
*/
|
||||
public void setSearchClientIp(String searchClientIp) {
|
||||
this.searchClientIp = searchClientIp;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return searchEntranceId
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String getSearchEntranceId() {
|
||||
return searchEntranceId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param searchEntranceId 要设置的 searchEntranceId
|
||||
*/
|
||||
public void setSearchEntranceId(String searchEntranceId) {
|
||||
this.searchEntranceId = searchEntranceId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return searchCljIp
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String getSearchCljIp() {
|
||||
return searchCljIp;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param searchCljIp 要设置的 searchCljIp
|
||||
*/
|
||||
|
||||
public void setSearchCljIp(String searchCljIp) {
|
||||
this.searchCljIp = searchCljIp;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return searchServiceType
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String getSearchServiceType() {
|
||||
return searchServiceType;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param searchServiceType 要设置的 searchServiceType
|
||||
*/
|
||||
public void setSearchServiceType(String searchServiceType) {
|
||||
this.searchServiceType = searchServiceType;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public String getSceneFile() {
|
||||
return sceneFile;
|
||||
}
|
||||
public void setSceneFile(String sceneFile) {
|
||||
this.sceneFile = sceneFile;
|
||||
}
|
||||
|
||||
public Integer getAction() {
|
||||
return action;
|
||||
}
|
||||
public void setAction(Integer action) {
|
||||
this.action = action;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return ReflectionToStringBuilder.toString(this);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,203 +0,0 @@
|
||||
/**
|
||||
* @Title: StatLogEntity.java
|
||||
* @Package com.nis.domain
|
||||
* @Description: TODO(用一句话描述该文件做什么)
|
||||
* @author (ddm)
|
||||
* @date 2016年9月13日 上午10:49:01
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.domain;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.xml.bind.annotation.XmlTransient;
|
||||
|
||||
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.google.common.collect.Maps;
|
||||
import com.nis.util.Configurations;
|
||||
import com.nis.util.JsonDateSerializer;
|
||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* @ClassName: StatLogEntity
|
||||
* @Description: TODO(日志报表公共实体部分)
|
||||
* @author (ddm)
|
||||
* @date 2016年9月1日 上午10:16:54
|
||||
* @version V1.0
|
||||
*/
|
||||
public abstract class StatLogEntity<T> implements Serializable {
|
||||
|
||||
/**
|
||||
* @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)
|
||||
*/
|
||||
private static final long serialVersionUID = -5210683756718456730L;
|
||||
|
||||
@ApiModelProperty(value="私有标签", required=true)
|
||||
protected Integer service;
|
||||
@ApiModelProperty(value="生效系统", required=true)
|
||||
protected Integer activeSys;
|
||||
@ApiModelProperty(value="A版总计", required=true)
|
||||
protected Long asum;
|
||||
@ApiModelProperty(value="B版总计", required=true)
|
||||
protected Long bsum;
|
||||
@ApiModelProperty(value="全A+单B数量", required=true)
|
||||
protected Long absum;
|
||||
@ApiModelProperty(value="统计时间", required=true)
|
||||
protected Date statTime;
|
||||
|
||||
protected String searchStatStartTime;
|
||||
protected String searchStatEndTime;
|
||||
protected String searchService;
|
||||
protected String searchStatActiveSys;
|
||||
|
||||
|
||||
@JsonSerialize(using=JsonDateSerializer.class)
|
||||
public Date getStatTime() {
|
||||
return statTime;
|
||||
}
|
||||
public void setStatTime(Date statTime) {
|
||||
this.statTime = statTime;
|
||||
}
|
||||
|
||||
public Integer getActiveSys() {
|
||||
return activeSys;
|
||||
}
|
||||
public void setActiveSys(Integer activeSys) {
|
||||
this.activeSys = activeSys;
|
||||
}
|
||||
|
||||
public Integer getService() {
|
||||
return service;
|
||||
}
|
||||
|
||||
|
||||
public void setService(Integer service) {
|
||||
this.service = service;
|
||||
}
|
||||
|
||||
|
||||
public Long getAbsum() {
|
||||
return absum;
|
||||
}
|
||||
public Long getBsum() {
|
||||
return bsum;
|
||||
}
|
||||
public void setAbsum(Long absum) {
|
||||
this.absum = absum;
|
||||
}
|
||||
public void setBsum(Long bsum) {
|
||||
this.bsum = bsum;
|
||||
}
|
||||
public Long getAsum() {
|
||||
return asum;
|
||||
}
|
||||
public void setAsum(Long asum) {
|
||||
this.asum = asum;
|
||||
}
|
||||
|
||||
|
||||
@JsonIgnore
|
||||
public String getSearchStatStartTime() {
|
||||
return searchStatStartTime;
|
||||
}
|
||||
|
||||
|
||||
public void setSearchStatStartTime(String searchStatStartTime) {
|
||||
this.searchStatStartTime = searchStatStartTime;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String getSearchStatEndTime() {
|
||||
return searchStatEndTime;
|
||||
}
|
||||
|
||||
|
||||
public void setSearchStatEndTime(String searchStatEndTime) {
|
||||
this.searchStatEndTime = searchStatEndTime;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String getSearchService() {
|
||||
return searchService;
|
||||
}
|
||||
|
||||
|
||||
public void setSearchService(String searchService) {
|
||||
this.searchService = searchService;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String getSearchStatActiveSys() {
|
||||
return searchStatActiveSys;
|
||||
}
|
||||
public void setSearchStatActiveSys(String searchStatActiveSys) {
|
||||
this.searchStatActiveSys = searchStatActiveSys;
|
||||
}
|
||||
|
||||
/**
|
||||
* 当前实体分页对象
|
||||
*/
|
||||
protected Page<T> page;
|
||||
|
||||
/**
|
||||
* 自定义SQL(SQL标识,SQL内容)
|
||||
*/
|
||||
protected Map<String, String> sqlMap;
|
||||
|
||||
/**
|
||||
* @Title:
|
||||
* @Description: TODO
|
||||
* @param 入参
|
||||
*/
|
||||
public StatLogEntity() {
|
||||
super();
|
||||
}
|
||||
|
||||
|
||||
@JsonIgnore
|
||||
@XmlTransient
|
||||
public Page<T> getPage() {
|
||||
if (page == null){
|
||||
page = new Page<T>();
|
||||
}
|
||||
return page;
|
||||
}
|
||||
|
||||
public Page<T> setPage(Page<T> page) {
|
||||
this.page = page;
|
||||
return page;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
@XmlTransient
|
||||
public Map<String, String> getSqlMap() {
|
||||
if (sqlMap == null){
|
||||
sqlMap = Maps.newHashMap();
|
||||
}
|
||||
return sqlMap;
|
||||
}
|
||||
|
||||
public void setSqlMap(Map<String, String> sqlMap) {
|
||||
this.sqlMap = sqlMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取数据库名称
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String getDbName(){
|
||||
return Configurations.getStringProperty("jdbc.type", "mysql");
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return ReflectionToStringBuilder.toString(this);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -45,7 +45,7 @@ public class SysRole extends BaseEntity<SysRole>{
|
||||
|
||||
private Date createTime;
|
||||
|
||||
// 数据范围(1:所有数据;2:所在公司及以下数据;3:所在公司数据;4:所在部门及以下数据;5:所在部门数据;8:所在单位及以下数据;9:所在单位数据)
|
||||
// 数据范围(1:所有数据;2:所在国家中心及以下数据;3:所在国家中心数据;4:所在省中心及以下数据;5:所在省中心数据;8:所在部门及以下数据;9:所在部门数据)
|
||||
public static final Integer DATA_SCOPE_ALL = 1;
|
||||
public static final Integer DATA_SCOPE_COMPANY_AND_CHILD = 2;
|
||||
public static final Integer DATA_SCOPE_COMPANY = 3;
|
||||
|
||||
Reference in New Issue
Block a user