|
@ -23,6 +23,7 @@ import com.epmet.modules.partymember.entity.IcPartyMemberEntity; |
|
|
import com.epmet.resi.partymember.dto.partyOrg.IcPartyOrgDTO; |
|
|
import com.epmet.resi.partymember.dto.partyOrg.IcPartyOrgDTO; |
|
|
import com.epmet.resi.partymember.dto.partyOrg.form.PartyOrgTreeListDTO; |
|
|
import com.epmet.resi.partymember.dto.partyOrg.form.PartyOrgTreeListDTO; |
|
|
import com.epmet.resi.partymember.dto.partyOrg.result.BranchlistTreeDTO; |
|
|
import com.epmet.resi.partymember.dto.partyOrg.result.BranchlistTreeDTO; |
|
|
|
|
|
import com.epmet.resi.partymember.dto.partyOrg.result.BranchlistTreeSubDTO; |
|
|
import com.epmet.resi.partymember.dto.partyOrg.result.IcPartyOrgTreeDTO; |
|
|
import com.epmet.resi.partymember.dto.partyOrg.result.IcPartyOrgTreeDTO; |
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
@ -220,7 +221,12 @@ public class IcPartyOrgServiceImpl extends BaseServiceImpl<IcPartyOrgDao, IcPart |
|
|
result.setValue(staffInfo.getAgencyId()); |
|
|
result.setValue(staffInfo.getAgencyId()); |
|
|
// result.setOrgPids(staffInfo.getAgencyPIds());
|
|
|
// result.setOrgPids(staffInfo.getAgencyPIds());
|
|
|
result.setLabel(staffInfo.getAgencyName()); |
|
|
result.setLabel(staffInfo.getAgencyName()); |
|
|
result.setChildren(baseDao.selectAllBranchByAgencyId(staffInfo.getAgencyId(),tokenDto.getCustomerId())); |
|
|
//该行政组织下的所有类型为支部的党组织
|
|
|
|
|
|
List<BranchlistTreeSubDTO> orgList = baseDao.selectAllBranchByAgencyId(staffInfo.getAgencyId(),tokenDto.getCustomerId()); |
|
|
|
|
|
if(CollectionUtils.isEmpty(orgList)){ |
|
|
|
|
|
return new Result<List<BranchlistTreeDTO>>().ok(resultList); |
|
|
|
|
|
} |
|
|
|
|
|
result.setChildren(orgList); |
|
|
resultList.add(result); |
|
|
resultList.add(result); |
|
|
return new Result<List<BranchlistTreeDTO>>().ok(resultList); |
|
|
return new Result<List<BranchlistTreeDTO>>().ok(resultList); |
|
|
} |
|
|
} |
|
|