Commit c7623aee by 111-PC\111

[+]产品名称修改

1 parent 8b354337
...@@ -390,8 +390,14 @@ public class SmartSceneServiceImpl extends BaseService implements SmartSceneServ ...@@ -390,8 +390,14 @@ public class SmartSceneServiceImpl extends BaseService implements SmartSceneServ
if (CollectionUtils.isEmpty(orderResponseList)) { if (CollectionUtils.isEmpty(orderResponseList)) {
context = MessageFormat.format("您配置的{0}场景已在{1} 成功执行", scene_name, new Date()); context = MessageFormat.format("您配置的{0}场景已在{1} 成功执行", scene_name, new Date());
}else{ }else{
List<String> names = orderResponseList.stream().map(p -> p.getDeviceName()).collect(Collectors.toList()); StringBuffer sb=new StringBuffer();
context = MessageFormat.format("您配置的{0}场景已在{1}触发执行,但因以下设备{2}未能执行成功,请关注以上设备状态", scene_name, new Date(),names); for(int i=0;i<orderResponseList.size();i++){
OrderResponse orderResponse = orderResponseList.get(i);
String deviceName = orderResponse.getDeviceName();
String message = orderResponse.getMessage();
sb.append(deviceName).append(message).append(",");
}
context = MessageFormat.format("您配置的{0}场景已在{1}触发执行,但因以下设备{2}未能执行成功,请关注以上设备状态", scene_name, new Date(),sb.toString().substring(0,sb.toString().length()-1));
} }
return context; return context;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!