吉安感知网项目-后端
xiebin
2026-01-06 d207a86cdf1ab52ef8cb7cd83bad8fceab8038cf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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);
 
}