/* 更新字段权限是否包含下级 */
update T_PERM_USERFIELDPERM  set fisincludesuborg = '1' where fid in (select fid from(
select ufp.fid from T_PERM_USERFIELDPERM ufp join T_PERM_USERPERM up on 
(ufp.fuserid=up.fuserid and ufp.forgid=up.forgid and ufp.fdimtype=up.fdimtype) where up.fisincludesuborg='1')T);

/* 更新数据权限是否包含下级 */
update T_PERM_USERDATAPERM set fisincludesuborg = '1' where fid in (select fid from(
select udp.fid from T_PERM_USERDATAPERM udp join T_PERM_USERPERM up on 
(udp.fuserid=up.fuserid and udp.forgid=up.forgid and udp.fdimtype=up.fdimtype) where up.fisincludesuborg='1')T);

/* 更新禁用权限是否包含下级 */
update T_PERM_DISFUNPERM set fisincludesuborg = '1' where fid in (select fid from(
select dp.fid from T_PERM_DISFUNPERM dp join T_PERM_USERROLE ur on 
(dp.fuserid=ur.fuserid and dp.forgid=ur.forgid and dp.fdimtype=ur.fdimtype) where ur.fisincludesuborg='1')T);