====== 后台批量修改电子病历权限 ======


 ===== 批量添加某工号,加上所有科室  =====


delete USER_DEPT where USER_ID='694'
insert into USER_DEPT select distinct  '694',t.dept_admission_to,0,0,600012,0,0,null,null FROM pat_visit t  where t.discharge_date_time is null and  dept_admission_to is not null


===== 批量把某工号的权限赋值给其他工号  =====


示例里,把黄振宇(694)权限,全部复制给陈巧儿(288)

delete JHAUTH_USER_VS_ROLE where user_id='288';


insert into JHAUTH_USER_VS_ROLE(USER_ID, ROLE_ID,SYNCHRO_FLAG, DEFAULT_ROLE_FLAG, HOSPITAL_NO) select 288, ROLE_ID,SYNCHRO_FLAG, DEFAULT_ROLE_FLAG, HOSPITAL_NO from JHAUTH_USER_VS_ROLE where user_id='694'