Browse Source

更新接口参数

develop
王兴琳 11 months ago
parent
commit
6e7814aca3
  1. 2
      ruoyi-common/src/main/java/com/ruoyi/common/core/domain/BaseEntity.java
  2. 41
      zc-business/src/main/java/com/zc/business/controller/DcEventAbnormalWeatherController.java
  3. 21
      zc-business/src/main/java/com/zc/business/controller/DcEventConstructionController.java
  4. 10
      zc-business/src/main/java/com/zc/business/controller/DcEventController.java
  5. 4
      zc-business/src/main/java/com/zc/business/controller/DcEventHistoryController.java
  6. 21
      zc-business/src/main/java/com/zc/business/controller/DcEventServiceAreaController.java
  7. 19
      zc-business/src/main/java/com/zc/business/controller/DcEventTrafficCongestionController.java
  8. 20
      zc-business/src/main/java/com/zc/business/controller/DcEventTrafficControlController.java
  9. 1
      zc-business/src/main/java/com/zc/business/controller/DcEventVehicleAccidentController.java
  10. 22
      zc-business/src/main/java/com/zc/business/domain/DcEvent.java
  11. 16
      zc-business/src/main/java/com/zc/business/domain/DcEventAbnormalWeather.java
  12. 8
      zc-business/src/main/java/com/zc/business/domain/DcEventAccident.java
  13. 19
      zc-business/src/main/java/com/zc/business/domain/DcEventConstruction.java
  14. 8
      zc-business/src/main/java/com/zc/business/domain/DcEventServiceArea.java
  15. 13
      zc-business/src/main/java/com/zc/business/domain/DcEventTrafficCongestion.java
  16. 12
      zc-business/src/main/java/com/zc/business/domain/DcEventTrafficControl.java
  17. 38
      zc-business/src/main/java/com/zc/business/domain/DcEventVehicleAccident.java
  18. 15
      zc-business/src/main/java/com/zc/business/domain/DcRamp.java
  19. 8
      zc-business/src/main/resources/mapper/business/DcEventTrafficControlMapper.xml

2
ruoyi-common/src/main/java/com/ruoyi/common/core/domain/BaseEntity.java

@ -10,6 +10,7 @@ import com.fasterxml.jackson.annotation.JsonFormat;
* Entity基类
*
*/
public class BaseEntity implements Serializable
{
private static final long serialVersionUID = 1L;
@ -32,6 +33,7 @@ public class BaseEntity implements Serializable
private Date updateTime;
/** 备注 */
private String remark;
/** 请求参数 */

41
zc-business/src/main/java/com/zc/business/controller/DcEventAbnormalWeatherController.java

@ -5,6 +5,8 @@ import javax.servlet.http.HttpServletResponse;
import com.zc.business.domain.DcEventAbnormalWeather;
import com.zc.business.service.IDcEventAbnormalWeatherService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
@ -24,7 +26,7 @@ import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 设备设施隐患事件
* 异常天气事件
"异常天气"为事件事件子类Controller
*
@ -33,17 +35,20 @@ import com.ruoyi.common.core.page.TableDataInfo;
*/
@RestController
@RequestMapping("/system/weather")
@Api(tags = "异常天气事件")
public class DcEventAbnormalWeatherController extends BaseController
{
@Autowired
private IDcEventAbnormalWeatherService dcEventAbnormalWeatherService;
/**
* 查询设备设施隐患事件
* 查询异常天气事件事件
"异常天气"为事件事件子类列表
*/
@PreAuthorize("@ss.hasPermi('system:weather:list')")
@ApiOperation("查询异常天气事件")
// @PreAuthorize("@ss.hasPermi('system:weather:list')")
@GetMapping("/list")
public TableDataInfo list(DcEventAbnormalWeather dcEventAbnormalWeather)
{
@ -53,12 +58,12 @@ public class DcEventAbnormalWeatherController extends BaseController
}
/**
* 导出设备设施隐患事件
* 导出异常天气事件事件
"异常天气"为事件事件子类列表
*/
@PreAuthorize("@ss.hasPermi('system:weather:export')")
@Log(title = "设备设施隐患事件 为事件“事件子类”", businessType = BusinessType.EXPORT)
//@PreAuthorize("@ss.hasPermi('system:weather:export')")
@Log(title = "异常天气事件 为事件“事件子类”", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, DcEventAbnormalWeather dcEventAbnormalWeather)
{
@ -68,11 +73,12 @@ public class DcEventAbnormalWeatherController extends BaseController
}
/**
* 获取设备设施隐患事件
* 获取异常天气事件
"异常天气"为事件事件子类详细信息
*/
@PreAuthorize("@ss.hasPermi('system:weather:query')")
@ApiOperation("根据id获取异常天气事件")
//@PreAuthorize("@ss.hasPermi('system:weather:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") String id)
{
@ -80,11 +86,12 @@ public class DcEventAbnormalWeatherController extends BaseController
}
/**
* 新增设备设施隐患事件
* 新增异常天气事件
"异常天气"为事件事件子类
*/
@PreAuthorize("@ss.hasPermi('system:weather:add')")
@ApiOperation("新增异常天气事件")
//@PreAuthorize("@ss.hasPermi('system:weather:add')")
@Log(title = "设备设施隐患事件 ", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody DcEventAbnormalWeather dcEventAbnormalWeather)
@ -93,12 +100,13 @@ public class DcEventAbnormalWeatherController extends BaseController
}
/**
* 修改设备设施隐患事件
* 修改异常天气事件
"异常天气"为事件事件子类
*/
@PreAuthorize("@ss.hasPermi('system:weather:edit')")
@Log(title = "设备设施隐患事件 ", businessType = BusinessType.UPDATE)
@ApiOperation("修改异常天气事件")
//@PreAuthorize("@ss.hasPermi('system:weather:edit')")
@Log(title = "设备异常天气事件 ", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody DcEventAbnormalWeather dcEventAbnormalWeather)
{
@ -106,12 +114,13 @@ public class DcEventAbnormalWeatherController extends BaseController
}
/**
* 删除设备设施隐患事件
* 删除异常天气事件
"异常天气"为事件事件子类
*/
@PreAuthorize("@ss.hasPermi('system:weather:remove')")
@Log(title = "设备设施隐患事件 ", businessType = BusinessType.DELETE)
@ApiOperation("删除异常天气事件")
//@PreAuthorize("@ss.hasPermi('system:weather:remove')")
@Log(title = "设备异常天气事件 ", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable String[] ids)
{

21
zc-business/src/main/java/com/zc/business/controller/DcEventConstructionController.java

@ -6,6 +6,8 @@ import javax.servlet.http.HttpServletResponse;
import com.ruoyi.common.enums.BusinessType;
import com.zc.business.domain.DcEventConstruction;
import com.zc.business.service.IDcEventConstructionService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
@ -31,6 +33,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
* @author ruoyi
* @date 2024-01-12
*/
@Api(tags = "施工建设事件")
@RestController
@RequestMapping("/system/construction")
public class DcEventConstructionController extends BaseController
@ -43,7 +46,8 @@ public class DcEventConstructionController extends BaseController
"施工分类"为事件事件子类列表
*/
@PreAuthorize("@ss.hasPermi('system:construction:list')")
@ApiOperation("查询施工建设事件")
// @PreAuthorize("@ss.hasPermi('system:construction:list')")
@GetMapping("/list")
public TableDataInfo list(DcEventConstruction dcEventConstruction)
{
@ -57,7 +61,8 @@ public class DcEventConstructionController extends BaseController
"施工分类"为事件事件子类列表
*/
@PreAuthorize("@ss.hasPermi('system:construction:export')")
//@PreAuthorize("@ss.hasPermi('system:construction:export')")
@Log(title = "施工建设事件 ", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, DcEventConstruction dcEventConstruction)
@ -72,7 +77,8 @@ public class DcEventConstructionController extends BaseController
"施工分类"为事件事件子类详细信息
*/
@PreAuthorize("@ss.hasPermi('system:construction:query')")
@ApiOperation("获取施工建设事件")
// @PreAuthorize("@ss.hasPermi('system:construction:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") String id)
{
@ -84,7 +90,8 @@ public class DcEventConstructionController extends BaseController
"施工分类"为事件事件子类
*/
@PreAuthorize("@ss.hasPermi('system:construction:add')")
@ApiOperation("新增施工建设事件")
//@PreAuthorize("@ss.hasPermi('system:construction:add')")
@Log(title = "施工建设事件施工分类", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody DcEventConstruction dcEventConstruction)
@ -97,7 +104,8 @@ public class DcEventConstructionController extends BaseController
"施工分类"为事件事件子类
*/
@PreAuthorize("@ss.hasPermi('system:construction:edit')")
@ApiOperation("修改施工建设事件")
//@PreAuthorize("@ss.hasPermi('system:construction:edit')")
@Log(title = "施工建设事件施工分类", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody DcEventConstruction dcEventConstruction)
@ -110,7 +118,8 @@ public class DcEventConstructionController extends BaseController
"施工分类"为事件事件子类
*/
@PreAuthorize("@ss.hasPermi('system:construction:remove')")
@ApiOperation("删除施工建设事件")
//@PreAuthorize("@ss.hasPermi('system:construction:remove')")
@Log(title = "施工建设事件施工分类", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable String[] ids)

10
zc-business/src/main/java/com/zc/business/controller/DcEventController.java

@ -47,7 +47,7 @@ public class DcEventController extends BaseController
* 查询事件信息列表
*/
@ApiOperation("查询事件信息列表")
@PreAuthorize("@ss.hasPermi('system:event:list')")
// @PreAuthorize("@ss.hasPermi('system:event:list')")
@GetMapping("/list")
public TableDataInfo list(DcEvent dcEvent)
{
@ -77,7 +77,7 @@ public class DcEventController extends BaseController
* 获取事件信息详细信息
*/
@ApiOperation("获取事件信息详细信息")
@PreAuthorize("@ss.hasPermi('system:event:query')")
//@PreAuthorize("@ss.hasPermi('system:event:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") String id)
{
@ -89,7 +89,7 @@ public class DcEventController extends BaseController
* 新增事件信息
*/
@ApiOperation("新增事件信息")
@PreAuthorize("@ss.hasPermi('system:event:add')")
//@PreAuthorize("@ss.hasPermi('system:event:add')")
@Log(title = "事件信息", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody DcEvent dcEvent)
@ -102,7 +102,7 @@ public class DcEventController extends BaseController
* 修改事件信息
*/
@ApiOperation("修改事件信息")
@PreAuthorize("@ss.hasPermi('system:event:edit')")
// @PreAuthorize("@ss.hasPermi('system:event:edit')")
@Log(title = "事件信息", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody DcEvent dcEvent)
@ -114,7 +114,7 @@ public class DcEventController extends BaseController
* 删除事件信息
*/
@ApiOperation("删除事件信息")
@PreAuthorize("@ss.hasPermi('system:event:remove')")
// @PreAuthorize("@ss.hasPermi('system:event:remove')")
@Log(title = "事件信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable String[] ids)

4
zc-business/src/main/java/com/zc/business/controller/DcEventHistoryController.java

@ -44,7 +44,7 @@ public class DcEventHistoryController extends BaseController
* 查询事件历史信息列表
*/
@ApiOperation("查询事件历史信息列表")
@PreAuthorize("@ss.hasPermi('system:history:list')")
//@PreAuthorize("@ss.hasPermi('system:history:list')")
@GetMapping("/list")
public TableDataInfo list(DcEventHistory dcEventHistory)
{
@ -57,7 +57,7 @@ public class DcEventHistoryController extends BaseController
* 导出事件历史信息列表
*/
@ApiOperation("导出事件历史信息列表")
@PreAuthorize("@ss.hasPermi('system:history:export')")
//@PreAuthorize("@ss.hasPermi('system:history:export')")
@Log(title = "事件历史信息", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, DcEventHistory dcEventHistory)

21
zc-business/src/main/java/com/zc/business/controller/DcEventServiceAreaController.java

@ -5,6 +5,8 @@ import javax.servlet.http.HttpServletResponse;
import com.zc.business.domain.DcEventServiceArea;
import com.zc.business.service.IDcEventServiceAreaService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@ -25,6 +27,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
* @author ruoyi
* @date 2024-01-12
*/
@Api(tags = "服务区异常事件")
@RestController
@RequestMapping("/system/area")
public class DcEventServiceAreaController extends BaseController
@ -37,7 +40,8 @@ public class DcEventServiceAreaController extends BaseController
"异常分类"为事件事件子类列表
*/
@PreAuthorize("@ss.hasPermi('system:area:list')")
@ApiOperation("查询服务区异常事件")
// @PreAuthorize("@ss.hasPermi('system:area:list')")
@GetMapping("/list")
public TableDataInfo list(DcEventServiceArea dcEventServiceArea)
{
@ -51,7 +55,8 @@ public class DcEventServiceAreaController extends BaseController
"异常分类"为事件事件子类列表
*/
@PreAuthorize("@ss.hasPermi('system:area:export')")
@ApiOperation("导出服务区异常事件")
// @PreAuthorize("@ss.hasPermi('system:area:export')")
@Log(title = "服务区异常事异常分类", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, DcEventServiceArea dcEventServiceArea)
@ -66,7 +71,8 @@ public class DcEventServiceAreaController extends BaseController
"异常分类"为事件事件子类详细信息
*/
@PreAuthorize("@ss.hasPermi('system:area:query')")
@ApiOperation("获取服务区异常事件")
//@PreAuthorize("@ss.hasPermi('system:area:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") String id)
{
@ -78,7 +84,8 @@ public class DcEventServiceAreaController extends BaseController
"异常分类"为事件事件子类
*/
@PreAuthorize("@ss.hasPermi('system:area:add')")
@ApiOperation("新增服务区异常事件")
//@PreAuthorize("@ss.hasPermi('system:area:add')")
@Log(title = "服务区异常事件 ", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody DcEventServiceArea dcEventServiceArea)
@ -91,7 +98,8 @@ public class DcEventServiceAreaController extends BaseController
"异常分类"为事件事件子类
*/
@PreAuthorize("@ss.hasPermi('system:area:edit')")
@ApiOperation("修改服务区异常事件")
// @PreAuthorize("@ss.hasPermi('system:area:edit')")
@Log(title = "服务区异常事件", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody DcEventServiceArea dcEventServiceArea)
@ -104,7 +112,8 @@ public class DcEventServiceAreaController extends BaseController
"异常分类"为事件事件子类
*/
@PreAuthorize("@ss.hasPermi('system:area:remove')")
@ApiOperation("删除服务区异常事件")
// @PreAuthorize("@ss.hasPermi('system:area:remove')")
@Log(title = "服务区异常事件 ", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable String[] ids)

19
zc-business/src/main/java/com/zc/business/controller/DcEventTrafficCongestionController.java

@ -6,6 +6,7 @@ import javax.servlet.http.HttpServletResponse;
import com.zc.business.domain.DcEventTrafficCongestion;
import com.zc.business.service.IDcEventTrafficCongestionService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
@ -45,7 +46,8 @@ public class DcEventTrafficCongestionController extends BaseController
"拥堵类型"为事件事件子类列表
*/
@PreAuthorize("@ss.hasPermi('system:congestion:list')")
@ApiOperation("查询交通拥堵事件")
//@PreAuthorize("@ss.hasPermi('system:congestion:list')")
@GetMapping("/list")
public TableDataInfo list(DcEventTrafficCongestion dcEventTrafficCongestion)
{
@ -59,7 +61,8 @@ public class DcEventTrafficCongestionController extends BaseController
"拥堵类型"为事件事件子类列表
*/
@PreAuthorize("@ss.hasPermi('system:congestion:export')")
//@PreAuthorize("@ss.hasPermi('system:congestion:export')")
@Log(title = "交通拥堵事件 ", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, DcEventTrafficCongestion dcEventTrafficCongestion)
@ -74,7 +77,8 @@ public class DcEventTrafficCongestionController extends BaseController
"拥堵类型"为事件事件子类详细信息
*/
@PreAuthorize("@ss.hasPermi('system:congestion:query')")
@ApiOperation("获取交通拥堵事件")
// @PreAuthorize("@ss.hasPermi('system:congestion:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") String id)
{
@ -86,7 +90,8 @@ public class DcEventTrafficCongestionController extends BaseController
"拥堵类型"为事件事件子类
*/
@PreAuthorize("@ss.hasPermi('system:congestion:add')")
@ApiOperation("新增交通拥堵事件")
//@PreAuthorize("@ss.hasPermi('system:congestion:add')")
@Log(title = "交通拥堵事件", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody DcEventTrafficCongestion dcEventTrafficCongestion)
@ -99,7 +104,8 @@ public class DcEventTrafficCongestionController extends BaseController
"拥堵类型"为事件事件子类
*/
@PreAuthorize("@ss.hasPermi('system:congestion:edit')")
@ApiOperation("修改交通拥堵事件")
// @PreAuthorize("@ss.hasPermi('system:congestion:edit')")
@Log(title = "交通拥堵事件", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody DcEventTrafficCongestion dcEventTrafficCongestion)
@ -112,7 +118,8 @@ public class DcEventTrafficCongestionController extends BaseController
"拥堵类型"为事件事件子类
*/
@PreAuthorize("@ss.hasPermi('system:congestion:remove')")
@ApiOperation("删除交通拥堵事件")
// @PreAuthorize("@ss.hasPermi('system:congestion:remove')")
@Log(title = "交通拥堵事件", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable String[] ids)

20
zc-business/src/main/java/com/zc/business/controller/DcEventTrafficControlController.java

@ -5,6 +5,8 @@ import javax.servlet.http.HttpServletResponse;
import com.zc.business.domain.DcEventTrafficControl;
import com.zc.business.service.IDcEventTrafficControlService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
@ -31,6 +33,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
* @author ruoyi
* @date 2024-01-12
*/
@Api(tags = "交通管制事件")
@RestController
@RequestMapping("/system/control")
public class DcEventTrafficControlController extends BaseController
@ -43,7 +46,8 @@ public class DcEventTrafficControlController extends BaseController
"管制设施"为事件事件子类列表
*/
@PreAuthorize("@ss.hasPermi('system:control:list')")
@ApiOperation("查询交通管制事件")
//@PreAuthorize("@ss.hasPermi('system:control:list')")
@GetMapping("/list")
public TableDataInfo list(DcEventTrafficControl dcEventTrafficControl)
{
@ -57,7 +61,7 @@ public class DcEventTrafficControlController extends BaseController
"管制设施"为事件事件子类列表
*/
@PreAuthorize("@ss.hasPermi('system:control:export')")
// @PreAuthorize("@ss.hasPermi('system:control:export')")
@Log(title = "交通管制事件 ", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, DcEventTrafficControl dcEventTrafficControl)
@ -72,7 +76,8 @@ public class DcEventTrafficControlController extends BaseController
"管制设施"为事件事件子类详细信息
*/
@PreAuthorize("@ss.hasPermi('system:control:query')")
@ApiOperation("获取交通管制事件")
// @PreAuthorize("@ss.hasPermi('system:control:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") String id)
{
@ -84,7 +89,8 @@ public class DcEventTrafficControlController extends BaseController
"管制设施"为事件事件子类
*/
@PreAuthorize("@ss.hasPermi('system:control:add')")
@ApiOperation("新增交通管制事件")
// @PreAuthorize("@ss.hasPermi('system:control:add')")
@Log(title = "交通管制事件", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody DcEventTrafficControl dcEventTrafficControl)
@ -97,7 +103,8 @@ public class DcEventTrafficControlController extends BaseController
"管制设施"为事件事件子类
*/
@PreAuthorize("@ss.hasPermi('system:control:edit')")
@ApiOperation("修改交通管制事件")
//@PreAuthorize("@ss.hasPermi('system:control:edit')")
@Log(title = "交通管制事件", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody DcEventTrafficControl dcEventTrafficControl)
@ -110,7 +117,8 @@ public class DcEventTrafficControlController extends BaseController
"管制设施"为事件事件子类
*/
@PreAuthorize("@ss.hasPermi('system:control:remove')")
@ApiOperation("删除交通管制事件")
//@PreAuthorize("@ss.hasPermi('system:control:remove')")
@Log(title = "交通管制事件", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable String[] ids)

1
zc-business/src/main/java/com/zc/business/controller/DcEventVehicleAccidentController.java

@ -60,6 +60,7 @@ public class DcEventVehicleAccidentController extends BaseController
* 导出车辆事故事件
列表
*/
//@PreAuthorize("@ss.hasPermi('system:accident:export')")
@Log(title = "车辆事故事件 ", businessType = BusinessType.EXPORT)
@PostMapping("/export")

22
zc-business/src/main/java/com/zc/business/domain/DcEvent.java

@ -106,7 +106,7 @@ public class DcEvent extends BaseEntity {
* 3-3 立交封闭和限行
* 3-4 服务区封闭和限行
*/
@ApiModelProperty("事件子类")
@ApiModelProperty("事件子类 例:事件子类:* 1-1 追尾* 1-2 侧翻* 1-3 撞护栏* 1-4 自然* 1-5 其他事故* 2-1 车辆故障")
private String eventSubclass;
/**
@ -125,14 +125,12 @@ public class DcEvent extends BaseEntity {
private String description;
/**
* 事件状态
* 0-待确认
* 1-已确认
* 2-处理中
* 3-已完成
* 4-已撤销
事件状态
0-未解决
1-已解决
2-已关闭
*/
@ApiModelProperty("事件状态")
@ApiModelProperty("事件状态 事件状态:* 0-未解决1-已解决2-已关闭")
private Long eventState;
/**
@ -145,7 +143,7 @@ public class DcEvent extends BaseEntity {
* 6-一键救援
* 7-其他
*/
@ApiModelProperty("事件来源")
@ApiModelProperty("事件来源 * 1-96659* 2-交警转接* 3-道路巡查* 4-视频巡查* 5-视频AI* 6-一键救援* 7-其他")
private Long eventSource;
/**
@ -153,7 +151,7 @@ public class DcEvent extends BaseEntity {
* 1-首发事件
* 2-关联事件
*/
@ApiModelProperty("事件性质")
@ApiModelProperty("事件性质 * 1-首发事件* 2-关联事件")
private Long eventNature;
@ -161,14 +159,12 @@ public class DcEvent extends BaseEntity {
* 事件来源补充说明
*/
@ApiModelProperty("事件来源补充说明")
private String eventSourceTips;
/**
* 是否处在隧道
*/
@ApiModelProperty("是否处在隧道")
@ApiModelProperty("是否处在隧道 0 表示 false,1 表示 true")
private Integer inTunnel;
public void setId(String id) {

16
zc-business/src/main/java/com/zc/business/domain/DcEventAbnormalWeather.java

@ -32,21 +32,7 @@ public class DcEventAbnormalWeather extends BaseEntity
/** 事件编号 */
private String id;
/** 天气情况
1-1 雨雾
1-2 雨雪
1-3 中雨
1-4 小雨
1-5 大雨
1-6 暴雨
2-1 小雪
2-2 中雪
2-3 大雪
2-4 暴雪
2-5 大暴雪
2-6 特大暴雪
3-1 轻雾
3-2 大雾
/** 天气情况1-1 雨雾1-2 雨雪1-3 中雨1-4 小雨1-5 大雨1-6 暴雨2-1 小雪2-2 中雪2-3 大雪2-4 暴雪2-5 大暴雪2-6 特大暴雪3-1 轻雾3-2 大雾
3-3 浓雾
3-4 强浓雾
3-5 团雾

8
zc-business/src/main/java/com/zc/business/domain/DcEventAccident.java

@ -48,7 +48,7 @@ public class DcEventAccident extends BaseEntity {
* 5-自燃
* 6-追尾
*/
@ApiModelProperty("交通事故类型")
@ApiModelProperty("交通事故类型 * 1-侧翻* 2-撞障碍物* 3-货物洒落* 4-撞护栏* 5-自燃* 6-追尾")
private Long accidentType;
/**
@ -58,7 +58,7 @@ public class DcEventAccident extends BaseEntity {
* 3-立交桥
* 4-收费站
*/
@ApiModelProperty("地点方式")
@ApiModelProperty("地点方式 * 1-高速主线* 2-服务区* 3-立交桥* 4-收费站")
private Long locationType;
/**
@ -75,7 +75,7 @@ public class DcEventAccident extends BaseEntity {
* 4-
* 5-其他
*/
@ApiModelProperty("天气情况")
@ApiModelProperty("天气情况 * 1-晴* 2-雨* 3-雪* 4-雾* 5-其他")
private Long weatherCondition;
/**
@ -86,7 +86,7 @@ public class DcEventAccident extends BaseEntity {
* 4-车辆复燃
* 5-散装人工倒货
*/
@ApiModelProperty("影响")
@ApiModelProperty("影响 1-无* 2-危化品泄漏* 3-整车自燃* 4-车辆复燃* 5-散装人工倒货")
private Long impactLevel;

19
zc-business/src/main/java/com/zc/business/domain/DcEventConstruction.java

@ -26,24 +26,25 @@ import com.ruoyi.common.core.domain.BaseEntity;
public class DcEventConstruction extends BaseEntity
{
private static final long serialVersionUID = 1L;
@ApiModelProperty("事件编号")
/** 事件编号 */
private String id;
/** 管制方式
1-封闭
2-不封闭 */
@ApiModelProperty("管制方式")
private Long controlMode;
/** 地点类型
1-单点
2-多点 */
@ApiModelProperty("地点类型:1-单点2-多点")
private Long locationType;
/** 特殊地点描述 */
@Excel(name = "特殊地点描述")
@ApiModelProperty("特殊地点描述")
private String specialPlaceDescription;
/** 专项施工
@ -51,11 +52,12 @@ public class DcEventConstruction extends BaseEntity
2-改扩建专项工程施工
3-桥梁专项工程施工
4-其他专项工程施工 */
@ApiModelProperty(" 专项施工:1-专项工程施工2-改扩建专项工程施工3-桥梁专项工程施工\4-其他专项工程施工 ")
private Long specialConstruction;
/** 其他施工名称 */
@Excel(name = "其他施工名称")
@ApiModelProperty("其他施工名称")
private String otherConstructionName;
/** 施工措施
@ -63,7 +65,7 @@ public class DcEventConstruction extends BaseEntity
1-并道行驶
2-临时保通
3-借路侧服务区通行 */
@ApiModelProperty("施工措施 0-无1-并道行驶2-临时保通3-借路侧服务区通行")
private Long constructionMeasurement;
/** 字段名称对应
@ -72,24 +74,25 @@ public class DcEventConstruction extends BaseEntity
服务区
*/
@ApiModelProperty("字段名称对应:互通立交 收费站 服务区")
private Long facilityId;
/** 出入口收费站/服务区
1-出口
2-入口 */
@ApiModelProperty(" 出入口(收费站/服务区):1-出口 2-入口 ")
@Excel(name = "出入口", readConverterExp = "收=费站/服务区")
private Long exitsInlets;
/** 占用车道
*/
@ApiModelProperty("占用车道")
private String laneOccupancy;
/** 通行情况
1-通行正常
2-通行受阻 */
@ApiModelProperty("通行情况:1-通行正常 2-通行受阻")
private Long trafficCondition;
@ApiModelProperty("事件信息实体")

8
zc-business/src/main/java/com/zc/business/domain/DcEventServiceArea.java

@ -26,18 +26,18 @@ import com.ruoyi.common.core.domain.BaseEntity;
public class DcEventServiceArea extends BaseEntity
{
private static final long serialVersionUID = 1L;
@ApiModelProperty("事件编号")
/** 事件编号 */
private String id;
/** 出入口
1-出口
2-入口 */
@ApiModelProperty("出入口:1-出口 2-入口")
private Long exitsInlets;
/** 服务区 */
@Excel(name = "服务区")
@ApiModelProperty("服务区")
private Long facilityId;
/** 停用设施
@ -46,7 +46,7 @@ public class DcEventServiceArea extends BaseEntity
3-停车场
4-加油站
5-充电桩 */
@ApiModelProperty("停用设施:1-卫生间2-餐厅3-停车场4-加油站5-充电桩")
private Long disableFacility;
@ApiModelProperty("事件信息实体")
//事件信息表

13
zc-business/src/main/java/com/zc/business/domain/DcEventTrafficCongestion.java

@ -1,6 +1,7 @@
package com.zc.business.domain;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
@ -21,15 +22,16 @@ import com.ruoyi.common.core.domain.BaseEntity;
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "DcEventTrafficCongestion",description = "交通拥堵事件")
public class DcEventTrafficCongestion extends BaseEntity
{
private static final long serialVersionUID = 1L;
@ApiModelProperty("事件编号")
/** 事件编号 */
private String id;
/** 拥堵里程(公里) */
@Excel(name = "拥堵里程(公里)")
@ApiModelProperty("拥堵里程(公里)")
private Long congestionMileage;
/** 拥堵原因
@ -38,7 +40,7 @@ public class DcEventTrafficCongestion extends BaseEntity
3-恶劣天气
4-施工
5-其他 */
@ApiModelProperty("拥堵原因:1-车流量大2-交通事故3-恶劣天气4-施工5-其他")
private Long congestionCause;
/** 字段名称对应
@ -47,10 +49,11 @@ public class DcEventTrafficCongestion extends BaseEntity
服务器拥堵->服务区
*/
@ApiModelProperty("字段名称对应:立交拥堵->互通立交 收费站拥堵->拥堵收费站 服务器拥堵->服务区")
private Long facilityId;
/** 匝道(立交) */
@ApiModelProperty(" 匝道(立交)")
@Excel(name = "匝道", readConverterExp = "立=交")
private Long rampId;
@ -64,7 +67,7 @@ public class DcEventTrafficCongestion extends BaseEntity
7-出口车道
8-入口匝道
9-出口匝道 */
@Excel(name = "地点", readConverterExp = "收=费站")
@ApiModelProperty("地点(收费站):1-入口 2-出口 3-入口内广场 4--出口内广场5-外广场6-入口车道7-出口车道8-入口匝道9-出口匝道 ")
private Long location;
@ApiModelProperty("事件信息实体")

12
zc-business/src/main/java/com/zc/business/domain/DcEventTrafficControl.java

@ -26,14 +26,14 @@ import com.ruoyi.common.core.domain.BaseEntity;
public class DcEventTrafficControl extends BaseEntity
{
private static final long serialVersionUID = 1L;
@ApiModelProperty("事件编号")
/** 事件编号 */
private String id;
/** 管制分类
1-封闭
2-限行 */
@ApiModelProperty("管制分类:1-封闭2-限行")
private Long controlType;
/** 管制原因
@ -43,12 +43,13 @@ public class DcEventTrafficControl extends BaseEntity
4-施工
5-警备任务
6-其他 */
@ApiModelProperty("管制原因:1-车流量大 2-交通事故3-恶劣天气4-施工5-警备任务6-其他")
private Long controlCause;
/** 出入口收费站/服务区
1-出口
2-入口 */
@ApiModelProperty("出入口(收费站/服务区):1-出口2-入口")
@Excel(name = "出入口", readConverterExp = "收=费站/服务区")
private Long exitsInlets;
@ -58,13 +59,16 @@ public class DcEventTrafficControl extends BaseEntity
服务区
*/
@ApiModelProperty(" 字段名称对应:立交桥 收费站 服务区")
private Long facilityId;
/** 匝道立交
*/
@ApiModelProperty("匝道(立交)")
@Excel(name = "匝道", readConverterExp = "立=交")
private Long rampId;
@ApiModelProperty("高速公路 id")
private Long roadId;
@ApiModelProperty("事件信息实体")
//事件信息表
@TableField(exist = false)

38
zc-business/src/main/java/com/zc/business/domain/DcEventVehicleAccident.java

@ -1,6 +1,7 @@
package com.zc.business.domain;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
@ -20,19 +21,20 @@ import com.ruoyi.common.core.domain.BaseEntity;
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "DcEventVehicleAccident",description = "车辆事故事件")
public class DcEventVehicleAccident extends BaseEntity
{
private static final long serialVersionUID = 1L;
@ApiModelProperty("事件编号")
/** 事件编号 */
private String id;
/** 报警人姓名 */
@Excel(name = "报警人姓名")
@ApiModelProperty("报警人姓名")
private String reporterName;
/** 报警人电话 */
@Excel(name = "报警人电话")
@ApiModelProperty("报警人电话")
private String reporterPhoneNumber;
/** 地点方式
@ -40,11 +42,11 @@ public class DcEventVehicleAccident extends BaseEntity
2-服务区
3-立交桥
4-收费站 */
@ApiModelProperty("地点方式1-高速主线2-服务区3-立交桥4-收费站")
private Long locationType;
/** 压车(公里) */
@Excel(name = "压车(公里)")
@ApiModelProperty("压车(公里)")
private Long trafficJam;
/** 天气情况
@ -54,19 +56,19 @@ public class DcEventVehicleAccident extends BaseEntity
4-
5-其他
*/
@ApiModelProperty("天气情况:1-晴 2-雨 3-雪 4-雾 5-其他")
private Long weatherCondition;
/** 前方是否拥堵 */
@Excel(name = "前方是否拥堵")
@ApiModelProperty("前方是否拥堵")
private Integer congestionAhead;
/** 是否分岔口 */
@Excel(name = "是否分岔口")
@ApiModelProperty("是否分岔口")
private Integer atIntersection;
/** 是否处在弯道 */
@Excel(name = "是否处在弯道")
@ApiModelProperty( "是否处在弯道")
private Integer onCurve;
/** 车道占用
@ -76,39 +78,39 @@ public class DcEventVehicleAccident extends BaseEntity
3-行3
4-行4
*/
@ApiModelProperty("车道占用:0-应急,1-行1 ,2-行2,3-行3,4-行4")
private Long laneOccupancy;
/** 小型车(辆) */
@Excel(name = "小型车(辆)")
@ApiModelProperty("小型车(辆)")
private Long smallCar;
/** 货车(辆) */
@Excel(name = "货车(辆)")
@ApiModelProperty( "货车(辆)")
private Long trucks;
/** 客车(辆) */
@Excel(name = "客车(辆)")
@ApiModelProperty( "客车(辆)")
private Long buses;
/** 罐车(辆) */
@Excel(name = "罐车(辆)")
@ApiModelProperty("罐车(辆)")
private Long tankers;
/** 轻伤(人) */
@Excel(name = "轻伤(人)")
@ApiModelProperty("轻伤(人)")
private Long minorInjuries;
/** 重伤(人) */
@Excel(name = "重伤(人)")
@ApiModelProperty("重伤(人)")
private Long seriousInjuries;
/** 死亡(人) */
@Excel(name = "死亡(人)")
@ApiModelProperty( "死亡(人)")
private Long fatalities;
/** 私密事件 */
@Excel(name = "私密事件")
@ApiModelProperty( "私密事件")
private Integer isPrivate;
@ApiModelProperty("事件信息实体")

15
zc-business/src/main/java/com/zc/business/domain/DcRamp.java

@ -1,6 +1,7 @@
package com.zc.business.domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
@ -18,31 +19,33 @@ public class DcRamp extends BaseEntity
private static final long serialVersionUID = 1L;
/** 主键 */
@ApiModelProperty("id")
private Long id;
/** 互通立交 */
@Excel(name = "互通立交")
@ApiModelProperty( "互通立交")
private Long facilityId;
/** 匝道名称 */
@Excel(name = "匝道名称")
@ApiModelProperty( "匝道名称")
private String rampName;
/** 匝道长度(米) */
@Excel(name = "匝道长度", readConverterExp = "米=")
@ApiModelProperty( "匝道长度米")
private Long lengthMeters;
/** 设计速度(公里/小时) */
@Excel(name = "设计速度", readConverterExp = "公=里/小时")
@ApiModelProperty("设计速度(公里/小时)")
private Long designSpeed;
/** 匝道类型
直行转弯环形等 */
@Excel(name = "匝道类型:", readConverterExp = "如=:直行、转弯、环形等")
@ApiModelProperty( "匝道类型:如=:直行、转弯、环形等")
private String rampType;
/** 匝道宽度(米) */
@Excel(name = "匝道宽度", readConverterExp = "米=")
@ApiModelProperty("匝道宽度(米)")
private Long widthMeters;
public void setId(Long id)

8
zc-business/src/main/resources/mapper/business/DcEventTrafficControlMapper.xml

@ -4,17 +4,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zc.business.mapper.DcEventTrafficControlMapper">
<resultMap type="DcEventTrafficControl" id="DcEventTrafficControlResult">
<resultMap type="com.zc.business.domain.DcEventTrafficControl" id="DcEventTrafficControlResult">
<result property="id" column="id" />
<result property="controlType" column="control_type" />
<result property="controlCause" column="control_cause" />
<result property="exitsInlets" column="exits_inlets" />
<result property="facilityId" column="facility_id" />
<result property="rampId" column="ramp_id" />
<result property="rampId" column="road_id" />
</resultMap>
<sql id="selectDcEventTrafficControlVo">
select id, control_type, control_cause, exits_inlets, facility_id, ramp_id from dc_event_traffic_control
select id, control_type, control_cause, exits_inlets, facility_id, ramp_id,road_id from dc_event_traffic_control
</sql>
<select id="selectDcEventTrafficControlList" parameterType="DcEventTrafficControl" resultMap="DcEventTrafficControlResult">
@ -42,6 +43,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="exitsInlets != null">exits_inlets,</if>
<if test="facilityId != null">facility_id,</if>
<if test="rampId != null">ramp_id,</if>
<if test="roadId != null">road_id,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
@ -50,6 +52,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="exitsInlets != null">#{exitsInlets},</if>
<if test="facilityId != null">#{facilityId},</if>
<if test="rampId != null">#{rampId},</if>
<if test="roadId != null">#{roadId},</if>
</trim>
</insert>
@ -61,6 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="exitsInlets != null">exits_inlets = #{exitsInlets},</if>
<if test="facilityId != null">facility_id = #{facilityId},</if>
<if test="rampId != null">ramp_id = #{rampId},</if>
<if test="roadId != null">road_id = #{roadId},</if>
</trim>
where id = #{id}
</update>

Loading…
Cancel
Save