From 0cdfd2b7222fafb22efb4682122507f029e982d9 Mon Sep 17 00:00:00 2001 From: LiWeiJie <3491909454@qq.com> Date: Tue, 11 Jun 2024 14:09:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=BF=90=E8=90=A5=E7=B3=BB=E7=BB=9F-?= =?UTF-8?q?=E6=99=AF=E5=8C=BA=E7=AE=A1=E7=90=86,=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../HfhEquipmentManageController.java | 104 ++++++ .../HfhScenicSpotManageController.java | 106 ++++++ .../domain/HfhEquipmentManage.java | 138 +++++++ .../mapper/HfhEquipmentManageMapper.java | 61 +++ .../service/IHfhEquipmentManageService.java | 61 +++ .../impl/HfhEquipmentManageServiceImpl.java | 95 +++++ .../domain/HfhScenicSpotManage.java | 138 +++++++ .../mapper/HfhScenicSpotManageMapper.java | 61 +++ .../service/IHfhScenicSpotManageService.java | 61 +++ .../impl/HfhScenicSpotManageServiceImpl.java | 95 +++++ .../hfhEquipment/HfhEquipmentManageMapper.xml | 88 +++++ .../HfhScenicSpotManageMapper.xml | 83 +++++ god-ui/src/api/hfhEquipment/manage.js | 44 +++ god-ui/src/api/hfhScenicSpot/manage.js | 44 +++ .../src/views/hfhEquipment/manage/index.vue | 351 ++++++++++++++++++ .../src/views/hfhScenicSpot/manage/index.vue | 323 ++++++++++++++++ 16 files changed, 1853 insertions(+) create mode 100644 God-Vue-master/god-admin/src/main/java/com/god/web/controller/hfhEquipment/HfhEquipmentManageController.java create mode 100644 God-Vue-master/god-admin/src/main/java/com/god/web/controller/hfhScenicSpot/HfhScenicSpotManageController.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/hfhEquipment/domain/HfhEquipmentManage.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/hfhEquipment/mapper/HfhEquipmentManageMapper.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/hfhEquipment/service/IHfhEquipmentManageService.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/hfhEquipment/service/impl/HfhEquipmentManageServiceImpl.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/hfhScenicSpot/domain/HfhScenicSpotManage.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/hfhScenicSpot/mapper/HfhScenicSpotManageMapper.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/hfhScenicSpot/service/IHfhScenicSpotManageService.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/hfhScenicSpot/service/impl/HfhScenicSpotManageServiceImpl.java create mode 100644 God-Vue-master/god-system/src/main/resources/mapper/hfhEquipment/HfhEquipmentManageMapper.xml create mode 100644 God-Vue-master/god-system/src/main/resources/mapper/hfhScenicSpot/HfhScenicSpotManageMapper.xml create mode 100644 god-ui/src/api/hfhEquipment/manage.js create mode 100644 god-ui/src/api/hfhScenicSpot/manage.js create mode 100644 god-ui/src/views/hfhEquipment/manage/index.vue create mode 100644 god-ui/src/views/hfhScenicSpot/manage/index.vue diff --git a/God-Vue-master/god-admin/src/main/java/com/god/web/controller/hfhEquipment/HfhEquipmentManageController.java b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/hfhEquipment/HfhEquipmentManageController.java new file mode 100644 index 00000000..2a32658d --- /dev/null +++ b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/hfhEquipment/HfhEquipmentManageController.java @@ -0,0 +1,104 @@ +package com.god.web.controller.hfhEquipment; + +import com.god.hfhEquipment.domain.HfhEquipmentManage; +import com.god.hfhEquipment.service.IHfhEquipmentManageService; +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.god.common.annotation.Log; +import com.god.common.core.controller.BaseController; +import com.god.common.core.domain.AjaxResult; +import com.god.common.enums.BusinessType; +import com.god.common.utils.poi.ExcelUtil; +import com.god.common.core.page.TableDataInfo; + +/** + * 设备管理Controller + * + * @author liweijie + * @date 2024-06-11 + */ +@RestController +@RequestMapping("/hfhEquipment/manage") +public class HfhEquipmentManageController extends BaseController +{ + @Autowired + private IHfhEquipmentManageService hfhEquipmentManageService; + + /** + * 查询设备管理列表 + */ + @PreAuthorize("@ss.hasPermi('hfhEquipment:manage:list')") + @GetMapping("/list") + public TableDataInfo list(HfhEquipmentManage hfhEquipmentManage) + { + startPage(); + List list = hfhEquipmentManageService.selectHfhEquipmentManageList(hfhEquipmentManage); + return getDataTable(list); + } + + /** + * 导出设备管理列表 + */ + @PreAuthorize("@ss.hasPermi('hfhEquipment:manage:export')") + @Log(title = "设备管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, HfhEquipmentManage hfhEquipmentManage) + { + List list = hfhEquipmentManageService.selectHfhEquipmentManageList(hfhEquipmentManage); + ExcelUtil util = new ExcelUtil(HfhEquipmentManage.class); + util.exportExcel(response, list, "设备管理数据"); + } + + /** + * 获取设备管理详细信息 + */ + @PreAuthorize("@ss.hasPermi('hfhEquipment:manage:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") String id) + { + return success(hfhEquipmentManageService.selectHfhEquipmentManageById(id)); + } + + /** + * 新增设备管理 + */ + @PreAuthorize("@ss.hasPermi('hfhEquipment:manage:add')") + @Log(title = "设备管理", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody HfhEquipmentManage hfhEquipmentManage) + { + return toAjax(hfhEquipmentManageService.insertHfhEquipmentManage(hfhEquipmentManage)); + } + + /** + * 修改设备管理 + */ + @PreAuthorize("@ss.hasPermi('hfhEquipment:manage:edit')") + @Log(title = "设备管理", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody HfhEquipmentManage hfhEquipmentManage) + { + return toAjax(hfhEquipmentManageService.updateHfhEquipmentManage(hfhEquipmentManage)); + } + + /** + * 删除设备管理 + */ + @PreAuthorize("@ss.hasPermi('hfhEquipment:manage:remove')") + @Log(title = "设备管理", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable String[] ids) + { + return toAjax(hfhEquipmentManageService.deleteHfhEquipmentManageByIds(ids)); + } +} diff --git a/God-Vue-master/god-admin/src/main/java/com/god/web/controller/hfhScenicSpot/HfhScenicSpotManageController.java b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/hfhScenicSpot/HfhScenicSpotManageController.java new file mode 100644 index 00000000..e33f87e8 --- /dev/null +++ b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/hfhScenicSpot/HfhScenicSpotManageController.java @@ -0,0 +1,106 @@ +package com.god.web.controller.hfhScenicSpot; + +import com.god.common.utils.uuid.IdUtils; +import com.god.hfhScenicSpot.domain.HfhScenicSpotManage; +import com.god.hfhScenicSpot.service.IHfhScenicSpotManageService; +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.god.common.annotation.Log; +import com.god.common.core.controller.BaseController; +import com.god.common.core.domain.AjaxResult; +import com.god.common.enums.BusinessType; +import com.god.common.utils.poi.ExcelUtil; +import com.god.common.core.page.TableDataInfo; + +/** + * 景区管理Controller + * + * @author lwj + * @date 2024-06-11 + */ +@RestController +@RequestMapping("/hfhScenicSpot/manage") +public class HfhScenicSpotManageController extends BaseController +{ + @Autowired + private IHfhScenicSpotManageService hfhScenicSpotManageService; + + /** + * 查询景区管理列表 + */ + @PreAuthorize("@ss.hasPermi('hfhScenicSpot:manage:list')") + @GetMapping("/list") + public TableDataInfo list(HfhScenicSpotManage hfhScenicSpotManage) + { + startPage(); + List list = hfhScenicSpotManageService.selectHfhScenicSpotManageList(hfhScenicSpotManage); + return getDataTable(list); + } + + /** + * 导出景区管理列表 + */ + @PreAuthorize("@ss.hasPermi('hfhScenicSpot:manage:export')") + @Log(title = "景区管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, HfhScenicSpotManage hfhScenicSpotManage) + { + List list = hfhScenicSpotManageService.selectHfhScenicSpotManageList(hfhScenicSpotManage); + ExcelUtil util = new ExcelUtil(HfhScenicSpotManage.class); + util.exportExcel(response, list, "景区管理数据"); + } + + /** + * 获取景区管理详细信息 + */ + @PreAuthorize("@ss.hasPermi('hfhScenicSpot:manage:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") String id) + { + return success(hfhScenicSpotManageService.selectHfhScenicSpotManageById(id)); + } + + /** + * 新增景区管理 + */ + @PreAuthorize("@ss.hasPermi('hfhScenicSpot:manage:add')") + @Log(title = "景区管理", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody HfhScenicSpotManage hfhScenicSpotManage) + { + hfhScenicSpotManage.setId(IdUtils.fastSimpleUUID()); + return toAjax(hfhScenicSpotManageService.insertHfhScenicSpotManage(hfhScenicSpotManage)); + } + + /** + * 修改景区管理 + */ + @PreAuthorize("@ss.hasPermi('hfhScenicSpot:manage:edit')") + @Log(title = "景区管理", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody HfhScenicSpotManage hfhScenicSpotManage) + { + return toAjax(hfhScenicSpotManageService.updateHfhScenicSpotManage(hfhScenicSpotManage)); + } + + /** + * 删除景区管理 + */ + @PreAuthorize("@ss.hasPermi('hfhScenicSpot:manage:remove')") + @Log(title = "景区管理", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable String[] ids) + { + return toAjax(hfhScenicSpotManageService.deleteHfhScenicSpotManageByIds(ids)); + } +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/hfhEquipment/domain/HfhEquipmentManage.java b/God-Vue-master/god-system/src/main/java/com/god/hfhEquipment/domain/HfhEquipmentManage.java new file mode 100644 index 00000000..fd5f6a6f --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/hfhEquipment/domain/HfhEquipmentManage.java @@ -0,0 +1,138 @@ +package com.god.hfhEquipment.domain; + +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.god.common.annotation.Excel; +import com.god.common.core.domain.BaseEntity; + +/** + * 设备管理对象 hfh_equipment_manage + * + * @author liweijie + * @date 2024-06-11 + */ +public class HfhEquipmentManage extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键 */ + private String id; + + /** 设备名称 */ + @Excel(name = "设备名称") + private String deviceName; + + /** 设备IP */ + @Excel(name = "设备IP") + private String deviceIp; + + /** 设备状态 */ + @Excel(name = "设备状态") + private String deviceStatus; + + /** 位置 */ + @Excel(name = "位置") + private String location; + + /** 图片 */ + @Excel(name = "图片") + private String image; + + /** 录入时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "录入时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date recordTime; + + /** 备注 */ + @Excel(name = "备注") + private String remarks; + + public void setId(String id) + { + this.id = id; + } + + public String getId() + { + return id; + } + public void setDeviceName(String deviceName) + { + this.deviceName = deviceName; + } + + public String getDeviceName() + { + return deviceName; + } + public void setDeviceIp(String deviceIp) + { + this.deviceIp = deviceIp; + } + + public String getDeviceIp() + { + return deviceIp; + } + public void setDeviceStatus(String deviceStatus) + { + this.deviceStatus = deviceStatus; + } + + public String getDeviceStatus() + { + return deviceStatus; + } + public void setLocation(String location) + { + this.location = location; + } + + public String getLocation() + { + return location; + } + public void setImage(String image) + { + this.image = image; + } + + public String getImage() + { + return image; + } + public void setRecordTime(Date recordTime) + { + this.recordTime = recordTime; + } + + public Date getRecordTime() + { + return recordTime; + } + public void setRemarks(String remarks) + { + this.remarks = remarks; + } + + public String getRemarks() + { + return remarks; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("deviceName", getDeviceName()) + .append("deviceIp", getDeviceIp()) + .append("deviceStatus", getDeviceStatus()) + .append("location", getLocation()) + .append("image", getImage()) + .append("recordTime", getRecordTime()) + .append("remarks", getRemarks()) + .toString(); + } +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/hfhEquipment/mapper/HfhEquipmentManageMapper.java b/God-Vue-master/god-system/src/main/java/com/god/hfhEquipment/mapper/HfhEquipmentManageMapper.java new file mode 100644 index 00000000..26a94273 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/hfhEquipment/mapper/HfhEquipmentManageMapper.java @@ -0,0 +1,61 @@ +package com.god.hfhEquipment.mapper; + +import com.god.hfhEquipment.domain.HfhEquipmentManage; +import java.util.List; + +/** + * 设备管理Mapper接口 + * + * @author liweijie + * @date 2024-06-11 + */ +public interface HfhEquipmentManageMapper +{ + /** + * 查询设备管理 + * + * @param id 设备管理主键 + * @return 设备管理 + */ + public HfhEquipmentManage selectHfhEquipmentManageById(String id); + + /** + * 查询设备管理列表 + * + * @param hfhEquipmentManage 设备管理 + * @return 设备管理集合 + */ + public List selectHfhEquipmentManageList(HfhEquipmentManage hfhEquipmentManage); + + /** + * 新增设备管理 + * + * @param hfhEquipmentManage 设备管理 + * @return 结果 + */ + public int insertHfhEquipmentManage(HfhEquipmentManage hfhEquipmentManage); + + /** + * 修改设备管理 + * + * @param hfhEquipmentManage 设备管理 + * @return 结果 + */ + public int updateHfhEquipmentManage(HfhEquipmentManage hfhEquipmentManage); + + /** + * 删除设备管理 + * + * @param id 设备管理主键 + * @return 结果 + */ + public int deleteHfhEquipmentManageById(String id); + + /** + * 批量删除设备管理 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteHfhEquipmentManageByIds(String[] ids); +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/hfhEquipment/service/IHfhEquipmentManageService.java b/God-Vue-master/god-system/src/main/java/com/god/hfhEquipment/service/IHfhEquipmentManageService.java new file mode 100644 index 00000000..a83f2b24 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/hfhEquipment/service/IHfhEquipmentManageService.java @@ -0,0 +1,61 @@ +package com.god.hfhEquipment.service; + +import com.god.hfhEquipment.domain.HfhEquipmentManage; +import java.util.List; + +/** + * 设备管理Service接口 + * + * @author liweijie + * @date 2024-06-11 + */ +public interface IHfhEquipmentManageService +{ + /** + * 查询设备管理 + * + * @param id 设备管理主键 + * @return 设备管理 + */ + public HfhEquipmentManage selectHfhEquipmentManageById(String id); + + /** + * 查询设备管理列表 + * + * @param hfhEquipmentManage 设备管理 + * @return 设备管理集合 + */ + public List selectHfhEquipmentManageList(HfhEquipmentManage hfhEquipmentManage); + + /** + * 新增设备管理 + * + * @param hfhEquipmentManage 设备管理 + * @return 结果 + */ + public int insertHfhEquipmentManage(HfhEquipmentManage hfhEquipmentManage); + + /** + * 修改设备管理 + * + * @param hfhEquipmentManage 设备管理 + * @return 结果 + */ + public int updateHfhEquipmentManage(HfhEquipmentManage hfhEquipmentManage); + + /** + * 批量删除设备管理 + * + * @param ids 需要删除的设备管理主键集合 + * @return 结果 + */ + public int deleteHfhEquipmentManageByIds(String[] ids); + + /** + * 删除设备管理信息 + * + * @param id 设备管理主键 + * @return 结果 + */ + public int deleteHfhEquipmentManageById(String id); +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/hfhEquipment/service/impl/HfhEquipmentManageServiceImpl.java b/God-Vue-master/god-system/src/main/java/com/god/hfhEquipment/service/impl/HfhEquipmentManageServiceImpl.java new file mode 100644 index 00000000..5ac3f7fe --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/hfhEquipment/service/impl/HfhEquipmentManageServiceImpl.java @@ -0,0 +1,95 @@ +package com.god.hfhEquipment.service.impl; + +import com.god.common.utils.uuid.IdUtils; +import com.god.hfhEquipment.domain.HfhEquipmentManage; +import com.god.hfhEquipment.mapper.HfhEquipmentManageMapper; +import com.god.hfhEquipment.service.IHfhEquipmentManageService; +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +/** + * 设备管理Service业务层处理 + * + * @author liweijie + * @date 2024-06-11 + */ +@Service +public class HfhEquipmentManageServiceImpl implements IHfhEquipmentManageService +{ + @Autowired + private HfhEquipmentManageMapper hfhEquipmentManageMapper; + + /** + * 查询设备管理 + * + * @param id 设备管理主键 + * @return 设备管理 + */ + @Override + public HfhEquipmentManage selectHfhEquipmentManageById(String id) + { + return hfhEquipmentManageMapper.selectHfhEquipmentManageById(id); + } + + /** + * 查询设备管理列表 + * + * @param hfhEquipmentManage 设备管理 + * @return 设备管理 + */ + @Override + public List selectHfhEquipmentManageList(HfhEquipmentManage hfhEquipmentManage) + { + return hfhEquipmentManageMapper.selectHfhEquipmentManageList(hfhEquipmentManage); + } + + /** + * 新增设备管理 + * + * @param hfhEquipmentManage 设备管理 + * @return 结果 + */ + @Override + public int insertHfhEquipmentManage(HfhEquipmentManage hfhEquipmentManage) + { + hfhEquipmentManage.setId(IdUtils.fastSimpleUUID()); + return hfhEquipmentManageMapper.insertHfhEquipmentManage(hfhEquipmentManage); + } + + /** + * 修改设备管理 + * + * @param hfhEquipmentManage 设备管理 + * @return 结果 + */ + @Override + public int updateHfhEquipmentManage(HfhEquipmentManage hfhEquipmentManage) + { + return hfhEquipmentManageMapper.updateHfhEquipmentManage(hfhEquipmentManage); + } + + /** + * 批量删除设备管理 + * + * @param ids 需要删除的设备管理主键 + * @return 结果 + */ + @Override + public int deleteHfhEquipmentManageByIds(String[] ids) + { + return hfhEquipmentManageMapper.deleteHfhEquipmentManageByIds(ids); + } + + /** + * 删除设备管理信息 + * + * @param id 设备管理主键 + * @return 结果 + */ + @Override + public int deleteHfhEquipmentManageById(String id) + { + return hfhEquipmentManageMapper.deleteHfhEquipmentManageById(id); + } +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/hfhScenicSpot/domain/HfhScenicSpotManage.java b/God-Vue-master/god-system/src/main/java/com/god/hfhScenicSpot/domain/HfhScenicSpotManage.java new file mode 100644 index 00000000..b2a05644 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/hfhScenicSpot/domain/HfhScenicSpotManage.java @@ -0,0 +1,138 @@ +package com.god.hfhScenicSpot.domain; + +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.god.common.annotation.Excel; +import com.god.common.core.domain.BaseEntity; + +/** + * 景区管理对象 hfh_scenic_spot_manage + * + * @author lwj + * @date 2024-06-11 + */ +public class HfhScenicSpotManage extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** id */ + private String id; + + /** 公园名称 */ + @Excel(name = "公园名称") + private String parkName; + + /** 位置 */ + @Excel(name = "位置") + private String location; + + /** 捕捉视频对象类型 */ + @Excel(name = "捕捉视频对象类型") + private String capturedVideoObjectType; + + /** 捕捉图片 */ + @Excel(name = "捕捉图片") + private String capturePicture; + + /** 视频 */ + @Excel(name = "视频") + private String video; + + /** 时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date captureTime; + + /** 备注 */ + @Excel(name = "备注") + private String remarks; + + public void setId(String id) + { + this.id = id; + } + + public String getId() + { + return id; + } + public void setParkName(String parkName) + { + this.parkName = parkName; + } + + public String getParkName() + { + return parkName; + } + public void setLocation(String location) + { + this.location = location; + } + + public String getLocation() + { + return location; + } + public void setCapturedVideoObjectType(String capturedVideoObjectType) + { + this.capturedVideoObjectType = capturedVideoObjectType; + } + + public String getCapturedVideoObjectType() + { + return capturedVideoObjectType; + } + public void setCapturePicture(String capturePicture) + { + this.capturePicture = capturePicture; + } + + public String getCapturePicture() + { + return capturePicture; + } + public void setVideo(String video) + { + this.video = video; + } + + public String getVideo() + { + return video; + } + public void setCaptureTime(Date captureTime) + { + this.captureTime = captureTime; + } + + public Date getCaptureTime() + { + return captureTime; + } + public void setRemarks(String remarks) + { + this.remarks = remarks; + } + + public String getRemarks() + { + return remarks; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("parkName", getParkName()) + .append("location", getLocation()) + .append("capturedVideoObjectType", getCapturedVideoObjectType()) + .append("capturePicture", getCapturePicture()) + .append("video", getVideo()) + .append("captureTime", getCaptureTime()) + .append("remarks", getRemarks()) + .toString(); + } +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/hfhScenicSpot/mapper/HfhScenicSpotManageMapper.java b/God-Vue-master/god-system/src/main/java/com/god/hfhScenicSpot/mapper/HfhScenicSpotManageMapper.java new file mode 100644 index 00000000..1931423f --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/hfhScenicSpot/mapper/HfhScenicSpotManageMapper.java @@ -0,0 +1,61 @@ +package com.god.hfhScenicSpot.mapper; + +import com.god.hfhScenicSpot.domain.HfhScenicSpotManage; +import java.util.List; + +/** + * 景区管理Mapper接口 + * + * @author lwj + * @date 2024-06-11 + */ +public interface HfhScenicSpotManageMapper +{ + /** + * 查询景区管理 + * + * @param id 景区管理主键 + * @return 景区管理 + */ + public HfhScenicSpotManage selectHfhScenicSpotManageById(String id); + + /** + * 查询景区管理列表 + * + * @param hfhScenicSpotManage 景区管理 + * @return 景区管理集合 + */ + public List selectHfhScenicSpotManageList(HfhScenicSpotManage hfhScenicSpotManage); + + /** + * 新增景区管理 + * + * @param hfhScenicSpotManage 景区管理 + * @return 结果 + */ + public int insertHfhScenicSpotManage(HfhScenicSpotManage hfhScenicSpotManage); + + /** + * 修改景区管理 + * + * @param hfhScenicSpotManage 景区管理 + * @return 结果 + */ + public int updateHfhScenicSpotManage(HfhScenicSpotManage hfhScenicSpotManage); + + /** + * 删除景区管理 + * + * @param id 景区管理主键 + * @return 结果 + */ + public int deleteHfhScenicSpotManageById(String id); + + /** + * 批量删除景区管理 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteHfhScenicSpotManageByIds(String[] ids); +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/hfhScenicSpot/service/IHfhScenicSpotManageService.java b/God-Vue-master/god-system/src/main/java/com/god/hfhScenicSpot/service/IHfhScenicSpotManageService.java new file mode 100644 index 00000000..e98173b2 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/hfhScenicSpot/service/IHfhScenicSpotManageService.java @@ -0,0 +1,61 @@ +package com.god.hfhScenicSpot.service; + +import com.god.hfhScenicSpot.domain.HfhScenicSpotManage; +import java.util.List; + +/** + * 景区管理Service接口 + * + * @author lwj + * @date 2024-06-11 + */ +public interface IHfhScenicSpotManageService +{ + /** + * 查询景区管理 + * + * @param id 景区管理主键 + * @return 景区管理 + */ + public HfhScenicSpotManage selectHfhScenicSpotManageById(String id); + + /** + * 查询景区管理列表 + * + * @param hfhScenicSpotManage 景区管理 + * @return 景区管理集合 + */ + public List selectHfhScenicSpotManageList(HfhScenicSpotManage hfhScenicSpotManage); + + /** + * 新增景区管理 + * + * @param hfhScenicSpotManage 景区管理 + * @return 结果 + */ + public int insertHfhScenicSpotManage(HfhScenicSpotManage hfhScenicSpotManage); + + /** + * 修改景区管理 + * + * @param hfhScenicSpotManage 景区管理 + * @return 结果 + */ + public int updateHfhScenicSpotManage(HfhScenicSpotManage hfhScenicSpotManage); + + /** + * 批量删除景区管理 + * + * @param ids 需要删除的景区管理主键集合 + * @return 结果 + */ + public int deleteHfhScenicSpotManageByIds(String[] ids); + + /** + * 删除景区管理信息 + * + * @param id 景区管理主键 + * @return 结果 + */ + public int deleteHfhScenicSpotManageById(String id); +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/hfhScenicSpot/service/impl/HfhScenicSpotManageServiceImpl.java b/God-Vue-master/god-system/src/main/java/com/god/hfhScenicSpot/service/impl/HfhScenicSpotManageServiceImpl.java new file mode 100644 index 00000000..ee4306ea --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/hfhScenicSpot/service/impl/HfhScenicSpotManageServiceImpl.java @@ -0,0 +1,95 @@ +package com.god.hfhScenicSpot.service.impl; + +import com.god.common.utils.uuid.IdUtils; +import com.god.hfhScenicSpot.domain.HfhScenicSpotManage; +import com.god.hfhScenicSpot.mapper.HfhScenicSpotManageMapper; +import com.god.hfhScenicSpot.service.IHfhScenicSpotManageService; +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +/** + * 景区管理Service业务层处理 + * + * @author lwj + * @date 2024-06-11 + */ +@Service +public class HfhScenicSpotManageServiceImpl implements IHfhScenicSpotManageService +{ + @Autowired + private HfhScenicSpotManageMapper hfhScenicSpotManageMapper; + + /** + * 查询景区管理 + * + * @param id 景区管理主键 + * @return 景区管理 + */ + @Override + public HfhScenicSpotManage selectHfhScenicSpotManageById(String id) + { + return hfhScenicSpotManageMapper.selectHfhScenicSpotManageById(id); + } + + /** + * 查询景区管理列表 + * + * @param hfhScenicSpotManage 景区管理 + * @return 景区管理 + */ + @Override + public List selectHfhScenicSpotManageList(HfhScenicSpotManage hfhScenicSpotManage) + { + return hfhScenicSpotManageMapper.selectHfhScenicSpotManageList(hfhScenicSpotManage); + } + + /** + * 新增景区管理 + * + * @param hfhScenicSpotManage 景区管理 + * @return 结果 + */ + @Override + public int insertHfhScenicSpotManage(HfhScenicSpotManage hfhScenicSpotManage) + { + hfhScenicSpotManage.setId(IdUtils.simpleUUID()); + return hfhScenicSpotManageMapper.insertHfhScenicSpotManage(hfhScenicSpotManage); + } + + /** + * 修改景区管理 + * + * @param hfhScenicSpotManage 景区管理 + * @return 结果 + */ + @Override + public int updateHfhScenicSpotManage(HfhScenicSpotManage hfhScenicSpotManage) + { + return hfhScenicSpotManageMapper.updateHfhScenicSpotManage(hfhScenicSpotManage); + } + + /** + * 批量删除景区管理 + * + * @param ids 需要删除的景区管理主键 + * @return 结果 + */ + @Override + public int deleteHfhScenicSpotManageByIds(String[] ids) + { + return hfhScenicSpotManageMapper.deleteHfhScenicSpotManageByIds(ids); + } + + /** + * 删除景区管理信息 + * + * @param id 景区管理主键 + * @return 结果 + */ + @Override + public int deleteHfhScenicSpotManageById(String id) + { + return hfhScenicSpotManageMapper.deleteHfhScenicSpotManageById(id); + } +} diff --git a/God-Vue-master/god-system/src/main/resources/mapper/hfhEquipment/HfhEquipmentManageMapper.xml b/God-Vue-master/god-system/src/main/resources/mapper/hfhEquipment/HfhEquipmentManageMapper.xml new file mode 100644 index 00000000..42ef904b --- /dev/null +++ b/God-Vue-master/god-system/src/main/resources/mapper/hfhEquipment/HfhEquipmentManageMapper.xml @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + + + + select id, device_name, device_ip, device_status, location, image, record_time, remarks from hfh_equipment_manage + + + + + + + + insert into hfh_equipment_manage + + id, + device_name, + device_ip, + device_status, + location, + image, + record_time, + remarks, + + + #{id}, + #{deviceName}, + #{deviceIp}, + #{deviceStatus}, + #{location}, + #{image}, + #{recordTime}, + #{remarks}, + + + + + update hfh_equipment_manage + + device_name = #{deviceName}, + device_ip = #{deviceIp}, + device_status = #{deviceStatus}, + location = #{location}, + image = #{image}, + record_time = #{recordTime}, + remarks = #{remarks}, + + where id = #{id} + + + + delete from hfh_equipment_manage where id = #{id} + + + + delete from hfh_equipment_manage where id in + + #{id} + + + diff --git a/God-Vue-master/god-system/src/main/resources/mapper/hfhScenicSpot/HfhScenicSpotManageMapper.xml b/God-Vue-master/god-system/src/main/resources/mapper/hfhScenicSpot/HfhScenicSpotManageMapper.xml new file mode 100644 index 00000000..b53a58a1 --- /dev/null +++ b/God-Vue-master/god-system/src/main/resources/mapper/hfhScenicSpot/HfhScenicSpotManageMapper.xml @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + + + select id, park_name, location, captured_video_object_type, capture_picture, capture_time, remarks from hfh_scenic_spot_manage + + + + + + + + insert into hfh_scenic_spot_manage + + id, + park_name, + location, + captured_video_object_type, + capture_picture, + capture_time, + remarks, + + + #{id}, + #{parkName}, + #{location}, + #{capturedVideoObjectType}, + #{capturePicture}, + #{captureTime}, + #{remarks}, + + + + + update hfh_scenic_spot_manage + + park_name = #{parkName}, + location = #{location}, + captured_video_object_type = #{capturedVideoObjectType}, + capture_picture = #{capturePicture}, + capture_time = #{captureTime}, + remarks = #{remarks}, + + where id = #{id} + + + + delete from hfh_scenic_spot_manage where id = #{id} + + + + delete from hfh_scenic_spot_manage where id in + + #{id} + + + diff --git a/god-ui/src/api/hfhEquipment/manage.js b/god-ui/src/api/hfhEquipment/manage.js new file mode 100644 index 00000000..760a6a5b --- /dev/null +++ b/god-ui/src/api/hfhEquipment/manage.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询设备管理列表 +export function listManage(query) { + return request({ + url: '/hfhEquipment/manage/list', + method: 'get', + params: query + }) +} + +// 查询设备管理详细 +export function getManage(id) { + return request({ + url: '/hfhEquipment/manage/' + id, + method: 'get' + }) +} + +// 新增设备管理 +export function addManage(data) { + return request({ + url: '/hfhEquipment/manage', + method: 'post', + data: data + }) +} + +// 修改设备管理 +export function updateManage(data) { + return request({ + url: '/hfhEquipment/manage', + method: 'put', + data: data + }) +} + +// 删除设备管理 +export function delManage(id) { + return request({ + url: '/hfhEquipment/manage/' + id, + method: 'delete' + }) +} diff --git a/god-ui/src/api/hfhScenicSpot/manage.js b/god-ui/src/api/hfhScenicSpot/manage.js new file mode 100644 index 00000000..4d32d9c0 --- /dev/null +++ b/god-ui/src/api/hfhScenicSpot/manage.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询景区管理列表 +export function listManage(query) { + return request({ + url: '/hfhScenicSpot/manage/list', + method: 'get', + params: query + }) +} + +// 查询景区管理详细 +export function getManage(id) { + return request({ + url: '/hfhScenicSpot/manage/' + id, + method: 'get' + }) +} + +// 新增景区管理 +export function addManage(data) { + return request({ + url: '/hfhScenicSpot/manage', + method: 'post', + data: data + }) +} + +// 修改景区管理 +export function updateManage(data) { + return request({ + url: '/hfhScenicSpot/manage', + method: 'put', + data: data + }) +} + +// 删除景区管理 +export function delManage(id) { + return request({ + url: '/hfhScenicSpot/manage/' + id, + method: 'delete' + }) +} diff --git a/god-ui/src/views/hfhEquipment/manage/index.vue b/god-ui/src/views/hfhEquipment/manage/index.vue new file mode 100644 index 00000000..c097a4fe --- /dev/null +++ b/god-ui/src/views/hfhEquipment/manage/index.vue @@ -0,0 +1,351 @@ + + + diff --git a/god-ui/src/views/hfhScenicSpot/manage/index.vue b/god-ui/src/views/hfhScenicSpot/manage/index.vue new file mode 100644 index 00000000..52b1d13e --- /dev/null +++ b/god-ui/src/views/hfhScenicSpot/manage/index.vue @@ -0,0 +1,323 @@ + + +