fix(followup-audio): handle unsigned zero menu sort during permission migration
This commit is contained in:
@@ -5,7 +5,7 @@ INSERT INTO zyt_system_menu (
|
||||
pid, type, name, icon, sort, perms, paths, component,
|
||||
selected, params, is_cache, is_show, is_disable, create_time, update_time
|
||||
)
|
||||
SELECT d.pid, 'A', '回访录音', '', GREATEST(MAX(d.sort) - 1, 0),
|
||||
SELECT d.pid, 'A', '回访录音', '', GREATEST(CAST(MAX(d.sort) AS SIGNED) - 1, 0),
|
||||
'tcm.diagnosis/followupAudio', '', '', '', '', 0, 1, 0, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()
|
||||
FROM zyt_system_menu AS d
|
||||
WHERE d.perms = 'tcm.diagnosis/dailyRecord' AND d.type = 'A'
|
||||
|
||||
Reference in New Issue
Block a user