Skip to content

Conversation

@Kzhou991
Copy link
Collaborator

No description provided.


import io.swagger.v3.oas.annotations.media.Schema

data class PipelineAtomInfo (
Copy link
Collaborator

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
Copy link
Collaborator

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
Copy link
Collaborator

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 ->
Copy link
Collaborator

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查)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants