1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- package com.huaxu.dao;
- import com.baomidou.mybatisplus.core.metadata.IPage;
- import com.huaxu.dto.OrgTree;
- import com.huaxu.entity.Org;
- import com.huaxu.model.ProgramItem;
- import org.apache.ibatis.annotations.Mapper;
- import org.apache.ibatis.annotations.Param;
- import java.util.List;
- /**
- * 组织(Org)表数据库访问层
- *
- * @author makejava
- * @since 2020-10-26 14:55:43
- */
- @Mapper
- public interface OrgMapper {
- /**
- * 通过ID查询单条数据
- *
- * @param id 主键
- * @return 实例对象
- */
- Org selectById(Integer id);
- /**
- * 查询全部
- *
- * @return 对象列表
- */
- List<Org> selectAll();
- /**
- * 通过实体作为筛选条件查询
- *
- * @param org 实例对象
- * @return 对象列表
- */
- List<Org> selectList(Org org);
- /**
- * 新增数据
- *
- * @param org 实例对象
- * @return 影响行数
- */
- int insert(Org org);
- /**
- * 批量新增
- *
- * @param orgs 实例对象的集合
- * @return 影响行数
- */
- int batchInsert(List<Org> orgs);
- /**
- * 修改数据
- *
- * @param org 实例对象
- * @return 影响行数
- */
- int update(Org org);
- /**
- * 通过主键删除数据
- *
- * @param id 主键
- * @return 影响行数
- */
- int deleteById(Integer id);
- /**
- * 查询总数据数
- *
- * @return 数据总数
- */
- int count();
- IPage<Org> selectPage(IPage<Org> page, Org org);
- Org findOrgUser(Org org);
- Org findOrgType(Org org);
- List<OrgTree> selectTrees(Org org);
- List<Org> findOrgByTenant(String tenantId);
- String findParentOrgByChildId(@Param(value = "childId") Integer childId);
- Integer countCompanyByUser( @Param("tenantId")String tenantId, @Param("userType")String userType,
- @Param("programItems")List<ProgramItem> programItems);
- }
|