package com.yifu.cloud.plus.v1.yifu.process.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yifu.cloud.plus.v1.yifu.process.entity.TNodeReaderPromission;
import com.yifu.cloud.plus.v1.yifu.process.mapper.TNodeReaderPromissionMapper;
import com.yifu.cloud.plus.v1.yifu.process.service.TNodeReaderPromissionService;
import org.springframework.stereotype.Service;

/**
 * 流程审阅权限表（抄送/仅有查看权限）
 *
 * @author hgw
 * @date 2020-07-16 15:44:02
 */
@Service
public class TNodeReaderPromissionServiceImpl extends ServiceImpl<TNodeReaderPromissionMapper, TNodeReaderPromission> implements TNodeReaderPromissionService {

     /**
      * 流程审阅权限表（抄送/仅有查看权限）简单分页查询
      *
      * @param tNodeReaderPromission 流程审阅权限表（抄送/仅有查看权限）
      * @return
      */
     @Override
     public IPage<TNodeReaderPromission> getTNodeReaderPromissionPage(Page<TNodeReaderPromission> page, TNodeReaderPromission tNodeReaderPromission) {
          return baseMapper.getTNodeReaderPromissionPage(page, tNodeReaderPromission);
     }

     /**
      * @param processId 流程id
      * @Description: 删除
      * @Author: hgw
      * @Date: 2020-7-22 17:02:38
      * @return: int
      **/
     @Override
     public int deleteByProcessId(String processId) {
          return baseMapper.deleteByProcessId(processId);
     }

}
