From 681cb0faf0ac461e10c2674d55506171718bc41f Mon Sep 17 00:00:00 2001 From: LiWeiJie <3491909454@qq.com> Date: Fri, 30 Aug 2024 14:58:58 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E7=BD=91=E7=BB=9C=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E8=BF=90=E7=BB=B4=E5=B9=B3=E5=8F=B0=EF=BC=8C=E9=A3=8E?= =?UTF-8?q?=E9=99=A9=E9=A2=84=E8=AD=A6-=E9=A3=8E=E9=99=A9=E9=A2=84?= =?UTF-8?q?=E8=AD=A6=EF=BC=8C=E9=A2=84=E8=AD=A6=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...WlsbEarlyWarningInformationController.java | 104 +++++ .../WlsbEarlyWarningTypeController.java | 104 +++++ .../domain/WlsbEarlyWarningInformation.java | 81 ++++ .../domain/WlsbEarlyWarningType.java | 44 ++ .../WlsbEarlyWarningInformationMapper.java | 61 +++ .../mapper/WlsbEarlyWarningTypeMapper.java | 61 +++ .../IWlsbEarlyWarningInformationService.java | 61 +++ .../service/IWlsbEarlyWarningTypeService.java | 61 +++ ...lsbEarlyWarningInformationServiceImpl.java | 95 ++++ .../impl/WlsbEarlyWarningTypeServiceImpl.java | 95 ++++ .../WlsbEarlyWarningInformationMapper.xml | 113 +++++ .../wlsbEarly/WlsbEarlyWarningTypeMapper.xml | 73 +++ .../src/api/wlsbEarly/warningInformation.js | 44 ++ god-ui/src/api/wlsbEarly/warningType.js | 44 ++ .../wlsbEarly/warningInformation/index.vue | 433 ++++++++++++++++++ .../src/views/wlsbEarly/warningType/index.vue | 287 ++++++++++++ 16 files changed, 1761 insertions(+) create mode 100644 God-Vue-master/god-admin/src/main/java/com/god/web/controller/wlsbforewarning/WlsbEarlyWarningInformationController.java create mode 100644 God-Vue-master/god-admin/src/main/java/com/god/web/controller/wlsbforewarning/WlsbEarlyWarningTypeController.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/domain/WlsbEarlyWarningInformation.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/domain/WlsbEarlyWarningType.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/mapper/WlsbEarlyWarningInformationMapper.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/mapper/WlsbEarlyWarningTypeMapper.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/service/IWlsbEarlyWarningInformationService.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/service/IWlsbEarlyWarningTypeService.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/service/impl/WlsbEarlyWarningInformationServiceImpl.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/service/impl/WlsbEarlyWarningTypeServiceImpl.java create mode 100644 God-Vue-master/god-system/src/main/resources/mapper/wlsbforewarning/wlsbEarly/WlsbEarlyWarningInformationMapper.xml create mode 100644 God-Vue-master/god-system/src/main/resources/mapper/wlsbforewarning/wlsbEarly/WlsbEarlyWarningTypeMapper.xml create mode 100644 god-ui/src/api/wlsbEarly/warningInformation.js create mode 100644 god-ui/src/api/wlsbEarly/warningType.js create mode 100644 god-ui/src/views/wlsbEarly/warningInformation/index.vue create mode 100644 god-ui/src/views/wlsbEarly/warningType/index.vue diff --git a/God-Vue-master/god-admin/src/main/java/com/god/web/controller/wlsbforewarning/WlsbEarlyWarningInformationController.java b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/wlsbforewarning/WlsbEarlyWarningInformationController.java new file mode 100644 index 00000000..1da4b2bd --- /dev/null +++ b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/wlsbforewarning/WlsbEarlyWarningInformationController.java @@ -0,0 +1,104 @@ +package com.god.web.controller.wlsbforewarning; + +import com.god.wlsbforewarning.domain.WlsbEarlyWarningInformation; +import com.god.wlsbforewarning.service.IWlsbEarlyWarningInformationService; +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-08-30 + */ +@RestController +@RequestMapping("/wlsbEarly/warningInformation") +public class WlsbEarlyWarningInformationController extends BaseController +{ + @Autowired + private IWlsbEarlyWarningInformationService wlsbEarlyWarningInformationService; + + /** + * 查询预警信息列表 + */ + @PreAuthorize("@ss.hasPermi('wlsbEarly:warningInformation:list')") + @GetMapping("/list") + public TableDataInfo list(WlsbEarlyWarningInformation wlsbEarlyWarningInformation) + { + startPage(); + List list = wlsbEarlyWarningInformationService.selectWlsbEarlyWarningInformationList(wlsbEarlyWarningInformation); + return getDataTable(list); + } + + /** + * 导出预警信息列表 + */ + @PreAuthorize("@ss.hasPermi('wlsbEarly:warningInformation:export')") + @Log(title = "预警信息", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, WlsbEarlyWarningInformation wlsbEarlyWarningInformation) + { + List list = wlsbEarlyWarningInformationService.selectWlsbEarlyWarningInformationList(wlsbEarlyWarningInformation); + ExcelUtil util = new ExcelUtil(WlsbEarlyWarningInformation.class); + util.exportExcel(response, list, "预警信息数据"); + } + + /** + * 获取预警信息详细信息 + */ + @PreAuthorize("@ss.hasPermi('wlsbEarly:warningInformation:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") String id) + { + return success(wlsbEarlyWarningInformationService.selectWlsbEarlyWarningInformationById(id)); + } + + /** + * 新增预警信息 + */ + @PreAuthorize("@ss.hasPermi('wlsbEarly:warningInformation:add')") + @Log(title = "预警信息", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody WlsbEarlyWarningInformation wlsbEarlyWarningInformation) + { + return toAjax(wlsbEarlyWarningInformationService.insertWlsbEarlyWarningInformation(wlsbEarlyWarningInformation)); + } + + /** + * 修改预警信息 + */ + @PreAuthorize("@ss.hasPermi('wlsbEarly:warningInformation:edit')") + @Log(title = "预警信息", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody WlsbEarlyWarningInformation wlsbEarlyWarningInformation) + { + return toAjax(wlsbEarlyWarningInformationService.updateWlsbEarlyWarningInformation(wlsbEarlyWarningInformation)); + } + + /** + * 删除预警信息 + */ + @PreAuthorize("@ss.hasPermi('wlsbEarly:warningInformation:remove')") + @Log(title = "预警信息", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable String[] ids) + { + return toAjax(wlsbEarlyWarningInformationService.deleteWlsbEarlyWarningInformationByIds(ids)); + } +} diff --git a/God-Vue-master/god-admin/src/main/java/com/god/web/controller/wlsbforewarning/WlsbEarlyWarningTypeController.java b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/wlsbforewarning/WlsbEarlyWarningTypeController.java new file mode 100644 index 00000000..bce5094f --- /dev/null +++ b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/wlsbforewarning/WlsbEarlyWarningTypeController.java @@ -0,0 +1,104 @@ +package com.god.web.controller.wlsbforewarning; + +import com.god.wlsbforewarning.domain.WlsbEarlyWarningType; +import com.god.wlsbforewarning.service.IWlsbEarlyWarningTypeService; +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-08-30 + */ +@RestController +@RequestMapping("/wlsbEarly/warningType") +public class WlsbEarlyWarningTypeController extends BaseController +{ + @Autowired + private IWlsbEarlyWarningTypeService wlsbEarlyWarningTypeService; + + /** + * 查询预警类型列表 + */ + @PreAuthorize("@ss.hasPermi('wlsbEarly:warningType:list')") + @GetMapping("/list") + public TableDataInfo list(WlsbEarlyWarningType wlsbEarlyWarningType) + { + startPage(); + List list = wlsbEarlyWarningTypeService.selectWlsbEarlyWarningTypeList(wlsbEarlyWarningType); + return getDataTable(list); + } + + /** + * 导出预警类型列表 + */ + @PreAuthorize("@ss.hasPermi('wlsbEarly:warningType:export')") + @Log(title = "预警类型", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, WlsbEarlyWarningType wlsbEarlyWarningType) + { + List list = wlsbEarlyWarningTypeService.selectWlsbEarlyWarningTypeList(wlsbEarlyWarningType); + ExcelUtil util = new ExcelUtil(WlsbEarlyWarningType.class); + util.exportExcel(response, list, "预警类型数据"); + } + + /** + * 获取预警类型详细信息 + */ + @PreAuthorize("@ss.hasPermi('wlsbEarly:warningType:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") String id) + { + return success(wlsbEarlyWarningTypeService.selectWlsbEarlyWarningTypeById(id)); + } + + /** + * 新增预警类型 + */ + @PreAuthorize("@ss.hasPermi('wlsbEarly:warningType:add')") + @Log(title = "预警类型", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody WlsbEarlyWarningType wlsbEarlyWarningType) + { + return toAjax(wlsbEarlyWarningTypeService.insertWlsbEarlyWarningType(wlsbEarlyWarningType)); + } + + /** + * 修改预警类型 + */ + @PreAuthorize("@ss.hasPermi('wlsbEarly:warningType:edit')") + @Log(title = "预警类型", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody WlsbEarlyWarningType wlsbEarlyWarningType) + { + return toAjax(wlsbEarlyWarningTypeService.updateWlsbEarlyWarningType(wlsbEarlyWarningType)); + } + + /** + * 删除预警类型 + */ + @PreAuthorize("@ss.hasPermi('wlsbEarly:warningType:remove')") + @Log(title = "预警类型", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable String[] ids) + { + return toAjax(wlsbEarlyWarningTypeService.deleteWlsbEarlyWarningTypeByIds(ids)); + } +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/domain/WlsbEarlyWarningInformation.java b/God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/domain/WlsbEarlyWarningInformation.java new file mode 100644 index 00000000..1ebc94c5 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/domain/WlsbEarlyWarningInformation.java @@ -0,0 +1,81 @@ +package com.god.wlsbforewarning.domain; + +import java.time.LocalDateTime; +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; +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; + +/** + * 预警信息对象 wlsb_early_warning_information + * + * @author liweijie + * @date 2024-08-30 + */ +@Data +@NoArgsConstructor +@AllArgsConstructor +public class WlsbEarlyWarningInformation extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** id */ + private String id; + + /** 区域 */ + @Excel(name = "区域") + private String region; + + /** 设备ID */ + @Excel(name = "设备ID") + private String deviceId; + + /** 设备名称 */ + @Excel(name = "设备名称") + private String deviceName; + + /** 时间 */ +// @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss") +// @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd hh:mm:ss") + @Excel(name = "时间") + private String time; + + /** 预警ID */ + @Excel(name = "预警ID") + private String warningId; + + /** 预警类型 */ + @Excel(name = "预警类型") + private String warningType; + + /** 预警级别 */ + @Excel(name = "预警级别") + private String warningLevel; + + /** 抓拍图片 */ + @Excel(name = "抓拍图片") + private String capturedImage; + + /** 预警信息 */ + @Excel(name = "预警信息") + private String warningInfo; + + /** 处理人 */ + @Excel(name = "处理人") + private String handler; + + /** 状态 */ + @Excel(name = "状态") + private String status; + + /** 备注 */ + @Excel(name = "备注") + private String remarks; + + +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/domain/WlsbEarlyWarningType.java b/God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/domain/WlsbEarlyWarningType.java new file mode 100644 index 00000000..5c9ef5c2 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/domain/WlsbEarlyWarningType.java @@ -0,0 +1,44 @@ +package com.god.wlsbforewarning.domain; + +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; +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; + +/** + * 预警类型对象 wlsb_early_warning_type + * + * @author liweijie + * @date 2024-08-30 + */ +@Data +@NoArgsConstructor +@AllArgsConstructor +public class WlsbEarlyWarningType extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** id */ + private String id; + + /** 预警类型 */ + @Excel(name = "预警类型") + private String warningType; + + /** 影响级别 */ + @Excel(name = "影响级别") + private String impactLevel; + + /** 错误详情 */ + @Excel(name = "错误详情") + private String errorDetails; + + /** 推荐修复步骤 */ + @Excel(name = "推荐修复步骤") + private String recommendedRepairSteps; + + +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/mapper/WlsbEarlyWarningInformationMapper.java b/God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/mapper/WlsbEarlyWarningInformationMapper.java new file mode 100644 index 00000000..cfc05038 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/mapper/WlsbEarlyWarningInformationMapper.java @@ -0,0 +1,61 @@ +package com.god.wlsbforewarning.mapper; + +import com.god.wlsbforewarning.domain.WlsbEarlyWarningInformation; +import java.util.List; + +/** + * 预警信息Mapper接口 + * + * @author liweijie + * @date 2024-08-30 + */ +public interface WlsbEarlyWarningInformationMapper +{ + /** + * 查询预警信息 + * + * @param id 预警信息主键 + * @return 预警信息 + */ + public WlsbEarlyWarningInformation selectWlsbEarlyWarningInformationById(String id); + + /** + * 查询预警信息列表 + * + * @param wlsbEarlyWarningInformation 预警信息 + * @return 预警信息集合 + */ + public List selectWlsbEarlyWarningInformationList(WlsbEarlyWarningInformation wlsbEarlyWarningInformation); + + /** + * 新增预警信息 + * + * @param wlsbEarlyWarningInformation 预警信息 + * @return 结果 + */ + public int insertWlsbEarlyWarningInformation(WlsbEarlyWarningInformation wlsbEarlyWarningInformation); + + /** + * 修改预警信息 + * + * @param wlsbEarlyWarningInformation 预警信息 + * @return 结果 + */ + public int updateWlsbEarlyWarningInformation(WlsbEarlyWarningInformation wlsbEarlyWarningInformation); + + /** + * 删除预警信息 + * + * @param id 预警信息主键 + * @return 结果 + */ + public int deleteWlsbEarlyWarningInformationById(String id); + + /** + * 批量删除预警信息 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteWlsbEarlyWarningInformationByIds(String[] ids); +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/mapper/WlsbEarlyWarningTypeMapper.java b/God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/mapper/WlsbEarlyWarningTypeMapper.java new file mode 100644 index 00000000..b6f35591 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/mapper/WlsbEarlyWarningTypeMapper.java @@ -0,0 +1,61 @@ +package com.god.wlsbforewarning.mapper; + +import com.god.wlsbforewarning.domain.WlsbEarlyWarningType; +import java.util.List; + +/** + * 预警类型Mapper接口 + * + * @author liweijie + * @date 2024-08-30 + */ +public interface WlsbEarlyWarningTypeMapper +{ + /** + * 查询预警类型 + * + * @param id 预警类型主键 + * @return 预警类型 + */ + public WlsbEarlyWarningType selectWlsbEarlyWarningTypeById(String id); + + /** + * 查询预警类型列表 + * + * @param wlsbEarlyWarningType 预警类型 + * @return 预警类型集合 + */ + public List selectWlsbEarlyWarningTypeList(WlsbEarlyWarningType wlsbEarlyWarningType); + + /** + * 新增预警类型 + * + * @param wlsbEarlyWarningType 预警类型 + * @return 结果 + */ + public int insertWlsbEarlyWarningType(WlsbEarlyWarningType wlsbEarlyWarningType); + + /** + * 修改预警类型 + * + * @param wlsbEarlyWarningType 预警类型 + * @return 结果 + */ + public int updateWlsbEarlyWarningType(WlsbEarlyWarningType wlsbEarlyWarningType); + + /** + * 删除预警类型 + * + * @param id 预警类型主键 + * @return 结果 + */ + public int deleteWlsbEarlyWarningTypeById(String id); + + /** + * 批量删除预警类型 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteWlsbEarlyWarningTypeByIds(String[] ids); +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/service/IWlsbEarlyWarningInformationService.java b/God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/service/IWlsbEarlyWarningInformationService.java new file mode 100644 index 00000000..f2dbf657 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/service/IWlsbEarlyWarningInformationService.java @@ -0,0 +1,61 @@ +package com.god.wlsbforewarning.service; + +import com.god.wlsbforewarning.domain.WlsbEarlyWarningInformation; +import java.util.List; + +/** + * 预警信息Service接口 + * + * @author liweijie + * @date 2024-08-30 + */ +public interface IWlsbEarlyWarningInformationService +{ + /** + * 查询预警信息 + * + * @param id 预警信息主键 + * @return 预警信息 + */ + public WlsbEarlyWarningInformation selectWlsbEarlyWarningInformationById(String id); + + /** + * 查询预警信息列表 + * + * @param wlsbEarlyWarningInformation 预警信息 + * @return 预警信息集合 + */ + public List selectWlsbEarlyWarningInformationList(WlsbEarlyWarningInformation wlsbEarlyWarningInformation); + + /** + * 新增预警信息 + * + * @param wlsbEarlyWarningInformation 预警信息 + * @return 结果 + */ + public int insertWlsbEarlyWarningInformation(WlsbEarlyWarningInformation wlsbEarlyWarningInformation); + + /** + * 修改预警信息 + * + * @param wlsbEarlyWarningInformation 预警信息 + * @return 结果 + */ + public int updateWlsbEarlyWarningInformation(WlsbEarlyWarningInformation wlsbEarlyWarningInformation); + + /** + * 批量删除预警信息 + * + * @param ids 需要删除的预警信息主键集合 + * @return 结果 + */ + public int deleteWlsbEarlyWarningInformationByIds(String[] ids); + + /** + * 删除预警信息信息 + * + * @param id 预警信息主键 + * @return 结果 + */ + public int deleteWlsbEarlyWarningInformationById(String id); +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/service/IWlsbEarlyWarningTypeService.java b/God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/service/IWlsbEarlyWarningTypeService.java new file mode 100644 index 00000000..74a9a74d --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/service/IWlsbEarlyWarningTypeService.java @@ -0,0 +1,61 @@ +package com.god.wlsbforewarning.service; + +import com.god.wlsbforewarning.domain.WlsbEarlyWarningType; +import java.util.List; + +/** + * 预警类型Service接口 + * + * @author liweijie + * @date 2024-08-30 + */ +public interface IWlsbEarlyWarningTypeService +{ + /** + * 查询预警类型 + * + * @param id 预警类型主键 + * @return 预警类型 + */ + public WlsbEarlyWarningType selectWlsbEarlyWarningTypeById(String id); + + /** + * 查询预警类型列表 + * + * @param wlsbEarlyWarningType 预警类型 + * @return 预警类型集合 + */ + public List selectWlsbEarlyWarningTypeList(WlsbEarlyWarningType wlsbEarlyWarningType); + + /** + * 新增预警类型 + * + * @param wlsbEarlyWarningType 预警类型 + * @return 结果 + */ + public int insertWlsbEarlyWarningType(WlsbEarlyWarningType wlsbEarlyWarningType); + + /** + * 修改预警类型 + * + * @param wlsbEarlyWarningType 预警类型 + * @return 结果 + */ + public int updateWlsbEarlyWarningType(WlsbEarlyWarningType wlsbEarlyWarningType); + + /** + * 批量删除预警类型 + * + * @param ids 需要删除的预警类型主键集合 + * @return 结果 + */ + public int deleteWlsbEarlyWarningTypeByIds(String[] ids); + + /** + * 删除预警类型信息 + * + * @param id 预警类型主键 + * @return 结果 + */ + public int deleteWlsbEarlyWarningTypeById(String id); +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/service/impl/WlsbEarlyWarningInformationServiceImpl.java b/God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/service/impl/WlsbEarlyWarningInformationServiceImpl.java new file mode 100644 index 00000000..f314fea1 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/service/impl/WlsbEarlyWarningInformationServiceImpl.java @@ -0,0 +1,95 @@ +package com.god.wlsbforewarning.service.impl; + +import com.god.common.utils.uuid.IdUtils; +import com.god.wlsbforewarning.domain.WlsbEarlyWarningInformation; +import com.god.wlsbforewarning.mapper.WlsbEarlyWarningInformationMapper; +import com.god.wlsbforewarning.service.IWlsbEarlyWarningInformationService; +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +/** + * 预警信息Service业务层处理 + * + * @author liweijie + * @date 2024-08-30 + */ +@Service +public class WlsbEarlyWarningInformationServiceImpl implements IWlsbEarlyWarningInformationService +{ + @Autowired + private WlsbEarlyWarningInformationMapper wlsbEarlyWarningInformationMapper; + + /** + * 查询预警信息 + * + * @param id 预警信息主键 + * @return 预警信息 + */ + @Override + public WlsbEarlyWarningInformation selectWlsbEarlyWarningInformationById(String id) + { + return wlsbEarlyWarningInformationMapper.selectWlsbEarlyWarningInformationById(id); + } + + /** + * 查询预警信息列表 + * + * @param wlsbEarlyWarningInformation 预警信息 + * @return 预警信息 + */ + @Override + public List selectWlsbEarlyWarningInformationList(WlsbEarlyWarningInformation wlsbEarlyWarningInformation) + { + return wlsbEarlyWarningInformationMapper.selectWlsbEarlyWarningInformationList(wlsbEarlyWarningInformation); + } + + /** + * 新增预警信息 + * + * @param wlsbEarlyWarningInformation 预警信息 + * @return 结果 + */ + @Override + public int insertWlsbEarlyWarningInformation(WlsbEarlyWarningInformation wlsbEarlyWarningInformation) + { + wlsbEarlyWarningInformation.setId(IdUtils.fastSimpleUUID()); + return wlsbEarlyWarningInformationMapper.insertWlsbEarlyWarningInformation(wlsbEarlyWarningInformation); + } + + /** + * 修改预警信息 + * + * @param wlsbEarlyWarningInformation 预警信息 + * @return 结果 + */ + @Override + public int updateWlsbEarlyWarningInformation(WlsbEarlyWarningInformation wlsbEarlyWarningInformation) + { + return wlsbEarlyWarningInformationMapper.updateWlsbEarlyWarningInformation(wlsbEarlyWarningInformation); + } + + /** + * 批量删除预警信息 + * + * @param ids 需要删除的预警信息主键 + * @return 结果 + */ + @Override + public int deleteWlsbEarlyWarningInformationByIds(String[] ids) + { + return wlsbEarlyWarningInformationMapper.deleteWlsbEarlyWarningInformationByIds(ids); + } + + /** + * 删除预警信息信息 + * + * @param id 预警信息主键 + * @return 结果 + */ + @Override + public int deleteWlsbEarlyWarningInformationById(String id) + { + return wlsbEarlyWarningInformationMapper.deleteWlsbEarlyWarningInformationById(id); + } +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/service/impl/WlsbEarlyWarningTypeServiceImpl.java b/God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/service/impl/WlsbEarlyWarningTypeServiceImpl.java new file mode 100644 index 00000000..bb2acf4e --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/service/impl/WlsbEarlyWarningTypeServiceImpl.java @@ -0,0 +1,95 @@ +package com.god.wlsbforewarning.service.impl; + +import com.god.common.utils.uuid.IdUtils; +import com.god.wlsbforewarning.domain.WlsbEarlyWarningType; +import com.god.wlsbforewarning.mapper.WlsbEarlyWarningTypeMapper; +import com.god.wlsbforewarning.service.IWlsbEarlyWarningTypeService; +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +/** + * 预警类型Service业务层处理 + * + * @author liweijie + * @date 2024-08-30 + */ +@Service +public class WlsbEarlyWarningTypeServiceImpl implements IWlsbEarlyWarningTypeService +{ + @Autowired + private WlsbEarlyWarningTypeMapper wlsbEarlyWarningTypeMapper; + + /** + * 查询预警类型 + * + * @param id 预警类型主键 + * @return 预警类型 + */ + @Override + public WlsbEarlyWarningType selectWlsbEarlyWarningTypeById(String id) + { + return wlsbEarlyWarningTypeMapper.selectWlsbEarlyWarningTypeById(id); + } + + /** + * 查询预警类型列表 + * + * @param wlsbEarlyWarningType 预警类型 + * @return 预警类型 + */ + @Override + public List selectWlsbEarlyWarningTypeList(WlsbEarlyWarningType wlsbEarlyWarningType) + { + return wlsbEarlyWarningTypeMapper.selectWlsbEarlyWarningTypeList(wlsbEarlyWarningType); + } + + /** + * 新增预警类型 + * + * @param wlsbEarlyWarningType 预警类型 + * @return 结果 + */ + @Override + public int insertWlsbEarlyWarningType(WlsbEarlyWarningType wlsbEarlyWarningType) + { + wlsbEarlyWarningType.setId(IdUtils.fastSimpleUUID()); + return wlsbEarlyWarningTypeMapper.insertWlsbEarlyWarningType(wlsbEarlyWarningType); + } + + /** + * 修改预警类型 + * + * @param wlsbEarlyWarningType 预警类型 + * @return 结果 + */ + @Override + public int updateWlsbEarlyWarningType(WlsbEarlyWarningType wlsbEarlyWarningType) + { + return wlsbEarlyWarningTypeMapper.updateWlsbEarlyWarningType(wlsbEarlyWarningType); + } + + /** + * 批量删除预警类型 + * + * @param ids 需要删除的预警类型主键 + * @return 结果 + */ + @Override + public int deleteWlsbEarlyWarningTypeByIds(String[] ids) + { + return wlsbEarlyWarningTypeMapper.deleteWlsbEarlyWarningTypeByIds(ids); + } + + /** + * 删除预警类型信息 + * + * @param id 预警类型主键 + * @return 结果 + */ + @Override + public int deleteWlsbEarlyWarningTypeById(String id) + { + return wlsbEarlyWarningTypeMapper.deleteWlsbEarlyWarningTypeById(id); + } +} diff --git a/God-Vue-master/god-system/src/main/resources/mapper/wlsbforewarning/wlsbEarly/WlsbEarlyWarningInformationMapper.xml b/God-Vue-master/god-system/src/main/resources/mapper/wlsbforewarning/wlsbEarly/WlsbEarlyWarningInformationMapper.xml new file mode 100644 index 00000000..dbccb81a --- /dev/null +++ b/God-Vue-master/god-system/src/main/resources/mapper/wlsbforewarning/wlsbEarly/WlsbEarlyWarningInformationMapper.xml @@ -0,0 +1,113 @@ + + + + + + + + + + + + + + + + + + + + + + select id, region, device_id, device_name, time, warning_id, warning_type, warning_level, captured_image, warning_info, handler, status, remarks from wlsb_early_warning_information + + + + + + + + insert into wlsb_early_warning_information + + id, + region, + device_id, + device_name, + time, + warning_id, + warning_type, + warning_level, + captured_image, + warning_info, + handler, + status, + remarks, + + + #{id}, + #{region}, + #{deviceId}, + #{deviceName}, + #{time}, + #{warningId}, + #{warningType}, + #{warningLevel}, + #{capturedImage}, + #{warningInfo}, + #{handler}, + #{status}, + #{remarks}, + + + + + update wlsb_early_warning_information + + region = #{region}, + device_id = #{deviceId}, + device_name = #{deviceName}, + time = #{time}, + warning_id = #{warningId}, + warning_type = #{warningType}, + warning_level = #{warningLevel}, + captured_image = #{capturedImage}, + warning_info = #{warningInfo}, + handler = #{handler}, + status = #{status}, + remarks = #{remarks}, + + where id = #{id} + + + + delete from wlsb_early_warning_information where id = #{id} + + + + delete from wlsb_early_warning_information where id in + + #{id} + + + diff --git a/God-Vue-master/god-system/src/main/resources/mapper/wlsbforewarning/wlsbEarly/WlsbEarlyWarningTypeMapper.xml b/God-Vue-master/god-system/src/main/resources/mapper/wlsbforewarning/wlsbEarly/WlsbEarlyWarningTypeMapper.xml new file mode 100644 index 00000000..5a91d97f --- /dev/null +++ b/God-Vue-master/god-system/src/main/resources/mapper/wlsbforewarning/wlsbEarly/WlsbEarlyWarningTypeMapper.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + select id, warning_type, impact_level, error_details, recommended_repair_steps from wlsb_early_warning_type + + + + + + + + insert into wlsb_early_warning_type + + id, + warning_type, + impact_level, + error_details, + recommended_repair_steps, + + + #{id}, + #{warningType}, + #{impactLevel}, + #{errorDetails}, + #{recommendedRepairSteps}, + + + + + update wlsb_early_warning_type + + warning_type = #{warningType}, + impact_level = #{impactLevel}, + error_details = #{errorDetails}, + recommended_repair_steps = #{recommendedRepairSteps}, + + where id = #{id} + + + + delete from wlsb_early_warning_type where id = #{id} + + + + delete from wlsb_early_warning_type where id in + + #{id} + + + diff --git a/god-ui/src/api/wlsbEarly/warningInformation.js b/god-ui/src/api/wlsbEarly/warningInformation.js new file mode 100644 index 00000000..2161f86a --- /dev/null +++ b/god-ui/src/api/wlsbEarly/warningInformation.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询预警信息列表 +export function listWarningInformation(query) { + return request({ + url: '/wlsbEarly/warningInformation/list', + method: 'get', + params: query + }) +} + +// 查询预警信息详细 +export function getWarningInformation(id) { + return request({ + url: '/wlsbEarly/warningInformation/' + id, + method: 'get' + }) +} + +// 新增预警信息 +export function addWarningInformation(data) { + return request({ + url: '/wlsbEarly/warningInformation', + method: 'post', + data: data + }) +} + +// 修改预警信息 +export function updateWarningInformation(data) { + return request({ + url: '/wlsbEarly/warningInformation', + method: 'put', + data: data + }) +} + +// 删除预警信息 +export function delWarningInformation(id) { + return request({ + url: '/wlsbEarly/warningInformation/' + id, + method: 'delete' + }) +} diff --git a/god-ui/src/api/wlsbEarly/warningType.js b/god-ui/src/api/wlsbEarly/warningType.js new file mode 100644 index 00000000..0bca1113 --- /dev/null +++ b/god-ui/src/api/wlsbEarly/warningType.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询预警类型列表 +export function listWarningType(query) { + return request({ + url: '/wlsbEarly/warningType/list', + method: 'get', + params: query + }) +} + +// 查询预警类型详细 +export function getWarningType(id) { + return request({ + url: '/wlsbEarly/warningType/' + id, + method: 'get' + }) +} + +// 新增预警类型 +export function addWarningType(data) { + return request({ + url: '/wlsbEarly/warningType', + method: 'post', + data: data + }) +} + +// 修改预警类型 +export function updateWarningType(data) { + return request({ + url: '/wlsbEarly/warningType', + method: 'put', + data: data + }) +} + +// 删除预警类型 +export function delWarningType(id) { + return request({ + url: '/wlsbEarly/warningType/' + id, + method: 'delete' + }) +} diff --git a/god-ui/src/views/wlsbEarly/warningInformation/index.vue b/god-ui/src/views/wlsbEarly/warningInformation/index.vue new file mode 100644 index 00000000..3f89208e --- /dev/null +++ b/god-ui/src/views/wlsbEarly/warningInformation/index.vue @@ -0,0 +1,433 @@ + + + diff --git a/god-ui/src/views/wlsbEarly/warningType/index.vue b/god-ui/src/views/wlsbEarly/warningType/index.vue new file mode 100644 index 00000000..cc091c26 --- /dev/null +++ b/god-ui/src/views/wlsbEarly/warningType/index.vue @@ -0,0 +1,287 @@ + + +