package com.goafanti.common.dao; import java.util.List; import com.goafanti.organization.bo.OrganizationListOut; import com.goafanti.admin.bo.AdminListBo; import com.goafanti.common.model.OrganizationManagement; import com.goafanti.common.model.OrganizationManagementExample; import org.apache.ibatis.annotations.Param; public interface OrganizationManagementMapper { /** * This method was generated by MyBatis Generator. This method corresponds to the database table organization_management * @mbg.generated Thu Nov 30 11:09:29 CST 2017 */ long countByExample(OrganizationManagementExample example); /** * This method was generated by MyBatis Generator. This method corresponds to the database table organization_management * @mbg.generated Thu Nov 30 11:09:29 CST 2017 */ int deleteByExample(OrganizationManagementExample example); /** * This method was generated by MyBatis Generator. This method corresponds to the database table organization_management * @mbg.generated Thu Nov 30 11:09:29 CST 2017 */ int deleteByPrimaryKey(String id); /** * This method was generated by MyBatis Generator. This method corresponds to the database table organization_management * @mbg.generated Thu Nov 30 11:09:29 CST 2017 */ int insert(OrganizationManagement record); /** * This method was generated by MyBatis Generator. This method corresponds to the database table organization_management * @mbg.generated Thu Nov 30 11:09:29 CST 2017 */ int insertSelective(OrganizationManagement record); /** * This method was generated by MyBatis Generator. This method corresponds to the database table organization_management * @mbg.generated Thu Nov 30 11:09:29 CST 2017 */ List selectByExample(OrganizationManagementExample example); /** * This method was generated by MyBatis Generator. This method corresponds to the database table organization_management * @mbg.generated Thu Nov 30 11:09:29 CST 2017 */ OrganizationManagement selectByPrimaryKey(String id); /** * This method was generated by MyBatis Generator. This method corresponds to the database table organization_management * @mbg.generated Thu Nov 30 11:09:29 CST 2017 */ int updateByExampleSelective(@Param("record") OrganizationManagement record, @Param("example") OrganizationManagementExample example); /** * This method was generated by MyBatis Generator. This method corresponds to the database table organization_management * @mbg.generated Thu Nov 30 11:09:29 CST 2017 */ int updateByExample(@Param("record") OrganizationManagement record, @Param("example") OrganizationManagementExample example); /** * This method was generated by MyBatis Generator. This method corresponds to the database table organization_management * @mbg.generated Thu Nov 30 11:09:29 CST 2017 */ int updateByPrimaryKeySelective(OrganizationManagement record); /** * This method was generated by MyBatis Generator. This method corresponds to the database table organization_management * @mbg.generated Thu Nov 30 11:09:29 CST 2017 */ int updateByPrimaryKey(OrganizationManagement record); List selectSuperId(); /** * 新增 * @param olo * @return */ int insert1(OrganizationListOut olo); /** * 根据组织名称查组织编号 */ String selectDepNoByName(String name); /** * 查询相同上级下编号数量 */ int selectDepNoCount(String superId); /** * 模糊查询负责人名称 */ List selectName(String name); OrganizationListOut selectAllById(String id); int deleteById(String id); String selectAdminNameById(String name); String selectIdByDepNo(String depNo); /** * 查询有相同上级组织的信息 * @param superId * @return */ List selectIDNBySuperId(String superId); int updateByNumber(OrganizationListOut olo); int selectCountBySuperId(String superId); String selectIdByName(String name); String selectNameById(String id); String selectDepNoById(String id); }