| 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-28 | 
|  */ | 
| @Service | 
| public class ArdCameraNoGuideZoneServiceImpl implements IArdCameraNoGuideZoneService { | 
|     @Autowired | 
|     private ArdCameraNoGuideZoneMapper ardCameraNoGuideZoneMapper; | 
|   | 
|     /** | 
|      * 查询禁引可视域 | 
|      * | 
|      * @param id 禁引可视域主键 | 
|      * @return 禁引可视域 | 
|      */ | 
|     @Override | 
|     public ArdCameraNoGuideZone selectArdCameraNoGuideZoneById(String id) { | 
|         return ardCameraNoGuideZoneMapper.selectArdCameraNoGuideZoneById(id); | 
|     } | 
|   | 
|     /** | 
|      * 查询禁引可视域列表 | 
|      * | 
|      * @param ardCameraNoGuideZone 禁引可视域 | 
|      * @return 禁引可视域 | 
|      */ | 
|     @Override | 
|     public List<ArdCameraNoGuideZone> selectArdCameraNoGuideZoneList(ArdCameraNoGuideZone ardCameraNoGuideZone) { | 
|         return ardCameraNoGuideZoneMapper.selectArdCameraNoGuideZoneList(ardCameraNoGuideZone); | 
|     } | 
|   | 
|     /** | 
|      * 新增禁引可视域 | 
|      * | 
|      * @param ardCameraNoGuideZone 禁引可视域 | 
|      * @return 结果 | 
|      */ | 
|     @Override | 
|     public int insertArdCameraNoGuideZone(ArdCameraNoGuideZone ardCameraNoGuideZone) { | 
|                 ardCameraNoGuideZone.setId(IdUtils.simpleUUID()); | 
|                 ardCameraNoGuideZone.setUserId(SecurityUtils.getUserId()); | 
|                 ardCameraNoGuideZone.setCreateBy(SecurityUtils.getUsername()); | 
|                 ardCameraNoGuideZone.setCreateTime(DateUtils.getNowDate()); | 
|             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 ids 需要删除的禁引可视域主键 | 
|      * @return 结果 | 
|      */ | 
|     @Override | 
|     public int deleteArdCameraNoGuideZoneByIds(String[] ids) { | 
|         return ardCameraNoGuideZoneMapper.deleteArdCameraNoGuideZoneByIds(ids); | 
|     } | 
|   | 
|     /** | 
|      * 删除禁引可视域信息 | 
|      * | 
|      * @param id 禁引可视域主键 | 
|      * @return 结果 | 
|      */ | 
|     @Override | 
|     public int deleteArdCameraNoGuideZoneById(String id) { | 
|         return ardCameraNoGuideZoneMapper.deleteArdCameraNoGuideZoneById(id); | 
|     } | 
| } |