Browse Source

日志表增加主建

shaohongbo 3 years ago
parent
commit
1d955f2332

+ 4 - 4
src/main/java/com/persagy/apm/diagnose/constant/EnumComputeLogType.java

@@ -9,19 +9,19 @@ package com.persagy.apm.diagnose.constant;
  * Update By cuixubin 2018年8月27日: 下午7:01:08
  */
 public enum EnumComputeLogType {
-	ComputeType(0L, "计算日志"), SendDataType(1L, "发数日志");
+	ComputeType(0, "计算日志"), SendDataType(1, "发数日志");
 
-	private long code;
+	private Integer code;
 	private String name;
 
-	public long getCode() {
+	public Integer getCode() {
 		return code;
 	}
 	public String getName() {
 		return name;
 	}
 
-	EnumComputeLogType(long code, String name) {
+	EnumComputeLogType(Integer code, String name) {
 		this.code = code;
 		this.name = name;
 	}

+ 1 - 1
src/main/java/com/persagy/apm/diagnose/indicatorrecord/service/impl/MonitorIndicatorRecordServiceImpl.java

@@ -177,7 +177,7 @@ public class MonitorIndicatorRecordServiceImpl implements IMonitorIndicatorRecor
                 save.setObjId(objId);
                 save.setLogType(EnumComputeLogType.ComputeType.getCode());
                 save.setDataTime(lastComputeTime);
-                save.setComputeRound(Long.getLong(projectIndicatorCompute==null?"1":projectIndicatorCompute.getComputeRound()+""));
+                save.setComputeRound(projectIndicatorCompute==null?1:projectIndicatorCompute.getComputeRound());
                 save.setLogInfo(CommonUtils.getExceptionStackTrace(e));
                 save.setLogTime(new Date());
                 save.setId(UUID.randomUUID().toString());

+ 2 - 2
src/main/java/com/persagy/framework/ems/data/pojo/hbase/IndicatorComputeLog.java

@@ -50,7 +50,7 @@ public class IndicatorComputeLog extends BusinessObject {
 
 	@Column(order = 60, name = "log_type", length = 1, nullable = false, comment = "0计算日志,1发数日志")
 	@JsonProperty("logType")
-	private Long logType;
+	private Integer logType;
 
 
 	@Column(order = 70, name = "data_time", length = 50, nullable = false, comment = "数据时间")
@@ -59,7 +59,7 @@ public class IndicatorComputeLog extends BusinessObject {
 
 	@Column(order = 80, name = "compute_round", length = 128, nullable = true, comment = "计算论次")
 	@JsonProperty("computeRound")
-	private Long computeRound;
+	private Integer computeRound;
 
 	@Column(order = 90, name = "log_info", length = 128, nullable = false, comment = "日志详情")
 	@JsonProperty("logInfo")