郑永安
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
package com.gkhy.safePlatform.specialWork.service.baseService;
 
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gkhy.safePlatform.specialWork.entity.SpecialWorkAppointmentInfo;
import com.gkhy.safePlatform.specialWork.model.bo.WorkStatisticsBO;
import com.gkhy.safePlatform.specialWork.model.query.SpecialWorkAppointmentQuery;
 
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
 
/**
 * (SpecialWorkAppointment)表服务接口
 *
 * @author makejava
 * @since 2022-09-09 10:33:53
 */
public interface SpecialWorkAppointmentInfoService extends IService<SpecialWorkAppointmentInfo> {
    /**
     * 新增一条
     * @param appointmentInfo
     * @return
     */
    int saveOne(SpecialWorkAppointmentInfo appointmentInfo);
 
    /**
     * 更新一条
     * @param appointmentInfo
     * @return
     */
    int updateOne(SpecialWorkAppointmentInfo appointmentInfo);
 
    /**
     * 修改一条
     * @param id
     * @return
     */
    int updateStatus(Long id);
 
    /**
     * 批量删除
     * @param ids
     * @return
     */
    int updateStatusByIds(List<Long> ids);
    /**
     * 查询一条
     * @param id
     * @return
     */
    SpecialWorkAppointmentInfo queryById(Long id);
 
    /**
     * 分页
     * @param page
     * @param query
     * @return
     */
    List<SpecialWorkAppointmentInfo> listByPage(IPage<SpecialWorkAppointmentInfo> page, SpecialWorkAppointmentQuery query);
 
    /**
     * 列表
     * @param query
     * @return
     */
    List<SpecialWorkAppointmentInfo> list(SpecialWorkAppointmentQuery query);
 
    Long getCountByDepAndTime(Long depId, Date appointmentTime);
 
    List<WorkStatisticsBO> statisticsAppointment(SpecialWorkAppointmentQuery query);
}