You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
weaver-hrm-organization/src/com/engine/organization/mapper/department/DepartmentMapper.java

118 lines
2.3 KiB
Java

3 years ago
package com.engine.organization.mapper.department;
import com.engine.organization.entity.department.po.DepartmentPO;
import org.apache.ibatis.annotations.Param;
import java.util.Collection;
3 years ago
import java.util.List;
import java.util.Map;
3 years ago
/**
* @Author weaver_cl
3 years ago
* @description:
3 years ago
* @Date 2022/5/20
* @Version V1.0
**/
public interface DepartmentMapper {
List<DepartmentPO> getDeptListByCompId(@Param("parentComp") Integer parentComp);
3 years ago
List<DepartmentPO> getDeptListByPId(@Param("PId") Long PId);
3 years ago
3 years ago
int countChildByPID(@Param("pid") Long pid);
/**
*
*
* @return
*/
List<DepartmentPO> list(@Param("orderSql") String orderSql);
/**
3 years ago
* No
*
3 years ago
* @param deptNo
* @return
*/
3 years ago
List<DepartmentPO> listByNo(@Param("deptNo") String deptNo);
3 years ago
/**
*
*
* @return
*/
List<DepartmentPO> listByFilter(@Param("departmentPO") DepartmentPO departmentPO, @Param("orderSql") String orderSql);
/**
3 years ago
*
*
* @param ids
* @return
*/
3 years ago
List<Map<String, Object>> listDeptsByIds(@Param("ids") Collection<Long> ids);
3 years ago
List<DepartmentPO> getDeptsByIds(@Param("ids") Collection<Long> ids);
3 years ago
/**
* ID
*
* @param id
* @return
*/
DepartmentPO getDeptById(@Param("id") long id);
3 years ago
/**
* ID
*
* @param id
* @return
*/
String getDeptNameById(@Param("id") Long id);
3 years ago
/**
*
*
* @param departmentPO
* @return
*/
int insertIgnoreNull(DepartmentPO departmentPO);
/**
*
*
* @param departmentPO
* @return
*/
int updateBaseDept(DepartmentPO departmentPO);
/**
*
*
* @param departmentPO
* @return
*/
int updateForbiddenTagById(DepartmentPO departmentPO);
/**
*
*
* @param ids
*/
int deleteByIds(@Param("ids") Collection<Long> ids);
/**
* ID
*
* @return
*/
List<String> listUsedId();
/**
*
*
* @return
*/
int getMaxShowOrder();
3 years ago
}