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.bo.ApprovalRuleBO; import com.gkhy.safePlatform.specialWork.model.dto.req.ApprovalRuleAddReqDTO; import com.gkhy.safePlatform.specialWork.model.dto.req.ApprovalRuleModReqDTO; import com.gkhy.safePlatform.specialWork.model.dto.req.DeleteForm; import com.gkhy.safePlatform.specialWork.model.dto.resp.ApprovalRuleRespDTO; import com.gkhy.safePlatform.specialWork.model.query.db.ApprovalRuleListDbQuery; import java.util.List; public interface RuleService { //新增 ResultVO save(ApprovalRuleAddReqDTO ruleAddReqDTO); // 更新 ResultVO update(ApprovalRuleModReqDTO ruleModReqDTO); //删除 ResultVO removeBatchRule(DeleteForm deleteForm); //列表-分页 SearchResultVO> listRuleByPage(PageQuery pageQuery); /** * @Description: 递归查找上级部门的审批规则 直到找到为止 */ ApprovalRuleBO recursiveQueryRule(Long depId, Byte workType, Byte workLevel); }