| | |
| | | * 禁引可视域Service业务层处理 |
| | | * |
| | | * @author ard |
| | | * @date 2023-10-27 |
| | | * @date 2023-10-28 |
| | | */ |
| | | @Service |
| | | public class ArdCameraNoGuideZoneServiceImpl implements IArdCameraNoGuideZoneService { |
| | |
| | | /** |
| | | * 查询禁引可视域 |
| | | * |
| | | * @param name 禁引可视域主键 |
| | | * @param id 禁引可视域主键 |
| | | * @return 禁引可视域 |
| | | */ |
| | | @Override |
| | | public ArdCameraNoGuideZone selectArdCameraNoGuideZoneByName(String name) { |
| | | return ardCameraNoGuideZoneMapper.selectArdCameraNoGuideZoneByName(name); |
| | | public ArdCameraNoGuideZone selectArdCameraNoGuideZoneById(String id) { |
| | | return ardCameraNoGuideZoneMapper.selectArdCameraNoGuideZoneById(id); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @Override |
| | | public int insertArdCameraNoGuideZone(ArdCameraNoGuideZone ardCameraNoGuideZone) { |
| | | ardCameraNoGuideZone.setId(IdUtils.simpleUUID()); |
| | | ardCameraNoGuideZone.setUserId(SecurityUtils.getUserId()); |
| | | ardCameraNoGuideZone.setCreateBy(SecurityUtils.getUsername()); |
| | | ardCameraNoGuideZone.setCreateTime(DateUtils.getNowDate()); |
| | | ardCameraNoGuideZone.setId(IdUtils.simpleUUID()); |
| | | return ardCameraNoGuideZoneMapper.insertArdCameraNoGuideZone(ardCameraNoGuideZone); |
| | | } |
| | | |
| | |
| | | /** |
| | | * 批量删除禁引可视域 |
| | | * |
| | | * @param names 需要删除的禁引可视域主键 |
| | | * @param ids 需要删除的禁引可视域主键 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int deleteArdCameraNoGuideZoneByNames(String[] names) { |
| | | return ardCameraNoGuideZoneMapper.deleteArdCameraNoGuideZoneByNames(names); |
| | | public int deleteArdCameraNoGuideZoneByIds(String[] ids) { |
| | | return ardCameraNoGuideZoneMapper.deleteArdCameraNoGuideZoneByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * 删除禁引可视域信息 |
| | | * |
| | | * @param name 禁引可视域主键 |
| | | * @param id 禁引可视域主键 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int deleteArdCameraNoGuideZoneByName(String name) { |
| | | return ardCameraNoGuideZoneMapper.deleteArdCameraNoGuideZoneByName(name); |
| | | public int deleteArdCameraNoGuideZoneById(String id) { |
| | | return ardCameraNoGuideZoneMapper.deleteArdCameraNoGuideZoneById(id); |
| | | } |
| | | } |