|
|
@@ -1,6 +1,7 @@
|
|
|
package com.mooctest.crowd.site.data.vo;
|
|
|
|
|
|
import com.mooctest.crowd.domain.domainobject.CrowdTestTask;
|
|
|
+import com.mooctest.crowd.domain.domainobject.CrowdTestTaskAcceptStatus;
|
|
|
import com.mooctest.crowd.domain.domainobject.CrowdTestTaskStatus;
|
|
|
import lombok.Data;
|
|
|
|
|
|
@@ -28,10 +29,12 @@ public class CrowdTaskVO {
|
|
|
private String institution;
|
|
|
private String serviceType;
|
|
|
private int status;
|
|
|
+ private int fullStatus;
|
|
|
private Timestamp datetime;
|
|
|
private int participantCount;
|
|
|
private int acceptedCount;
|
|
|
private StatusVO statusVO;
|
|
|
+ private FullStatusVO fullStatusVO;
|
|
|
|
|
|
public CrowdTaskVO(CrowdTestTask task){
|
|
|
id = task.getCode();
|
|
|
@@ -47,6 +50,7 @@ public class CrowdTaskVO {
|
|
|
serviceType = task.getType();
|
|
|
requirementFile = task.getRequirementFile();
|
|
|
status = task.getStatus();
|
|
|
+ fullStatus = task.getFullStatus();
|
|
|
agencyId = task.getEvaluationAgencyId();
|
|
|
datetime = task.getDeadTime();
|
|
|
participantCount = task.getParticipantCount();
|
|
|
@@ -69,5 +73,14 @@ public class CrowdTaskVO {
|
|
|
this.statusVO.setText("已完成");
|
|
|
this.statusVO.setStyle("success");
|
|
|
}
|
|
|
+
|
|
|
+ this.fullStatusVO = new FullStatusVO();
|
|
|
+ if(this.fullStatus == CrowdTestTaskAcceptStatus.NOT_FULL){
|
|
|
+ this.fullStatusVO.setText("未满员");
|
|
|
+ this.fullStatusVO.setStyle("info");
|
|
|
+ }else if(this.fullStatus == CrowdTestTaskAcceptStatus.HAS_FULL){
|
|
|
+ this.fullStatusVO.setText("已满员");
|
|
|
+ this.fullStatusVO.setStyle("warning");
|
|
|
+ }
|
|
|
}
|
|
|
}
|