Skip to content

Commit

Permalink
流水线名称的排序没有按a~Z,导致了中英混杂的情况 TencentBlueKing#8508
Browse files Browse the repository at this point in the history
  • Loading branch information
yongyiduan committed Mar 22, 2023
1 parent 9320d68 commit 0177401
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -401,9 +401,9 @@ class PipelineBuildSummaryDao {
PipelineSortType.NAME -> {
T_PIPELINE_INFO.PIPELINE_NAME.let {
if (collation == PipelineCollation.DEFAULT || collation == PipelineCollation.ASC) {
DSL.field("convert({0} USING gbk)", it).asc()
it.asc()
} else {
DSL.field("convert({0} USING gbk)", it).desc()
it.desc()
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,7 @@ class PipelineInfoDao {
)
PipelineSortType.NAME -> transferOrder(
PIPELINE_NAME,
collation,
{ field -> DSL.field("convert({0} USING gbk)", String::class.java, field).desc() },
{ field -> DSL.field("convert({0} USING gbk)", String::class.java, field).asc() }
collation
)
else -> transferOrder(
CREATE_TIME,
Expand Down

0 comments on commit 0177401

Please sign in to comment.