Commit 38db439f by 111-PC\111

[+]智能设备场景kafka消费

1 parent beabfe09
......@@ -45,16 +45,24 @@ public class OrderIssueService {
return;
}
List<SmartTemplateParam> smartTemplateParamList=smartTemplateParamMapper.findByTemplateId(Integer.parseInt(messageVo.getScenseId()));
if(!CollectionUtils.isNotEmpty(smartTemplateParamList)){
if(CollectionUtils.isEmpty(smartTemplateParamList)){
log.info("未查到该场景id的条件{}",messageVo.getScenseId());
return;
}
// 下发指令
List<SmartTemplateParam> orders = smartTemplateParamList.stream().filter(index -> index.getParamKey().equals(Constants.Order_Issue)).collect(Collectors.toList());
if(CollectionUtils.isEmpty(orders)){
log.info("未查到该场景id的指令{}",messageVo.getScenseId());
return;
}
orders.forEach(index->{
Map<String,List<Map<String,Object>>> ordermaps=new HashMap<>();
List<Map<String,Object>> maps=new ArrayList<>();
Map<String,Object> ordermap=new HashMap<>();
if(index.getParamValue()==null||index.getParamValue().split(",").length!=4){
log.info("参数异常{}",index.getParamKey());
return;
}
String[] objects = index.getParamValue().split(",");
String devideId = objects[0];
String valueType = objects[3];
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!