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

102 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> getDeptListByPId(@Param("PId") Integer PId);
3 years ago
/**
*
*
* @return
*/
List<DepartmentPO> listAll(@Param("orderSql") String orderSql);
/**
3 years ago
* No
*
* @param departmentCode
* @return
*/
List<DepartmentPO> listByNo(@Param("departmentCode") String departmentCode);
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") Integer id);
3 years ago
/**
* ID
*
* @param id
* @return
*/
String getDeptNameById(@Param("id") Integer id);
/**
* ID
*
* @return
*/
List<String> listUsedId();
/**
*
*
* @return
*/
Double getMaxShowOrder();
3 years ago
/**
*
*
3 years ago
* @param departmentName
* @param subCompanyId1
* @param supDepId
3 years ago
* @return
*/
Integer getIdByNameAndPid(@Param("departmentName") String departmentName, @Param("subCompanyId1") Integer subCompanyId1, @Param("supDepId") Integer supDepId);
3 years ago
int checkRepeatNo(@Param("departmentCode") String departmentCode, @Param("id") Long id);
List<String> hasSubs();
int countUsedInJob(@Param("supDepId") Long supDepId);
String getIdByDepartmentCode(@Param("departmentCode") String departmentCode);
3 years ago
String getDepartmentPrincipal(@Param("deptId") Integer deptId);
3 years ago
}