设备订单

This commit is contained in:
gaowdong 2025-04-18 18:14:00 +08:00
parent 7d21959bbb
commit 6691aee33b
1 changed files with 4 additions and 6 deletions

View File

@ -232,12 +232,10 @@ public class OrderInfoServiceImpl implements IOrderInfoService
orderPayResultDTO.setOrderState(OrderStateEnum.PLACE.getKey()); orderPayResultDTO.setOrderState(OrderStateEnum.PLACE.getKey());
orderInfoMapper.updateOrderPayResult(orderPayResultDTO); orderInfoMapper.updateOrderPayResult(orderPayResultDTO);
try { try {
if(orderInfoList.get(0).getSourceType().equals(SourceTypeEnum.HT_H5_MOBILE.getKey())) { DeviceMqPersonalUpdateMessageDTO bean = new DeviceMqPersonalUpdateMessageDTO().setUpdatePerson(Math.toIntExact(orderInfoList.get(0).getUserId()),"update");
DeviceMqPersonalUpdateMessageDTO bean = new DeviceMqPersonalUpdateMessageDTO().setUpdatePerson(Math.toIntExact(orderInfoList.get(0).getUserId()),"update"); String jsonString = JacksonUtil.writeValueAsString(bean);
String jsonString = JacksonUtil.writeValueAsString(bean); log.info("账户变动发送mq内容{}", jsonString);
log.info("账户变动发送mq内容{}", jsonString); MqUtil.pushToTenantAllDevice(bean, LeMqConstant.Topic.DEVICE_UPDATE_PERSONAL_CONFIG_V4);
MqUtil.pushToTenantAllDevice(bean, LeMqConstant.Topic.DEVICE_UPDATE_PERSONAL_CONFIG_V4);
}
} catch (Exception e) { } catch (Exception e) {
log.error("发送MQ消息失败", e); log.error("发送MQ消息失败", e);
} }