add:
1. sort by version_name
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
</select>
|
||||
|
||||
<select id="selectCustomerCommonReleaseVersionPage" resultType="org.springblade.modules.common.pojo.vo.CommonReleaseVersionVO">
|
||||
SELECT DISTINCT ON (app_type, version_name)
|
||||
SELECT DISTINCT ON (string_to_array(version_name, '.')::int[], app_type)
|
||||
app_type,
|
||||
version_name,
|
||||
is_force_update,
|
||||
@@ -44,7 +44,7 @@
|
||||
dispatch_target_version
|
||||
FROM release_version
|
||||
WHERE is_deleted = 0
|
||||
ORDER BY app_type, version_name, id DESC
|
||||
ORDER BY string_to_array(version_name, '.')::int[] DESC, app_type, id DESC
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user