|
|
@@ -1,5 +1,7 @@
|
|
|
package com.uas.platform.b2c.prod.product.common.model;
|
|
|
|
|
|
+import com.alibaba.fastjson.annotation.JSONField;
|
|
|
+
|
|
|
import javax.persistence.*;
|
|
|
import java.io.Serializable;
|
|
|
|
|
|
@@ -39,6 +41,7 @@ public class CommonCount implements Serializable{
|
|
|
/**
|
|
|
* 执行sql语句
|
|
|
*/
|
|
|
+ @JSONField(serialize = false)
|
|
|
@Column(name = "cc_sql", length = 4000)
|
|
|
private String sql;
|
|
|
|
|
|
@@ -54,9 +57,17 @@ public class CommonCount implements Serializable{
|
|
|
@Column(name = "cc_usedfor")
|
|
|
private String usedFor;
|
|
|
|
|
|
+ /**
|
|
|
+ * 数据来源
|
|
|
+ */
|
|
|
+ @JSONField(serialize = false)
|
|
|
+ @Column(name = "cc_sourcetype")
|
|
|
+ private String sourceType;
|
|
|
+
|
|
|
/**
|
|
|
* 状态,是否激活(1:是;0:否)
|
|
|
*/
|
|
|
+ @JSONField(serialize = false)
|
|
|
@Column(name = "cc_status")
|
|
|
private Short status = 0;
|
|
|
|
|
|
@@ -115,4 +126,24 @@ public class CommonCount implements Serializable{
|
|
|
public void setStatus(Short status) {
|
|
|
this.status = status;
|
|
|
}
|
|
|
+
|
|
|
+ public String getSourceType() {
|
|
|
+ return sourceType;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSourceType(String sourceType) {
|
|
|
+ this.sourceType = sourceType;
|
|
|
+ }
|
|
|
+
|
|
|
+ public class SourceType {
|
|
|
+ /**
|
|
|
+ * SQL 通过SQL语句来执行获取结果
|
|
|
+ */
|
|
|
+ public static final String SQL = "SQL";
|
|
|
+ /**
|
|
|
+ * HTTP 通过HTTP接口来获取数据结果
|
|
|
+ */
|
|
|
+ public static final String HTTP = "HTTP";
|
|
|
+
|
|
|
+ }
|
|
|
}
|