瀏覽代碼

fix:创建任务时上传需求文档

xuexiaobo 6 年之前
父節點
當前提交
ce3aa279d4

+ 3 - 0
site/src/main/java/com/mooctest/crowd/site/command/CrowdTestTaskCommand.java

@@ -30,6 +30,8 @@ public class CrowdTestTaskCommand {
 
     private Map<String, String> location;
 
+    private String requirementFile;
+
     private Long institution;
 
     @NotNull(message = "请填写截止时间")
@@ -62,6 +64,7 @@ public class CrowdTestTaskCommand {
         crowdTestTask.setType(type);
         crowdTestTask.setQuotedPrice(quotePrice);
         crowdTestTask.setFixedPrice(fixedPrice);
+        crowdTestTask.setRequirementFile(requirementFile);
         return crowdTestTask;
     }
 

+ 2 - 0
site/src/main/java/com/mooctest/crowd/site/data/vo/CrowdTaskVO.java

@@ -27,6 +27,7 @@ public class CrowdTaskVO {
     private String description;
     private Double quotePrice;
     private Double fixedPrice;
+    private String requirementFile;
     private Long resource;
     private Map<String, String> location;
     private String institution;
@@ -46,6 +47,7 @@ public class CrowdTaskVO {
         location.put("provinceCode", task.getDistributionProvince());
         location.put("cityCode", task.getDistributionCity());
         serviceType = task.getType();
+        requirementFile = task.getRequirementFile();
         status = task.getStatus();
         datetime = task.getDeadTime();
     }