whycxzp
2025-03-26 7caa838a2252ffedbc7437de963f2495819fcb1a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package com.whyc.mapper;
 
import com.whyc.dto.DfxtDeviceDTO;
import com.whyc.pojo.DfxtDeviceList;
import org.apache.ibatis.annotations.Select;
 
import java.util.List;
 
public interface DfxtDeviceListMapper extends CustomMapper<DfxtDeviceList>{
 
    @Select("SELECT DISTINCT d.objectid as deviceId, d.fullname as deviceName, EXISTS(SELECT 1 FROM db_battinf.tb_battinf b WHERE d.objectid = b.DeviceId) AS isUsed\n" +
            "FROM db_ram_db.tb_dfxt_devicelist d;")
    List<DfxtDeviceDTO> getDeviceList();
}