郑永安
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
package com.gkhy.safePlatform.specialWork.repository;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gkhy.safePlatform.specialWork.entity.WorkApprovalUnitInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
 
import java.util.List;
 
@Repository
public interface WorkApprovalUnitInfoRepository extends BaseMapper<WorkApprovalUnitInfo> {
 
    int insertBatch(@Param("list") List<WorkApprovalUnitInfo> workApprovalUnitInfos);
 
    List<WorkApprovalUnitInfo> listApprovalRuleUnitByWorkApplyId(Long workApplyId);
 
    List<WorkApprovalUnitInfo> listWorkApprovalUnitByStepIdAndUid(Long stepId, Long approvalUid);
 
    int updateStatusById(Long unitId, Byte result);
 
    List<WorkApprovalUnitInfo> listApprovalRuleUnitByStepId(Long stepId);
 
    /**
    * @Description: 这个操作不会更改审批时间
    */
    void updateStatusByStepId(Long stepId, Byte result);
 
    int updateStatusByIds(@Param("list") List<Long> unitIds, Byte result);
 
    int updateStatusAndFillContentById(Long unitId, String unitFillContent, Byte result);
 
    int batchUpdateStatusByIds(@Param("list") List<Long> unitIds, Byte result);
}