|
@@ -3,11 +3,7 @@ package com.qmth.teachcloud.mark.dto.mark;
|
|
|
import java.io.Serializable;
|
|
|
|
|
|
import com.qmth.teachcloud.common.contant.SystemConstant;
|
|
|
-import com.qmth.teachcloud.mark.entity.MarkArbitrateHistory;
|
|
|
-import com.qmth.teachcloud.mark.entity.MarkHeaderTag;
|
|
|
-import com.qmth.teachcloud.mark.entity.MarkSpecialTag;
|
|
|
-import com.qmth.teachcloud.mark.entity.MarkTask;
|
|
|
-import com.qmth.teachcloud.mark.entity.MarkUserGroup;
|
|
|
+import com.qmth.teachcloud.mark.entity.*;
|
|
|
import com.qmth.teachcloud.mark.params.MarkHeaderGroupResult;
|
|
|
|
|
|
public class SpecialTagDTO implements Serializable {
|
|
@@ -15,7 +11,7 @@ public class SpecialTagDTO implements Serializable {
|
|
|
private static final long serialVersionUID = -5424015292124065736L;
|
|
|
|
|
|
private String tagName;
|
|
|
-
|
|
|
+
|
|
|
private String tagType;
|
|
|
|
|
|
private Double positionX;
|
|
@@ -33,7 +29,7 @@ public class SpecialTagDTO implements Serializable {
|
|
|
}
|
|
|
|
|
|
public SpecialTagDTO(MarkSpecialTag markSpecialTag) {
|
|
|
- this.tagType = markSpecialTag.getTagType();
|
|
|
+ this.tagType = markSpecialTag.getTagType();
|
|
|
this.tagName = markSpecialTag.getTagName();
|
|
|
this.positionX = markSpecialTag.getPositionX();
|
|
|
this.positionY = markSpecialTag.getPositionY();
|
|
@@ -43,7 +39,7 @@ public class SpecialTagDTO implements Serializable {
|
|
|
}
|
|
|
|
|
|
public SpecialTagDTO(MarkHeaderTag tag) {
|
|
|
- this.tagType = tag.getTagType();
|
|
|
+ this.tagType = tag.getTagType();
|
|
|
this.tagName = tag.getTagName();
|
|
|
this.positionX = tag.getPositionX();
|
|
|
this.positionY = tag.getPositionY();
|
|
@@ -81,13 +77,13 @@ public class SpecialTagDTO implements Serializable {
|
|
|
markSpecialTag.setOffsetY(offsetY);
|
|
|
return markSpecialTag;
|
|
|
}
|
|
|
-
|
|
|
- public MarkHeaderTag transform(MarkHeaderGroupResult markResult, MarkUserGroup markUserGroup) {
|
|
|
- MarkHeaderTag markSpecialTag = new MarkHeaderTag();
|
|
|
+
|
|
|
+ public MarkHeaderTag transform(MarkHeaderGroupResult markResult, Long userId) {
|
|
|
+ MarkHeaderTag markSpecialTag = new MarkHeaderTag();
|
|
|
markSpecialTag.setId(SystemConstant.getDbUuid());
|
|
|
markSpecialTag.setStudentId(markResult.getStudentId());
|
|
|
- markSpecialTag.setGroupNumber(markUserGroup.getGroupNumber());
|
|
|
- markSpecialTag.setUserId(markUserGroup.getUserId());
|
|
|
+ markSpecialTag.setGroupNumber(markResult.getGroupNumber());
|
|
|
+ markSpecialTag.setUserId(userId);
|
|
|
markSpecialTag.setTagName(tagName);
|
|
|
markSpecialTag.setTagType(tagType);
|
|
|
markSpecialTag.setPositionX(positionX);
|
|
@@ -96,7 +92,7 @@ public class SpecialTagDTO implements Serializable {
|
|
|
markSpecialTag.setOffsetX(offsetX);
|
|
|
markSpecialTag.setOffsetY(offsetY);
|
|
|
return markSpecialTag;
|
|
|
- }
|
|
|
+ }
|
|
|
|
|
|
public String getTagName() {
|
|
|
return tagName;
|
|
@@ -146,12 +142,12 @@ public class SpecialTagDTO implements Serializable {
|
|
|
this.offsetY = offsetY;
|
|
|
}
|
|
|
|
|
|
- public String getTagType() {
|
|
|
- return tagType;
|
|
|
- }
|
|
|
+ public String getTagType() {
|
|
|
+ return tagType;
|
|
|
+ }
|
|
|
|
|
|
- public void setTagType(String tagType) {
|
|
|
- this.tagType = tagType;
|
|
|
- }
|
|
|
+ public void setTagType(String tagType) {
|
|
|
+ this.tagType = tagType;
|
|
|
+ }
|
|
|
|
|
|
}
|