qa-prevention-gwj/src/main/java/com/zcloud/service/gatemachine/impl/GateVideoServiceImpl.java

121 lines
2.7 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.zcloud.service.gatemachine.impl;
import com.zcloud.entity.Page;
import com.zcloud.entity.PageData;
import com.zcloud.mapper.datasource.gatemachine.GateVideoMapper;
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 GateVideoMapper 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<PageData> list(Page page)throws Exception{
return gateVideoMapper.datalistPage(page);
}
/**列表(全部)
* @param pd
* @throws Exception
*/
public List<PageData> listBo(PageData pd)throws Exception{
return gateVideoMapper.listBo(pd);
}
/**列表(全部)
* @param pd
* @throws Exception
*/
public List<PageData> 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<PageData> listAllForMap(PageData pd)throws Exception{
return gateVideoMapper.listAllForMap(pd);
}
public List<PageData> getPointsInfo(PageData pd)throws Exception{
return gateVideoMapper.getPointsInfo(pd);
}
@Override
public List<PageData> getCameraPosition(PageData pageData) {
return gateVideoMapper.getCameraPosition(pageData);
}
}