工厂系统员工权限查看语句
发布日期:2023/3/25 7:42:21 浏览量:
select bu.Code as [工号],bu.Title as [姓名],bp.Memo as [权限名称],bp.ItemName as [权限组],’Y’ as [查看],(CASE WHEN up.Power2=1 THEN ’Y’ ELSE ’N’ END) as [新建]
,(CASE WHEN up.Power3=1 THEN ’Y’ ELSE ’N’ END) as [编辑],(CASE WHEN up.Power4=1 THEN ’Y’ ELSE ’N’ END) as [删除]
,(CASE WHEN up.Power5=1 THEN ’Y’ ELSE ’N’ END) as [审核] from [bdUserPower] up left join [biUser] bu on bu.ID=UserID left join [biSystemPower] bp on bp.ID=up.PowerID order by UserID
go
马上咨询: 如果您有业务方面的问题或者需求,欢迎您咨询!我们带来的不仅仅是技术,还有行业经验积累。
QQ: 39764417/308460098 Phone: 13 9800 1 9844 / 135 6887 9550 联系人:石先生/雷先生