package com.gkhy.safePlatform.specialWork.repository; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.gkhy.safePlatform.specialWork.entity.WorkApplyCountDO; import com.gkhy.safePlatform.specialWork.entity.WorkApplyInfo; import com.gkhy.safePlatform.specialWork.entity.WorkApplyReportableDO; import com.gkhy.safePlatform.specialWork.model.bo.WorkApplyPendingInfoBO; import com.gkhy.safePlatform.specialWork.model.query.db.AllWorkApplyPageDBQuery; import com.gkhy.safePlatform.specialWork.model.query.db.WorkApplyApplyingPageDBQuery; import com.gkhy.safePlatform.specialWork.model.query.db.WorkApplyPendingPageDBQuery; import com.gkhy.safePlatform.specialWork.model.query.db.WorkProcessWorkApplyDBQuery; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Repository; import java.util.List; @Repository public interface WorkApplyInfoRepository extends BaseMapper { int insertWorkApplyInfo(WorkApplyInfo applyEntity); int updateStatusById(Long workApplyId, Byte status); List listWorkApplyInfoByPage(Page page,@Param("query") WorkApplyApplyingPageDBQuery dbQuery); List listPendingWorkApplyInfo(Page page, @Param("query") WorkApplyPendingPageDBQuery dbQuery); WorkApplyInfo getWorkApprovalByApprovalUid(@Param("workApplyId") Long workApplyId, @Param("approvalUid") Long approvalUid); int countWorkApplyInfo(); int updateApprovalStepIdById(@Param("workApplyId") Long workApplyId, @Param("nextStepId") Long nextStepId); List listReportableWorkApply(@Param("query")WorkProcessWorkApplyDBQuery dbQuery); List listAllWorkApplyByPage(Page page, @Param("query") AllWorkApplyPageDBQuery dbQuery); List getWorkApplyCountByDep(); int updateApprovalStepIdToNull(Long workApplyId); }