郑永安
2023-06-19 7a6abd05683528032687c75e80e0bd2030a3e46c
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
73
74
75
76
77
78
79
80
81
82
83
84
package com.gkhy.safePlatform.account.service;
 
import com.gkhy.safePlatform.account.entity.schedule.GroupInfoDO;
import com.gkhy.safePlatform.account.model.dto.req.GroupAddDTO;
import com.gkhy.safePlatform.account.model.dto.req.GroupModDTO;
import com.gkhy.safePlatform.account.model.dto.resp.*;
import com.gkhy.safePlatform.account.model.query.GroupMemberPageQuery;
import com.gkhy.safePlatform.account.model.query.GroupPageQuery;
import com.gkhy.safePlatform.account.model.query.GroupQuery;
import com.gkhy.safePlatform.account.model.query.GroupScheduleQuery;
import com.gkhy.safePlatform.commons.co.ContextCacheUser;
import com.gkhy.safePlatform.commons.query.PageQuery;
import com.gkhy.safePlatform.commons.vo.ResultVO;
import com.gkhy.safePlatform.commons.vo.SearchResultVO;
 
import java.util.Collection;
import java.util.List;
public interface GroupService {
 
    /**
    * @Description: 创建班组
    */
    void saveGroupInfo(ContextCacheUser currentUser, GroupAddDTO groupAddDTO);
 
 
    /**
    * @Description: 修改班组
    */
    void modGroupInfo(ContextCacheUser currentUser, GroupModDTO groupModDTO);
 
 
    /**
    * @Description: 删除班组
    */
    void delGroupInfo(ContextCacheUser currentUser, Long groupId);
 
 
    /**
    * @Description: 获取班组
    */
    List<GroupRespDTO> listGroupInfo(ContextCacheUser currentUser, GroupQuery query);
 
 
    /**
     * @Description: 获取班组的作息表
     */
    GroupTimeTableRespDTO getTimeTableInfo(ContextCacheUser currentUser, GroupScheduleQuery groupScheduleQuery);
 
 
    /**
     * @Description: 根据 groupId获取班组
     */
    GroupInfoRespDTO getGroupInfoByGroupId(Long groupId);
 
 
    /**
    * @Description: 根据
    */
    SearchResultVO<List<GroupPageRespDTO>> listGroupInfoByPage(ContextCacheUser currentUser, PageQuery<GroupPageQuery> query);
 
 
    /**
     * @Description: 根据 groupId 获取 组人员
     */
    List<GroupMemberRespDTO> listGroupMembersByGroupId(ContextCacheUser currentUser,Long groupId);
 
 
    /**
    * @Description: 查询 groupId 下的人员分页
    */
    ResultVO<List<GroupMemberPageRespDTO>> listGroupMembersByPage(ContextCacheUser currentUser, PageQuery<GroupMemberPageQuery> query);
 
 
    /**
     * @Description: 根据 uid 获取所属的班组
     */
    List<GroupInfoRespDTO> listGroupInfoByUid(Long uid);
 
 
    /**
     * @Description: 根据 groupIds 获取班组列表
     */
    List<GroupInfoRespDTO> listGroupInfoByGroupIds(Collection<Long> ids);
}