package org.sxkj.system.mapper;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import org.sxkj.system.entity.DevicePerShareEntity;
|
import org.sxkj.system.vo.DevicePerShareVO;
|
import org.apache.ibatis.annotations.Param;
|
import org.sxkj.system.vo.ShareParam;
|
|
import java.util.List;
|
|
/**
|
* 设备授权 mapper 接口映射
|
* @author zhongrj
|
* @date 2024/08/30
|
* @version 0.1
|
*/
|
public interface DevicePerShareMapper extends BaseMapper<DevicePerShareEntity> {
|
|
/**
|
* 自定义分页列表查询
|
* @param page
|
* @param devicePerShare
|
* @return
|
*/
|
List<DevicePerShareVO> selectDevicePerSharePage(IPage<DevicePerShareVO> page,
|
@Param("devicePerShare") DevicePerShareVO devicePerShare);
|
|
/**
|
* 查询当前部门及子部门下的设备授权信息
|
* @param param 查询参数
|
* @param deptIdList 部门id列表
|
* @return 设备授权信息
|
*/
|
List<DevicePerShareEntity> findActiveLoansByToDeptId(@Param("param") ShareParam param, @Param("deptIdList") List<Long> deptIdList);
|
|
/**
|
* 查询当前部门及子部门下的设备授权信息的areaCode
|
*/
|
List<String> findActiveLoansAreaCodeByToDeptId(@Param("param") ShareParam param, @Param("deptIdList") List<Long> deptIdList);
|
|
}
|