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> listAll(ContextCacheUser currentUser,PageQuery pageQuery); /** * 单条查询 */ ResultVO queryById(ContextCacheUser currentUser,Long id); /** * 查询当前部门下的预约记录 */ SearchResultVO> listByDep(ContextCacheUser currentUser,PageQuery pageQuery); /** * 统计作业预约 * @param query * @return */ ResultVO> statisticsAppointment(SpecialWorkAppointmentQuery query); }