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.ApprovalItemAbordDataReqDTO; import com.gkhy.safePlatform.specialWork.model.dto.req.ApprovalItemDataReqDTO; import com.gkhy.safePlatform.specialWork.model.dto.req.WorkApplyEight; import com.gkhy.safePlatform.specialWork.model.dto.req.WorkApplyReqDTO; import com.gkhy.safePlatform.specialWork.model.dto.resp.*; import com.gkhy.safePlatform.specialWork.model.dto.resp.applicant.ApplicantWorkApprovedApplyDetailRespDTO; import com.gkhy.safePlatform.specialWork.model.dto.resp.approver.ApproverWorkApprovedApplyDetailRespDTO; import com.gkhy.safePlatform.specialWork.model.dto.resp.approver.ApproverWorkPendingApprovalDataRespDTO; import com.gkhy.safePlatform.specialWork.model.dto.resp.others.OthersWorkApprovedApplyDetailRespDTO; import com.gkhy.safePlatform.specialWork.model.query.AllWorkApplyPageQuery; import com.gkhy.safePlatform.specialWork.model.query.WorkApplyApplyingPageQuery; import com.gkhy.safePlatform.specialWork.model.query.WorkApplyPendingPageQuery; import javax.servlet.http.HttpServletResponse; import java.util.List; public interface WorkApplyService { /** * @Description: 作业申请 */ void workApply(ContextCacheUser currentUser, WorkApplyReqDTO applyReqDTO); /** * @Description: 取消申请 */ void cancelWorkApply(ContextCacheUser currentUser, Long workApplyId); /** * @Description: 申请中作业分页 */ ResultVO> listApplyingWorkApplyByPage(ContextCacheUser currentUser, PageQuery pageQuery); /** * @Description: 待审批的作业分页 */ ResultVO> listPendingWorkApplyByPage(ContextCacheUser currentUser, PageQuery pageQuery); /** * @Description: 获取已经审批的进度(申请人) */ ApplicantWorkApprovedApplyDetailRespDTO getApprovedApplyDetailForApplicant(ContextCacheUser currentUser, Long workApplyId); /** * @Description: 获取已经审批的进度(审批人) */ ApproverWorkApprovedApplyDetailRespDTO getApprovedApplyDetailForApprover(ContextCacheUser currentUser, Long workApplyId); /** * @Description: 获取作业当前待审批的内容(审批人) */ ApproverWorkPendingApprovalDataRespDTO getPendingApprovalData(ContextCacheUser currentUser, Long workApplyId); /** * @Description: 审批接口 */ void approveItem(ContextCacheUser currentUser, ApprovalItemDataReqDTO approvalItemData); /** * @Description: 终止 */ void abordItem(ContextCacheUser currentUser, ApprovalItemAbordDataReqDTO abordDataReqDTO); /** * 打印 * @param currentUser */ void printing(ContextCacheUser currentUser, Long applyWorkId, HttpServletResponse response); /** * @Description: 所有作业申请查询 */ SearchResultVO> listAllWorkApply(ContextCacheUser currentUser, PageQuery pageQuery); /** * @Description: 给其他人查看的作业情况 */ OthersWorkApprovedApplyDetailRespDTO getWorkApplyDetailForOthers(ContextCacheUser currentUser, Long workApplyId); void printingPdf(ContextCacheUser currentUser, Long applyWorkId, HttpServletResponse response); }