| package com.dy.pipIrrWechat.video; | 
|   | 
| import com.dy.pipIrrGlobal.daoVi.ViCameraMapper; | 
| import com.dy.pipIrrGlobal.daoVi.ViYsAppMapper; | 
| import com.dy.pipIrrGlobal.pojoVi.ViYsApp; | 
| import com.dy.pipIrrGlobal.voVi.VoCamera; | 
| import lombok.extern.slf4j.Slf4j; | 
| import org.springframework.beans.factory.annotation.Autowired; | 
| import org.springframework.stereotype.Service; | 
|   | 
| import java.util.List; | 
|   | 
| /** | 
|  * @Author: liurunyu | 
|  * @Date: 2025/8/14 13:58 | 
|  * @Description | 
|  */ | 
| @Slf4j | 
| @Service | 
| public class VideoSv { | 
|   | 
|     @Autowired | 
|     private ViCameraMapper dao; | 
|     @Autowired | 
|     protected ViYsAppMapper viYsAppDao ; | 
|   | 
|     /** | 
|      * 查询所有 | 
|      * @return 实体记录列表 | 
|      */ | 
|     public List<VoCamera> allCamera() { | 
|         return dao.selectAll4Monitor() ; | 
|     } | 
|   | 
|     public ViYsApp ysApp(){ | 
|         List<ViYsApp> all = this.viYsAppDao.selectAll() ; | 
|         if(all == null || all.size() == 0){ | 
|             return null ; | 
|         }else{ | 
|             return all.get(0) ; | 
|         } | 
|     } | 
| } |