-
Couldn't load subscription status.
- Fork 511
bug:研发商店插件与流水线关联信息展示不正确 #12307 #12319
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
base: master
Are you sure you want to change the base?
Conversation
|
|
||
| import io.swagger.v3.oas.annotations.media.Schema | ||
|
|
||
| data class PipelineAtomInfo ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bean定义的不太好,缺乏插件标识关键字
| startUpdateTime: LocalDateTime? = null, | ||
| endUpdateTime: LocalDateTime? = null | ||
| endUpdateTime: LocalDateTime? = null, | ||
| isCheckTpi: Boolean = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isCheckTpi什么意思,看不懂,另外方法定义的参数太多了
| startUpdateTime: LocalDateTime? = null, | ||
| endUpdateTime: LocalDateTime? = null, | ||
| page: Int? = null, | ||
| pageSize: Int? = null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
方法定义参数太多,参数太多得封装成对象,另外page和pageSize不要允许传空
|
|
||
| pipelineAtomVersionInfo[key]?.add(atomVersion) | ||
| } | ||
| return allRecords.map { record -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dao不要写这么复杂的逻辑,而且这个逻辑有性能问题。方案是:这个dao方法只分页查出插件对应的流水线信息,在service里面根据当前页的流水线信息批量查出流水线使用的插件的版本(使用失效时间半小时的本地缓存,缓存中有的数据就不要去db查了,没有的数据才去db查)
No description provided.