|
|
|
@ -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> |
|
|
|
|
|
|
|
|
|