yangys
2024-03-28 23a939ed820ee32f9a4309f9c81b7bab5a566f30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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);
    }
}