-- 稳态模块菜单图标修正脚本。
-- 本脚本不自动执行，请按数据库现状审阅后单独执行。

UPDATE sys_function
SET Icon = 'DataAnalysis'
WHERE State = 1
  AND Type = 0
  AND (
        Name = '稳态模块'
        OR Code IN ('steady', 'steadyModule', 'steadyDataView')
        OR Path IN ('/steady', '/steadyDataView', '/steady/data-view')
      );

UPDATE sys_function
SET Icon = 'DataBoard'
WHERE State = 1
  AND Type = 0
  AND (
        Name = '稳态数据'
        OR Code IN ('steadyData', 'steadyDataDetail')
        OR Path IN ('/steady/data', '/steady/data-view/detail', '/steadyDataView/index')
      );

UPDATE sys_function
SET Icon = 'TrendCharts'
WHERE State = 1
  AND Type = 0
  AND (
        Name = '稳态趋势'
        OR Code IN ('steadyTrend', 'steadyDataTrend')
        OR Path IN ('/steady/trend', '/steady/data-view/trend', '/steadyTrend/index')
      );

UPDATE sys_function
SET Icon = 'CircleCheck'
WHERE State = 1
  AND Type = 0
  AND (
        Name = '数据验证'
        OR Code IN ('dataValidation', 'steadyDataValidation')
        OR Path IN ('/steady/data-validation', '/steady/data-view/validation', '/dataValidation/index')
      );
