package com.zcloud.service.gatemachine.impl; import com.zcloud.entity.Page; import com.zcloud.entity.PageData; import com.zcloud.mapper.datasource.gatemachine.CzksGateVideoMapper; import com.zcloud.service.gatemachine.GateVideoService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import java.util.List; /** * 说明:视频管理 * 作者:luoxiaobao * 时间:2021-05-10 * 官网:www.zcloudchina.com */ @Service @Transactional //开启事物 public class GateVideoServiceImpl implements GateVideoService { @Autowired private CzksGateVideoMapper gateVideoMapper; /**新增 * @param pd * @throws Exception */ public void save(PageData pd)throws Exception{ gateVideoMapper.save(pd); } /**删除 * @param pd * @throws Exception */ public void delete(PageData pd)throws Exception{ gateVideoMapper.delete(pd); } /**修改 * @param pd * @throws Exception */ public void edit(PageData pd)throws Exception{ gateVideoMapper.edit(pd); } public void savePosition(PageData pd)throws Exception{ gateVideoMapper.savePosition(pd); } public void editIsShowBycorpinfoid(PageData pd)throws Exception{ gateVideoMapper.editIsShowBycorpinfoid(pd); } public void editIsShow(PageData pd)throws Exception{ gateVideoMapper.editIsShow(pd); } /**列表 * @param page * @throws Exception */ public List list(Page page)throws Exception{ return gateVideoMapper.datalistPage(page); } /**列表(全部) * @param pd * @throws Exception */ public List listBo(PageData pd)throws Exception{ return gateVideoMapper.listBo(pd); } /**列表(全部) * @param pd * @throws Exception */ public List listAll(PageData pd)throws Exception{ return gateVideoMapper.listAll(pd); } /**通过id获取数据 * @param pd * @throws Exception */ public PageData findById(PageData pd)throws Exception{ return gateVideoMapper.findById(pd); } /**批量删除 * @param ArrayDATA_IDS * @throws Exception */ public void deleteAll(String[] ArrayDATA_IDS)throws Exception{ gateVideoMapper.deleteAll(ArrayDATA_IDS); } /**通过CODE获取数据 * @param pd * @throws Exception */ public PageData findByCode(PageData pd)throws Exception{ return gateVideoMapper.findByCode(pd); } public List listAllForMap(PageData pd)throws Exception{ return gateVideoMapper.listAllForMap(pd); } public List getPointsInfo(PageData pd)throws Exception{ return gateVideoMapper.getPointsInfo(pd); } @Override public List getCameraPosition(PageData pageData) { return gateVideoMapper.getCameraPosition(pageData); } }