|
@@ -156,6 +156,13 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ public void lockOrUnLockBySpace(Long cameraId) {
|
|
|
+ ScenePayStatusVo scenePayStatusVo = new ScenePayStatusVo(cameraId);
|
|
|
+ Map<String, Object> map = BeanUtil.beanToMap(scenePayStatusVo);
|
|
|
+ rabbitMqProducer.sendByWorkQueue(MqQueueUtil.ucenterScenePayStatusQueue, map);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
public void lockOrUnLockBySpace(ScenePro scenePro, ScenePlus scenePlus,Integer payStatus) {
|
|
|
Long sceneId = scenePro == null ? scenePlus.getId() : scenePro.getId();
|
|
|
ScenePayStatusVo scenePayStatusVo = new ScenePayStatusVo(sceneId,payStatus);
|
|
@@ -514,6 +521,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
}
|
|
|
if(cameraId != null){
|
|
|
cameraDetailService.initSpace(cameraId);
|
|
|
+ this.lockOrUnLockBySpace(cameraId);
|
|
|
}
|
|
|
sceneDelLogService.saveLog(num, StpUtil.getLoginId());
|
|
|
}
|