| | |
| | | case MqttConstant.TENANT_UP_PREFIX_FAULT_DATA: |
| | | ThreadUtil.execute(() -> { |
| | | try { |
| | | |
| | | JSONObject jsonObject = JSON.parseObject(message); |
| | | List<DryFaultRecord> faultRecords = JSON.parseArray(jsonObject.get("data").toString(), DryFaultRecord.class); |
| | | System.err.println(faultRecords.toString()); |
| | | faultRecordService.saveBatch(faultRecords); |
| | | MqMessage<List<DryFaultRecord>> listMqMessage = JSON.parseObject(message, new TypeReference<MqMessage<List<DryFaultRecord>>>() { |
| | | }); |
| | | // List<DryFaultRecord> faultRecords = JSON.parseArray(jsonObject.get("data").toString(), DryFaultRecord.class); |
| | | System.err.println(listMqMessage.toString()); |
| | | faultRecordService.saveBatch(listMqMessage.getData()); |
| | | |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |