package com.qianwen.smartman.modules.cps.service;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import java.io.Serializable;
|
import java.util.List;
|
import com.qianwen.smartman.common.constant.ExtCacheConstant;
|
import com.qianwen.core.mp.base.BaseService;
|
import com.qianwen.core.oss.model.BladeFile;
|
import com.qianwen.smartman.modules.cps.dto.EmployeeDTO;
|
import com.qianwen.smartman.modules.cps.dto.EmployeeNameDTO;
|
import com.qianwen.smartman.modules.cps.entity.Employee;
|
import com.qianwen.smartman.modules.cps.excel.EmployeeImport;
|
import com.qianwen.smartman.modules.cps.vo.EmployeeSelectVO;
|
import com.qianwen.smartman.modules.cps.vo.EmployeeSubmitVO;
|
import com.qianwen.smartman.modules.cps.vo.EmployeeUpdatePartVO;
|
import com.qianwen.smartman.modules.cps.vo.EmployeeVO;
|
import com.qianwen.smartman.modules.cps.vo.GroupTreeVO;
|
import com.qianwen.smartman.modules.cps.vo.HierarchyVO;
|
import com.qianwen.smartman.modules.notify.dto.NotifyUserDTO;
|
import org.springframework.cache.annotation.CacheEvict;
|
import org.springframework.cache.annotation.Cacheable;
|
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/service/IEmployeeService.class */
|
public interface IEmployeeService extends BaseService<Employee> {
|
@CacheEvict(cacheNames = {ExtCacheConstant.EMPLOYEE}, allEntries = true)
|
EmployeeVO submit(EmployeeSubmitVO employeeSubmitVO);
|
|
IPage<EmployeeDTO> selectEmployeePage(IPage<EmployeeDTO> page, EmployeeSelectVO employeeSelectVO);
|
|
@CacheEvict(cacheNames = {ExtCacheConstant.EMPLOYEE}, allEntries = true)
|
BladeFile importEmployee(List<EmployeeImport> data, String organizationCode);
|
|
@CacheEvict(cacheNames = {ExtCacheConstant.EMPLOYEE}, allEntries = true)
|
Boolean changeOrganization(List<Long> employeeIds, Long organizationId);
|
|
@CacheEvict(cacheNames = {ExtCacheConstant.EMPLOYEE}, allEntries = true)
|
Boolean changeUserId(Long employeeId, Long oldEmployeeId, Long userId);
|
|
@CacheEvict(cacheNames = {ExtCacheConstant.EMPLOYEE}, allEntries = true)
|
Boolean updateUserIdIsNull(List<String> userIdList);
|
|
Boolean checkUserIsBindEmployee(String userIds);
|
|
List<GroupTreeVO> getUnbindEmployeeList(String employeeId);
|
|
Employee getByUserId(Long userId);
|
|
List<NotifyUserDTO> getNotifySubscriberList(List<String> userIds);
|
|
@CacheEvict(cacheNames = {ExtCacheConstant.EMPLOYEE}, allEntries = true)
|
Boolean removeEmployee(List<Long> ids, Integer type);
|
|
List<EmployeeDTO> selectEmployeeList(EmployeeSelectVO employeeSelectVO);
|
|
List<Employee> listByOrgIds(List<Long> orgIds);
|
|
List<GroupTreeVO> tree();
|
|
HierarchyVO getEmployeeHierarchy(Long employeeId);
|
|
@CacheEvict(cacheNames = {ExtCacheConstant.EMPLOYEE}, allEntries = true)
|
Boolean updatePart(EmployeeUpdatePartVO employeeUpdatePartVO);
|
|
EmployeeNameDTO getEmployeeNameMap();
|
|
EmployeeVO currentEmployee(Long userId);
|
|
@Cacheable(cacheNames = {ExtCacheConstant.EMPLOYEE}, key = "'id:'.concat(#id)")
|
default Employee cachedById(Serializable id) {
|
return (Employee) getById(id);
|
}
|
}
|