diff --git a/src/main/java/cn/teammodel/model/dto/admin/exam/AnalysisDto.java b/src/main/java/cn/teammodel/model/dto/admin/exam/AnalysisDto.java index 95abd66..fa1bf71 100644 --- a/src/main/java/cn/teammodel/model/dto/admin/exam/AnalysisDto.java +++ b/src/main/java/cn/teammodel/model/dto/admin/exam/AnalysisDto.java @@ -17,4 +17,8 @@ public class AnalysisDto { private int count; @ApiModelProperty("翻页参数,后续滚动翻页回传给后端,没有就不管") private String token; + @ApiModelProperty("开始时间") + private Long startTime; + @ApiModelProperty("结束时间") + private Long endTime; } diff --git a/src/main/java/cn/teammodel/utils/GroupUtil.java b/src/main/java/cn/teammodel/utils/GroupUtil.java index 0a75232..1bec418 100644 --- a/src/main/java/cn/teammodel/utils/GroupUtil.java +++ b/src/main/java/cn/teammodel/utils/GroupUtil.java @@ -2,7 +2,6 @@ package cn.teammodel.utils; import cn.teammodel.common.ErrorCode; import cn.teammodel.config.exception.ServiceException; -import cn.teammodel.model.dto.admin.common.GroupDto; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.type.TypeFactory; import org.apache.http.HttpEntity; @@ -13,12 +12,8 @@ import org.apache.http.entity.StringEntity; import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.impl.client.HttpClients; import org.apache.http.util.EntityUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.context.ApplicationContext; -import org.springframework.context.support.ClassPathXmlApplicationContext; import org.springframework.core.env.Environment; -import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; import java.io.IOException; import java.util.HashMap; @@ -34,7 +29,7 @@ public class GroupUtil { public static Map getGroupId(Object obj, GroupUtil groupUtil, HttpServletRequest request,String url) { Map mapper = new HashMap<>(); String evnStr = groupUtil.env.getProperty("spring.env"); - String apiUrl = ""; + String apiUrl; if (evnStr != null && evnStr.equalsIgnoreCase("dev")) { apiUrl = "https://test.teammodel.cn" + url;