package com.ruoyi.device.noguidezone.service.impl;
|
|
import java.util.List;
|
import com.ruoyi.common.utils.DateUtils;
|
|
import com.ruoyi.common.utils.uuid.IdUtils;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
import java.util.ArrayList;
|
import com.ruoyi.common.utils.StringUtils;
|
import com.ruoyi.common.utils.SecurityUtils;
|
import com.ruoyi.device.noguidezone.mapper.ArdCameraNoGuideZoneMapper;
|
import com.ruoyi.device.noguidezone.domain.ArdCameraNoGuideZone;
|
import com.ruoyi.device.noguidezone.service.IArdCameraNoGuideZoneService;
|
|
/**
|
* 禁引可视域Service业务层处理
|
*
|
* @author ard
|
* @date 2023-10-27
|
*/
|
@Service
|
public class ArdCameraNoGuideZoneServiceImpl implements IArdCameraNoGuideZoneService {
|
@Autowired
|
private ArdCameraNoGuideZoneMapper ardCameraNoGuideZoneMapper;
|
|
/**
|
* 查询禁引可视域
|
*
|
* @param name 禁引可视域主键
|
* @return 禁引可视域
|
*/
|
@Override
|
public ArdCameraNoGuideZone selectArdCameraNoGuideZoneByName(String name) {
|
return ardCameraNoGuideZoneMapper.selectArdCameraNoGuideZoneByName(name);
|
}
|
|
/**
|
* 查询禁引可视域列表
|
*
|
* @param ardCameraNoGuideZone 禁引可视域
|
* @return 禁引可视域
|
*/
|
@Override
|
public List<ArdCameraNoGuideZone> selectArdCameraNoGuideZoneList(ArdCameraNoGuideZone ardCameraNoGuideZone) {
|
return ardCameraNoGuideZoneMapper.selectArdCameraNoGuideZoneList(ardCameraNoGuideZone);
|
}
|
|
/**
|
* 新增禁引可视域
|
*
|
* @param ardCameraNoGuideZone 禁引可视域
|
* @return 结果
|
*/
|
@Override
|
public int insertArdCameraNoGuideZone(ArdCameraNoGuideZone ardCameraNoGuideZone) {
|
ardCameraNoGuideZone.setUserId(SecurityUtils.getUserId());
|
ardCameraNoGuideZone.setCreateBy(SecurityUtils.getUsername());
|
ardCameraNoGuideZone.setCreateTime(DateUtils.getNowDate());
|
ardCameraNoGuideZone.setId(IdUtils.simpleUUID());
|
return ardCameraNoGuideZoneMapper.insertArdCameraNoGuideZone(ardCameraNoGuideZone);
|
}
|
|
/**
|
* 修改禁引可视域
|
*
|
* @param ardCameraNoGuideZone 禁引可视域
|
* @return 结果
|
*/
|
@Override
|
public int updateArdCameraNoGuideZone(ArdCameraNoGuideZone ardCameraNoGuideZone) {
|
ardCameraNoGuideZone.setUpdateBy(SecurityUtils.getUsername());
|
ardCameraNoGuideZone.setUpdateTime(DateUtils.getNowDate());
|
return ardCameraNoGuideZoneMapper.updateArdCameraNoGuideZone(ardCameraNoGuideZone);
|
}
|
|
/**
|
* 批量删除禁引可视域
|
*
|
* @param names 需要删除的禁引可视域主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteArdCameraNoGuideZoneByNames(String[] names) {
|
return ardCameraNoGuideZoneMapper.deleteArdCameraNoGuideZoneByNames(names);
|
}
|
|
/**
|
* 删除禁引可视域信息
|
*
|
* @param name 禁引可视域主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteArdCameraNoGuideZoneByName(String name) {
|
return ardCameraNoGuideZoneMapper.deleteArdCameraNoGuideZoneByName(name);
|
}
|
}
|