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.TProcessNode;
import com.yifu.cloud.plus.v1.yifu.process.service.TProcessNodeService;
import com.yifu.cloud.plus.v1.yifu.process.mapper.TProcessNodeMapper;
import org.springframework.stereotype.Service;

/**
 * 流程节点表
 *
 * @author hgw
 * @date 2020-07-16 15:44:02
 */
@Service
public class TProcessNodeServiceImpl extends ServiceImpl<TProcessNodeMapper, TProcessNode> implements TProcessNodeService {

     /**
      * 流程节点表简单分页查询
      *
      * @param tProcessNode 流程节点表
      * @return
      */
     @Override
     public IPage<TProcessNode> getTProcessNodePage(Page<TProcessNode> page, TProcessNode tProcessNode) {
          return baseMapper.getTProcessNodePage(page, tProcessNode);
     }

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

}
