xufenglei
2017-12-07 dba72443e05e7b0a52ee85bfd9f4641aebc42c60
src/main/java/com/moral/service/impl/OrganizationServiceImpl.java
@@ -12,10 +12,11 @@
import com.moral.entity.Organization;
import com.moral.entity.OrganizationRelation;
import com.moral.entity.OrganizationRelationExample;
import com.moral.mapper.OrganizationMapper;
import com.moral.mapper.OrganizationRelationMapper;
import com.moral.service.OrganizationService;
import tk.mybatis.mapper.entity.Example;
@Service
public class OrganizationServiceImpl implements OrganizationService {
@@ -30,8 +31,8 @@
    public Set<Integer> getChildOrganizationIds(Integer orgId){
       Set<Integer> orgIds = new HashSet<Integer>();
       orgIds.add(orgId);
       OrganizationRelationExample example = new OrganizationRelationExample();
       example.or().andParentIdEqualTo(orgId);
       Example example = new Example(OrganizationRelation.class);
       example.or().andEqualTo("parentId",orgId);
       Organization organization = organizationMapper.selectByPrimaryKey(orgId);
       if (IS_DELETE_FALSE.equals(organization.getIsDelete())) {
          List<OrganizationRelation> organizationRelations = organizationRelationMapper.selectByExample(example);