|
|
@@ -12,8 +12,8 @@ import com.chinaitop.depot.intelligent.grainsituation.model.TWarningThresholdHis
|
|
12
|
12
|
import com.chinaitop.depot.intelligent.grainsituation.service.TWarningThresholdHistoryService;
|
|
13
|
13
|
import com.chinaitop.depot.intelligent.grainsituation.service.TemperatureRecordService;
|
|
14
|
14
|
import com.chinaitop.depot.intelligent.pushs.service.GrainPushsService;
|
|
15
|
|
-import com.chinaitop.depot.intelligent.rocketMQ.producerMQ.model.MqMsg;
|
|
16
|
|
-import com.chinaitop.depot.intelligent.rocketMQ.producerMQ.service.RocketMqService;
|
|
|
15
|
+/*import com.chinaitop.depot.intelligent.rocketMQ.producerMQ.model.MqMsg;
|
|
|
16
|
+import com.chinaitop.depot.intelligent.rocketMQ.producerMQ.service.RocketMqService;*/
|
|
17
|
17
|
import com.chinaitop.depot.intelligent.utils.JsonToObjectUtils;
|
|
18
|
18
|
import com.chinaitop.depot.intelligent.utils.UuidUtils;
|
|
19
|
19
|
import com.chinaitop.depot.intelligent.utils.VerificationSourceUtils;
|
|
|
@@ -54,8 +54,8 @@ public class GrainPushsServiceImpl implements GrainPushsService {
|
|
54
|
54
|
private ResolutionToSendAlarmService resolutionToSendAlarmService;
|
|
55
|
55
|
@Resource
|
|
56
|
56
|
private TWarningThresholdHistoryService tWarningThresholdHistoryService;
|
|
57
|
|
- @Resource
|
|
58
|
|
- private RocketMqService rocketMqService;
|
|
|
57
|
+ /*@Resource
|
|
|
58
|
+ private RocketMqService rocketMqService;*/
|
|
59
|
59
|
|
|
60
|
60
|
@Transactional(rollbackFor = Exception.class)
|
|
61
|
61
|
@Override
|
|
|
@@ -280,15 +280,15 @@ public class GrainPushsServiceImpl implements GrainPushsService {
|
|
280
|
280
|
if (tTestdataList.size() > 0) {
|
|
281
|
281
|
temperatureRecordService.insertBatch(tTestdataList);
|
|
282
|
282
|
// 消息 CRUD 增加(Create)、* 不需要检索(Retrieve)、更新(Update)和删除(Delete) 小写区分增删改查
|
|
283
|
|
- rocketMqService.asyncSend(new MqMsg("smart_grp_yn", "t_testdata_c", null, tTestdataList));
|
|
|
283
|
+// rocketMqService.asyncSend(new MqMsg("smart_grp_yn", "t_testdata_c", null, tTestdataList));
|
|
284
|
284
|
}
|
|
285
|
285
|
if (tTestdataLayerArrayList.size() > 0) {
|
|
286
|
286
|
tTestdataLayerMapper.insertBatch(tTestdataLayerArrayList);
|
|
287
|
|
- rocketMqService.asyncSend(new MqMsg("smart_grp_yn", "t_testdata_layer_c", null, tTestdataLayerArrayList));
|
|
|
287
|
+// rocketMqService.asyncSend(new MqMsg("smart_grp_yn", "t_testdata_layer_c", null, tTestdataLayerArrayList));
|
|
288
|
288
|
}
|
|
289
|
289
|
if (tWarningThresholdHistorieList.size() > 0) {
|
|
290
|
290
|
tWarningThresholdHistoryMapper.insertBatch(tWarningThresholdHistorieList);
|
|
291
|
|
- rocketMqService.asyncSend(new MqMsg("smart_grp_yn", "t_warning_threshold_history_c", null, tWarningThresholdHistorieList));
|
|
|
291
|
+// rocketMqService.asyncSend(new MqMsg("smart_grp_yn", "t_warning_threshold_history_c", null, tWarningThresholdHistorieList));
|
|
292
|
292
|
List<TWarningThresholdHistory> collect = tWarningThresholdHistorieList.stream().filter(TWarningThresholdHistory -> TWarningThresholdHistory.getwWarning().equals("0")).collect(Collectors.toList());
|
|
293
|
293
|
boolean alarmDetails = resolutionToSendAlarmService.getAlarmDetails(collect);
|
|
294
|
294
|
if (!alarmDetails) {
|
|
|
@@ -296,7 +296,7 @@ public class GrainPushsServiceImpl implements GrainPushsService {
|
|
296
|
296
|
obj.setIsSend("2");
|
|
297
|
297
|
tWarningThresholdHistoryService.updateById(obj);
|
|
298
|
298
|
});
|
|
299
|
|
- rocketMqService.asyncSend(new MqMsg("smart_grp_yn", "t_warning_threshold_history_u", null, collect));
|
|
|
299
|
+// rocketMqService.asyncSend(new MqMsg("smart_grp_yn", "t_warning_threshold_history_u", null, collect));
|
|
300
|
300
|
}
|
|
301
|
301
|
}
|
|
302
|
302
|
}
|