From 6f4f4f543a018182972f7f5b42bfdc212829d102 Mon Sep 17 00:00:00 2001 From: wangyan21 Date: Thu, 23 Nov 2023 17:08:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E4=BC=97=E8=AF=89=E6=B1=82=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=EF=BC=8C=E5=9F=8E=E5=B8=82=E8=A7=86=E9=A2=91=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=EF=BC=8C=E8=BF=9D=E7=AB=A0=E5=8D=A0=E9=81=93=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../JlpqComplaintInfoController.java | 98 ++++ .../cityManage/domain/JlpqComplaintInfo.java | 149 ++++++ .../mapper/JlpqComplaintInfoMapper.java | 61 +++ .../service/IJlpqComplaintInfoService.java | 61 +++ .../impl/JlpqComplaintInfoServiceImpl.java | 92 ++++ .../cityManage/JlpqComplaintInfoMapper.xml | 93 ++++ god-ui/src/api/cityManage/complaint.js | 44 ++ .../views/cityManage/againstRule/index.vue | 342 +++++++++++++ .../src/views/cityManage/complaint/index.vue | 359 ++++++++++++++ god-ui/src/views/cityManage/parking/index.vue | 2 +- god-ui/src/views/cityManage/video/index.vue | 467 ++++++++++++++++++ 11 files changed, 1767 insertions(+), 1 deletion(-) create mode 100644 God-Vue-master/god-admin/src/main/java/com/god/web/controller/cityManage/JlpqComplaintInfoController.java create mode 100644 God-Vue-master/god-passenger/src/main/java/com/god/passenger/cityManage/domain/JlpqComplaintInfo.java create mode 100644 God-Vue-master/god-passenger/src/main/java/com/god/passenger/cityManage/mapper/JlpqComplaintInfoMapper.java create mode 100644 God-Vue-master/god-passenger/src/main/java/com/god/passenger/cityManage/service/IJlpqComplaintInfoService.java create mode 100644 God-Vue-master/god-passenger/src/main/java/com/god/passenger/cityManage/service/impl/JlpqComplaintInfoServiceImpl.java create mode 100644 God-Vue-master/god-passenger/src/main/resources/mapper/cityManage/JlpqComplaintInfoMapper.xml create mode 100644 god-ui/src/api/cityManage/complaint.js create mode 100644 god-ui/src/views/cityManage/againstRule/index.vue create mode 100644 god-ui/src/views/cityManage/complaint/index.vue create mode 100644 god-ui/src/views/cityManage/video/index.vue diff --git a/God-Vue-master/god-admin/src/main/java/com/god/web/controller/cityManage/JlpqComplaintInfoController.java b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/cityManage/JlpqComplaintInfoController.java new file mode 100644 index 00000000..a3559dbc --- /dev/null +++ b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/cityManage/JlpqComplaintInfoController.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.JlpqComplaintInfo; +import com.god.passenger.cityManage.service.IJlpqComplaintInfoService; +import com.god.common.utils.poi.ExcelUtil; +import com.god.common.core.page.TableDataInfo; + +/** + * 公众诉求数据Controller + * + * @author wangyan + * @date 2023-11-23 + */ +@RestController +@RequestMapping("/cityManage/complaint") +public class JlpqComplaintInfoController extends BaseController { + @Autowired + private IJlpqComplaintInfoService jlpqComplaintInfoService; + + /** + * 查询公众诉求数据列表 + */ + @PreAuthorize("@ss.hasPermi('cityManage:complaint:list')") + @GetMapping("/list") + public TableDataInfo list(JlpqComplaintInfo jlpqComplaintInfo) { + startPage(); + List list = jlpqComplaintInfoService.selectJlpqComplaintInfoList(jlpqComplaintInfo); + return getDataTable(list); + } + + /** + * 导出公众诉求数据列表 + */ + @PreAuthorize("@ss.hasPermi('cityManage:complaint:export')") + @Log(title = "公众诉求数据", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, JlpqComplaintInfo jlpqComplaintInfo) { + List list = jlpqComplaintInfoService.selectJlpqComplaintInfoList(jlpqComplaintInfo); + ExcelUtil util = new ExcelUtil(JlpqComplaintInfo.class); + util.exportExcel(response, list, "公众诉求数据数据"); + } + + /** + * 获取公众诉求数据详细信息 + */ + @PreAuthorize("@ss.hasPermi('cityManage:complaint:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") String id) { + return success(jlpqComplaintInfoService.selectJlpqComplaintInfoById(id)); + } + + /** + * 新增公众诉求数据 + */ + @PreAuthorize("@ss.hasPermi('cityManage:complaint:add')") + @Log(title = "公众诉求数据", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody JlpqComplaintInfo jlpqComplaintInfo) { + return toAjax(jlpqComplaintInfoService.insertJlpqComplaintInfo(jlpqComplaintInfo)); + } + + /** + * 修改公众诉求数据 + */ + @PreAuthorize("@ss.hasPermi('cityManage:complaint:edit')") + @Log(title = "公众诉求数据", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody JlpqComplaintInfo jlpqComplaintInfo) { + return toAjax(jlpqComplaintInfoService.updateJlpqComplaintInfo(jlpqComplaintInfo)); + } + + /** + * 删除公众诉求数据 + */ + @PreAuthorize("@ss.hasPermi('cityManage:complaint:remove')") + @Log(title = "公众诉求数据", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable String[] ids) { + return toAjax(jlpqComplaintInfoService.deleteJlpqComplaintInfoByIds(ids)); + } +} diff --git a/God-Vue-master/god-passenger/src/main/java/com/god/passenger/cityManage/domain/JlpqComplaintInfo.java b/God-Vue-master/god-passenger/src/main/java/com/god/passenger/cityManage/domain/JlpqComplaintInfo.java new file mode 100644 index 00000000..9f2c563b --- /dev/null +++ b/God-Vue-master/god-passenger/src/main/java/com/god/passenger/cityManage/domain/JlpqComplaintInfo.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_complaint_info + * + * @author wangyan + * @date 2023-11-23 + */ +public class JlpqComplaintInfo extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键 */ + private String id; + + /** 投诉标题 */ + @Excel(name = "投诉标题") + private String complaintTitle; + + /** 投诉群体 */ + @Excel(name = "投诉群体") + private String complaintPerson; + + /** 详情 */ + @Excel(name = "详情") + private String complaintInfo; + + /** 投诉时间 */ + @Excel(name = "投诉时间") + private String reportTime; + + /** 事件状态 */ + @Excel(name = "事件状态") + private String eventStatus; + + /** 答复时间 */ + @Excel(name = "答复时间") + private String replyTime; + + /** 答复单位 */ + @Excel(name = "答复单位") + private String replyUnit; + + /** 数据类型 */ + @Excel(name = "数据类型") + private String dataType; + + public void setId(String id) + { + this.id = id; + } + + public String getId() + { + return id; + } + public void setComplaintTitle(String complaintTitle) + { + this.complaintTitle = complaintTitle; + } + + public String getComplaintTitle() + { + return complaintTitle; + } + public void setComplaintPerson(String complaintPerson) + { + this.complaintPerson = complaintPerson; + } + + public String getComplaintPerson() + { + return complaintPerson; + } + public void setComplaintInfo(String complaintInfo) + { + this.complaintInfo = complaintInfo; + } + + public String getComplaintInfo() + { + return complaintInfo; + } + public void setReportTime(String reportTime) + { + this.reportTime = reportTime; + } + + public String getReportTime() + { + return reportTime; + } + public void setEventStatus(String eventStatus) + { + this.eventStatus = eventStatus; + } + + public String getEventStatus() + { + return eventStatus; + } + public void setReplyTime(String replyTime) + { + this.replyTime = replyTime; + } + + public String getReplyTime() + { + return replyTime; + } + public void setReplyUnit(String replyUnit) + { + this.replyUnit = replyUnit; + } + + public String getReplyUnit() + { + return replyUnit; + } + 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("complaintTitle", getComplaintTitle()) + .append("complaintPerson", getComplaintPerson()) + .append("complaintInfo", getComplaintInfo()) + .append("reportTime", getReportTime()) + .append("eventStatus", getEventStatus()) + .append("replyTime", getReplyTime()) + .append("replyUnit", getReplyUnit()) + .append("dataType", getDataType()) + .toString(); + } +} diff --git a/God-Vue-master/god-passenger/src/main/java/com/god/passenger/cityManage/mapper/JlpqComplaintInfoMapper.java b/God-Vue-master/god-passenger/src/main/java/com/god/passenger/cityManage/mapper/JlpqComplaintInfoMapper.java new file mode 100644 index 00000000..b92f59e0 --- /dev/null +++ b/God-Vue-master/god-passenger/src/main/java/com/god/passenger/cityManage/mapper/JlpqComplaintInfoMapper.java @@ -0,0 +1,61 @@ +package com.god.passenger.cityManage.mapper; + +import java.util.List; +import com.god.passenger.cityManage.domain.JlpqComplaintInfo; + +/** + * 公众诉求数据Mapper接口 + * + * @author wangyan + * @date 2023-11-23 + */ +public interface JlpqComplaintInfoMapper +{ + /** + * 查询公众诉求数据 + * + * @param id 公众诉求数据主键 + * @return 公众诉求数据 + */ + public JlpqComplaintInfo selectJlpqComplaintInfoById(String id); + + /** + * 查询公众诉求数据列表 + * + * @param jlpqComplaintInfo 公众诉求数据 + * @return 公众诉求数据集合 + */ + public List selectJlpqComplaintInfoList(JlpqComplaintInfo jlpqComplaintInfo); + + /** + * 新增公众诉求数据 + * + * @param jlpqComplaintInfo 公众诉求数据 + * @return 结果 + */ + public int insertJlpqComplaintInfo(JlpqComplaintInfo jlpqComplaintInfo); + + /** + * 修改公众诉求数据 + * + * @param jlpqComplaintInfo 公众诉求数据 + * @return 结果 + */ + public int updateJlpqComplaintInfo(JlpqComplaintInfo jlpqComplaintInfo); + + /** + * 删除公众诉求数据 + * + * @param id 公众诉求数据主键 + * @return 结果 + */ + public int deleteJlpqComplaintInfoById(String id); + + /** + * 批量删除公众诉求数据 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteJlpqComplaintInfoByIds(String[] ids); +} diff --git a/God-Vue-master/god-passenger/src/main/java/com/god/passenger/cityManage/service/IJlpqComplaintInfoService.java b/God-Vue-master/god-passenger/src/main/java/com/god/passenger/cityManage/service/IJlpqComplaintInfoService.java new file mode 100644 index 00000000..4e57c2d8 --- /dev/null +++ b/God-Vue-master/god-passenger/src/main/java/com/god/passenger/cityManage/service/IJlpqComplaintInfoService.java @@ -0,0 +1,61 @@ +package com.god.passenger.cityManage.service; + +import java.util.List; +import com.god.passenger.cityManage.domain.JlpqComplaintInfo; + +/** + * 公众诉求数据Service接口 + * + * @author wangyan + * @date 2023-11-23 + */ +public interface IJlpqComplaintInfoService +{ + /** + * 查询公众诉求数据 + * + * @param id 公众诉求数据主键 + * @return 公众诉求数据 + */ + public JlpqComplaintInfo selectJlpqComplaintInfoById(String id); + + /** + * 查询公众诉求数据列表 + * + * @param jlpqComplaintInfo 公众诉求数据 + * @return 公众诉求数据集合 + */ + public List selectJlpqComplaintInfoList(JlpqComplaintInfo jlpqComplaintInfo); + + /** + * 新增公众诉求数据 + * + * @param jlpqComplaintInfo 公众诉求数据 + * @return 结果 + */ + public int insertJlpqComplaintInfo(JlpqComplaintInfo jlpqComplaintInfo); + + /** + * 修改公众诉求数据 + * + * @param jlpqComplaintInfo 公众诉求数据 + * @return 结果 + */ + public int updateJlpqComplaintInfo(JlpqComplaintInfo jlpqComplaintInfo); + + /** + * 批量删除公众诉求数据 + * + * @param ids 需要删除的公众诉求数据主键集合 + * @return 结果 + */ + public int deleteJlpqComplaintInfoByIds(String[] ids); + + /** + * 删除公众诉求数据信息 + * + * @param id 公众诉求数据主键 + * @return 结果 + */ + public int deleteJlpqComplaintInfoById(String id); +} diff --git a/God-Vue-master/god-passenger/src/main/java/com/god/passenger/cityManage/service/impl/JlpqComplaintInfoServiceImpl.java b/God-Vue-master/god-passenger/src/main/java/com/god/passenger/cityManage/service/impl/JlpqComplaintInfoServiceImpl.java new file mode 100644 index 00000000..7258ec04 --- /dev/null +++ b/God-Vue-master/god-passenger/src/main/java/com/god/passenger/cityManage/service/impl/JlpqComplaintInfoServiceImpl.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.JlpqComplaintInfoMapper; +import com.god.passenger.cityManage.domain.JlpqComplaintInfo; +import com.god.passenger.cityManage.service.IJlpqComplaintInfoService; + +/** + * 公众诉求数据Service业务层处理 + * + * @author wangyan + * @date 2023-11-23 + */ +@Service +public class JlpqComplaintInfoServiceImpl implements IJlpqComplaintInfoService { + @Autowired + private JlpqComplaintInfoMapper jlpqComplaintInfoMapper; + + /** + * 查询公众诉求数据 + * + * @param id 公众诉求数据主键 + * @return 公众诉求数据 + */ + @Override + public JlpqComplaintInfo selectJlpqComplaintInfoById(String id) { + return jlpqComplaintInfoMapper.selectJlpqComplaintInfoById(id); + } + + /** + * 查询公众诉求数据列表 + * + * @param jlpqComplaintInfo 公众诉求数据 + * @return 公众诉求数据 + */ + @Override + public List selectJlpqComplaintInfoList(JlpqComplaintInfo jlpqComplaintInfo) { + return jlpqComplaintInfoMapper.selectJlpqComplaintInfoList(jlpqComplaintInfo); + } + + /** + * 新增公众诉求数据 + * + * @param jlpqComplaintInfo 公众诉求数据 + * @return 结果 + */ + @Override + public int insertJlpqComplaintInfo(JlpqComplaintInfo jlpqComplaintInfo) { + if (StringUtils.isBlank(jlpqComplaintInfo.getId())){ + jlpqComplaintInfo.setId(IdUtils.fastSimpleUUID()); + } + return jlpqComplaintInfoMapper.insertJlpqComplaintInfo(jlpqComplaintInfo); + } + + /** + * 修改公众诉求数据 + * + * @param jlpqComplaintInfo 公众诉求数据 + * @return 结果 + */ + @Override + public int updateJlpqComplaintInfo(JlpqComplaintInfo jlpqComplaintInfo) { + return jlpqComplaintInfoMapper.updateJlpqComplaintInfo(jlpqComplaintInfo); + } + + /** + * 批量删除公众诉求数据 + * + * @param ids 需要删除的公众诉求数据主键 + * @return 结果 + */ + @Override + public int deleteJlpqComplaintInfoByIds(String[] ids) { + return jlpqComplaintInfoMapper.deleteJlpqComplaintInfoByIds(ids); + } + + /** + * 删除公众诉求数据信息 + * + * @param id 公众诉求数据主键 + * @return 结果 + */ + @Override + public int deleteJlpqComplaintInfoById(String id) { + return jlpqComplaintInfoMapper.deleteJlpqComplaintInfoById(id); + } +} diff --git a/God-Vue-master/god-passenger/src/main/resources/mapper/cityManage/JlpqComplaintInfoMapper.xml b/God-Vue-master/god-passenger/src/main/resources/mapper/cityManage/JlpqComplaintInfoMapper.xml new file mode 100644 index 00000000..31f1023c --- /dev/null +++ b/God-Vue-master/god-passenger/src/main/resources/mapper/cityManage/JlpqComplaintInfoMapper.xml @@ -0,0 +1,93 @@ + + + + + + + + + + + + + + + + + + select id, complaint_title, complaint_person, complaint_info, report_time, event_status, reply_time, reply_unit, data_type from jlpq_complaint_info + + + + + + + + insert into jlpq_complaint_info + + id, + complaint_title, + complaint_person, + complaint_info, + report_time, + event_status, + reply_time, + reply_unit, + data_type, + + + #{id}, + #{complaintTitle}, + #{complaintPerson}, + #{complaintInfo}, + #{reportTime}, + #{eventStatus}, + #{replyTime}, + #{replyUnit}, + #{dataType}, + + + + + update jlpq_complaint_info + + complaint_title = #{complaintTitle}, + complaint_person = #{complaintPerson}, + complaint_info = #{complaintInfo}, + report_time = #{reportTime}, + event_status = #{eventStatus}, + reply_time = #{replyTime}, + reply_unit = #{replyUnit}, + data_type = #{dataType}, + + where id = #{id} + + + + delete from jlpq_complaint_info where id = #{id} + + + + delete from jlpq_complaint_info where id in + + #{id} + + + \ No newline at end of file diff --git a/god-ui/src/api/cityManage/complaint.js b/god-ui/src/api/cityManage/complaint.js new file mode 100644 index 00000000..4abf9bfb --- /dev/null +++ b/god-ui/src/api/cityManage/complaint.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询公众诉求数据列表 +export function listComplaint(query) { + return request({ + url: '/cityManage/complaint/list', + method: 'get', + params: query + }) +} + +// 查询公众诉求数据详细 +export function getComplaint(id) { + return request({ + url: '/cityManage/complaint/' + id, + method: 'get' + }) +} + +// 新增公众诉求数据 +export function addComplaint(data) { + return request({ + url: '/cityManage/complaint', + method: 'post', + data: data + }) +} + +// 修改公众诉求数据 +export function updateComplaint(data) { + return request({ + url: '/cityManage/complaint', + method: 'put', + data: data + }) +} + +// 删除公众诉求数据 +export function delComplaint(id) { + return request({ + url: '/cityManage/complaint/' + id, + method: 'delete' + }) +} diff --git a/god-ui/src/views/cityManage/againstRule/index.vue b/god-ui/src/views/cityManage/againstRule/index.vue new file mode 100644 index 00000000..5a01ebad --- /dev/null +++ b/god-ui/src/views/cityManage/againstRule/index.vue @@ -0,0 +1,342 @@ + + + diff --git a/god-ui/src/views/cityManage/complaint/index.vue b/god-ui/src/views/cityManage/complaint/index.vue new file mode 100644 index 00000000..36b6d76e --- /dev/null +++ b/god-ui/src/views/cityManage/complaint/index.vue @@ -0,0 +1,359 @@ + + + diff --git a/god-ui/src/views/cityManage/parking/index.vue b/god-ui/src/views/cityManage/parking/index.vue index 3bc30d1c..dd7d158a 100644 --- a/god-ui/src/views/cityManage/parking/index.vue +++ b/god-ui/src/views/cityManage/parking/index.vue @@ -193,7 +193,7 @@ import { listLeader, getLeader, delLeader, addLeader, updateLeader } from "@/api export default { //停车信息 name: "Parking", - dicts: ['sys_user_sex','driving_in_out'], + dicts: ['driving_in_out'], data() { return { // 遮罩层 diff --git a/god-ui/src/views/cityManage/video/index.vue b/god-ui/src/views/cityManage/video/index.vue new file mode 100644 index 00000000..cd0411ab --- /dev/null +++ b/god-ui/src/views/cityManage/video/index.vue @@ -0,0 +1,467 @@ + + +