From 40ec600459f5ecc6732f898fa4e1f29dafea61b0 Mon Sep 17 00:00:00 2001 From: wangyan21 Date: Tue, 21 Nov 2023 18:25:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E6=95=B0=E6=8D=AE=EF=BC=8C?= =?UTF-8?q?=E5=81=9C=E8=BD=A6=E4=BF=A1=E6=81=AF=EF=BC=8C=E5=9C=B0=E7=90=86?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cityManage/JlpqEventInfoController.java | 98 +++++ .../cityManage/domain/JlpqEventInfo.java | 149 +++++++ .../mapper/JlpqEventInfoMapper.java | 61 +++ .../service/IJlpqEventInfoService.java | 61 +++ .../impl/JlpqEventInfoServiceImpl.java | 92 +++++ .../mapper/cityManage/JlpqEventInfoMapper.xml | 93 +++++ god-ui/package.json | 1 + god-ui/src/api/cityManage/event.js | 44 +++ god-ui/src/views/cityManage/event/index.vue | 373 ++++++++++++++++++ .../views/cityManage/mapInfo/assets/index.js | 10 + .../cityManage/mapInfo/geography/index.vue | 125 ++++++ god-ui/src/views/cityManage/parking/index.vue | 343 ++++++++++++++++ 12 files changed, 1450 insertions(+) create mode 100644 God-Vue-master/god-admin/src/main/java/com/god/web/controller/cityManage/JlpqEventInfoController.java create mode 100644 God-Vue-master/god-passenger/src/main/java/com/god/passenger/cityManage/domain/JlpqEventInfo.java create mode 100644 God-Vue-master/god-passenger/src/main/java/com/god/passenger/cityManage/mapper/JlpqEventInfoMapper.java create mode 100644 God-Vue-master/god-passenger/src/main/java/com/god/passenger/cityManage/service/IJlpqEventInfoService.java create mode 100644 God-Vue-master/god-passenger/src/main/java/com/god/passenger/cityManage/service/impl/JlpqEventInfoServiceImpl.java create mode 100644 God-Vue-master/god-passenger/src/main/resources/mapper/cityManage/JlpqEventInfoMapper.xml create mode 100644 god-ui/src/api/cityManage/event.js create mode 100644 god-ui/src/views/cityManage/event/index.vue create mode 100644 god-ui/src/views/cityManage/mapInfo/assets/index.js create mode 100644 god-ui/src/views/cityManage/mapInfo/geography/index.vue create mode 100644 god-ui/src/views/cityManage/parking/index.vue diff --git a/God-Vue-master/god-admin/src/main/java/com/god/web/controller/cityManage/JlpqEventInfoController.java b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/cityManage/JlpqEventInfoController.java new file mode 100644 index 00000000..857fc2a7 --- /dev/null +++ b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/cityManage/JlpqEventInfoController.java @@ -0,0 +1,98 @@ +package com.god.web.controller.cityManage; + +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.passenger.cityManage.domain.JlpqEventInfo; +import com.god.passenger.cityManage.service.IJlpqEventInfoService; +import com.god.common.utils.poi.ExcelUtil; +import com.god.common.core.page.TableDataInfo; + +/** + * 事件数据Controller + * + * @author wangyan + * @date 2023-11-21 + */ +@RestController +@RequestMapping("/cityManage/event") +public class JlpqEventInfoController extends BaseController { + @Autowired + private IJlpqEventInfoService jlpqEventInfoService; + + /** + * 查询事件数据列表 + */ + @PreAuthorize("@ss.hasPermi('cityManage:event:list')") + @GetMapping("/list") + public TableDataInfo list(JlpqEventInfo jlpqEventInfo) { + startPage(); + List list = jlpqEventInfoService.selectJlpqEventInfoList(jlpqEventInfo); + return getDataTable(list); + } + + /** + * 导出事件数据列表 + */ + @PreAuthorize("@ss.hasPermi('cityManage:event:export')") + @Log(title = "事件数据", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, JlpqEventInfo jlpqEventInfo) { + List list = jlpqEventInfoService.selectJlpqEventInfoList(jlpqEventInfo); + ExcelUtil util = new ExcelUtil(JlpqEventInfo.class); + util.exportExcel(response, list, "事件数据数据"); + } + + /** + * 获取事件数据详细信息 + */ + @PreAuthorize("@ss.hasPermi('cityManage:event:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") String id) { + return success(jlpqEventInfoService.selectJlpqEventInfoById(id)); + } + + /** + * 新增事件数据 + */ + @PreAuthorize("@ss.hasPermi('cityManage:event:add')") + @Log(title = "事件数据", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody JlpqEventInfo jlpqEventInfo) { + return toAjax(jlpqEventInfoService.insertJlpqEventInfo(jlpqEventInfo)); + } + + /** + * 修改事件数据 + */ + @PreAuthorize("@ss.hasPermi('cityManage:event:edit')") + @Log(title = "事件数据", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody JlpqEventInfo jlpqEventInfo) { + return toAjax(jlpqEventInfoService.updateJlpqEventInfo(jlpqEventInfo)); + } + + /** + * 删除事件数据 + */ + @PreAuthorize("@ss.hasPermi('cityManage:event:remove')") + @Log(title = "事件数据", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable String[] ids) { + return toAjax(jlpqEventInfoService.deleteJlpqEventInfoByIds(ids)); + } +} diff --git a/God-Vue-master/god-passenger/src/main/java/com/god/passenger/cityManage/domain/JlpqEventInfo.java b/God-Vue-master/god-passenger/src/main/java/com/god/passenger/cityManage/domain/JlpqEventInfo.java new file mode 100644 index 00000000..ff689b0e --- /dev/null +++ b/God-Vue-master/god-passenger/src/main/java/com/god/passenger/cityManage/domain/JlpqEventInfo.java @@ -0,0 +1,149 @@ +package com.god.passenger.cityManage.domain; + +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; + +/** + * 事件数据对象 jlpq_event_info + * + * @author wangyan + * @date 2023-11-21 + */ +public class JlpqEventInfo extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键 */ + private String id; + + /** 事件名称 */ + @Excel(name = "事件名称") + private String eventName; + + /** 发生时间 */ + @Excel(name = "发生时间") + private String eventTime; + + /** 主办单位 */ + @Excel(name = "主办单位") + private String hostUnit; + + /** 事件详情 */ + @Excel(name = "事件详情") + private String eventInfo; + + /** 事件类型 */ + @Excel(name = "事件类型") + private String eventType; + + /** 事件状态 */ + @Excel(name = "事件状态") + private String eventSource; + + /** 发布日期 */ + @Excel(name = "发布日期") + private String releaseDate; + + /** 数据类型 */ + @Excel(name = "数据类型") + private String dataType; + + public void setId(String id) + { + this.id = id; + } + + public String getId() + { + return id; + } + public void setEventName(String eventName) + { + this.eventName = eventName; + } + + public String getEventName() + { + return eventName; + } + public void setEventTime(String eventTime) + { + this.eventTime = eventTime; + } + + public String getEventTime() + { + return eventTime; + } + public void setHostUnit(String hostUnit) + { + this.hostUnit = hostUnit; + } + + public String getHostUnit() + { + return hostUnit; + } + public void setEventInfo(String eventInfo) + { + this.eventInfo = eventInfo; + } + + public String getEventInfo() + { + return eventInfo; + } + public void setEventType(String eventType) + { + this.eventType = eventType; + } + + public String getEventType() + { + return eventType; + } + public void setEventSource(String eventSource) + { + this.eventSource = eventSource; + } + + public String getEventSource() + { + return eventSource; + } + public void setReleaseDate(String releaseDate) + { + this.releaseDate = releaseDate; + } + + public String getReleaseDate() + { + return releaseDate; + } + public void setDataType(String dataType) + { + this.dataType = dataType; + } + + public String getDataType() + { + return dataType; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("eventName", getEventName()) + .append("eventTime", getEventTime()) + .append("hostUnit", getHostUnit()) + .append("eventInfo", getEventInfo()) + .append("eventType", getEventType()) + .append("eventSource", getEventSource()) + .append("releaseDate", getReleaseDate()) + .append("dataType", getDataType()) + .toString(); + } +} diff --git a/God-Vue-master/god-passenger/src/main/java/com/god/passenger/cityManage/mapper/JlpqEventInfoMapper.java b/God-Vue-master/god-passenger/src/main/java/com/god/passenger/cityManage/mapper/JlpqEventInfoMapper.java new file mode 100644 index 00000000..b0c98821 --- /dev/null +++ b/God-Vue-master/god-passenger/src/main/java/com/god/passenger/cityManage/mapper/JlpqEventInfoMapper.java @@ -0,0 +1,61 @@ +package com.god.passenger.cityManage.mapper; + +import java.util.List; +import com.god.passenger.cityManage.domain.JlpqEventInfo; + +/** + * 事件数据Mapper接口 + * + * @author wangyan + * @date 2023-11-21 + */ +public interface JlpqEventInfoMapper +{ + /** + * 查询事件数据 + * + * @param id 事件数据主键 + * @return 事件数据 + */ + public JlpqEventInfo selectJlpqEventInfoById(String id); + + /** + * 查询事件数据列表 + * + * @param jlpqEventInfo 事件数据 + * @return 事件数据集合 + */ + public List selectJlpqEventInfoList(JlpqEventInfo jlpqEventInfo); + + /** + * 新增事件数据 + * + * @param jlpqEventInfo 事件数据 + * @return 结果 + */ + public int insertJlpqEventInfo(JlpqEventInfo jlpqEventInfo); + + /** + * 修改事件数据 + * + * @param jlpqEventInfo 事件数据 + * @return 结果 + */ + public int updateJlpqEventInfo(JlpqEventInfo jlpqEventInfo); + + /** + * 删除事件数据 + * + * @param id 事件数据主键 + * @return 结果 + */ + public int deleteJlpqEventInfoById(String id); + + /** + * 批量删除事件数据 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteJlpqEventInfoByIds(String[] ids); +} diff --git a/God-Vue-master/god-passenger/src/main/java/com/god/passenger/cityManage/service/IJlpqEventInfoService.java b/God-Vue-master/god-passenger/src/main/java/com/god/passenger/cityManage/service/IJlpqEventInfoService.java new file mode 100644 index 00000000..a39b0e87 --- /dev/null +++ b/God-Vue-master/god-passenger/src/main/java/com/god/passenger/cityManage/service/IJlpqEventInfoService.java @@ -0,0 +1,61 @@ +package com.god.passenger.cityManage.service; + +import java.util.List; +import com.god.passenger.cityManage.domain.JlpqEventInfo; + +/** + * 事件数据Service接口 + * + * @author wangyan + * @date 2023-11-21 + */ +public interface IJlpqEventInfoService +{ + /** + * 查询事件数据 + * + * @param id 事件数据主键 + * @return 事件数据 + */ + public JlpqEventInfo selectJlpqEventInfoById(String id); + + /** + * 查询事件数据列表 + * + * @param jlpqEventInfo 事件数据 + * @return 事件数据集合 + */ + public List selectJlpqEventInfoList(JlpqEventInfo jlpqEventInfo); + + /** + * 新增事件数据 + * + * @param jlpqEventInfo 事件数据 + * @return 结果 + */ + public int insertJlpqEventInfo(JlpqEventInfo jlpqEventInfo); + + /** + * 修改事件数据 + * + * @param jlpqEventInfo 事件数据 + * @return 结果 + */ + public int updateJlpqEventInfo(JlpqEventInfo jlpqEventInfo); + + /** + * 批量删除事件数据 + * + * @param ids 需要删除的事件数据主键集合 + * @return 结果 + */ + public int deleteJlpqEventInfoByIds(String[] ids); + + /** + * 删除事件数据信息 + * + * @param id 事件数据主键 + * @return 结果 + */ + public int deleteJlpqEventInfoById(String id); +} diff --git a/God-Vue-master/god-passenger/src/main/java/com/god/passenger/cityManage/service/impl/JlpqEventInfoServiceImpl.java b/God-Vue-master/god-passenger/src/main/java/com/god/passenger/cityManage/service/impl/JlpqEventInfoServiceImpl.java new file mode 100644 index 00000000..279828cc --- /dev/null +++ b/God-Vue-master/god-passenger/src/main/java/com/god/passenger/cityManage/service/impl/JlpqEventInfoServiceImpl.java @@ -0,0 +1,92 @@ +package com.god.passenger.cityManage.service.impl; + +import java.util.List; + +import com.god.common.utils.StringUtils; +import com.god.common.utils.uuid.IdUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.god.passenger.cityManage.mapper.JlpqEventInfoMapper; +import com.god.passenger.cityManage.domain.JlpqEventInfo; +import com.god.passenger.cityManage.service.IJlpqEventInfoService; + +/** + * 事件数据Service业务层处理 + * + * @author wangyan + * @date 2023-11-21 + */ +@Service +public class JlpqEventInfoServiceImpl implements IJlpqEventInfoService { + @Autowired + private JlpqEventInfoMapper jlpqEventInfoMapper; + + /** + * 查询事件数据 + * + * @param id 事件数据主键 + * @return 事件数据 + */ + @Override + public JlpqEventInfo selectJlpqEventInfoById(String id) { + return jlpqEventInfoMapper.selectJlpqEventInfoById(id); + } + + /** + * 查询事件数据列表 + * + * @param jlpqEventInfo 事件数据 + * @return 事件数据 + */ + @Override + public List selectJlpqEventInfoList(JlpqEventInfo jlpqEventInfo) { + return jlpqEventInfoMapper.selectJlpqEventInfoList(jlpqEventInfo); + } + + /** + * 新增事件数据 + * + * @param jlpqEventInfo 事件数据 + * @return 结果 + */ + @Override + public int insertJlpqEventInfo(JlpqEventInfo jlpqEventInfo) { + if (StringUtils.isBlank(jlpqEventInfo.getId())){ + jlpqEventInfo.setId(IdUtils.fastSimpleUUID()); + } + return jlpqEventInfoMapper.insertJlpqEventInfo(jlpqEventInfo); + } + + /** + * 修改事件数据 + * + * @param jlpqEventInfo 事件数据 + * @return 结果 + */ + @Override + public int updateJlpqEventInfo(JlpqEventInfo jlpqEventInfo) { + return jlpqEventInfoMapper.updateJlpqEventInfo(jlpqEventInfo); + } + + /** + * 批量删除事件数据 + * + * @param ids 需要删除的事件数据主键 + * @return 结果 + */ + @Override + public int deleteJlpqEventInfoByIds(String[] ids) { + return jlpqEventInfoMapper.deleteJlpqEventInfoByIds(ids); + } + + /** + * 删除事件数据信息 + * + * @param id 事件数据主键 + * @return 结果 + */ + @Override + public int deleteJlpqEventInfoById(String id) { + return jlpqEventInfoMapper.deleteJlpqEventInfoById(id); + } +} diff --git a/God-Vue-master/god-passenger/src/main/resources/mapper/cityManage/JlpqEventInfoMapper.xml b/God-Vue-master/god-passenger/src/main/resources/mapper/cityManage/JlpqEventInfoMapper.xml new file mode 100644 index 00000000..3b4c4ec6 --- /dev/null +++ b/God-Vue-master/god-passenger/src/main/resources/mapper/cityManage/JlpqEventInfoMapper.xml @@ -0,0 +1,93 @@ + + + + + + + + + + + + + + + + + + select id, event_name, event_time, host_unit, event_info, event_type, event_source, release_date, data_type from jlpq_event_info + + + + + + + + insert into jlpq_event_info + + id, + event_name, + event_time, + host_unit, + event_info, + event_type, + event_source, + release_date, + data_type, + + + #{id}, + #{eventName}, + #{eventTime}, + #{hostUnit}, + #{eventInfo}, + #{eventType}, + #{eventSource}, + #{releaseDate}, + #{dataType}, + + + + + update jlpq_event_info + + event_name = #{eventName}, + event_time = #{eventTime}, + host_unit = #{hostUnit}, + event_info = #{eventInfo}, + event_type = #{eventType}, + event_source = #{eventSource}, + release_date = #{releaseDate}, + data_type = #{dataType}, + + where id = #{id} + + + + delete from jlpq_event_info where id = #{id} + + + + delete from jlpq_event_info where id in + + #{id} + + + \ No newline at end of file diff --git a/god-ui/package.json b/god-ui/package.json index 1ed52a24..13c5475f 100644 --- a/god-ui/package.json +++ b/god-ui/package.json @@ -35,6 +35,7 @@ "type": "git" }, "dependencies": { + "@amap/amap-jsapi-loader": "^1.0.1", "@riophae/vue-treeselect": "0.4.0", "axios": "0.24.0", "clipboard": "2.0.8", diff --git a/god-ui/src/api/cityManage/event.js b/god-ui/src/api/cityManage/event.js new file mode 100644 index 00000000..5c2d3dfa --- /dev/null +++ b/god-ui/src/api/cityManage/event.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询事件数据列表 +export function listEvent(query) { + return request({ + url: '/cityManage/event/list', + method: 'get', + params: query + }) +} + +// 查询事件数据详细 +export function getEvent(id) { + return request({ + url: '/cityManage/event/' + id, + method: 'get' + }) +} + +// 新增事件数据 +export function addEvent(data) { + return request({ + url: '/cityManage/event', + method: 'post', + data: data + }) +} + +// 修改事件数据 +export function updateEvent(data) { + return request({ + url: '/cityManage/event', + method: 'put', + data: data + }) +} + +// 删除事件数据 +export function delEvent(id) { + return request({ + url: '/cityManage/event/' + id, + method: 'delete' + }) +} diff --git a/god-ui/src/views/cityManage/event/index.vue b/god-ui/src/views/cityManage/event/index.vue new file mode 100644 index 00000000..2ca0cc57 --- /dev/null +++ b/god-ui/src/views/cityManage/event/index.vue @@ -0,0 +1,373 @@ + + + diff --git a/god-ui/src/views/cityManage/mapInfo/assets/index.js b/god-ui/src/views/cityManage/mapInfo/assets/index.js new file mode 100644 index 00000000..fc4301c7 --- /dev/null +++ b/god-ui/src/views/cityManage/mapInfo/assets/index.js @@ -0,0 +1,10 @@ +const modulesFiles = require.context('./', true, /\.png$/) + +const ImageMap = new Map() +modulesFiles.keys().forEach(key => { + const filename = key.split('/').pop(); + const url = modulesFiles(key); + ImageMap.set(filename, url); +}) + +export { ImageMap } \ No newline at end of file diff --git a/god-ui/src/views/cityManage/mapInfo/geography/index.vue b/god-ui/src/views/cityManage/mapInfo/geography/index.vue new file mode 100644 index 00000000..12a15970 --- /dev/null +++ b/god-ui/src/views/cityManage/mapInfo/geography/index.vue @@ -0,0 +1,125 @@ + + + + + diff --git a/god-ui/src/views/cityManage/parking/index.vue b/god-ui/src/views/cityManage/parking/index.vue new file mode 100644 index 00000000..3bc30d1c --- /dev/null +++ b/god-ui/src/views/cityManage/parking/index.vue @@ -0,0 +1,343 @@ + + +