| | |
| | | return rocketMQEnhanceTemplate.send(TOPIC+SendTagConstant.SECURITY_DETECTION, SendTagConstant.SECURITY_DETECTION, message); |
| | | } |
| | | |
| | | /** |
| | | * 充电桩登录认证 |
| | | */ |
| | | public SendResult chargingMessage(ChargingMessage message) { |
| | | // 设置业务key |
| | | message.setKey(UUID.randomUUID().toString()); |
| | | // 设置消息来源,便于查询 |
| | | message.setSource(SendTagConstant.CHARGING_MESSAGE); |
| | | |
| | | return rocketMQEnhanceTemplate.send(TOPIC+SendTagConstant.CHARGING_MESSAGE, SendTagConstant.CHARGING_MESSAGE, message); |
| | | } |
| | | // /** |
| | | // * 充电桩登录认证 |
| | | // */ |
| | | // public SendResult chargingMessage(ChargingMessage message) { |
| | | // // 设置业务key |
| | | // message.setKey(UUID.randomUUID().toString()); |
| | | // // 设置消息来源,便于查询 |
| | | // message.setSource(SendTagConstant.CHARGING_MESSAGE); |
| | | // |
| | | // return rocketMQEnhanceTemplate.send(TOPIC+SendTagConstant.CHARGING_MESSAGE, SendTagConstant.CHARGING_MESSAGE, message); |
| | | // } |
| | | /** |
| | | * 监管平台推送充电设备接口状态 |
| | | */ |
| | |
| | | message.setKey(UUID.randomUUID().toString()); |
| | | // 设置消息来源,便于查询 |
| | | message.setSource(SendTagConstant.GUN_STATUS); |
| | | |
| | | return rocketMQEnhanceTemplate.send(TOPIC_JIANGUAN+SendTagConstant.GUN_STATUS, SendTagConstant.GUN_STATUS, message); |
| | | rocketMQEnhanceTemplate.sendAsynchronous(TOPIC_JIANGUAN+SendTagConstant.GUN_STATUS, SendTagConstant.GUN_STATUS, message); |
| | | return null; |
| | | } |
| | | /** |
| | | * 监管平台推送充电订单信息 |
| | |
| | | message.setKey(UUID.randomUUID().toString()); |
| | | // 设置消息来源,便于查询 |
| | | message.setSource(SendTagConstant.ORDER_INFO); |
| | | |
| | | return rocketMQEnhanceTemplate.send(TOPIC_JIANGUAN+SendTagConstant.ORDER_INFO, SendTagConstant.ORDER_INFO, message); |
| | | rocketMQEnhanceTemplate.sendAsynchronous(TOPIC_JIANGUAN+SendTagConstant.ORDER_INFO, SendTagConstant.ORDER_INFO, message); |
| | | return null; |
| | | } |
| | | /** |
| | | * 监管平台推送充电订单状态 |
| | |
| | | message.setKey(UUID.randomUUID().toString()); |
| | | // 设置消息来源,便于查询 |
| | | message.setSource(SendTagConstant.ORDER_STATUS); |
| | | |
| | | return rocketMQEnhanceTemplate.send(TOPIC_JIANGUAN+SendTagConstant.ORDER_STATUS, SendTagConstant.ORDER_STATUS, message); |
| | | rocketMQEnhanceTemplate.sendAsynchronous(TOPIC_JIANGUAN+SendTagConstant.ORDER_STATUS, SendTagConstant.ORDER_STATUS, message); |
| | | return null; |
| | | } |
| | | |
| | | } |