|
@@ -2,6 +2,7 @@ package com.qmth.teachcloud.mark.dto.mark;
|
|
|
|
|
|
import java.io.Serializable;
|
|
import java.io.Serializable;
|
|
|
|
|
|
|
|
+import com.qmth.teachcloud.common.contant.SystemConstant;
|
|
import com.qmth.teachcloud.mark.entity.MarkArbitrateHistory;
|
|
import com.qmth.teachcloud.mark.entity.MarkArbitrateHistory;
|
|
import com.qmth.teachcloud.mark.entity.MarkHeaderTag;
|
|
import com.qmth.teachcloud.mark.entity.MarkHeaderTag;
|
|
import com.qmth.teachcloud.mark.entity.MarkSpecialTag;
|
|
import com.qmth.teachcloud.mark.entity.MarkSpecialTag;
|
|
@@ -12,6 +13,8 @@ public class SpecialTagDTO implements Serializable {
|
|
private static final long serialVersionUID = -5424015292124065736L;
|
|
private static final long serialVersionUID = -5424015292124065736L;
|
|
|
|
|
|
private String tagName;
|
|
private String tagName;
|
|
|
|
+
|
|
|
|
+ private String tagType;
|
|
|
|
|
|
private Double positionX;
|
|
private Double positionX;
|
|
|
|
|
|
@@ -28,6 +31,7 @@ public class SpecialTagDTO implements Serializable {
|
|
}
|
|
}
|
|
|
|
|
|
public SpecialTagDTO(MarkSpecialTag markSpecialTag) {
|
|
public SpecialTagDTO(MarkSpecialTag markSpecialTag) {
|
|
|
|
+ this.tagType = markSpecialTag.getTagType();
|
|
this.tagName = markSpecialTag.getTagName();
|
|
this.tagName = markSpecialTag.getTagName();
|
|
this.positionX = markSpecialTag.getPositionX();
|
|
this.positionX = markSpecialTag.getPositionX();
|
|
this.positionY = markSpecialTag.getPositionY();
|
|
this.positionY = markSpecialTag.getPositionY();
|
|
@@ -37,6 +41,7 @@ public class SpecialTagDTO implements Serializable {
|
|
}
|
|
}
|
|
|
|
|
|
public SpecialTagDTO(MarkHeaderTag tag) {
|
|
public SpecialTagDTO(MarkHeaderTag tag) {
|
|
|
|
+ this.tagType = tag.getTagType();
|
|
this.tagName = tag.getTagName();
|
|
this.tagName = tag.getTagName();
|
|
this.positionX = tag.getPositionX();
|
|
this.positionX = tag.getPositionX();
|
|
this.positionY = tag.getPositionY();
|
|
this.positionY = tag.getPositionY();
|
|
@@ -47,6 +52,7 @@ public class SpecialTagDTO implements Serializable {
|
|
|
|
|
|
public MarkSpecialTag transform(MarkTask markTask) {
|
|
public MarkSpecialTag transform(MarkTask markTask) {
|
|
MarkSpecialTag markSpecialTag = new MarkSpecialTag();
|
|
MarkSpecialTag markSpecialTag = new MarkSpecialTag();
|
|
|
|
+ markSpecialTag.setId(SystemConstant.getDbUuid());
|
|
markSpecialTag.setTaskId(markTask.getId());
|
|
markSpecialTag.setTaskId(markTask.getId());
|
|
markSpecialTag.setTagName(tagName);
|
|
markSpecialTag.setTagName(tagName);
|
|
markSpecialTag.setPositionX(positionX);
|
|
markSpecialTag.setPositionX(positionX);
|
|
@@ -54,15 +60,18 @@ public class SpecialTagDTO implements Serializable {
|
|
markSpecialTag.setOffsetIndex(offsetIndex);
|
|
markSpecialTag.setOffsetIndex(offsetIndex);
|
|
markSpecialTag.setOffsetX(offsetX);
|
|
markSpecialTag.setOffsetX(offsetX);
|
|
markSpecialTag.setOffsetY(offsetY);
|
|
markSpecialTag.setOffsetY(offsetY);
|
|
|
|
+ markSpecialTag.setTagType(tagType);
|
|
return markSpecialTag;
|
|
return markSpecialTag;
|
|
}
|
|
}
|
|
|
|
|
|
public MarkHeaderTag transform(MarkArbitrateHistory arbitrateHistory) {
|
|
public MarkHeaderTag transform(MarkArbitrateHistory arbitrateHistory) {
|
|
MarkHeaderTag markSpecialTag = new MarkHeaderTag();
|
|
MarkHeaderTag markSpecialTag = new MarkHeaderTag();
|
|
|
|
+ markSpecialTag.setId(SystemConstant.getDbUuid());
|
|
markSpecialTag.setStudentId(arbitrateHistory.getStudentId());
|
|
markSpecialTag.setStudentId(arbitrateHistory.getStudentId());
|
|
markSpecialTag.setGroupNumber(arbitrateHistory.getGroupNumber());
|
|
markSpecialTag.setGroupNumber(arbitrateHistory.getGroupNumber());
|
|
markSpecialTag.setUserId(arbitrateHistory.getUpdateUserId());
|
|
markSpecialTag.setUserId(arbitrateHistory.getUpdateUserId());
|
|
markSpecialTag.setTagName(tagName);
|
|
markSpecialTag.setTagName(tagName);
|
|
|
|
+ markSpecialTag.setTagType(tagType);
|
|
markSpecialTag.setPositionX(positionX);
|
|
markSpecialTag.setPositionX(positionX);
|
|
markSpecialTag.setPositionY(positionY);
|
|
markSpecialTag.setPositionY(positionY);
|
|
markSpecialTag.setOffsetIndex(offsetIndex);
|
|
markSpecialTag.setOffsetIndex(offsetIndex);
|
|
@@ -118,4 +127,13 @@ public class SpecialTagDTO implements Serializable {
|
|
public void setOffsetY(Integer offsetY) {
|
|
public void setOffsetY(Integer offsetY) {
|
|
this.offsetY = offsetY;
|
|
this.offsetY = offsetY;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ public String getTagType() {
|
|
|
|
+ return tagType;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setTagType(String tagType) {
|
|
|
|
+ this.tagType = tagType;
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|