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

[bug]: 获取不到商品信息和门店信息 #306

Open
3 tasks done
xiahaishan opened this issue Feb 23, 2024 · 1 comment
Open
3 tasks done

[bug]: 获取不到商品信息和门店信息 #306

xiahaishan opened this issue Feb 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@xiahaishan
Copy link

请确保您已阅读以上注意事项,并勾选下方的确认框。

  • 我已确认我已升级到最新版本(最新代码)测试过,问题依旧存在。
  • 我已经在 Issue Tracker 中找过我要提出的问题,没有找到相同问题的ISSUE。
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

campus框架版本

campus框架:1.1.9

本项目 campus-imaotai 版本

campus-imaotai:1.0.11

运行环境

Ubuntu

运行架构

x86

问题描述

我用的ubuntu docker部署的

此前用1.0.8就莫名奇妙约不上,后来发现以后上来看,门店信息页面获取不到,点刷新报
nested exception is org.apache.ibatis.exceptions.PersistenceException: ### Error updating database. Cause: java.lang.RuntimeException: Clock moved backwards. Refusing to generate id for 5270289245 milliseconds ### The error may exist in com/oddfar/campus/business/mapper/IItemMapper.java (best guess) ### The error may involve com.oddfar.campus.business.mapper.IItemMapper.insert ### The error occurred while executing an update ### Cause: java.lang.RuntimeException: Clock moved backwards. Refusing to generate id for 5270289245 milliseconds

后来我升级到1.0.11 稳定了几天,这两天又频发

现在重启了好几次都不好使 后来 门店能拿到了,商品页又拿不到了。

期望的结果是什么?

这个是否可以考虑做个定时任务每天自动拉一下数据存起来。预约的时候先看库里是否存了今天的数据,如果没存再起个协程请求,如果有就不要再请求了吧。。
image

简单的复现代码/链接(可选)

No response

日志记录(可选)

No response

补充说明(可选)

No response

@xiahaishan xiahaishan added the bug Something isn't working label Feb 23, 2024
@for7GG
Copy link

for7GG commented Mar 5, 2024

系统关机后,重新开机就会出现,id生成方法可以修改为uuid,不依赖系统时间

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants