@@ -15,4 +17,7 @@ public interface DeviceInfoRepository extends
...
@@ -15,4 +17,7 @@ public interface DeviceInfoRepository extends
JpaRepository<DeviceInfo,String>,
JpaRepository<DeviceInfo,String>,
JpaSpecificationExecutor<DeviceInfo>{
JpaSpecificationExecutor<DeviceInfo>{
@Query("select new cn.wise.sc.energy.power.plant.business.domain.vo.DeviceInfoVo(d.deviceName,p.plantName) from DeviceInfo d left join PlantInfo p on d.plantId = p.plantId where d.deviceId = ?1")