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

OpenAPI 方式下,TimeExpressionType入参与后端接口获取的不匹配的bug #896

Open
shiyong888 opened this issue Apr 16, 2024 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@shiyong888
Copy link

自己本地打包后搭建(4.3.8版本)server.jar并先运行起来, 再本地搭建worker项目再运行,之后server-worker并打通且运行正常; 但当进行任务新建保存的时候,TimeExpressionType枚举入参与实际的接口参入的参数不一致。 大佬们可以查看一下,是不是我这边传参的问题,或者是powerjob自身的底层传值异常,谢谢大佬们!
123

@shiyong888 shiyong888 added the bug Something isn't working label Apr 16, 2024
@shiyong888
Copy link
Author

postman传入的时候,和idea控制台的TimeExpressionType传参不一致

@shiyong888
Copy link
Author

456

@Echo009
Copy link
Member

Echo009 commented Apr 16, 2024

没记错的话 Jackson 中对于枚举类的反序列化用的是 valueOf() 方法,需要传的是名称,所以你需要传的参数应该是 FIXED_DELAY

@shiyong888
Copy link
Author

其实TimeExpressionType传参是数字也是可以的,我不仅idea控制台正常,powerjob控制台也是可以的
678

@shiyong888
Copy link
Author

890

@shiyong888
Copy link
Author

FIXED_RATE(3)----固定频率的timeExpression也不应该是下面的格式的
990

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

3 participants