New file |
| | |
| | | package com.dy.pipIrrRemote.video; |
| | | |
| | | import com.dy.common.webUtil.QueryResultVo; |
| | | import com.dy.pipIrrGlobal.daoVi.ViCameraMapper; |
| | | import com.dy.pipIrrGlobal.voVi.VoCamera; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.dubbo.common.utils.PojoUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Author: liurunyu |
| | | * @Date: 2025/6/9 10:42 |
| | | * @Description |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class VideoSv { |
| | | |
| | | @Autowired |
| | | private ViCameraMapper dao; |
| | | |
| | | /** |
| | | * 根据指定条件获取实体记录 |
| | | * @param queryQo 查询条件值对象 |
| | | * @return 实体记录列表 |
| | | */ |
| | | public QueryResultVo<List<VoCamera>> some(VideoQo queryQo, int pageSize) { |
| | | Map<String, Object> params = (Map<String, Object>) PojoUtils.generalize(queryQo); |
| | | Long itemTotal = dao.selectTotal4Monitor(params); |
| | | |
| | | QueryResultVo<List<VoCamera>> rsVo = new QueryResultVo<>(); |
| | | rsVo.pageSize = pageSize; |
| | | rsVo.pageCurr = queryQo.pageCurr; |
| | | rsVo.calculateAndSet(itemTotal, params); |
| | | rsVo.obj = dao.selectSome4Monitor((params)) ; |
| | | return rsVo; |
| | | } |
| | | |
| | | |
| | | } |