郑永安
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
package com.gkhy.safePlatform.specialWork.service;
 
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 com.gkhy.safePlatform.specialWork.model.dto.req.DeleteForm;
import com.gkhy.safePlatform.specialWork.model.dto.req.SpecialWorkAppointmentAddReqDTO;
import com.gkhy.safePlatform.specialWork.model.dto.req.SpecialWorkAppointmentModReqDTO;
import com.gkhy.safePlatform.specialWork.model.dto.resp.SpecialWorkAppointmentRespDTO;
import com.gkhy.safePlatform.specialWork.model.dto.resp.WorkStatisticsRespDTO;
import com.gkhy.safePlatform.specialWork.model.query.SpecialWorkAppointmentQuery;
 
import java.util.List;
 
 
public interface SpecialWorkAppointmentService {
 
    /**
     * 新增
     */
    ResultVO save(ContextCacheUser currentUser,SpecialWorkAppointmentAddReqDTO addReqDTO);
 
    /**
     * 修改
     */
    ResultVO update(ContextCacheUser currentUser,SpecialWorkAppointmentModReqDTO modReqDTO);
 
    /**
     * 删除
     */
    ResultVO deleteOne(ContextCacheUser currentUser,Long id);
 
    /**
     * 批量删除
     */
    ResultVO batchDelete(ContextCacheUser currentUser,DeleteForm deleteForm);
 
    /**
     * 分页查询
     */
    SearchResultVO<List<SpecialWorkAppointmentRespDTO>> listAll(ContextCacheUser currentUser,PageQuery<SpecialWorkAppointmentQuery> pageQuery);
 
    /**
     * 单条查询
     */
    ResultVO<SpecialWorkAppointmentRespDTO> queryById(ContextCacheUser currentUser,Long id);
 
    /**
     * 查询当前部门下的预约记录
     */
    SearchResultVO<List<SpecialWorkAppointmentRespDTO>> listByDep(ContextCacheUser currentUser,PageQuery<SpecialWorkAppointmentQuery> pageQuery);
 
    /**
     * 统计作业预约
     * @param query
     * @return
     */
    ResultVO<List<WorkStatisticsRespDTO>> statisticsAppointment(SpecialWorkAppointmentQuery query);
}