Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行test用例报错,,请问你们是如何解决这个问题的? #612

Closed
kibozh opened this issue Aug 6, 2024 · 7 comments
Closed
Assignees
Labels
question Further information is requested

Comments

@kibozh
Copy link

kibozh commented Aug 6, 2024

碰到问题,请在 https://github.com/YunaiV/ruoyi-vue-pro/issues 搜索是否存在相似的 issue。

不按照模板提交的 issue,会被系统自动删除。

基本信息

  • ruoyi-vue-pro 版本:任意版本
  • 操作系统:任意操作系统
  • 数据库:mysql8

你猜测可能的原因

(必填)我花费了 2-4 小时自查,发现可能的原因是:看了一下主要是java时间和mysql时间长度不一致。
其中java的LocalDataTime精确到纳秒,mysql的datetime时间精确到微秒。这样存库后再查出来比对,时间是不一致的。
请问你们是如何解决这个问题的?是自己手动把LocalDateTime的精度四舍五入精确到微妙,还是改数据库字段的时间格式?
还是其他更好的解决方法?请指教,谢谢大佬。

复现步骤

第一步,

第二步,

第三步,

报错信息

image

@kibozh
Copy link
Author

kibozh commented Aug 6, 2024

算了,最后选择skipTest

@YunaiV
Copy link
Owner

YunaiV commented Aug 6, 2024

你是 windows11 么?

目前看,好像就它会出现。

@YunaiV
Copy link
Owner

YunaiV commented Aug 8, 2024

https://github.com/YunaiV/ruoyi-vue-pro/pulls

先参考这个解决哈

@YunaiV YunaiV closed this as completed Aug 8, 2024
@YunaiV YunaiV self-assigned this Aug 8, 2024
@YunaiV YunaiV added the question Further information is requested label Aug 8, 2024
@kibozh
Copy link
Author

kibozh commented Aug 8, 2024

https://github.com/YunaiV/ruoyi-vue-pro/pulls

先参考这个解决哈

我看到有这个pr,但是好像你这边没有选择合并

@kibozh
Copy link
Author

kibozh commented Aug 8, 2024

你是 windows11 么?

目前看,好像就它会出现。

对的,确实是win11

@kibozh
Copy link
Author

kibozh commented Aug 8, 2024

不是还没解决吗?怎么这么着急标记为已完成

@YunaiV
Copy link
Owner

YunaiV commented Aug 9, 2024

#491

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants