SysOrganizationMapper.java 1.35 KB
package com.glsx.usercenter.mapper;


import com.glsx.usercenter.pojo.menu.SysOrganization;
import com.glsx.usercenter.pojo.menu.SysOrganizationExample;
import org.apache.ibatis.annotations.Param;

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

public interface SysOrganizationMapper {
    long countByExample(SysOrganizationExample example);

    int deleteByExample(SysOrganizationExample example);

    int deleteByPrimaryKey(Integer id);


    int insertSelective(SysOrganization record);

    List<SysOrganization> selectByExample(SysOrganizationExample example);

    SysOrganization selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") SysOrganization record, @Param("example") SysOrganizationExample example);

    int updateByExample(@Param("record") SysOrganization record, @Param("example") SysOrganizationExample example);

    int updateByPrimaryKeySelective(SysOrganization record);

    int updateByPrimaryKey(SysOrganization record);


    List<SysOrganization> findOrgByParams(Map map);

    List<SysOrganization> findOrgByParentId(@Param("id") Integer id);

    List<SysOrganization> getAllGroupByParentId(@Param("id") Integer id, @Param("parentId") Integer parentId);

    SysOrganization selectDetailById(Integer id);


    List<Integer> selectOrgByUserId(@Param("userId") Integer userId);

}