whyclxw
2025-05-28 e16302f9d475c7cc4dd18c5abf1a23cb5502e362
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();
}