|
@@ -352,6 +352,17 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
// 获取最新的场景名称
|
|
// 获取最新的场景名称
|
|
JSONObject sceneInfo = laserService.getSceneByNum(num);
|
|
JSONObject sceneInfo = laserService.getSceneByNum(num);
|
|
if(sceneProEntity == null){
|
|
if(sceneProEntity == null){
|
|
|
|
+ LambdaUpdateWrapper<ScenePlus> updateWrapper = new LambdaUpdateWrapper<>();
|
|
|
|
+ updateWrapper
|
|
|
|
+ .set(ScenePlus::getSceneStatus, 0)
|
|
|
|
+ .set(ScenePlus::getTitle, sceneInfo.getString("title"))
|
|
|
|
+ .eq(ScenePlus::getNum, num);
|
|
|
|
+ scenePlusService.update(updateWrapper);
|
|
|
|
+ LambdaUpdateWrapper<ScenePlusExt> plusExtUpdateWrapper = new LambdaUpdateWrapper<>();
|
|
|
|
+ plusExtUpdateWrapper
|
|
|
|
+ .set(ScenePlusExt::getIsObj, 1)
|
|
|
|
+ .eq(ScenePlusExt::getPlusId, scenePlusEntity.getId());
|
|
|
|
+ scenePlusExtService.update(plusExtUpdateWrapper);
|
|
sendMqMsg(num,scenePlusExt.getAlgorithm(),scenePlusExt.getBuildType(),scenePlusExt.getDataSource());
|
|
sendMqMsg(num,scenePlusExt.getAlgorithm(),scenePlusExt.getBuildType(),scenePlusExt.getDataSource());
|
|
return;
|
|
return;
|
|
}
|
|
}
|