|
@@ -16,8 +16,8 @@ import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import java.sql.Timestamp;
|
|
|
import java.util.ArrayList;
|
|
|
-import java.util.Date;
|
|
|
import java.util.List;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
@@ -75,7 +75,7 @@ public class QuestionWrongController extends BaseController {
|
|
|
questionWrong.setUserId(SecurityUtils.getLoginUser().getStudent().getId());
|
|
|
questionWrong.setKm(wrong.getKm());
|
|
|
questionWrong.setQuestionId(wgYunDTO.getId());
|
|
|
- Date crDate = new Date(wgYunDTO.getTimestamp());
|
|
|
+ Timestamp crDate = new Timestamp(wgYunDTO.getTimestamp());
|
|
|
questionWrong.setCreateTime(crDate);
|
|
|
qlist.add(questionWrong);
|
|
|
}
|
|
@@ -104,7 +104,7 @@ public class QuestionWrongController extends BaseController {
|
|
|
questionWrong.setUserId(userId);
|
|
|
questionWrong.setKm(wrong.getKm());
|
|
|
questionWrong.setQuestionId(wgYunDTO.getId());
|
|
|
- Date crDate = new Date(wgYunDTO.getTimestamp());
|
|
|
+ Timestamp crDate = new Timestamp(wgYunDTO.getTimestamp());
|
|
|
questionWrong.setCreateTime(crDate);
|
|
|
qlist.add(questionWrong);
|
|
|
}
|