package com.yifu.cloud.plus.v1.yifu.process.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.process.entity.TNodeReaderPromission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 流程审阅权限表（抄送/仅有查看权限）
 *
 * @author hgw
 * @date 2020-07-16 15:44:02
 */
@Mapper
public interface TNodeReaderPromissionMapper extends BaseMapper<TNodeReaderPromission> {
     /**
      * 流程审阅权限表（抄送/仅有查看权限）简单分页查询
      *
      * @param tNodeReaderPromission 流程审阅权限表（抄送/仅有查看权限）
      * @return
      */
     IPage<TNodeReaderPromission> getTNodeReaderPromissionPage(Page<TNodeReaderPromission> page
             , @Param("tNodeReaderPromission") TNodeReaderPromission tNodeReaderPromission);

     /**
      * @param processId 流程id
      * @Description: 删除
      * @Author: hgw
      * @Date: 2020/7/17 11:32
      * @return: int
      **/
     int deleteByProcessId(@Param("processId") String processId);

}
