wuweihao 4 лет назад
Родитель
Сommit
3037bafb1a

+ 3 - 3
gis_cms/src/main/java/com/gis/cms/entity/dto/CountAnswerDto.java

@@ -27,9 +27,9 @@ public class CountAnswerDto {
     @ApiModelProperty(value = "用户id", required = true)
     private Long  userId;
 
-    @NotNull(message = "耗时不能为空")
-    @ApiModelProperty(value = "耗时(单位:秒)", required = true)
-    private Long  time;
+//    @NotNull(message = "耗时不能为空")
+//    @ApiModelProperty(value = "耗时(单位:秒)", required = true)
+//    private Long  time;
 
 
 }

+ 2 - 2
gis_cms/src/main/java/com/gis/cms/entity/po/QuestionUserEntity.java

@@ -40,8 +40,8 @@ public class QuestionUserEntity extends BaseEntity implements Serializable {
     @Transient
     private String realName;
 
-    @ApiModelProperty(value = "耗时", required = true)
-    private Long  time;
+//    @ApiModelProperty(value = "耗时", required = true)
+//    private Long  time;
 
 
 }

+ 2 - 2
gis_cms/src/main/java/com/gis/cms/mapper/QuestionUserMapper.java

@@ -15,9 +15,9 @@ import java.util.List;
 public interface QuestionUserMapper extends IBaseMapper<QuestionUserEntity, Long> {
 
 //    @Select("select distinct a.user_id, a.score, a.id, b.real_name as realName from tb_question_user a left join sys_user b on b.id=a.user_id where a.is_delete=0 AND a.question_group_id=#{questionGroupId} order by a.score desc limit 10")
-    @Select("SELECT DISTINCT a.user_id,  max(a.score) as score ,a.id, b.real_name as realName, a.time, a.question_group_id " +
+    @Select("SELECT DISTINCT a.user_id,  max(a.score) as score ,a.id, b.real_name as realName, a.create_time, a.question_group_id " +
             "FROM tb_question_user a left join sys_user b on b.id=a.user_id  WHERE question_group_id=#{questionGroupId} " +
-            "GROUP BY user_id ORDER BY a.score desc, a.time   limit 10")
+            "GROUP BY user_id ORDER BY a.score desc, a.create_time limit 10")
     List<QuestionUserEntity> ranking(Long questionGroupId);