Skip to content

Commit

Permalink
feat: 插件管理菜单对应插件列表增加默认公共插件显示 #10472
Browse files Browse the repository at this point in the history
  • Loading branch information
yjieliang committed Sep 25, 2024
1 parent cf99735 commit 74b4a45
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1057,6 +1057,7 @@ abstract class AtomServiceImpl @Autowired constructor() : AtomService {
): Page<InstalledAtom> {
return if (classifyCode == DEFAULT) {
getDefaultAtoms(
userId = userId,
projectCode = projectCode,
name = name,
page = page,
Expand Down Expand Up @@ -1153,6 +1154,7 @@ abstract class AtomServiceImpl @Autowired constructor() : AtomService {
* 获取默认安装的插件列表
*/
private fun getDefaultAtoms(
userId: String,
projectCode: String,
name: String?,
page: Int,
Expand All @@ -1174,7 +1176,8 @@ abstract class AtomServiceImpl @Autowired constructor() : AtomService {
atomCodes = atomCodeList.joinToString(","),
projectCode = projectCode
).data

val installTime =
client.get(ServiceProjectResource::class).getProjectByName(userId, projectCode).data?.createdAt
records.forEach {
val atomClassifyCode = DEFAULT
val classifyLanName = I18nUtil.getCodeLanMessage(
Expand All @@ -1196,7 +1199,7 @@ abstract class AtomServiceImpl @Autowired constructor() : AtomService {
summary = it.summary,
publisher = it.publisher,
installer = SYSTEM,
installTime = "",
installTime = installTime ?: "",
installType = DEFAULT,
pipelineCnt = pipelineStat?.get(it.atomCode) ?: 0,
hasPermission = false
Expand Down

0 comments on commit 74b4a45

Please sign in to comment.