package com.consum.base.core; import com.consum.base.core.po.SYS_AGENCY; /** * 组织机构类通用service */ public class AgencyService { public static void main(String[] args) { } /** * 根据组织机构ID,获取组织机构树 * @param agency_id * @return */ public AgencyEntity getAgencyTreeEntityById(long agency_id){ AgencyEntity entity = new AgencyEntity(agency_id); entity.setAngency(new SYS_AGENCY()); entity.setFirstAgency(new SYS_AGENCY()); entity.setSecondAgency(new SYS_AGENCY()); entity.setThirdAgency(new SYS_AGENCY()); entity.setFourthAgency(new SYS_AGENCY()); return entity; } }