|
|
@@ -4,6 +4,7 @@ import java.util.List;
|
|
|
|
|
|
import com.uas.kanban.annotation.FieldProperty;
|
|
|
import com.uas.kanban.base.BaseEntity;
|
|
|
+import com.uas.kanban.support.SystemSession;
|
|
|
|
|
|
/**
|
|
|
* 看板
|
|
|
@@ -15,6 +16,17 @@ public class Kanban extends BaseEntity {
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
+ /**
|
|
|
+ * 默认切换频率为 10 s
|
|
|
+ */
|
|
|
+ public static final double DEFAULT_SWITCH_FREQUENCY = 10;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 资源点 code
|
|
|
+ */
|
|
|
+ @FieldProperty(nullable = false)
|
|
|
+ private String resourcePointCode;
|
|
|
+
|
|
|
/**
|
|
|
* 看板名称
|
|
|
*/
|
|
|
@@ -43,6 +55,21 @@ public class Kanban extends BaseEntity {
|
|
|
*/
|
|
|
private String iconCls;
|
|
|
|
|
|
+ @Override
|
|
|
+ public void init() {
|
|
|
+ ResourcePoint resourcePoint = SystemSession.checkResourcePoint();
|
|
|
+ resourcePointCode = resourcePoint.getCode();
|
|
|
+ super.init();
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getResourcePointCode() {
|
|
|
+ return resourcePointCode;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setResourcePointCode(String resourcePointCode) {
|
|
|
+ this.resourcePointCode = resourcePointCode;
|
|
|
+ }
|
|
|
+
|
|
|
public String getName() {
|
|
|
return name;
|
|
|
}
|
|
|
@@ -85,9 +112,10 @@ public class Kanban extends BaseEntity {
|
|
|
|
|
|
@Override
|
|
|
public String toString() {
|
|
|
- return "Kanban [name=" + name + ", templateCodes=" + templateCodes + ", display=" + display
|
|
|
- + ", switchFrequency=" + switchFrequency + ", iconCls=" + iconCls + ", id=" + id + ", createTime="
|
|
|
- + createTime + ", lastModified=" + lastModified + ", version=" + version + ", code=" + code + "]";
|
|
|
+ return "Kanban [resourcePointCode=" + resourcePointCode + ", name=" + name + ", templateCodes=" + templateCodes
|
|
|
+ + ", display=" + display + ", switchFrequency=" + switchFrequency + ", iconCls=" + iconCls + ", id="
|
|
|
+ + id + ", createTime=" + createTime + ", lastModified=" + lastModified + ", version=" + version
|
|
|
+ + ", code=" + code + "]";
|
|
|
}
|
|
|
|
|
|
/**
|