作者官方网站:http://www.wxl568.cn
sql语句统计case when else 输出状态类型 实例
case event_id when 'hrss_clock_001' then '员工登陆打卡微服务'
when 'hrss_clock_002' then '请求服务器失败2'
when 'hrss_clock_003' then '请求服务器失败3'
when 'hrss_clock_004' then '网络不佳4'
when 'hrss_clock_005' then '网络不佳5'
when 'hrss_clock_006' then 'GPS未开启6'
when 'hrss_clock_007' then 'GPS未开启7'
when 'hrss_clock_008' then 'GPS未开启8'
when 'hrss_clock_009' then '点击打卡'
when 'hrss_clock_010' then '关闭模拟地点的提醒'
when 'hrss_clock_011' then '打卡成功'
when 'hrss_clock_012' then '打卡失败12'
when 'hrss_clock_013' then '打卡失败13'
when 'hrss_clock_014' then '员工成功登陆GPS后台'
when 'hrss_clock_015' then '员工打卡成功显示弹框'
when 'hrss_clock_016' then '点击进入地址变更界面'
when 'hrss_clock_017' then '模拟定位打卡'
when 'view_page_auto' then '登录访问'
when 'error_auto' then '登录失败'
else '' end as event_name