|
|
|
@ -15,12 +15,9 @@ import java.util.stream.Collectors; |
|
|
|
import com.dongjian.dashboard.back.common.Constants; |
|
|
|
import com.dongjian.dashboard.back.common.response.ResponseCode; |
|
|
|
import com.dongjian.dashboard.back.common.response.SimpleDataResponse; |
|
|
|
import com.dongjian.dashboard.back.dao.ex.BasicUserMapperExt; |
|
|
|
import com.dongjian.dashboard.back.dao.ex.DeviceRawdataRealtimeMapperExt; |
|
|
|
import com.dongjian.dashboard.back.dao.ex.UserBuildingRelationMapperExt; |
|
|
|
import com.dongjian.dashboard.back.dao.ex.*; |
|
|
|
import com.dongjian.dashboard.back.dto.device.LineDataSearchParams; |
|
|
|
import com.dongjian.dashboard.back.model.DeviceRawdataRealtime; |
|
|
|
import com.dongjian.dashboard.back.model.DeviceRawdataRealtimeExample; |
|
|
|
import com.dongjian.dashboard.back.model.*; |
|
|
|
import com.dongjian.dashboard.back.util.DESUtil; |
|
|
|
import com.dongjian.dashboard.back.vo.building.BindedBuildingVO; |
|
|
|
import com.dongjian.dashboard.back.vo.company.AuroraInfo; |
|
|
|
@ -35,8 +32,6 @@ import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
|
import org.springframework.stereotype.Component; |
|
|
|
|
|
|
|
import com.dongjian.dashboard.back.dao.ex.BasicCompanyMapperExt; |
|
|
|
import com.dongjian.dashboard.back.model.BasicCompany; |
|
|
|
import com.dongjian.dashboard.back.util.CommonUtil; |
|
|
|
|
|
|
|
/** |
|
|
|
@ -62,6 +57,8 @@ public class CommonOpt { |
|
|
|
private UserBuildingRelationMapperExt userBuildingRelationMapperExt; |
|
|
|
@Autowired |
|
|
|
private DeviceRawdataRealtimeMapperExt deviceRawdataRealtimeMapperExt; |
|
|
|
@Autowired |
|
|
|
private DeviceInfoMapperExt deviceInfoMapperExt; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -475,6 +472,24 @@ public class CommonOpt { |
|
|
|
)); |
|
|
|
} |
|
|
|
|
|
|
|
public Map<String, DeviceInfo> queryDeviceInfo111Map(List<String> deviceIdList111) { |
|
|
|
if (CollectionUtils.isEmpty(deviceIdList111)) { |
|
|
|
return Collections.emptyMap(); |
|
|
|
} |
|
|
|
|
|
|
|
DeviceInfoExample example = new DeviceInfoExample(); |
|
|
|
example.createCriteria().andDeviceIdIn(deviceIdList111).andFlagEqualTo(0); |
|
|
|
|
|
|
|
return deviceInfoMapperExt |
|
|
|
.selectByExampleWithBLOBs(example) |
|
|
|
.stream() |
|
|
|
.collect(Collectors.toMap( |
|
|
|
DeviceInfo::getDeviceId, |
|
|
|
Function.identity(), |
|
|
|
(a, b) -> b |
|
|
|
)); |
|
|
|
} |
|
|
|
|
|
|
|
public Map<String, DeviceRawdataRealtime> queryRealtime111Map(List<String> deviceIdList111) { |
|
|
|
if (CollectionUtils.isEmpty(deviceIdList111)) { |
|
|
|
return Collections.emptyMap(); |
|
|
|
|