Zmiany pomiędzy wersją 5 and wersją 6 dla DeployerGuide/Custumization/AdvancedReporting/SQLExamples
- Data i czas:
- 12/18/13 00:33:04 (11 years temu)
Legend:
- Bez zmian
- Dodane
- Usunięte
- Zmienione
-
DeployerGuide/Custumization/AdvancedReporting/SQLExamples
v5 v6 186 186 WHERE clsnam = 'DOCUMENT|2' ORDER BY state_ 187 187 188 -- Osoby z cech do których użytkownik ma prawo 189 SELECT ftopid, ftopnm 190 FROM 191 features_options 192 INNER JOIN features_options_def USING(fodfid) 193 LEFT JOIN users u ON u.initls = ftopnm 194 LEFT JOIN orgtree_view ov ON ov.usr_id = u.usr_id 195 WHERE featid = 91 196 AND (CASE WHEN (SELECT count(*) > 0 FROM users_link_group WHERE grp_id = 29 AND usr_id = {LOGGED_USR_ID}) THEN 1 = 1 ELSE chkUsrOrgAcc({LOGGED_USR_ID}, ov.orunid) IS TRUE END) 197 ORDER BY ftopnm 198 188 199 }}}