|
@@ -48,6 +48,10 @@ public class GetFmJob {
|
|
|
// 模拟调试存入应用缓存
|
|
|
fmDataBeanDto.setF(CacheConstants.testFm);
|
|
|
fmDataBeanDto.setActivePower(CacheConstants.testAct);
|
|
|
+ // 测频装置
|
|
|
+ CacheConstants.communicationStatusDto.setCpzztx(false);
|
|
|
+ // 远动通讯
|
|
|
+ CacheConstants.communicationStatusDto.setYdtx(false);
|
|
|
}
|
|
|
else{
|
|
|
// 真实环境从池子里取频率信息
|
|
@@ -55,22 +59,22 @@ public class GetFmJob {
|
|
|
// 存入应用缓存
|
|
|
fmDataBeanDto.setF(dataBean.getF());
|
|
|
fmDataBeanDto.setActivePower(CacheConstants.activePower);
|
|
|
- }
|
|
|
|
|
|
- if (fmDataBeanDto.getF()!=null || fmDataBeanDto.getF().compareTo(new BigDecimal("-99"))==0){
|
|
|
- // 测频装置
|
|
|
- CacheConstants.communicationStatusDto.setCpzztx(false);
|
|
|
- }
|
|
|
- else{
|
|
|
- CacheConstants.communicationStatusDto.setCpzztx(true);
|
|
|
- }
|
|
|
+ if (fmDataBeanDto.getF()==null || fmDataBeanDto.getF().compareTo(new BigDecimal("-99"))==0){
|
|
|
+ // 测频装置
|
|
|
+ CacheConstants.communicationStatusDto.setCpzztx(false);
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ CacheConstants.communicationStatusDto.setCpzztx(true);
|
|
|
+ }
|
|
|
|
|
|
- if (fmDataBeanDto.getActivePower()!=null || fmDataBeanDto.getActivePower().compareTo(new BigDecimal("-99"))==0){
|
|
|
- // 远动通讯
|
|
|
- CacheConstants.communicationStatusDto.setYdtx(false);
|
|
|
- }
|
|
|
- else{
|
|
|
- CacheConstants.communicationStatusDto.setYdtx(true);
|
|
|
+ if (fmDataBeanDto.getActivePower()==null || fmDataBeanDto.getActivePower().compareTo(new BigDecimal("-99"))==0){
|
|
|
+ // 远动通讯
|
|
|
+ CacheConstants.communicationStatusDto.setYdtx(false);
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ CacheConstants.communicationStatusDto.setYdtx(true);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
CacheConstants.fmMap.put(currentTime,fmDataBeanDto);
|