|
|
@@ -991,6 +991,28 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
updateWrapper3.eq(Scene::getNum,param.getNum());
|
|
|
updateWrapper3.set(Scene::getFeedbackOptionId,param.getFeedbackOptionId());
|
|
|
sceneService.update(updateWrapper3);
|
|
|
+
|
|
|
+ FeedbackOption feedbackOption = feedbackOptionService.getById(param.getFeedbackOptionId());
|
|
|
+ JSONArray aiOption = feedbackOption.getAiOption();
|
|
|
+ if(aiOption == null || aiOption.isEmpty()){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ HashMap<Object, Object> map = new HashMap<>();
|
|
|
+ map.put("num",param.getNum());
|
|
|
+ List<HashMap<String,Object>> list = new ArrayList<>();
|
|
|
+ for (Object object : aiOption) {
|
|
|
+ Integer id = (Integer) object;
|
|
|
+ FeedbackOption feedbackOption1 = feedbackOptionService.getById(id);
|
|
|
+ if(feedbackOption1 != null && StringUtils.isNotBlank(feedbackOption1.getModelApi())){
|
|
|
+ HashMap<String, Object> map2 = new HashMap<>();
|
|
|
+ map2.put("name",feedbackOption1.getNameCn());
|
|
|
+ map2.put("url",feedbackOption1.getModelApi());
|
|
|
+ list.add(map2);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ map.put("models",list);
|
|
|
+ rabbitMqProducer.sendByWorkQueue(MqQueueUtil.AIRecognitionQueue,map);
|
|
|
+
|
|
|
}
|
|
|
|
|
|
@Autowired
|