public void testAssessAuthorityBuildDept2() { List<AssessDeptPrincipal> prin = new ArrayList<AssessDeptPrincipal>(); AssessDeptPrincipal p = new AssessDeptPrincipal(); p.setDeptId("463"); p.setDeptName("浙江事业部"); p.setPrincipal("003998"); prin.add(p); Set<String> auths = new HashSet<String>(); auths.add("2005"); List<AssessDept> depts = new ArrayList<AssessDept>(); AssessDept dept = new AssessDept(); dept.setId("106139"); dept.setDeptName("经营本部"); depts.add(dept); AssessDept dept1 = new AssessDept(); dept1.setId("106139"); dept1.setDeptName("事业部"); depts.add(dept1); MarketAssessUtils.assessAuthorityBuildDept(prin, auths, depts); AssessDept dept2 = new AssessDept(); dept2.setId("106139"); dept2.setDeptName("大区"); depts.add(dept2); MarketAssessUtils.assessAuthorityBuildDept(prin, auths, depts); AssessDept dept3 = new AssessDept(); dept3.setId("106139"); dept3.setDeptName("营业区"); depts.add(dept3); MarketAssessUtils.assessAuthorityBuildDept(prin, auths, depts); }
public void testAssessAuthorityBuildDept1() { Set<String> auths = new HashSet<String>(); auths.add("2005"); List<AssessDept> depts = new ArrayList<AssessDept>(); AssessDept dept = new AssessDept(); dept.setId("106139"); dept.setDeptName("2121"); depts.add(dept); MarketAssessUtils.assessAuthorityBuildDept(null, auths, depts); }