ISysOrganizationService.java 1.3 KB
/**
 *
 */
package com.glsx.usercenter.service;

import com.glsx.common.constants.ResultObject;
import com.glsx.usercenter.pojo.menu.SysOrganization;
import com.glsx.usercenter.pojo.menu.SysOrganizationExample;
import com.glsx.usercenter.pojo.user.SysUser;

import java.util.List;
import java.util.Map;

/**
 * @author Zheng Xiajun
 * @ClassName: ISysOrganizationServic
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @date 2019年1月21日
 */
public interface ISysOrganizationService {
    long countByExample(SysOrganizationExample example);

    ResultObject deleteByPrimaryKey(Integer id);

    ResultObject insertSelective(SysOrganization record, Integer userId);

    List<SysOrganization> selectByExample(String orgName, Byte orgStatus, SysUser sysUser);

    SysOrganization selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SysOrganization record);

    List<SysOrganization> findOrgsByParams(Map map);

    List<SysOrganization> findOrgById(Integer id);

    SysOrganization selectDetailById(Integer id);

    /**
     * @param orgId
     * @return Integer
     * @author duanht
     * @Title: getGroupIdByOrgId
     * @Description: TODO 根据组织id获取集团id
     */
    public Integer getGroupIdByOrgId(Integer orgId);

}