Browse Source

1.修改pda排序

pull/1/head
0.0 1 year ago
parent
commit
8de9977bfe
  1. 7
      blade-service/blade-system/src/main/java/org/springblade/system/mapper/PdaversionManageMapper.xml

7
blade-service/blade-system/src/main/java/org/springblade/system/mapper/PdaversionManageMapper.xml

@ -45,9 +45,10 @@
WHERE
bpm.release_time <= now() and bpt.betenant_code =#{betenantCode} and bpm.version_type = #{versionType}
ORDER BY
SUBSTRING_INDEX(SUBSTRING_INDEX(bpm.version_name, '.', 1), '.', 1) + 0 desc,
SUBSTRING_INDEX(SUBSTRING_INDEX(bpm.version_name, '.', 2), '.', 1) + 0 desc,
SUBSTRING_INDEX(SUBSTRING_INDEX(bpm.version_name, '.', 2), '.', -1) + 0 desc
SUBSTRING_INDEX( SUBSTRING_INDEX( bpm.version_name, '.', 1 ), '.', -1 ) + 0 DESC,
SUBSTRING_INDEX( SUBSTRING_INDEX( bpm.version_name, '.', 2 ), '.', -1 ) + 0 DESC,
SUBSTRING_INDEX( SUBSTRING_INDEX( bpm.version_name, '.', 3 ), '.', - 1 ) + 0 DESC,
bpm.create_time DESC
LIMIT 1
</select>

Loading…
Cancel
Save