eason.qian 7 years ago
parent 69120fb7cc
commit a206d3a8c5

@ -127,6 +127,7 @@ public class OrgManagerImpl implements OrgManager {
if (params.getString("org_id")==null){
if (manager.getInteger("org_id")!=null){
List<JSONObject> orgs = orgMapper.listOrgAndChild(manager.getIntValue("org_id"));
params.put("org_id",manager.getIntValue("org_id"));
if (orgs.size()>1){
List<Integer> orgIds = orgs.stream().map(org->org.getIntValue("org_id")).collect(Collectors.toList());
params.put("org_ids",orgIds);

Loading…
Cancel
Save