|
|
|
@ -29,6 +29,8 @@ import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
import org.springframework.transaction.interceptor.TransactionAspectSupport; |
|
|
|
|
|
|
|
import java.net.URLDecoder; |
|
|
|
import java.nio.charset.StandardCharsets; |
|
|
|
import java.util.*; |
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
@ -78,6 +80,14 @@ public class DeviceDataAlarmServiceImpl implements DeviceDataAlarmService { |
|
|
|
public List<DeviceAlarmData> handleDeviceAlarmData(Integer languageType, AlarmDataSearchParam pageSearchParam) { |
|
|
|
List<DeviceAlarmData> resultList; |
|
|
|
|
|
|
|
if (StringUtils.isNotBlank(pageSearchParam.getKeyword())) { |
|
|
|
try { |
|
|
|
pageSearchParam.setKeyword(URLDecoder.decode(pageSearchParam.getKeyword(), StandardCharsets.UTF_8)); |
|
|
|
} catch (Exception e) { |
|
|
|
logger.error("URLDecoder.decode error", e); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
pageSearchParam.setTypeIdList(Constants.CATEGORY_DEVICE_TYPE_MAP.get(Constants.CATEGORY_ALARM)); |
|
|
|
if (null != pageSearchParam.getDeviceGroupId()){ |
|
|
|
resultList = deviceInfoMapperExt.getDevice4AlarmDataByGroup(pageSearchParam); |
|
|
|
|