wl_management/src/main/resources/mapper/flow/dao/StaffRoleMapper.java
2020-10-13 15:03:17 +08:00

43 lines
998 B
Java

package com.lz.modules.flow.dao;
/**
* <p>
* 流转关系表 服务类
* </p>
*
* @author quyixiao
* @since 2020-08-18
*/
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lz.modules.flow.entity.StaffRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
@Mapper
public interface StaffRoleMapper extends BaseMapper<StaffRole> {
StaffRole selectStaffRoleById(@Param("id")Long id);
Long insertStaffRole(StaffRole staffRole);
int updateStaffRoleById(StaffRole staffRole);
int updateCoverStaffRoleById(StaffRole staffRole);
int deleteStaffRoleById(@Param("id")Long id);
StaffRole selectByStaffId(@Param("staffId") Long staffId);
List<StaffRole> selectByRole(@Param("departmentLevel") String departmentLevel);
List<StaffRole> selectByCondition(@Param("page") IPage page, @Param("params") Map<String, Object> params);
}