Title / Description
Code public Boolean isTheAccountToApprove(List<String> groupandrole, Long flownodeId) { if (flownodeId == null) return false; TFlowNodeCM node = get(TFlowNodeCM.class, flownodeId); TPriGroupCM group = node.getTPriGroup(); TPriRoleCM role = node.getTPriRole(); for (int i = 0; i < groupandrole.size(); i++) { String[] gr = groupandrole.get(i).split("a"); String groupid = gr[0]; String roleid = gr[1]; if (roleid.equals(role.getME_roleid().toString()) && groupid.equals(group.getME_groupid().toString())) return true; } return false; }
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code