INSERT INTO ciimp_privilege (
uuid,type,owner,privilege_code,company_code,department_code,loc_timezone,is_void
) select replace (UUID(),'-',''),'U',user_id,'SHARE_ACCOUNT_INFO,READ_ACCOUNT_INFO,MAINTAIN_COMPANY_INFO',
u.company_code,'*','UTC','0' from scdp_user u where u.user_id not in(select `owner` from ciimp_privilege ) and (u.is_admin is null or u.is_admin = 0 )

相关文章:

  • 2021-12-06
  • 2022-12-23
  • 2021-07-13
  • 2022-12-23
  • 2021-11-06
  • 2021-10-04
  • 2022-02-08
  • 2021-06-02
猜你喜欢
  • 2021-10-26
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2021-11-07
  • 2022-12-23
相关资源
相似解决方案