Browse Source

交通事件,车辆事故,交通拥堵,交通管制,服务区异常,异常天气,施工设施

develop
王兴琳 1 year ago
parent
commit
747b0ed261
  1. 120
      zc-business/src/main/java/com/zc/business/controller/DcEventAbnormalWeatherController.java
  2. 119
      zc-business/src/main/java/com/zc/business/controller/DcEventAccidentController.java
  3. 120
      zc-business/src/main/java/com/zc/business/controller/DcEventConstructionController.java
  4. 114
      zc-business/src/main/java/com/zc/business/controller/DcEventServiceAreaController.java
  5. 122
      zc-business/src/main/java/com/zc/business/controller/DcEventTrafficCongestionController.java
  6. 120
      zc-business/src/main/java/com/zc/business/controller/DcEventTrafficControlController.java
  7. 127
      zc-business/src/main/java/com/zc/business/controller/DcEventVehicleAccidentController.java
  8. 116
      zc-business/src/main/java/com/zc/business/controller/DcRampController.java
  9. 368
      zc-business/src/main/java/com/zc/business/domain/DcEvent.java
  10. 72
      zc-business/src/main/java/com/zc/business/domain/DcEventAbnormalWeather.java
  11. 232
      zc-business/src/main/java/com/zc/business/domain/DcEventAccident.java
  12. 99
      zc-business/src/main/java/com/zc/business/domain/DcEventConstruction.java
  13. 55
      zc-business/src/main/java/com/zc/business/domain/DcEventServiceArea.java
  14. 74
      zc-business/src/main/java/com/zc/business/domain/DcEventTrafficCongestion.java
  15. 72
      zc-business/src/main/java/com/zc/business/domain/DcEventTrafficControl.java
  16. 119
      zc-business/src/main/java/com/zc/business/domain/DcEventVehicleAccident.java
  17. 1
      zc-business/src/main/java/com/zc/business/domain/DcFacility.java
  18. 126
      zc-business/src/main/java/com/zc/business/domain/DcRamp.java
  19. 90
      zc-business/src/main/java/com/zc/business/mapper/DcEventAbnormalWeatherMapper.java
  20. 62
      zc-business/src/main/java/com/zc/business/mapper/DcEventAccidentMapper.java
  21. 90
      zc-business/src/main/java/com/zc/business/mapper/DcEventConstructionMapper.java
  22. 16
      zc-business/src/main/java/com/zc/business/mapper/DcEventMapper.java
  23. 90
      zc-business/src/main/java/com/zc/business/mapper/DcEventServiceAreaMapper.java
  24. 90
      zc-business/src/main/java/com/zc/business/mapper/DcEventTrafficCongestionMapper.java
  25. 90
      zc-business/src/main/java/com/zc/business/mapper/DcEventTrafficControlMapper.java
  26. 76
      zc-business/src/main/java/com/zc/business/mapper/DcEventVehicleAccidentMapper.java
  27. 64
      zc-business/src/main/java/com/zc/business/mapper/DcRampMapper.java
  28. 92
      zc-business/src/main/java/com/zc/business/service/IDcEventAbnormalWeatherService.java
  29. 62
      zc-business/src/main/java/com/zc/business/service/IDcEventAccidentService.java
  30. 92
      zc-business/src/main/java/com/zc/business/service/IDcEventConstructionService.java
  31. 92
      zc-business/src/main/java/com/zc/business/service/IDcEventServiceAreaService.java
  32. 92
      zc-business/src/main/java/com/zc/business/service/IDcEventTrafficCongestionService.java
  33. 92
      zc-business/src/main/java/com/zc/business/service/IDcEventTrafficControlService.java
  34. 77
      zc-business/src/main/java/com/zc/business/service/IDcEventVehicleAccidentService.java
  35. 64
      zc-business/src/main/java/com/zc/business/service/IDcRampService.java
  36. 171
      zc-business/src/main/java/com/zc/business/service/impl/DcEventAbnormalWeatherServiceImpl.java
  37. 133
      zc-business/src/main/java/com/zc/business/service/impl/DcEventAccidentServiceImpl.java
  38. 170
      zc-business/src/main/java/com/zc/business/service/impl/DcEventConstructionServiceImpl.java
  39. 169
      zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceAreaServiceImpl.java
  40. 125
      zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java
  41. 167
      zc-business/src/main/java/com/zc/business/service/impl/DcEventTrafficCongestionServiceImpl.java
  42. 170
      zc-business/src/main/java/com/zc/business/service/impl/DcEventTrafficControlServiceImpl.java
  43. 153
      zc-business/src/main/java/com/zc/business/service/impl/DcEventVehicleAccidentServiceImpl.java
  44. 102
      zc-business/src/main/java/com/zc/business/service/impl/DcRampServiceImpl.java
  45. 68
      zc-business/src/main/resources/mapper/business/DcEventAbnormalWeatherMapper.xml
  46. 187
      zc-business/src/main/resources/mapper/business/DcEventAccidentMapper.xml
  47. 103
      zc-business/src/main/resources/mapper/business/DcEventConstructionMapper.xml
  48. 414
      zc-business/src/main/resources/mapper/business/DcEventMapper.xml
  49. 68
      zc-business/src/main/resources/mapper/business/DcEventServiceAreaMapper.xml
  50. 78
      zc-business/src/main/resources/mapper/business/DcEventTrafficCongestionMapper.xml
  51. 78
      zc-business/src/main/resources/mapper/business/DcEventTrafficControlMapper.xml
  52. 138
      zc-business/src/main/resources/mapper/business/DcEventVehicleAccidentMapper.xml
  53. 96
      zc-business/src/main/resources/mapper/business/DcRampMapper.xml

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

@ -0,0 +1,120 @@
package com.zc.business.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.zc.business.domain.DcEventAbnormalWeather;
import com.zc.business.service.IDcEventAbnormalWeatherService;
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.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 设备设施隐患事件
"异常天气"为事件事件子类Controller
*
* @author ruoyi
* @date 2024-01-12
*/
@RestController
@RequestMapping("/system/weather")
public class DcEventAbnormalWeatherController extends BaseController
{
@Autowired
private IDcEventAbnormalWeatherService dcEventAbnormalWeatherService;
/**
* 查询设备设施隐患事件
"异常天气"为事件事件子类列表
*/
@PreAuthorize("@ss.hasPermi('system:weather:list')")
@GetMapping("/list")
public TableDataInfo list(DcEventAbnormalWeather dcEventAbnormalWeather)
{
startPage();
List<DcEventAbnormalWeather> list = dcEventAbnormalWeatherService.selectDcEventAbnormalWeatherList(dcEventAbnormalWeather);
return getDataTable(list);
}
/**
* 导出设备设施隐患事件
"异常天气"为事件事件子类列表
*/
@PreAuthorize("@ss.hasPermi('system:weather:export')")
@Log(title = "设备设施隐患事件 为事件“事件子类”", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, DcEventAbnormalWeather dcEventAbnormalWeather)
{
List<DcEventAbnormalWeather> list = dcEventAbnormalWeatherService.selectDcEventAbnormalWeatherList(dcEventAbnormalWeather);
ExcelUtil<DcEventAbnormalWeather> util = new ExcelUtil<>(DcEventAbnormalWeather.class);
util.exportExcel(response, list, "设备设施隐患事件 异常天气");
}
/**
* 获取设备设施隐患事件
"异常天气"为事件事件子类详细信息
*/
@PreAuthorize("@ss.hasPermi('system:weather:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") String id)
{
return AjaxResult.success(dcEventAbnormalWeatherService.selectDcEventAbnormalWeatherById(id));
}
/**
* 新增设备设施隐患事件
"异常天气"为事件事件子类
*/
@PreAuthorize("@ss.hasPermi('system:weather:add')")
@Log(title = "设备设施隐患事件 ", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody DcEventAbnormalWeather dcEventAbnormalWeather)
{
return toAjax(dcEventAbnormalWeatherService.insertDcEventAbnormalWeather(dcEventAbnormalWeather));
}
/**
* 修改设备设施隐患事件
"异常天气"为事件事件子类
*/
@PreAuthorize("@ss.hasPermi('system:weather:edit')")
@Log(title = "设备设施隐患事件 ", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody DcEventAbnormalWeather dcEventAbnormalWeather)
{
return toAjax(dcEventAbnormalWeatherService.updateDcEventAbnormalWeather(dcEventAbnormalWeather));
}
/**
* 删除设备设施隐患事件
"异常天气"为事件事件子类
*/
@PreAuthorize("@ss.hasPermi('system:weather:remove')")
@Log(title = "设备设施隐患事件 ", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable String[] ids)
{
return toAjax(dcEventAbnormalWeatherService.deleteDcEventAbnormalWeatherByIds(ids));
}
}

119
zc-business/src/main/java/com/zc/business/controller/DcEventAccidentController.java

@ -0,0 +1,119 @@
package com.zc.business.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.zc.business.domain.DcEventAccident;
import com.zc.business.service.IDcEventAccidentService;
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;
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.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 交通事故事件Controller
*
* @author ruoyi
* @date 2024-01-12
*/
@Api(tags = "交通事故事件")
@RestController
@RequestMapping("/system/accident")
public class DcEventAccidentController extends BaseController
{
@Autowired
private IDcEventAccidentService dcEventAccidentService;
/**
* 查询交通事故事件列表
*/
@ApiOperation("查询交通事故事件列表")
// @PreAuthorize("@ss.hasPermi('system:accident:list')")
@GetMapping("/list")
public TableDataInfo list(DcEventAccident dcEventAccident)
{
startPage();
List<DcEventAccident> list = dcEventAccidentService.selectDcEventAccidentList(dcEventAccident);
return getDataTable(list);
}
/**
* 导出交通事故事件列表
*/
@ApiOperation("导出交通事故事件列表")
//@PreAuthorize("@ss.hasPermi('system:accident:export')")
@Log(title = "交通事故事件", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, DcEventAccident dcEventAccident)
{
List<DcEventAccident> list = dcEventAccidentService.selectDcEventAccidentList(dcEventAccident);
ExcelUtil<DcEventAccident> util = new ExcelUtil<>(DcEventAccident.class);
util.exportExcel(response, list, "交通事故事件数据");
}
/**
* 获取交通事故事件详细信息
*/
@ApiOperation("获取交通事故事件详细信息")
// @PreAuthorize("@ss.hasPermi('system:accident:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") String id)
{
return AjaxResult.success(dcEventAccidentService.selectDcEventAccidentById(id));
}
/**
* 新增交通事故事件
*/
@ApiOperation("新增交通事故事件")
// @PreAuthorize("@ss.hasPermi('system:accident:add')")
@Log(title = "交通事故事件", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody DcEventAccident dcEventAccident)
{
return toAjax(dcEventAccidentService.insertDcEventAccident(dcEventAccident));
}
/**
* 修改交通事故事件
*/
@ApiOperation("修改交通事故事件")
//@PreAuthorize("@ss.hasPermi('system:accident:edit')")
@Log(title = "交通事故事件", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody DcEventAccident dcEventAccident)
{
return toAjax(dcEventAccidentService.updateDcEventAccident(dcEventAccident));
}
/**
* 删除交通事故事件
*/
@ApiOperation("删除交通事故事件")
//@PreAuthorize("@ss.hasPermi('system:accident:remove')")
@Log(title = "交通事故事件", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable String[] ids)
{
return toAjax(dcEventAccidentService.deleteDcEventAccidentByIds(ids));
}
}

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

@ -0,0 +1,120 @@
package com.zc.business.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.ruoyi.common.enums.BusinessType;
import com.zc.business.domain.DcEventConstruction;
import com.zc.business.service.IDcEventConstructionService;
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.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 施工建设事件
"施工分类"为事件事件子类Controller
*
* @author ruoyi
* @date 2024-01-12
*/
@RestController
@RequestMapping("/system/construction")
public class DcEventConstructionController extends BaseController
{
@Autowired
private IDcEventConstructionService dcEventConstructionService;
/**
* 查询施工建设事件
"施工分类"为事件事件子类列表
*/
@PreAuthorize("@ss.hasPermi('system:construction:list')")
@GetMapping("/list")
public TableDataInfo list(DcEventConstruction dcEventConstruction)
{
startPage();
List<DcEventConstruction> list = dcEventConstructionService.selectDcEventConstructionList(dcEventConstruction);
return getDataTable(list);
}
/**
* 导出施工建设事件
"施工分类"为事件事件子类列表
*/
@PreAuthorize("@ss.hasPermi('system:construction:export')")
@Log(title = "施工建设事件 ", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, DcEventConstruction dcEventConstruction)
{
List<DcEventConstruction> list = dcEventConstructionService.selectDcEventConstructionList(dcEventConstruction);
ExcelUtil<DcEventConstruction> util = new ExcelUtil<>(DcEventConstruction.class);
util.exportExcel(response, list, "施工建设事件施工分类");
}
/**
* 获取施工建设事件
"施工分类"为事件事件子类详细信息
*/
@PreAuthorize("@ss.hasPermi('system:construction:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") String id)
{
return AjaxResult.success(dcEventConstructionService.selectDcEventConstructionById(id));
}
/**
* 新增施工建设事件
"施工分类"为事件事件子类
*/
@PreAuthorize("@ss.hasPermi('system:construction:add')")
@Log(title = "施工建设事件施工分类", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody DcEventConstruction dcEventConstruction)
{
return toAjax(dcEventConstructionService.insertDcEventConstruction(dcEventConstruction));
}
/**
* 修改施工建设事件
"施工分类"为事件事件子类
*/
@PreAuthorize("@ss.hasPermi('system:construction:edit')")
@Log(title = "施工建设事件施工分类", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody DcEventConstruction dcEventConstruction)
{
return toAjax(dcEventConstructionService.updateDcEventConstruction(dcEventConstruction));
}
/**
* 删除施工建设事件
"施工分类"为事件事件子类
*/
@PreAuthorize("@ss.hasPermi('system:construction:remove')")
@Log(title = "施工建设事件施工分类", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable String[] ids)
{
return toAjax(dcEventConstructionService.deleteDcEventConstructionByIds(ids));
}
}

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

@ -0,0 +1,114 @@
package com.zc.business.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.zc.business.domain.DcEventServiceArea;
import com.zc.business.service.IDcEventServiceAreaService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 服务区异常事件
"异常分类"为事件事件子类Controller
*
* @author ruoyi
* @date 2024-01-12
*/
@RestController
@RequestMapping("/system/area")
public class DcEventServiceAreaController extends BaseController
{
@Autowired
private IDcEventServiceAreaService dcEventServiceAreaService;
/**
* 查询服务区异常事件
"异常分类"为事件事件子类列表
*/
@PreAuthorize("@ss.hasPermi('system:area:list')")
@GetMapping("/list")
public TableDataInfo list(DcEventServiceArea dcEventServiceArea)
{
startPage();
List<DcEventServiceArea> list = dcEventServiceAreaService.selectDcEventServiceAreaList(dcEventServiceArea);
return getDataTable(list);
}
/**
* 导出服务区异常事件
"异常分类"为事件事件子类列表
*/
@PreAuthorize("@ss.hasPermi('system:area:export')")
@Log(title = "服务区异常事异常分类", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, DcEventServiceArea dcEventServiceArea)
{
List<DcEventServiceArea> list = dcEventServiceAreaService.selectDcEventServiceAreaList(dcEventServiceArea);
ExcelUtil<DcEventServiceArea> util = new ExcelUtil<>(DcEventServiceArea.class);
util.exportExcel(response, list, "服务区异常事件");
}
/**
* 获取服务区异常事件
"异常分类"为事件事件子类详细信息
*/
@PreAuthorize("@ss.hasPermi('system:area:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") String id)
{
return AjaxResult.success(dcEventServiceAreaService.selectDcEventServiceAreaById(id));
}
/**
* 新增服务区异常事件
"异常分类"为事件事件子类
*/
@PreAuthorize("@ss.hasPermi('system:area:add')")
@Log(title = "服务区异常事件 ", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody DcEventServiceArea dcEventServiceArea)
{
return toAjax(dcEventServiceAreaService.insertDcEventServiceArea(dcEventServiceArea));
}
/**
* 修改服务区异常事件
"异常分类"为事件事件子类
*/
@PreAuthorize("@ss.hasPermi('system:area:edit')")
@Log(title = "服务区异常事件", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody DcEventServiceArea dcEventServiceArea)
{
return toAjax(dcEventServiceAreaService.updateDcEventServiceArea(dcEventServiceArea));
}
/**
* 删除服务区异常事件
"异常分类"为事件事件子类
*/
@PreAuthorize("@ss.hasPermi('system:area:remove')")
@Log(title = "服务区异常事件 ", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable String[] ids)
{
return toAjax(dcEventServiceAreaService.deleteDcEventServiceAreaByIds(ids));
}
}

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

@ -0,0 +1,122 @@
package com.zc.business.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.zc.business.domain.DcEventTrafficCongestion;
import com.zc.business.service.IDcEventTrafficCongestionService;
import io.swagger.annotations.Api;
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.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 交通拥堵事件
"拥堵类型"为事件事件子类Controller
*
* @author ruoyi
* @date 2024-01-12
*/
@Api(tags = "交通拥堵事件")
@RestController
@RequestMapping("/system/congestion")
public class DcEventTrafficCongestionController extends BaseController
{
@Autowired
private IDcEventTrafficCongestionService dcEventTrafficCongestionService;
/**
* 查询交通拥堵事件
"拥堵类型"为事件事件子类列表
*/
@PreAuthorize("@ss.hasPermi('system:congestion:list')")
@GetMapping("/list")
public TableDataInfo list(DcEventTrafficCongestion dcEventTrafficCongestion)
{
startPage();
List<DcEventTrafficCongestion> list = dcEventTrafficCongestionService.selectDcEventTrafficCongestionList(dcEventTrafficCongestion);
return getDataTable(list);
}
/**
* 导出交通拥堵事件
"拥堵类型"为事件事件子类列表
*/
@PreAuthorize("@ss.hasPermi('system:congestion:export')")
@Log(title = "交通拥堵事件 ", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, DcEventTrafficCongestion dcEventTrafficCongestion)
{
List<DcEventTrafficCongestion> list = dcEventTrafficCongestionService.selectDcEventTrafficCongestionList(dcEventTrafficCongestion);
ExcelUtil<DcEventTrafficCongestion> util = new ExcelUtil<>(DcEventTrafficCongestion.class);
util.exportExcel(response, list, "交通拥堵事件 ");
}
/**
* 获取交通拥堵事件
"拥堵类型"为事件事件子类详细信息
*/
@PreAuthorize("@ss.hasPermi('system:congestion:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") String id)
{
return AjaxResult.success(dcEventTrafficCongestionService.selectDcEventTrafficCongestionById(id));
}
/**
* 新增交通拥堵事件
"拥堵类型"为事件事件子类
*/
@PreAuthorize("@ss.hasPermi('system:congestion:add')")
@Log(title = "交通拥堵事件", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody DcEventTrafficCongestion dcEventTrafficCongestion)
{
return toAjax(dcEventTrafficCongestionService.insertDcEventTrafficCongestion(dcEventTrafficCongestion));
}
/**
* 修改交通拥堵事件
"拥堵类型"为事件事件子类
*/
@PreAuthorize("@ss.hasPermi('system:congestion:edit')")
@Log(title = "交通拥堵事件", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody DcEventTrafficCongestion dcEventTrafficCongestion)
{
return toAjax(dcEventTrafficCongestionService.updateDcEventTrafficCongestion(dcEventTrafficCongestion));
}
/**
* 删除交通拥堵事件
"拥堵类型"为事件事件子类
*/
@PreAuthorize("@ss.hasPermi('system:congestion:remove')")
@Log(title = "交通拥堵事件", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable String[] ids)
{
return toAjax(dcEventTrafficCongestionService.deleteDcEventTrafficCongestionByIds(ids));
}
}

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

@ -0,0 +1,120 @@
package com.zc.business.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.zc.business.domain.DcEventTrafficControl;
import com.zc.business.service.IDcEventTrafficControlService;
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.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 交通管制事件
"管制设施"为事件事件子类Controller
*
* @author ruoyi
* @date 2024-01-12
*/
@RestController
@RequestMapping("/system/control")
public class DcEventTrafficControlController extends BaseController
{
@Autowired
private IDcEventTrafficControlService dcEventTrafficControlService;
/**
* 查询交通管制事件
"管制设施"为事件事件子类列表
*/
@PreAuthorize("@ss.hasPermi('system:control:list')")
@GetMapping("/list")
public TableDataInfo list(DcEventTrafficControl dcEventTrafficControl)
{
startPage();
List<DcEventTrafficControl> list = dcEventTrafficControlService.selectDcEventTrafficControlList(dcEventTrafficControl);
return getDataTable(list);
}
/**
* 导出交通管制事件
"管制设施"为事件事件子类列表
*/
@PreAuthorize("@ss.hasPermi('system:control:export')")
@Log(title = "交通管制事件 ", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, DcEventTrafficControl dcEventTrafficControl)
{
List<DcEventTrafficControl> list = dcEventTrafficControlService.selectDcEventTrafficControlList(dcEventTrafficControl);
ExcelUtil<DcEventTrafficControl> util = new ExcelUtil<>(DcEventTrafficControl.class);
util.exportExcel(response, list, "交通管制事件");
}
/**
* 获取交通管制事件
"管制设施"为事件事件子类详细信息
*/
@PreAuthorize("@ss.hasPermi('system:control:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") String id)
{
return AjaxResult.success(dcEventTrafficControlService.selectDcEventTrafficControlById(id));
}
/**
* 新增交通管制事件
"管制设施"为事件事件子类
*/
@PreAuthorize("@ss.hasPermi('system:control:add')")
@Log(title = "交通管制事件", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody DcEventTrafficControl dcEventTrafficControl)
{
return toAjax(dcEventTrafficControlService.insertDcEventTrafficControl(dcEventTrafficControl));
}
/**
* 修改交通管制事件
"管制设施"为事件事件子类
*/
@PreAuthorize("@ss.hasPermi('system:control:edit')")
@Log(title = "交通管制事件", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody DcEventTrafficControl dcEventTrafficControl)
{
return toAjax(dcEventTrafficControlService.updateDcEventTrafficControl(dcEventTrafficControl));
}
/**
* 删除交通管制事件
"管制设施"为事件事件子类
*/
@PreAuthorize("@ss.hasPermi('system:control:remove')")
@Log(title = "交通管制事件", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable String[] ids)
{
return toAjax(dcEventTrafficControlService.deleteDcEventTrafficControlByIds(ids));
}
}

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

@ -0,0 +1,127 @@
package com.zc.business.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.zc.business.domain.DcEventVehicleAccident;
import com.zc.business.service.IDcEventVehicleAccidentService;
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;
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.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 车辆事故事件
Controller
*
* @author ruoyi
* @date 2024-01-12
*
*/
@Api(tags = "车辆事故事件")
@RestController
@RequestMapping("/system/vehicle/accident")
public class DcEventVehicleAccidentController extends BaseController
{
@Autowired
private IDcEventVehicleAccidentService dcEventVehicleAccidentService;
/**
* 查询车辆事故事件
列表
*/
//@PreAuthorize("@ss.hasPermi('system:accident:list')")
@ApiOperation("查询车辆事故事件")
@GetMapping("/list")
public TableDataInfo list(DcEventVehicleAccident dcEventVehicleAccident)
{
startPage();
List<DcEventVehicleAccident> list = dcEventVehicleAccidentService.selectDcEventVehicleAccidentList(dcEventVehicleAccident);
return getDataTable(list);
}
/**
* 导出车辆事故事件
列表
*/
//@PreAuthorize("@ss.hasPermi('system:accident:export')")
@Log(title = "车辆事故事件 ", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, DcEventVehicleAccident dcEventVehicleAccident)
{
List<DcEventVehicleAccident> list = dcEventVehicleAccidentService.selectDcEventVehicleAccidentList(dcEventVehicleAccident);
ExcelUtil<DcEventVehicleAccident> util = new ExcelUtil<>(DcEventVehicleAccident.class);
util.exportExcel(response, list, "车辆事故事件数据");
}
/**
* 获取车辆事故事件
详细信息
*/
@ApiOperation("获取车辆事故事件")
// @PreAuthorize("@ss.hasPermi('system:accident:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") String id)
{
return AjaxResult.success(dcEventVehicleAccidentService.selectDcEventVehicleAccidentById(id));
}
/**
* 新增车辆事故事件
*/
@ApiOperation("新增车辆事故事件")
//@PreAuthorize("@ss.hasPermi('system:accident:add')")
@Log(title = "车辆事故事件 ", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody DcEventVehicleAccident dcEventVehicleAccident)
{
return toAjax(dcEventVehicleAccidentService.insertDcEventVehicleAccident(dcEventVehicleAccident));
}
/**
* 修改车辆事故事件
*/
@ApiOperation("修改车辆事故事件")
//@PreAuthorize("@ss.hasPermi('system:accident:edit')")
@Log(title = "车辆事故事件", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody DcEventVehicleAccident dcEventVehicleAccident)
{
return toAjax(dcEventVehicleAccidentService.updateDcEventVehicleAccident(dcEventVehicleAccident));
}
/**
* 删除车辆事故事件
*/
@ApiOperation("删除车辆事故事件")
//@PreAuthorize("@ss.hasPermi('system:accident:remove')")
@Log(title = "车辆事故事件 ", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable String[] ids)
{
return toAjax(dcEventVehicleAccidentService.deleteDcEventVehicleAccidentByIds(ids));
}
}

116
zc-business/src/main/java/com/zc/business/controller/DcRampController.java

@ -0,0 +1,116 @@
package com.zc.business.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.zc.business.domain.DcRamp;
import com.zc.business.service.IDcRampService;
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.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 匝道信息Controller
*
* @author ruoyi
* @date 2024-01-12
*/
@RestController
@RequestMapping("/system/ramp")
public class DcRampController extends BaseController
{
@Autowired
private IDcRampService dcRampService;
/**
* 查询匝道信息列表
*/
@PreAuthorize("@ss.hasPermi('system:ramp:list')")
@GetMapping("/list")
public TableDataInfo list(DcRamp dcRamp)
{
startPage();
List<DcRamp> list = dcRampService.selectDcRampList(dcRamp);
return getDataTable(list);
}
/**
* 根据设施类型 查询匝道信息列表
*/
// @PreAuthorize("@ss.hasPermi('system:ramp:list')")
@GetMapping("/listAll/{type}")
public TableDataInfo listAll(@PathVariable("type") Long type)
{
List<DcRamp> list = dcRampService.selectDcRampListAll(type);
return getDataTable(list);
}
/**
* 导出匝道信息列表
*/
@PreAuthorize("@ss.hasPermi('system:ramp:export')")
@Log(title = "匝道信息", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, DcRamp dcRamp)
{
List<DcRamp> list = dcRampService.selectDcRampList(dcRamp);
ExcelUtil<DcRamp> util = new ExcelUtil<>(DcRamp.class);
util.exportExcel(response, list, "匝道信息数据");
}
/**
* 获取匝道信息详细信息
*/
@PreAuthorize("@ss.hasPermi('system:ramp:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(dcRampService.selectDcRampById(id));
}
/**
* 新增匝道信息
*/
@PreAuthorize("@ss.hasPermi('system:ramp:add')")
@Log(title = "匝道信息", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody DcRamp dcRamp)
{
return toAjax(dcRampService.insertDcRamp(dcRamp));
}
/**
* 修改匝道信息
*/
@PreAuthorize("@ss.hasPermi('system:ramp:edit')")
@Log(title = "匝道信息", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody DcRamp dcRamp)
{
return toAjax(dcRampService.updateDcRamp(dcRamp));
}
/**
* 删除匝道信息
*/
@PreAuthorize("@ss.hasPermi('system:ramp:remove')")
@Log(title = "匝道信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(dcRampService.deleteDcRampByIds(ids));
}
}

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

@ -1,132 +1,344 @@
package com.zc.business.domain;
import java.util.Date;
import java.util.Map;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
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.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import javax.validation.constraints.NotBlank;
/**
* 事件信息对象 dc_event
*
* @author ruoyi
* @date 2024-01-03
* @date 2024-01-12
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("事件信息")
public class DcEvent extends BaseEntity
{
@ApiModel(value = "DcEvent", description = "事件信息实体")
public class DcEvent extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 事件编号
*/
@ApiModelProperty("事件编号")
/** 事件编号 */
private String id;
/**
* 所属部门
*/
@ApiModelProperty("所属部门")
/** 所属机构 */
@ApiModelProperty("所属机构")
private Long groupId;
/** 所在桩号*/
@Excel(name = "所属部门")
private Long deptId;
/**
* 所在桩号
*/
@ApiModelProperty("所在桩号")
private String stakeMarkId;
/** 结束桩号*/
@ApiModelProperty("结束桩号")
private String endStakeMarkId;
/** 处置时长*/
@ApiModelProperty("处置时长")
private Long handlingTime;
@ApiModelProperty("开始时间")
private String stakeMark;
/** 开始时间*/
/**
* 方向
* 1-
* 2-
* 3-
*/
@ApiModelProperty("方向")
private String direction;
/**
* 处理人员
*/
@ApiModelProperty("处理人员")
private Long userId;
/**
* 开始时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty("开始时间")
private Date startTime;
/**
* 结束时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty("结束时间")
/** 结束时间 */
private Date endTime;
/**
* 预计解除时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty("预计解除时间")
private Date estimatedEndTime;
/**
* 事件等级
*/
@ApiModelProperty("事件等级")
/** 事件等级*/
private Long eventLevel;
/**
* 事件主类
* 1-交通事故
* 2-车辆故障
* 3-交通管制
* 4-交通拥堵
* 5-非法上路
* 6-路障清除
* 7-施工建设
* 8-服务区异常
* 9-设施设备隐患
* 10-异常天气
* 11-其他事件
*/
@ApiModelProperty("事件主类:1-交通事故 2-车辆故障 3-交通管制 4-交通拥堵 5-非法上路 6-路障清除 7-施工建设 8-服务区异常9-设施设备隐患 10-异常天气11-其他事件")
/** 事件类型 */
private Long eventType;
/** 1-交通事故2-车辆故障3-路障清除4-交通管制5-道路拥堵6-异常天气7-非法上路8-设备设施隐患9-施工建设10-服务区异常11-其他事件 */
@TableField(exist = false)
@ApiModelProperty("事件类型")
/**
* 事件子类
* 1-1 追尾
* 1-2 侧翻
* 1-3 撞护栏
* 1-4 自然
* 1-5 其他事故
* <p>
* 2-1 车辆故障
* <p>
* 3-1 主线封闭和限行
* 3-2 收费站封闭和限行
* 3-3 立交封闭和限行
* 3-4 服务区封闭和限行
*/
@ApiModelProperty("事件子类")
private String eventName;
@ApiModelProperty("影响程度")
private String eventSubclass;
/**
* 事件原因
*/
@ApiModelProperty("事件原因")
/** 影响程度 */
private Long impactLevel;
@Excel(name = "事件原因")
private String eventCause;
/**
* 事件描述
*/
@ApiModelProperty("事件描述")
/** 事件描述 */
@Excel(name = "事件描述")
private String description;
@ApiModelProperty("处理人员")
/** 处理人员 */
private Long handlingPerson;
@ApiModelProperty("处理结果")
/** 处理结果 0未解决 1 已解决 2 已关闭 */
private Long handlingResult;
/** 其他配置*/
private String otherConfig;
/**
* 事件状态
* 0-待确认
* 1-已确认
* 2-处理中
* 3-已完成
* 4-已撤销
*/
@ApiModelProperty("事件状态")
@TableField(exist = false)
@ApiModelProperty("其他配置 map集合")
private Map<String, Object> eventOtherConfig;
private Long eventState;
/**
* 事件来源
* 1-96659
* 2-交警转接
* 3-道路巡查
* 4-视频巡查
* 5-视频AI
* 6-一键救援
* 7-其他
*/
@ApiModelProperty("事件来源")
/** 事件来源 */ /** 1-966592-交警转接3-道路巡音3-视频巡音4-视频AI5-一键救接6-养护通知7-其他 */
private Long eventSource;
/**
* 事件性质
* 1-首发事件
* 2-关联事件
*/
@ApiModelProperty("事件性质")
/** 事件性质 1首发事件 2 关联事件 */
private Long eventNature;
@ApiModelProperty("方向")
/** 1-上2-中3-下 */
private String direction;
@ApiModelProperty("事件种类")
/**
* 事件来源补充说明
*/
@ApiModelProperty("事件来源补充说明")
/** 1-感知事件2-交通事件 */
private Long eventCategory;
@ApiModelProperty("所属道路")
private Long roadId;
private String eventSourceTips;
@ApiModelProperty("事件子类")
private Long eventSubclass;
@ApiModelProperty("事件原因")
/**
* 是否处在隧道
*/
@ApiModelProperty("是否处在隧道")
private String eventCause;
private Integer inTunnel;
public void setId(String id) {
this.id = id;
}
public String getId() {
return id;
}
public void setDeptId(Long deptId) {
this.deptId = deptId;
}
public Long getDeptId() {
return deptId;
}
public void setStakeMark(String stakeMark) {
this.stakeMark = stakeMark;
}
public String getStakeMark() {
return stakeMark;
}
public void setDirection(String direction) {
this.direction = direction;
}
public String getDirection() {
return direction;
}
public void setUserId(Long userId) {
this.userId = userId;
}
public Long getUserId() {
return userId;
}
public void setStartTime(Date startTime) {
this.startTime = startTime;
}
public Date getStartTime() {
return startTime;
}
public void setEndTime(Date endTime) {
this.endTime = endTime;
}
public Date getEndTime() {
return endTime;
}
public void setEstimatedEndTime(Date estimatedEndTime) {
this.estimatedEndTime = estimatedEndTime;
}
public Date getEstimatedEndTime() {
return estimatedEndTime;
}
public void setEventLevel(Long eventLevel) {
this.eventLevel = eventLevel;
}
public Long getEventLevel() {
return eventLevel;
}
public void setEventType(Long eventType) {
this.eventType = eventType;
}
public Long getEventType() {
return eventType;
}
public void setEventSubclass(String eventSubclass) {
this.eventSubclass = eventSubclass;
}
public String getEventSubclass() {
return eventSubclass;
}
public void setEventCause(String eventCause) {
this.eventCause = eventCause;
}
public String getEventCause() {
return eventCause;
}
public void setDescription(String description) {
this.description = description;
}
public String getDescription() {
return description;
}
public void setEventState(Long eventState) {
this.eventState = eventState;
}
public Long getEventState() {
return eventState;
}
public void setEventSource(Long eventSource) {
this.eventSource = eventSource;
}
public Long getEventSource() {
return eventSource;
}
/*
@ApiModelProperty("事件流程对象")
@TableField(exist = false)
private DcProcessConfig dcProcessConfig;
*/
public void setEventNature(Long eventNature) {
this.eventNature = eventNature;
}
@ApiModelProperty("调度信息详情")
@TableField(exist = false)
private DcEventMap dcEventMap;
public Long getEventNature() {
return eventNature;
}
public void setEventSourceTips(String eventSourceTips) {
this.eventSourceTips = eventSourceTips;
}
public String getEventSourceTips() {
return eventSourceTips;
}
public void setInTunnel(Integer inTunnel) {
this.inTunnel = inTunnel;
}
public Integer getInTunnel() {
return inTunnel;
}
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("deptId", getDeptId())
.append("stakeMark", getStakeMark())
.append("direction", getDirection())
.append("userId", getUserId())
.append("startTime", getStartTime())
.append("endTime", getEndTime())
.append("estimatedEndTime", getEstimatedEndTime())
.append("eventLevel", getEventLevel())
.append("eventType", getEventType())
.append("eventSubclass", getEventSubclass())
.append("eventCause", getEventCause())
.append("description", getDescription())
.append("eventState", getEventState())
.append("eventSource", getEventSource())
.append("eventNature", getEventNature())
.append("remark", getRemark())
.append("createTime", getCreateTime())
.append("updateTime", getUpdateTime())
.append("eventSourceTips", getEventSourceTips())
.append("inTunnel", getInTunnel())
.toString();
}
}

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

@ -0,0 +1,72 @@
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;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 异常天气事件表
"异常天气"为事件事件子类对象 dc_event_abnormal_weather
*
* @author ruoyi
* @date 2024-01-12
*/
@ApiModel(value = "DcEventAbnormalWeather" ,description = "异常天气事件实体")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DcEventAbnormalWeather extends BaseEntity
{
private static final long serialVersionUID = 1L;
@ApiModelProperty("事件编号")
/** 事件编号 */
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 大雾
3-3 浓雾
3-4 强浓雾
3-5 团雾
*/
@ApiModelProperty("天气情况 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 团雾")
private String weatherSituation;
/** 紧急级别
1-一般
2-紧急 */
@ApiModelProperty(" 紧急级别 1-一般 2-紧急 ")
private Long emergencyLevel;
/** 终止桩号 */
@ApiModelProperty("终止桩号")
private String endStakeMark;
@ApiModelProperty("事件信息实体")
//事件信息表
@TableField(exist = false)
private DcEvent dcEvent;
}

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

@ -0,0 +1,232 @@
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;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 交通事故事件对象 dc_event_accident
*
* @author ruoyi
* @date 2024-01-12
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "DcEventAccident", description = "交通事故事件实体")
public class DcEventAccident extends BaseEntity {
private static final long serialVersionUID = 1L;
@ApiModelProperty("事件编号")
/** 事件编号 */
private String id;
/**
* 报警人姓名
*/
@ApiModelProperty("报警人姓名")
private String reporterName;
/**
* 报警人电话
*/
@ApiModelProperty("报警人电话")
private String reporterPhoneNumber;
/**
* 交通事故类型
* 1-侧翻
* 2-撞障碍物
* 3-货物洒落
* 4-撞护栏
* 5-自燃
* 6-追尾
*/
@ApiModelProperty("交通事故类型")
private Long accidentType;
/**
* 地点方式
* 1-高速主线
* 2-服务区
* 3-立交桥
* 4-收费站
*/
@ApiModelProperty("地点方式")
private Long locationType;
/**
* 压车(公里)
*/
@ApiModelProperty("压车(公里)")
private Long trafficJam;
/**
* 天气情况
* 1-
* 2-
* 3-
* 4-
* 5-其他
*/
@ApiModelProperty("天气情况")
private Long weatherCondition;
/**
* 影响
* 1-
* 2-危化品泄漏
* 3-整车自燃
* 4-车辆复燃
* 5-散装人工倒货
*/
@ApiModelProperty("影响")
private Long impactLevel;
/**
* 是否倒货
*/
@ApiModelProperty("是否倒货 0 表示 否,1 表示 是")
private Integer isReverseCargo;
/**
* 是否养护事故
*/
@ApiModelProperty("是否养护事故 0 表示 否,1 表示 是")
private Integer isMaintenance;
/**
* 交警电话
*/
@ApiModelProperty("交警电话")
private Integer policeContact;
/**
* 清障电话
*/
@ApiModelProperty("清障电话")
private Integer towingServiceContact;
/**
* 前方是否拥堵
*/
@ApiModelProperty("前方是否拥堵 0 表示 否,1 表示 是")
private Integer congestionAhead;
/**
* 是否分岔口
*/
@ApiModelProperty("是否分岔口 0 表示 否,1 表示 是")
private Integer atIntersection;
/**
* 是否处在弯道
*/
@ApiModelProperty("是否处在弯道 0 表示 否,1 表示 是")
private Integer onCurve;
/**
* 洒落物名称
*/
@ApiModelProperty("洒落物名称")
private String spillageItem;
/**
* 车主电话
*/
@ApiModelProperty("车主电话")
private String vehicleOwnerPhone;
/**
* 车道占用
* 0-应急
* 1-行1
* 2-行2
* 3-行3
* 4-行4
*/
@ApiModelProperty("车道占用")
private Long laneOccupancy;
/**
* 小型车()
*/
@ApiModelProperty("小型车(辆)")
private Long smallCar;
/**
* 货车()
*/
@ApiModelProperty("货车(辆)")
private Long trucks;
/**
* 客车()
*/
@ApiModelProperty("客车(辆)")
private Long buses;
/**
* 罐车()
*/
@ApiModelProperty("罐车(辆)")
private Long tankers;
/**
* 轻伤()
*/
@ApiModelProperty("轻伤(人)")
private Long minorInjuries;
/**
* 重伤()
*/
@ApiModelProperty("重伤(人)")
private Long seriousInjuries;
/**
* 死亡()
*/
@ApiModelProperty("死亡(人)")
private Long fatalities;
/**
* 私密事件
*/
@ApiModelProperty("私密事件")
private Integer isPrivate;
/**
* 高速公路
*/
@ApiModelProperty("高速公路")
private Integer roadId;
/**
* 设施关联
*/
@ApiModelProperty("设施关联")
private Integer facilityId;
@ApiModelProperty("事件信息实体")
//事件信息表
@TableField(exist = false)
private DcEvent dcEvent;
}

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

@ -0,0 +1,99 @@
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;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 施工建设事件
"施工分类"为事件事件子类对象 dc_event_construction
*
* @author ruoyi
* @date 2024-01-12
*/
@ApiModel(value = "DcEventConstruction",description = "施工建设事件实体")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DcEventConstruction extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 事件编号 */
private String id;
/** 管制方式
1-封闭
2-不封闭 */
private Long controlMode;
/** 地点类型
1-单点
2-多点 */
private Long locationType;
/** 特殊地点描述 */
@Excel(name = "特殊地点描述")
private String specialPlaceDescription;
/** 专项施工
1-专项工程施工
2-改扩建专项工程施工
3-桥梁专项工程施工
4-其他专项工程施工 */
private Long specialConstruction;
/** 其他施工名称 */
@Excel(name = "其他施工名称")
private String otherConstructionName;
/** 施工措施
0-
1-并道行驶
2-临时保通
3-借路侧服务区通行 */
private Long constructionMeasurement;
/** 字段名称对应
互通立交
收费站
服务区
*/
private Long facilityId;
/** 出入口收费站/服务区
1-出口
2-入口 */
@Excel(name = "出入口", readConverterExp = "收=费站/服务区")
private Long exitsInlets;
/** 占用车道
*/
private String laneOccupancy;
/** 通行情况
1-通行正常
2-通行受阻 */
private Long trafficCondition;
@ApiModelProperty("事件信息实体")
//事件信息表
@TableField(exist = false)
private DcEvent dcEvent;
}

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

@ -0,0 +1,55 @@
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;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 服务区异常事件
"异常分类"为事件事件子类对象 dc_event_service_area
*
* @author ruoyi
* @date 2024-01-12
*/
@ApiModel(value = "DcEventServiceArea", description = "服务区异常事件实体")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DcEventServiceArea extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 事件编号 */
private String id;
/** 出入口
1-出口
2-入口 */
private Long exitsInlets;
/** 服务区 */
@Excel(name = "服务区")
private Long facilityId;
/** 停用设施
1-卫生间
2-餐厅
3-停车场
4-加油站
5-充电桩 */
private Long disableFacility;
@ApiModelProperty("事件信息实体")
//事件信息表
@TableField(exist = false)
private DcEvent dcEvent;
}

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

@ -0,0 +1,74 @@
package com.zc.business.domain;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
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.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 交通拥堵事件
"拥堵类型"为事件事件子类对象 dc_event_traffic_congestion
*
* @author ruoyi
* @date 2024-01-12
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DcEventTrafficCongestion extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 事件编号 */
private String id;
/** 拥堵里程(公里) */
@Excel(name = "拥堵里程(公里)")
private Long congestionMileage;
/** 拥堵原因
1-车流量大
2-交通事故
3-恶劣天气
4-施工
5-其他 */
private Long congestionCause;
/** 字段名称对应
立交拥堵->互通立交
收费站拥堵->拥堵收费站
服务器拥堵->服务区
*/
private Long facilityId;
/** 匝道(立交) */
@Excel(name = "匝道", readConverterExp = "立=交")
private Long rampId;
/** 地点收费站
1-入口
2-出口
3-入口内广场
4--出口内广场
5-外广场
6-入口车道
7-出口车道
8-入口匝道
9-出口匝道 */
@Excel(name = "地点", readConverterExp = "收=费站")
private Long location;
@ApiModelProperty("事件信息实体")
//事件信息表
@TableField(exist = false)
private DcEvent dcEvent;
}

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

@ -0,0 +1,72 @@
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;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 交通管制事件
"管制设施"为事件事件子类对象 dc_event_traffic_control
*
* @author ruoyi
* @date 2024-01-12
*/
@ApiModel(value = "DcEventTrafficControl", description = "交通管制事件实体")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DcEventTrafficControl extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 事件编号 */
private String id;
/** 管制分类
1-封闭
2-限行 */
private Long controlType;
/** 管制原因
1-车流量大
2-交通事故
3-恶劣天气
4-施工
5-警备任务
6-其他 */
private Long controlCause;
/** 出入口收费站/服务区
1-出口
2-入口 */
@Excel(name = "出入口", readConverterExp = "收=费站/服务区")
private Long exitsInlets;
/** 字段名称对应
立交桥
收费站
服务区
*/
private Long facilityId;
/** 匝道立交
*/
@Excel(name = "匝道", readConverterExp = "立=交")
private Long rampId;
@ApiModelProperty("事件信息实体")
//事件信息表
@TableField(exist = false)
private DcEvent dcEvent;
}

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

@ -0,0 +1,119 @@
package com.zc.business.domain;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
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.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 车辆事故事件
对象 dc_event_vehicle_accident
*
* @author ruoyi
* @date 2024-01-12
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DcEventVehicleAccident extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 事件编号 */
private String id;
/** 报警人姓名 */
@Excel(name = "报警人姓名")
private String reporterName;
/** 报警人电话 */
@Excel(name = "报警人电话")
private String reporterPhoneNumber;
/** 地点方式
1-高速主线
2-服务区
3-立交桥
4-收费站 */
private Long locationType;
/** 压车(公里) */
@Excel(name = "压车(公里)")
private Long trafficJam;
/** 天气情况
1-
2-
3-
4-
5-其他
*/
private Long weatherCondition;
/** 前方是否拥堵 */
@Excel(name = "前方是否拥堵")
private Integer congestionAhead;
/** 是否分岔口 */
@Excel(name = "是否分岔口")
private Integer atIntersection;
/** 是否处在弯道 */
@Excel(name = "是否处在弯道")
private Integer onCurve;
/** 车道占用
0-应急
1-行1
2-行2
3-行3
4-行4
*/
private Long laneOccupancy;
/** 小型车(辆) */
@Excel(name = "小型车(辆)")
private Long smallCar;
/** 货车(辆) */
@Excel(name = "货车(辆)")
private Long trucks;
/** 客车(辆) */
@Excel(name = "客车(辆)")
private Long buses;
/** 罐车(辆) */
@Excel(name = "罐车(辆)")
private Long tankers;
/** 轻伤(人) */
@Excel(name = "轻伤(人)")
private Long minorInjuries;
/** 重伤(人) */
@Excel(name = "重伤(人)")
private Long seriousInjuries;
/** 死亡(人) */
@Excel(name = "死亡(人)")
private Long fatalities;
/** 私密事件 */
@Excel(name = "私密事件")
private Integer isPrivate;
@ApiModelProperty("事件信息实体")
//事件信息表
@TableField(exist = false)
private DcEvent dcEvent;
}

1
zc-business/src/main/java/com/zc/business/domain/DcFacility.java

@ -9,7 +9,6 @@ import java.util.Date;
@Data
@ApiModel(value = "DcFacility", description = "路网设施实体")
public class DcFacility {
public static final String UP = "1";
public static final String CENTRE = "2";
public static final String DOWN = "3";

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

@ -0,0 +1,126 @@
package com.zc.business.domain;
import io.swagger.annotations.ApiModel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 匝道信息对象 dc_ramp
*
* @author ruoyi
* @date 2024-01-12
*/
@ApiModel(value = "DcRamp", description = "匝道信息实体")
public class DcRamp extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 互通立交 */
@Excel(name = "互通立交")
private Long facilityId;
/** 匝道名称 */
@Excel(name = "匝道名称")
private String rampName;
/** 匝道长度(米) */
@Excel(name = "匝道长度", readConverterExp = "米=")
private Long lengthMeters;
/** 设计速度(公里/小时) */
@Excel(name = "设计速度", readConverterExp = "公=里/小时")
private Long designSpeed;
/** 匝道类型
直行转弯环形等 */
@Excel(name = "匝道类型:", readConverterExp = "如=:直行、转弯、环形等")
private String rampType;
/** 匝道宽度(米) */
@Excel(name = "匝道宽度", readConverterExp = "米=")
private Long widthMeters;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setFacilityId(Long facilityId)
{
this.facilityId = facilityId;
}
public Long getFacilityId()
{
return facilityId;
}
public void setRampName(String rampName)
{
this.rampName = rampName;
}
public String getRampName()
{
return rampName;
}
public void setLengthMeters(Long lengthMeters)
{
this.lengthMeters = lengthMeters;
}
public Long getLengthMeters()
{
return lengthMeters;
}
public void setDesignSpeed(Long designSpeed)
{
this.designSpeed = designSpeed;
}
public Long getDesignSpeed()
{
return designSpeed;
}
public void setRampType(String rampType)
{
this.rampType = rampType;
}
public String getRampType()
{
return rampType;
}
public void setWidthMeters(Long widthMeters)
{
this.widthMeters = widthMeters;
}
public Long getWidthMeters()
{
return widthMeters;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("facilityId", getFacilityId())
.append("rampName", getRampName())
.append("lengthMeters", getLengthMeters())
.append("designSpeed", getDesignSpeed())
.append("rampType", getRampType())
.append("widthMeters", getWidthMeters())
.append("createTime", getCreateTime())
.append("updateTime", getUpdateTime())
.toString();
}
}

90
zc-business/src/main/java/com/zc/business/mapper/DcEventAbnormalWeatherMapper.java

@ -0,0 +1,90 @@
package com.zc.business.mapper;
import com.zc.business.domain.DcEventAbnormalWeather;
import java.util.List;
/**
* 设备设施隐患事件
"异常天气"为事件事件子类Mapper接口
*
* @author ruoyi
* @date 2024-01-12
*/
public interface DcEventAbnormalWeatherMapper
{
/**
* 查询设备设施隐患事件
"异常天气"为事件事件子类
*
* @param id 设备设施隐患事件
"异常天气"为事件事件子类主键
* @return 设备设施隐患事件
"异常天气"为事件事件子类
*/
public DcEventAbnormalWeather selectDcEventAbnormalWeatherById(String id);
/**
* 查询设备设施隐患事件
"异常天气"为事件事件子类列表
*
* @param dcEventAbnormalWeather 设备设施隐患事件
"异常天气"为事件事件子类
* @return 设备设施隐患事件
"异常天气"为事件事件子类集合
*/
List<DcEventAbnormalWeather> selectDcEventAbnormalWeatherList(DcEventAbnormalWeather dcEventAbnormalWeather);
/**
* 新增设备设施隐患事件
"异常天气"为事件事件子类
*
* @param dcEventAbnormalWeather 设备设施隐患事件
"异常天气"为事件事件子类
* @return 结果
*/
int insertDcEventAbnormalWeather(DcEventAbnormalWeather dcEventAbnormalWeather);
/**
* 修改设备设施隐患事件
"异常天气"为事件事件子类
*
* @param dcEventAbnormalWeather 设备设施隐患事件
"异常天气"为事件事件子类
* @return 结果
*/
int updateDcEventAbnormalWeather(DcEventAbnormalWeather dcEventAbnormalWeather);
/**
* 删除设备设施隐患事件
"异常天气"为事件事件子类
*
* @param id 设备设施隐患事件
"异常天气"为事件事件子类主键
* @return 结果
*/
int deleteDcEventAbnormalWeatherById(String id);
/**
* 批量删除设备设施隐患事件
"异常天气"为事件事件子类
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
int deleteDcEventAbnormalWeatherByIds(String[] ids);
}

62
zc-business/src/main/java/com/zc/business/mapper/DcEventAccidentMapper.java

@ -0,0 +1,62 @@
package com.zc.business.mapper;
import com.zc.business.domain.DcEventAccident;
import java.util.List;
/**
* 交通事故事件Mapper接口
*
* @author ruoyi
* @date 2024-01-12
*/
public interface DcEventAccidentMapper
{
/**
* 查询交通事故事件
*
* @param id 交通事故事件主键
* @return 交通事故事件
*/
public DcEventAccident selectDcEventAccidentById(String id);
/**
* 查询交通事故事件列表
*
* @param dcEventAccident 交通事故事件
* @return 交通事故事件集合
*/
List<DcEventAccident> selectDcEventAccidentList(DcEventAccident dcEventAccident);
/**
* 新增交通事故事件
*
* @param dcEventAccident 交通事故事件
* @return 结果
*/
int insertDcEventAccident(DcEventAccident dcEventAccident);
/**
* 修改交通事故事件
*
* @param dcEventAccident 交通事故事件
* @return 结果
*/
int updateDcEventAccident(DcEventAccident dcEventAccident);
/**
* 删除交通事故事件
*
* @param id 交通事故事件主键
* @return 结果
*/
int deleteDcEventAccidentById(String id);
/**
* 批量删除交通事故事件
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
int deleteDcEventAccidentByIds(String[] ids);
}

90
zc-business/src/main/java/com/zc/business/mapper/DcEventConstructionMapper.java

@ -0,0 +1,90 @@
package com.zc.business.mapper;
import com.zc.business.domain.DcEventConstruction;
import java.util.List;
/**
* 施工建设事件
"施工分类"为事件事件子类Mapper接口
*
* @author ruoyi
* @date 2024-01-12
*/
public interface DcEventConstructionMapper
{
/**
* 查询施工建设事件
"施工分类"为事件事件子类
*
* @param id 施工建设事件
"施工分类"为事件事件子类主键
* @return 施工建设事件
"施工分类"为事件事件子类
*/
public DcEventConstruction selectDcEventConstructionById(String id);
/**
* 查询施工建设事件
"施工分类"为事件事件子类列表
*
* @param dcEventConstruction 施工建设事件
"施工分类"为事件事件子类
* @return 施工建设事件
"施工分类"为事件事件子类集合
*/
List<DcEventConstruction> selectDcEventConstructionList(DcEventConstruction dcEventConstruction);
/**
* 新增施工建设事件
"施工分类"为事件事件子类
*
* @param dcEventConstruction 施工建设事件
"施工分类"为事件事件子类
* @return 结果
*/
int insertDcEventConstruction(DcEventConstruction dcEventConstruction);
/**
* 修改施工建设事件
"施工分类"为事件事件子类
*
* @param dcEventConstruction 施工建设事件
"施工分类"为事件事件子类
* @return 结果
*/
int updateDcEventConstruction(DcEventConstruction dcEventConstruction);
/**
* 删除施工建设事件
"施工分类"为事件事件子类
*
* @param id 施工建设事件
"施工分类"为事件事件子类主键
* @return 结果
*/
int deleteDcEventConstructionById(String id);
/**
* 批量删除施工建设事件
"施工分类"为事件事件子类
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
int deleteDcEventConstructionByIds(String[] ids);
}

16
zc-business/src/main/java/com/zc/business/mapper/DcEventMapper.java

@ -5,11 +5,12 @@ import com.zc.business.domain.DcEvent;
import java.util.List;
/**
* 事件信息Mapper接口
*
* @author ruoyi
* @date 2024-01-03
* @date 2024-01-12
*/
public interface DcEventMapper
{
@ -27,7 +28,7 @@ public interface DcEventMapper
* @param dcEvent 事件信息
* @return 事件信息集合
*/
public List<DcEvent> selectDcEventList(DcEvent dcEvent);
List<DcEvent> selectDcEventList(DcEvent dcEvent);
/**
* 新增事件信息
@ -35,7 +36,7 @@ public interface DcEventMapper
* @param dcEvent 事件信息
* @return 结果
*/
public int insertDcEvent(DcEvent dcEvent);
int insertDcEvent(DcEvent dcEvent);
/**
* 修改事件信息
@ -43,7 +44,7 @@ public interface DcEventMapper
* @param dcEvent 事件信息
* @return 结果
*/
public int updateDcEvent(DcEvent dcEvent);
int updateDcEvent(DcEvent dcEvent);
/**
* 删除事件信息
@ -51,7 +52,7 @@ public interface DcEventMapper
* @param id 事件信息主键
* @return 结果
*/
public int deleteDcEventById(String id);
int deleteDcEventById(String id);
/**
* 批量删除事件信息
@ -59,6 +60,7 @@ public interface DcEventMapper
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteDcEventByIds(String[] ids);
int deleteDcEventByIds(String[] ids);
}

90
zc-business/src/main/java/com/zc/business/mapper/DcEventServiceAreaMapper.java

@ -0,0 +1,90 @@
package com.zc.business.mapper;
import com.zc.business.domain.DcEventServiceArea;
import java.util.List;
/**
* 服务区异常事件
"异常分类"为事件事件子类Mapper接口
*
* @author ruoyi
* @date 2024-01-12
*/
public interface DcEventServiceAreaMapper
{
/**
* 查询服务区异常事件
"异常分类"为事件事件子类
*
* @param id 服务区异常事件
"异常分类"为事件事件子类主键
* @return 服务区异常事件
"异常分类"为事件事件子类
*/
public DcEventServiceArea selectDcEventServiceAreaById(String id);
/**
* 查询服务区异常事件
"异常分类"为事件事件子类列表
*
* @param dcEventServiceArea 服务区异常事件
"异常分类"为事件事件子类
* @return 服务区异常事件
"异常分类"为事件事件子类集合
*/
List<DcEventServiceArea> selectDcEventServiceAreaList(DcEventServiceArea dcEventServiceArea);
/**
* 新增服务区异常事件
"异常分类"为事件事件子类
*
* @param dcEventServiceArea 服务区异常事件
"异常分类"为事件事件子类
* @return 结果
*/
int insertDcEventServiceArea(DcEventServiceArea dcEventServiceArea);
/**
* 修改服务区异常事件
"异常分类"为事件事件子类
*
* @param dcEventServiceArea 服务区异常事件
"异常分类"为事件事件子类
* @return 结果
*/
int updateDcEventServiceArea(DcEventServiceArea dcEventServiceArea);
/**
* 删除服务区异常事件
"异常分类"为事件事件子类
*
* @param id 服务区异常事件
"异常分类"为事件事件子类主键
* @return 结果
*/
int deleteDcEventServiceAreaById(String id);
/**
* 批量删除服务区异常事件
"异常分类"为事件事件子类
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
int deleteDcEventServiceAreaByIds(String[] ids);
}

90
zc-business/src/main/java/com/zc/business/mapper/DcEventTrafficCongestionMapper.java

@ -0,0 +1,90 @@
package com.zc.business.mapper;
import com.zc.business.domain.DcEventTrafficCongestion;
import java.util.List;
/**
* 交通拥堵事件
"拥堵类型"为事件事件子类Mapper接口
*
* @author ruoyi
* @date 2024-01-12
*/
public interface DcEventTrafficCongestionMapper
{
/**
* 查询交通拥堵事件
"拥堵类型"为事件事件子类
*
* @param id 交通拥堵事件
"拥堵类型"为事件事件子类主键
* @return 交通拥堵事件
"拥堵类型"为事件事件子类
*/
public DcEventTrafficCongestion selectDcEventTrafficCongestionById(String id);
/**
* 查询交通拥堵事件
"拥堵类型"为事件事件子类列表
*
* @param dcEventTrafficCongestion 交通拥堵事件
"拥堵类型"为事件事件子类
* @return 交通拥堵事件
"拥堵类型"为事件事件子类集合
*/
List<DcEventTrafficCongestion> selectDcEventTrafficCongestionList(DcEventTrafficCongestion dcEventTrafficCongestion);
/**
* 新增交通拥堵事件
"拥堵类型"为事件事件子类
*
* @param dcEventTrafficCongestion 交通拥堵事件
"拥堵类型"为事件事件子类
* @return 结果
*/
int insertDcEventTrafficCongestion(DcEventTrafficCongestion dcEventTrafficCongestion);
/**
* 修改交通拥堵事件
"拥堵类型"为事件事件子类
*
* @param dcEventTrafficCongestion 交通拥堵事件
"拥堵类型"为事件事件子类
* @return 结果
*/
int updateDcEventTrafficCongestion(DcEventTrafficCongestion dcEventTrafficCongestion);
/**
* 删除交通拥堵事件
"拥堵类型"为事件事件子类
*
* @param id 交通拥堵事件
"拥堵类型"为事件事件子类主键
* @return 结果
*/
int deleteDcEventTrafficCongestionById(String id);
/**
* 批量删除交通拥堵事件
"拥堵类型"为事件事件子类
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
int deleteDcEventTrafficCongestionByIds(String[] ids);
}

90
zc-business/src/main/java/com/zc/business/mapper/DcEventTrafficControlMapper.java

@ -0,0 +1,90 @@
package com.zc.business.mapper;
import com.zc.business.domain.DcEventTrafficControl;
import java.util.List;
/**
* 交通管制事件
"管制设施"为事件事件子类Mapper接口
*
* @author ruoyi
* @date 2024-01-12
*/
public interface DcEventTrafficControlMapper
{
/**
* 查询交通管制事件
"管制设施"为事件事件子类
*
* @param id 交通管制事件
"管制设施"为事件事件子类主键
* @return 交通管制事件
"管制设施"为事件事件子类
*/
public DcEventTrafficControl selectDcEventTrafficControlById(String id);
/**
* 查询交通管制事件
"管制设施"为事件事件子类列表
*
* @param dcEventTrafficControl 交通管制事件
"管制设施"为事件事件子类
* @return 交通管制事件
"管制设施"为事件事件子类集合
*/
List<DcEventTrafficControl> selectDcEventTrafficControlList(DcEventTrafficControl dcEventTrafficControl);
/**
* 新增交通管制事件
"管制设施"为事件事件子类
*
* @param dcEventTrafficControl 交通管制事件
"管制设施"为事件事件子类
* @return 结果
*/
int insertDcEventTrafficControl(DcEventTrafficControl dcEventTrafficControl);
/**
* 修改交通管制事件
"管制设施"为事件事件子类
*
* @param dcEventTrafficControl 交通管制事件
"管制设施"为事件事件子类
* @return 结果
*/
int updateDcEventTrafficControl(DcEventTrafficControl dcEventTrafficControl);
/**
* 删除交通管制事件
"管制设施"为事件事件子类
*
* @param id 交通管制事件
"管制设施"为事件事件子类主键
* @return 结果
*/
int deleteDcEventTrafficControlById(String id);
/**
* 批量删除交通管制事件
"管制设施"为事件事件子类
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
int deleteDcEventTrafficControlByIds(String[] ids);
}

76
zc-business/src/main/java/com/zc/business/mapper/DcEventVehicleAccidentMapper.java

@ -0,0 +1,76 @@
package com.zc.business.mapper;
import com.zc.business.domain.DcEventVehicleAccident;
import java.util.List;
/**
* 车辆事故事件
Mapper接口
*
* @author ruoyi
* @date 2024-01-12
*/
public interface DcEventVehicleAccidentMapper
{
/**
* 查询车辆事故事件
*
* @param id 车辆事故事件
主键
* @return 车辆事故事件
*/
public DcEventVehicleAccident selectDcEventVehicleAccidentById(String id);
/**
* 查询车辆事故事件
列表
*
* @param dcEventVehicleAccident 车辆事故事件
* @return 车辆事故事件
集合
*/
List<DcEventVehicleAccident> selectDcEventVehicleAccidentList(DcEventVehicleAccident dcEventVehicleAccident);
/**
* 新增车辆事故事件
*
* @param dcEventVehicleAccident 车辆事故事件
* @return 结果
*/
int insertDcEventVehicleAccident(DcEventVehicleAccident dcEventVehicleAccident);
/**
* 修改车辆事故事件
*
* @param dcEventVehicleAccident 车辆事故事件
* @return 结果
*/
int updateDcEventVehicleAccident(DcEventVehicleAccident dcEventVehicleAccident);
/**
* 删除车辆事故事件
*
* @param id 车辆事故事件
主键
* @return 结果
*/
int deleteDcEventVehicleAccidentById(String id);
/**
* 批量删除车辆事故事件
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
int deleteDcEventVehicleAccidentByIds(String[] ids);
}

64
zc-business/src/main/java/com/zc/business/mapper/DcRampMapper.java

@ -0,0 +1,64 @@
package com.zc.business.mapper;
import com.zc.business.domain.DcRamp;
import java.util.List;
/**
* 匝道信息Mapper接口
*
* @author ruoyi
* @date 2024-01-12
*/
public interface DcRampMapper
{
/**
* 查询匝道信息
*
* @param id 匝道信息主键
* @return 匝道信息
*/
public DcRamp selectDcRampById(Long id);
/**
* 查询匝道信息列表
*
* @param dcRamp 匝道信息
* @return 匝道信息集合
*/
List<DcRamp> selectDcRampList(DcRamp dcRamp);
/**
* 新增匝道信息
*
* @param dcRamp 匝道信息
* @return 结果
*/
int insertDcRamp(DcRamp dcRamp);
/**
* 修改匝道信息
*
* @param dcRamp 匝道信息
* @return 结果
*/
int updateDcRamp(DcRamp dcRamp);
/**
* 删除匝道信息
*
* @param id 匝道信息主键
* @return 结果
*/
int deleteDcRampById(Long id);
/**
* 批量删除匝道信息
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
int deleteDcRampByIds(Long[] ids);
List<DcRamp> selectDcRampListAll(Long type);
}

92
zc-business/src/main/java/com/zc/business/service/IDcEventAbnormalWeatherService.java

@ -0,0 +1,92 @@
package com.zc.business.service;
import com.zc.business.domain.DcEventAbnormalWeather;
import java.util.List;
/**
* 设备设施隐患事件
"异常天气"为事件事件子类Service接口
*
* @author ruoyi
* @date 2024-01-12
*/
public interface IDcEventAbnormalWeatherService
{
/**
* 查询设备设施隐患事件
"异常天气"为事件事件子类
*
* @param id 设备设施隐患事件
"异常天气"为事件事件子类主键
* @return 设备设施隐患事件
"异常天气"为事件事件子类
*/
public DcEventAbnormalWeather selectDcEventAbnormalWeatherById(String id);
/**
* 查询设备设施隐患事件
"异常天气"为事件事件子类列表
*
* @param dcEventAbnormalWeather 设备设施隐患事件
"异常天气"为事件事件子类
* @return 设备设施隐患事件
"异常天气"为事件事件子类集合
*/
List<DcEventAbnormalWeather> selectDcEventAbnormalWeatherList(DcEventAbnormalWeather dcEventAbnormalWeather);
/**
* 新增设备设施隐患事件
"异常天气"为事件事件子类
*
* @param dcEventAbnormalWeather 设备设施隐患事件
"异常天气"为事件事件子类
* @return 结果
*/
int insertDcEventAbnormalWeather(DcEventAbnormalWeather dcEventAbnormalWeather);
/**
* 修改设备设施隐患事件
"异常天气"为事件事件子类
*
* @param dcEventAbnormalWeather 设备设施隐患事件
"异常天气"为事件事件子类
* @return 结果
*/
int updateDcEventAbnormalWeather(DcEventAbnormalWeather dcEventAbnormalWeather);
/**
* 批量删除设备设施隐患事件
"异常天气"为事件事件子类
*
* @param ids 需要删除的设备设施隐患事件
"异常天气"为事件事件子类主键集合
* @return 结果
*/
int deleteDcEventAbnormalWeatherByIds(String[] ids);
/**
* 删除设备设施隐患事件
"异常天气"为事件事件子类信息
*
* @param id 设备设施隐患事件
"异常天气"为事件事件子类主键
* @return 结果
*/
int deleteDcEventAbnormalWeatherById(String id);
}

62
zc-business/src/main/java/com/zc/business/service/IDcEventAccidentService.java

@ -0,0 +1,62 @@
package com.zc.business.service;
import com.zc.business.domain.DcEventAccident;
import java.util.List;
/**
* 交通事故事件Service接口
*
* @author ruoyi
* @date 2024-01-12
*/
public interface IDcEventAccidentService
{
/**
* 查询交通事故事件
*
* @param id 交通事故事件主键
* @return 交通事故事件
*/
public DcEventAccident selectDcEventAccidentById(String id);
/**
* 查询交通事故事件列表
*
* @param dcEventAccident 交通事故事件
* @return 交通事故事件集合
*/
List<DcEventAccident> selectDcEventAccidentList(DcEventAccident dcEventAccident);
/**
* 新增交通事故事件
*
* @param dcEventAccident 交通事故事件
* @return 结果
*/
int insertDcEventAccident(DcEventAccident dcEventAccident);
/**
* 修改交通事故事件
*
* @param dcEventAccident 交通事故事件
* @return 结果
*/
int updateDcEventAccident(DcEventAccident dcEventAccident);
/**
* 批量删除交通事故事件
*
* @param ids 需要删除的交通事故事件主键集合
* @return 结果
*/
int deleteDcEventAccidentByIds(String[] ids);
/**
* 删除交通事故事件信息
*
* @param id 交通事故事件主键
* @return 结果
*/
int deleteDcEventAccidentById(String id);
}

92
zc-business/src/main/java/com/zc/business/service/IDcEventConstructionService.java

@ -0,0 +1,92 @@
package com.zc.business.service;
import com.zc.business.domain.DcEventConstruction;
import java.util.List;
/**
* 施工建设事件
"施工分类"为事件事件子类Service接口
*
* @author ruoyi
* @date 2024-01-12
*/
public interface IDcEventConstructionService
{
/**
* 查询施工建设事件
"施工分类"为事件事件子类
*
* @param id 施工建设事件
"施工分类"为事件事件子类主键
* @return 施工建设事件
"施工分类"为事件事件子类
*/
public DcEventConstruction selectDcEventConstructionById(String id);
/**
* 查询施工建设事件
"施工分类"为事件事件子类列表
*
* @param dcEventConstruction 施工建设事件
"施工分类"为事件事件子类
* @return 施工建设事件
"施工分类"为事件事件子类集合
*/
List<DcEventConstruction> selectDcEventConstructionList(DcEventConstruction dcEventConstruction);
/**
* 新增施工建设事件
"施工分类"为事件事件子类
*
* @param dcEventConstruction 施工建设事件
"施工分类"为事件事件子类
* @return 结果
*/
int insertDcEventConstruction(DcEventConstruction dcEventConstruction);
/**
* 修改施工建设事件
"施工分类"为事件事件子类
*
* @param dcEventConstruction 施工建设事件
"施工分类"为事件事件子类
* @return 结果
*/
int updateDcEventConstruction(DcEventConstruction dcEventConstruction);
/**
* 批量删除施工建设事件
"施工分类"为事件事件子类
*
* @param ids 需要删除的施工建设事件
"施工分类"为事件事件子类主键集合
* @return 结果
*/
int deleteDcEventConstructionByIds(String[] ids);
/**
* 删除施工建设事件
"施工分类"为事件事件子类信息
*
* @param id 施工建设事件
"施工分类"为事件事件子类主键
* @return 结果
*/
int deleteDcEventConstructionById(String id);
}

92
zc-business/src/main/java/com/zc/business/service/IDcEventServiceAreaService.java

@ -0,0 +1,92 @@
package com.zc.business.service;
import com.zc.business.domain.DcEventServiceArea;
import java.util.List;
/**
* 服务区异常事件
"异常分类"为事件事件子类Service接口
*
* @author ruoyi
* @date 2024-01-12
*/
public interface IDcEventServiceAreaService
{
/**
* 查询服务区异常事件
"异常分类"为事件事件子类
*
* @param id 服务区异常事件
"异常分类"为事件事件子类主键
* @return 服务区异常事件
"异常分类"为事件事件子类
*/
public DcEventServiceArea selectDcEventServiceAreaById(String id);
/**
* 查询服务区异常事件
"异常分类"为事件事件子类列表
*
* @param dcEventServiceArea 服务区异常事件
"异常分类"为事件事件子类
* @return 服务区异常事件
"异常分类"为事件事件子类集合
*/
List<DcEventServiceArea> selectDcEventServiceAreaList(DcEventServiceArea dcEventServiceArea);
/**
* 新增服务区异常事件
"异常分类"为事件事件子类
*
* @param dcEventServiceArea 服务区异常事件
"异常分类"为事件事件子类
* @return 结果
*/
int insertDcEventServiceArea(DcEventServiceArea dcEventServiceArea);
/**
* 修改服务区异常事件
"异常分类"为事件事件子类
*
* @param dcEventServiceArea 服务区异常事件
"异常分类"为事件事件子类
* @return 结果
*/
int updateDcEventServiceArea(DcEventServiceArea dcEventServiceArea);
/**
* 批量删除服务区异常事件
"异常分类"为事件事件子类
*
* @param ids 需要删除的服务区异常事件
"异常分类"为事件事件子类主键集合
* @return 结果
*/
int deleteDcEventServiceAreaByIds(String[] ids);
/**
* 删除服务区异常事件
"异常分类"为事件事件子类信息
*
* @param id 服务区异常事件
"异常分类"为事件事件子类主键
* @return 结果
*/
int deleteDcEventServiceAreaById(String id);
}

92
zc-business/src/main/java/com/zc/business/service/IDcEventTrafficCongestionService.java

@ -0,0 +1,92 @@
package com.zc.business.service;
import com.zc.business.domain.DcEventTrafficCongestion;
import java.util.List;
/**
* 交通拥堵事件
"拥堵类型"为事件事件子类Service接口
*
* @author ruoyi
* @date 2024-01-12
*/
public interface IDcEventTrafficCongestionService
{
/**
* 查询交通拥堵事件
"拥堵类型"为事件事件子类
*
* @param id 交通拥堵事件
"拥堵类型"为事件事件子类主键
* @return 交通拥堵事件
"拥堵类型"为事件事件子类
*/
public DcEventTrafficCongestion selectDcEventTrafficCongestionById(String id);
/**
* 查询交通拥堵事件
"拥堵类型"为事件事件子类列表
*
* @param dcEventTrafficCongestion 交通拥堵事件
"拥堵类型"为事件事件子类
* @return 交通拥堵事件
"拥堵类型"为事件事件子类集合
*/
List<DcEventTrafficCongestion> selectDcEventTrafficCongestionList(DcEventTrafficCongestion dcEventTrafficCongestion);
/**
* 新增交通拥堵事件
"拥堵类型"为事件事件子类
*
* @param dcEventTrafficCongestion 交通拥堵事件
"拥堵类型"为事件事件子类
* @return 结果
*/
int insertDcEventTrafficCongestion(DcEventTrafficCongestion dcEventTrafficCongestion);
/**
* 修改交通拥堵事件
"拥堵类型"为事件事件子类
*
* @param dcEventTrafficCongestion 交通拥堵事件
"拥堵类型"为事件事件子类
* @return 结果
*/
int updateDcEventTrafficCongestion(DcEventTrafficCongestion dcEventTrafficCongestion);
/**
* 批量删除交通拥堵事件
"拥堵类型"为事件事件子类
*
* @param ids 需要删除的交通拥堵事件
"拥堵类型"为事件事件子类主键集合
* @return 结果
*/
int deleteDcEventTrafficCongestionByIds(String[] ids);
/**
* 删除交通拥堵事件
"拥堵类型"为事件事件子类信息
*
* @param id 交通拥堵事件
"拥堵类型"为事件事件子类主键
* @return 结果
*/
int deleteDcEventTrafficCongestionById(String id);
}

92
zc-business/src/main/java/com/zc/business/service/IDcEventTrafficControlService.java

@ -0,0 +1,92 @@
package com.zc.business.service;
import com.zc.business.domain.DcEventTrafficControl;
import java.util.List;
/**
* 交通管制事件
"管制设施"为事件事件子类Service接口
*
* @author ruoyi
* @date 2024-01-12
*/
public interface IDcEventTrafficControlService
{
/**
* 查询交通管制事件
"管制设施"为事件事件子类
*
* @param id 交通管制事件
"管制设施"为事件事件子类主键
* @return 交通管制事件
"管制设施"为事件事件子类
*/
public DcEventTrafficControl selectDcEventTrafficControlById(String id);
/**
* 查询交通管制事件
"管制设施"为事件事件子类列表
*
* @param dcEventTrafficControl 交通管制事件
"管制设施"为事件事件子类
* @return 交通管制事件
"管制设施"为事件事件子类集合
*/
List<DcEventTrafficControl> selectDcEventTrafficControlList(DcEventTrafficControl dcEventTrafficControl);
/**
* 新增交通管制事件
"管制设施"为事件事件子类
*
* @param dcEventTrafficControl 交通管制事件
"管制设施"为事件事件子类
* @return 结果
*/
int insertDcEventTrafficControl(DcEventTrafficControl dcEventTrafficControl);
/**
* 修改交通管制事件
"管制设施"为事件事件子类
*
* @param dcEventTrafficControl 交通管制事件
"管制设施"为事件事件子类
* @return 结果
*/
int updateDcEventTrafficControl(DcEventTrafficControl dcEventTrafficControl);
/**
* 批量删除交通管制事件
"管制设施"为事件事件子类
*
* @param ids 需要删除的交通管制事件
"管制设施"为事件事件子类主键集合
* @return 结果
*/
int deleteDcEventTrafficControlByIds(String[] ids);
/**
* 删除交通管制事件
"管制设施"为事件事件子类信息
*
* @param id 交通管制事件
"管制设施"为事件事件子类主键
* @return 结果
*/
int deleteDcEventTrafficControlById(String id);
}

77
zc-business/src/main/java/com/zc/business/service/IDcEventVehicleAccidentService.java

@ -0,0 +1,77 @@
package com.zc.business.service;
import com.zc.business.domain.DcEventVehicleAccident;
import java.util.List;
/**
* 车辆事故事件
Service接口
*
* @author ruoyi
* @date 2024-01-12
*/
public interface IDcEventVehicleAccidentService
{
/**
* 查询车辆事故事件
*
* @param id 车辆事故事件
主键
* @return 车辆事故事件
*/
public DcEventVehicleAccident selectDcEventVehicleAccidentById(String id);
/**
* 查询车辆事故事件
列表
*
* @param dcEventVehicleAccident 车辆事故事件
* @return 车辆事故事件
集合
*/
List<DcEventVehicleAccident> selectDcEventVehicleAccidentList(DcEventVehicleAccident dcEventVehicleAccident);
/**
* 新增车辆事故事件
*
* @param dcEventVehicleAccident 车辆事故事件
* @return 结果
*/
int insertDcEventVehicleAccident(DcEventVehicleAccident dcEventVehicleAccident);
/**
* 修改车辆事故事件
*
* @param dcEventVehicleAccident 车辆事故事件
* @return 结果
*/
int updateDcEventVehicleAccident(DcEventVehicleAccident dcEventVehicleAccident);
/**
* 批量删除车辆事故事件
*
* @param ids 需要删除的车辆事故事件
主键集合
* @return 结果
*/
int deleteDcEventVehicleAccidentByIds(String[] ids);
/**
* 删除车辆事故事件
信息
*
* @param id 车辆事故事件
主键
* @return 结果
*/
int deleteDcEventVehicleAccidentById(String id);
}

64
zc-business/src/main/java/com/zc/business/service/IDcRampService.java

@ -0,0 +1,64 @@
package com.zc.business.service;
import com.zc.business.domain.DcRamp;
import java.util.List;
/**
* 匝道信息Service接口
*
* @author ruoyi
* @date 2024-01-12
*/
public interface IDcRampService
{
/**
* 查询匝道信息
*
* @param id 匝道信息主键
* @return 匝道信息
*/
public DcRamp selectDcRampById(Long id);
/**
* 查询匝道信息列表
*
* @param dcRamp 匝道信息
* @return 匝道信息集合
*/
List<DcRamp> selectDcRampList(DcRamp dcRamp);
/**
* 新增匝道信息
*
* @param dcRamp 匝道信息
* @return 结果
*/
int insertDcRamp(DcRamp dcRamp);
/**
* 修改匝道信息
*
* @param dcRamp 匝道信息
* @return 结果
*/
int updateDcRamp(DcRamp dcRamp);
/**
* 批量删除匝道信息
*
* @param ids 需要删除的匝道信息主键集合
* @return 结果
*/
int deleteDcRampByIds(Long[] ids);
/**
* 删除匝道信息信息
*
* @param id 匝道信息主键
* @return 结果
*/
int deleteDcRampById(Long id);
List<DcRamp> selectDcRampListAll(Long type);
}

171
zc-business/src/main/java/com/zc/business/service/impl/DcEventAbnormalWeatherServiceImpl.java

@ -0,0 +1,171 @@
package com.zc.business.service.impl;
import java.util.List;
import com.ruoyi.common.core.domain.model.LoginUser;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.uuid.IdUtils;
import com.zc.business.domain.DcEventAbnormalWeather;
import com.zc.business.mapper.DcEventAbnormalWeatherMapper;
import com.zc.business.mapper.DcEventMapper;
import com.zc.business.service.IDcEventAbnormalWeatherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import static com.ruoyi.common.utils.SecurityUtils.getLoginUser;
/**
* 设备设施隐患事件
"异常天气"为事件事件子类Service业务层处理
*
* @author ruoyi
* @date 2024-01-12
*/
@Service
@Transactional
public class DcEventAbnormalWeatherServiceImpl implements IDcEventAbnormalWeatherService
{
@Autowired
private DcEventAbnormalWeatherMapper dcEventAbnormalWeatherMapper;
@Autowired
private DcEventMapper dcEventMapper;
/**
* 查询设备设施隐患事件
"异常天气"为事件事件子类
*
* @param id 设备设施隐患事件
"异常天气"为事件事件子类主键
* @return 设备设施隐患事件
"异常天气"为事件事件子类
*/
@Override
public DcEventAbnormalWeather selectDcEventAbnormalWeatherById(String id)
{
return dcEventAbnormalWeatherMapper.selectDcEventAbnormalWeatherById(id);
}
/**
* 查询设备设施隐患事件
"异常天气"为事件事件子类列表
*
* @param dcEventAbnormalWeather 设备设施隐患事件
"异常天气"为事件事件子类
* @return 设备设施隐患事件
"异常天气"为事件事件子类
*/
@Override
public List<DcEventAbnormalWeather> selectDcEventAbnormalWeatherList(DcEventAbnormalWeather dcEventAbnormalWeather)
{
return dcEventAbnormalWeatherMapper.selectDcEventAbnormalWeatherList(dcEventAbnormalWeather);
}
/**
* 新增设备设施隐患事件
"异常天气"为事件事件子类
*
* @param dcEventAbnormalWeather 设备设施隐患事件
"异常天气"为事件事件子类
* @return 结果
*/
@Override
public int insertDcEventAbnormalWeather(DcEventAbnormalWeather dcEventAbnormalWeather)
{
//获取当前登录用户信息
LoginUser loginUser = getLoginUser();
Long userId = loginUser.getUser().getUserId();
//设置处理人员
dcEventAbnormalWeather.getDcEvent().setUserId(userId);
//设置事件Id UUID无下划线格式32
String uuid = IdUtils.fastSimpleUUID();
//设置交通事件id
dcEventAbnormalWeather.setId(uuid);
//设置 事件表id
dcEventAbnormalWeather.getDcEvent().setId(uuid);
//设置事件 主类
dcEventAbnormalWeather.getDcEvent().setEventType(10L);
//事件创建时间
dcEventAbnormalWeather.getDcEvent().setCreateTime(DateUtils.getNowDate());
int s = dcEventAbnormalWeatherMapper.insertDcEventAbnormalWeather(dcEventAbnormalWeather);
if (s >0) {
//TODO
System.out.println("执行插入事件流程表***"+uuid);
int i = dcEventMapper.insertDcEvent(dcEventAbnormalWeather.getDcEvent());
}
return s;
}
/**
* 修改设备设施隐患事件
"异常天气"为事件事件子类
*
* @param dcEventAbnormalWeather 设备设施隐患事件
"异常天气"为事件事件子类
* @return 结果
*/
@Override
public int updateDcEventAbnormalWeather(DcEventAbnormalWeather dcEventAbnormalWeather)
{
//获取当前登录用户信息
LoginUser loginUser = getLoginUser();
Long userId = loginUser.getUser().getUserId();
//设置处理人员
dcEventAbnormalWeather.getDcEvent().setUserId(userId);
//事件修改时间
dcEventAbnormalWeather.getDcEvent().setUpdateTime(DateUtils.getNowDate());
int s = dcEventAbnormalWeatherMapper.updateDcEventAbnormalWeather(dcEventAbnormalWeather);
if (s >0) {
//TODO
System.out.println("执行修改事件流程表***");
int i = dcEventMapper.updateDcEvent(dcEventAbnormalWeather.getDcEvent());
}
return s;
}
/**
* 批量删除设备设施隐患事件
"异常天气"为事件事件子类
*
* @param ids 需要删除的设备设施隐患事件
"异常天气"为事件事件子类主键
* @return 结果
*/
@Override
public int deleteDcEventAbnormalWeatherByIds(String[] ids)
{
return dcEventAbnormalWeatherMapper.deleteDcEventAbnormalWeatherByIds(ids);
}
/**
* 删除设备设施隐患事件
"异常天气"为事件事件子类信息
*
* @param id 设备设施隐患事件
"异常天气"为事件事件子类主键
* @return 结果
*/
@Override
public int deleteDcEventAbnormalWeatherById(String id)
{
return dcEventAbnormalWeatherMapper.deleteDcEventAbnormalWeatherById(id);
}
}

133
zc-business/src/main/java/com/zc/business/service/impl/DcEventAccidentServiceImpl.java

@ -0,0 +1,133 @@
package com.zc.business.service.impl;
import java.util.List;
import com.ruoyi.common.core.domain.model.LoginUser;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.uuid.IdUtils;
import com.zc.business.domain.DcEventAccident;
import com.zc.business.mapper.DcEventAccidentMapper;
import com.zc.business.mapper.DcEventMapper;
import com.zc.business.service.IDcEventAccidentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import static com.ruoyi.common.utils.SecurityUtils.getLoginUser;
/**
* 交通事故事件Service业务层处理
*
* @author ruoyi
* @date 2024-01-12
*/
@Service
@Transactional
public class DcEventAccidentServiceImpl implements IDcEventAccidentService {
@Autowired
private DcEventAccidentMapper dcEventAccidentMapper;
@Autowired
private DcEventMapper dcEventMapper;
/**
* 查询交通事故事件
*
* @param id 交通事故事件主键
* @return 交通事故事件
*/
@Override
public DcEventAccident selectDcEventAccidentById(String id) {
return dcEventAccidentMapper.selectDcEventAccidentById(id);
}
/**
* 查询交通事故事件列表
*
* @param dcEventAccident 交通事故事件
* @return 交通事故事件
*/
@Override
public List<DcEventAccident> selectDcEventAccidentList(DcEventAccident dcEventAccident) {
return dcEventAccidentMapper.selectDcEventAccidentList(dcEventAccident);
}
/**
* 新增交通事故事件
*
* @param dcEventAccident 交通事故事件
* @return 结果
*/
@Override
public int insertDcEventAccident(DcEventAccident dcEventAccident) {
//获取当前登录用户信息
LoginUser loginUser = getLoginUser();
Long userId = loginUser.getUser().getUserId();
//设置处理人员
dcEventAccident.getDcEvent().setUserId(userId);
//设置事件Id UUID无下划线格式32
String uuid = IdUtils.fastSimpleUUID();
//设置交通事件id
dcEventAccident.setId(uuid);
//设置 事件表id
dcEventAccident.getDcEvent().setId(uuid);
//设置事件 主类
dcEventAccident.getDcEvent().setEventType(1L);
//事件创建时间
dcEventAccident.getDcEvent().setCreateTime(DateUtils.getNowDate());
int s = dcEventAccidentMapper.insertDcEventAccident(dcEventAccident);
if (s >0) {
//TODO
System.out.println("执行插入事件流程表***"+uuid);
int i = dcEventMapper.insertDcEvent(dcEventAccident.getDcEvent());
}
return s;
}
/**
* 修改交通事故事件
*
* @param dcEventAccident 交通事故事件
* @return 结果
*/
@Override
public int updateDcEventAccident(DcEventAccident dcEventAccident) {
//获取当前登录用户信息
LoginUser loginUser = getLoginUser();
Long userId = loginUser.getUser().getUserId();
//设置处理人员
dcEventAccident.getDcEvent().setUserId(userId);
//事件修改时间
dcEventAccident.getDcEvent().setUpdateTime(DateUtils.getNowDate());
int s = dcEventAccidentMapper.updateDcEventAccident(dcEventAccident);
if (s >0) {
//TODO
System.out.println("执行修改事件流程表***");
int i = dcEventMapper.updateDcEvent(dcEventAccident.getDcEvent());
}
return s;
}
/**
* 批量删除交通事故事件
*
* @param ids 需要删除的交通事故事件主键
* @return 结果
*/
@Override
public int deleteDcEventAccidentByIds(String[] ids) {
return dcEventAccidentMapper.deleteDcEventAccidentByIds(ids);
}
/**
* 删除交通事故事件信息
*
* @param id 交通事故事件主键
* @return 结果
*/
@Override
public int deleteDcEventAccidentById(String id) {
return dcEventAccidentMapper.deleteDcEventAccidentById(id);
}
}

170
zc-business/src/main/java/com/zc/business/service/impl/DcEventConstructionServiceImpl.java

@ -0,0 +1,170 @@
package com.zc.business.service.impl;
import java.util.List;
import com.ruoyi.common.core.domain.model.LoginUser;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.uuid.IdUtils;
import com.zc.business.domain.DcEventConstruction;
import com.zc.business.mapper.DcEventConstructionMapper;
import com.zc.business.mapper.DcEventMapper;
import com.zc.business.service.IDcEventConstructionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import static com.ruoyi.common.utils.SecurityUtils.getLoginUser;
/**
* 施工建设事件
"施工分类"为事件事件子类Service业务层处理
*
* @author ruoyi
* @date 2024-01-12
*/
@Service
@Transactional
public class DcEventConstructionServiceImpl implements IDcEventConstructionService
{
@Autowired
private DcEventConstructionMapper dcEventConstructionMapper;
@Autowired
private DcEventMapper dcEventMapper;
/**
* 查询施工建设事件
"施工分类"为事件事件子类
*
* @param id 施工建设事件
"施工分类"为事件事件子类主键
* @return 施工建设事件
"施工分类"为事件事件子类
*/
@Override
public DcEventConstruction selectDcEventConstructionById(String id)
{
return dcEventConstructionMapper.selectDcEventConstructionById(id);
}
/**
* 查询施工建设事件
"施工分类"为事件事件子类列表
*
* @param dcEventConstruction 施工建设事件
"施工分类"为事件事件子类
* @return 施工建设事件
"施工分类"为事件事件子类
*/
@Override
public List<DcEventConstruction> selectDcEventConstructionList(DcEventConstruction dcEventConstruction)
{
return dcEventConstructionMapper.selectDcEventConstructionList(dcEventConstruction);
}
/**
* 新增施工建设事件
"施工分类"为事件事件子类
*
* @param dcEventConstruction 施工建设事件
"施工分类"为事件事件子类
* @return 结果
*/
@Override
public int insertDcEventConstruction(DcEventConstruction dcEventConstruction)
{
//获取当前登录用户信息
LoginUser loginUser = getLoginUser();
Long userId = loginUser.getUser().getUserId();
//设置处理人员
dcEventConstruction.getDcEvent().setUserId(userId);
//设置事件Id UUID无下划线格式32
String uuid = IdUtils.fastSimpleUUID();
//设置交通事件id
dcEventConstruction.setId(uuid);
//设置 事件表id
dcEventConstruction.getDcEvent().setId(uuid);
//设置事件 主类
dcEventConstruction.getDcEvent().setEventType(7L);
//事件创建时间
dcEventConstruction.getDcEvent().setCreateTime(DateUtils.getNowDate());
int s = dcEventConstructionMapper.insertDcEventConstruction(dcEventConstruction);
if (s >0) {
//TODO
System.out.println("执行插入事件流程表***"+uuid);
int i = dcEventMapper.insertDcEvent(dcEventConstruction.getDcEvent());
}
return s;
}
/**
* 修改施工建设事件
"施工分类"为事件事件子类
*
* @param dcEventConstruction 施工建设事件
"施工分类"为事件事件子类
* @return 结果
*/
@Override
public int updateDcEventConstruction(DcEventConstruction dcEventConstruction)
{
//获取当前登录用户信息
LoginUser loginUser = getLoginUser();
Long userId = loginUser.getUser().getUserId();
//设置处理人员
dcEventConstruction.getDcEvent().setUserId(userId);
//事件修改时间
dcEventConstruction.getDcEvent().setUpdateTime(DateUtils.getNowDate());
int s = dcEventConstructionMapper.updateDcEventConstruction(dcEventConstruction);
if (s >0) {
//TODO
System.out.println("执行修改事件流程表***");
int i = dcEventMapper.updateDcEvent(dcEventConstruction.getDcEvent());
}
return s;
}
/**
* 批量删除施工建设事件
"施工分类"为事件事件子类
*
* @param ids 需要删除的施工建设事件
"施工分类"为事件事件子类主键
* @return 结果
*/
@Override
public int deleteDcEventConstructionByIds(String[] ids)
{
return dcEventConstructionMapper.deleteDcEventConstructionByIds(ids);
}
/**
* 删除施工建设事件
"施工分类"为事件事件子类信息
*
* @param id 施工建设事件
"施工分类"为事件事件子类主键
* @return 结果
*/
@Override
public int deleteDcEventConstructionById(String id)
{
return dcEventConstructionMapper.deleteDcEventConstructionById(id);
}
}

169
zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceAreaServiceImpl.java

@ -0,0 +1,169 @@
package com.zc.business.service.impl;
import java.util.List;
import com.ruoyi.common.core.domain.model.LoginUser;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.uuid.IdUtils;
import com.zc.business.domain.DcEventServiceArea;
import com.zc.business.mapper.DcEventMapper;
import com.zc.business.mapper.DcEventServiceAreaMapper;
import com.zc.business.service.IDcEventServiceAreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import static com.ruoyi.common.utils.SecurityUtils.getLoginUser;
/**
* 服务区异常事件
"异常分类"为事件事件子类Service业务层处理
*
* @author ruoyi
* @date 2024-01-12
*/
@Service
@Transactional
public class DcEventServiceAreaServiceImpl implements IDcEventServiceAreaService
{
@Autowired
private DcEventServiceAreaMapper dcEventServiceAreaMapper;
@Autowired
private DcEventMapper dcEventMapper;
/**
* 查询服务区异常事件
"异常分类"为事件事件子类
*
* @param id 服务区异常事件
"异常分类"为事件事件子类主键
* @return 服务区异常事件
"异常分类"为事件事件子类
*/
@Override
public DcEventServiceArea selectDcEventServiceAreaById(String id)
{
return dcEventServiceAreaMapper.selectDcEventServiceAreaById(id);
}
/**
* 查询服务区异常事件
"异常分类"为事件事件子类列表
*
* @param dcEventServiceArea 服务区异常事件
"异常分类"为事件事件子类
* @return 服务区异常事件
"异常分类"为事件事件子类
*/
@Override
public List<DcEventServiceArea> selectDcEventServiceAreaList(DcEventServiceArea dcEventServiceArea)
{
return dcEventServiceAreaMapper.selectDcEventServiceAreaList(dcEventServiceArea);
}
/**
* 新增服务区异常事件
"异常分类"为事件事件子类
*
* @param dcEventServiceArea 服务区异常事件
"异常分类"为事件事件子类
* @return 结果
*/
@Override
public int insertDcEventServiceArea(DcEventServiceArea dcEventServiceArea)
{
//获取当前登录用户信息
LoginUser loginUser = getLoginUser();
Long userId = loginUser.getUser().getUserId();
//设置处理人员
dcEventServiceArea.getDcEvent().setUserId(userId);
//设置事件Id UUID无下划线格式32
String uuid = IdUtils.fastSimpleUUID();
//设置交通事件id
dcEventServiceArea.setId(uuid);
//设置 事件表id
dcEventServiceArea.getDcEvent().setId(uuid);
//设置事件 主类
dcEventServiceArea.getDcEvent().setEventType(8L);
//事件创建时间
dcEventServiceArea.getDcEvent().setCreateTime(DateUtils.getNowDate());
int s = dcEventServiceAreaMapper.insertDcEventServiceArea(dcEventServiceArea);
if (s >0) {
//TODO
System.out.println("执行插入事件流程表***"+uuid);
int i = dcEventMapper.insertDcEvent(dcEventServiceArea.getDcEvent());
}
return s;
}
/**
* 修改服务区异常事件
"异常分类"为事件事件子类
*
* @param dcEventServiceArea 服务区异常事件
"异常分类"为事件事件子类
* @return 结果
*/
@Override
public int updateDcEventServiceArea(DcEventServiceArea dcEventServiceArea)
{
//获取当前登录用户信息
LoginUser loginUser = getLoginUser();
Long userId = loginUser.getUser().getUserId();
//设置处理人员
dcEventServiceArea.getDcEvent().setUserId(userId);
//事件修改时间
dcEventServiceArea.getDcEvent().setUpdateTime(DateUtils.getNowDate());
int s = dcEventServiceAreaMapper.updateDcEventServiceArea(dcEventServiceArea);
if (s >0) {
//TODO
System.out.println("执行修改事件流程表***");
int i = dcEventMapper.updateDcEvent(dcEventServiceArea.getDcEvent());
}
return s;
}
/**
* 批量删除服务区异常事件
"异常分类"为事件事件子类
*
* @param ids 需要删除的服务区异常事件
"异常分类"为事件事件子类主键
* @return 结果
*/
@Override
public int deleteDcEventServiceAreaByIds(String[] ids)
{
return dcEventServiceAreaMapper.deleteDcEventServiceAreaByIds(ids);
}
/**
* 删除服务区异常事件
"异常分类"为事件事件子类信息
*
* @param id 服务区异常事件
"异常分类"为事件事件子类主键
* @return 结果
*/
@Override
public int deleteDcEventServiceAreaById(String id)
{
return dcEventServiceAreaMapper.deleteDcEventServiceAreaById(id);
}
}

125
zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java

@ -1,35 +1,23 @@
package com.zc.business.service.impl;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.core.type.TypeReference;
import com.ruoyi.common.core.domain.model.LoginUser;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.uuid.IdUtils;
import com.zc.business.domain.DcEvent;
import com.zc.business.mapper.DcEventMapper;
import com.zc.business.service.IDcEventService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import static com.ruoyi.common.utils.SecurityUtils.getLoginUser;
/**
* 事件信息Service业务层处理
*
* @author ruoyi
* @date 2024-01-03
* @date 2024-01-12
*/
@Service
public class DcEventServiceImpl implements IDcEventService {
public class DcEventServiceImpl implements IDcEventService
{
@Autowired
private DcEventMapper dcEventMapper;
@ -40,21 +28,9 @@ public class DcEventServiceImpl implements IDcEventService {
* @return 事件信息
*/
@Override
public DcEvent selectDcEventById(String id) {
DcEvent dcEvent = dcEventMapper.selectDcEventById(id);
if (dcEvent.getOtherConfig() !=null && !dcEvent.getOtherConfig().isEmpty()){
ObjectMapper mapper = new ObjectMapper();
try {
Map<String, Object> map = mapper.readValue(dcEvent.getOtherConfig(), new TypeReference<Map<String, Object>>() {
});
dcEvent.setEventOtherConfig(map); // 设置转换后的 Map 对象到 eventOtherConfig 属性中
System.out.println(map);
} catch (JsonProcessingException e) {
throw new RuntimeException(e);
}
}
return dcEvent;
public DcEvent selectDcEventById(String id)
{
return dcEventMapper.selectDcEventById(id);
}
/**
@ -64,32 +40,9 @@ public class DcEventServiceImpl implements IDcEventService {
* @return 事件信息
*/
@Override
public List<DcEvent> selectDcEventList(DcEvent dcEvent) {
if (dcEvent.getStakeMarkId()!=null){
//处理URl地址栏获取参数+号消失
String replace = dcEvent.getStakeMarkId().replace(" ", "+");
dcEvent.setStakeMarkId(replace);
String replace1 = dcEvent.getEndStakeMarkId().replace(" ", "+");
dcEvent.setEndStakeMarkId(replace1);
}
List<DcEvent> dcEvents = dcEventMapper.selectDcEventList(dcEvent);
for (DcEvent event : dcEvents) {
if (event.getOtherConfig() !=null && !event.getOtherConfig().isEmpty()){
ObjectMapper mapper = new ObjectMapper();
try {
Map<String, Object> map = mapper.readValue(event.getOtherConfig(), new TypeReference<Map<String, Object>>() {
});
event.setEventOtherConfig(map); // 设置转换后的 Map 对象到 eventOtherConfig 属性中
} catch (JsonProcessingException e) {
throw new RuntimeException(e);
}
}
}
return dcEvents;
public List<DcEvent> selectDcEventList(DcEvent dcEvent)
{
return dcEventMapper.selectDcEventList(dcEvent);
}
/**
@ -99,31 +52,10 @@ public class DcEventServiceImpl implements IDcEventService {
* @return 结果
*/
@Override
public int insertDcEvent(DcEvent dcEvent) {
//获取当前登录用户信息
LoginUser loginUser = getLoginUser();
Long userId = loginUser.getUser().getUserId();
//设置处理人员
dcEvent.setHandlingPerson(userId);
if (dcEvent.getEventOtherConfig()!=null){
Map<String, Object> eventOtherConfig = dcEvent.getEventOtherConfig();
// 将 Map 对象转成 JSON 字符串
String jsonString = convertMapToJsonString(eventOtherConfig);
dcEvent.setOtherConfig(jsonString);
}
//设置事件Id UUID无下划线格式32
String uuid = IdUtils.fastSimpleUUID();
dcEvent.setId(uuid);
public int insertDcEvent(DcEvent dcEvent)
{
dcEvent.setCreateTime(DateUtils.getNowDate());
int s = dcEventMapper.insertDcEvent(dcEvent);
if (s >0) {
//TODO
System.out.println("执行插入事件流程表***"+uuid);
}
return s;
return dcEventMapper.insertDcEvent(dcEvent);
}
/**
@ -133,20 +65,8 @@ if (dcEvent.getEventOtherConfig()!=null){
* @return 结果
*/
@Override
public int updateDcEvent(DcEvent dcEvent) {
//获取当前登录用户信息
LoginUser loginUser = getLoginUser();
Long userId = loginUser.getUser().getUserId();
//设置处理人员
dcEvent.setHandlingPerson(userId);
if (dcEvent.getEventOtherConfig()!=null){
Map<String, Object> eventOtherConfig = dcEvent.getEventOtherConfig();
// 将 Map 对象转成 JSON 字符串
String jsonString = convertMapToJsonString(eventOtherConfig);
dcEvent.setOtherConfig(jsonString);
}
public int updateDcEvent(DcEvent dcEvent)
{
dcEvent.setUpdateTime(DateUtils.getNowDate());
return dcEventMapper.updateDcEvent(dcEvent);
}
@ -158,7 +78,8 @@ if (dcEvent.getEventOtherConfig()!=null){
* @return 结果
*/
@Override
public int deleteDcEventByIds(String[] ids) {
public int deleteDcEventByIds(String[] ids)
{
return dcEventMapper.deleteDcEventByIds(ids);
}
@ -169,18 +90,8 @@ if (dcEvent.getEventOtherConfig()!=null){
* @return 结果
*/
@Override
public int deleteDcEventById(String id) {
public int deleteDcEventById(String id)
{
return dcEventMapper.deleteDcEventById(id);
}
public static String convertMapToJsonString(Map<String, Object> map) {
try {
ObjectMapper objectMapper = new ObjectMapper();
return objectMapper.writeValueAsString(map);
} catch (Exception e) {
// 异常处理
return null;
}
}
}

167
zc-business/src/main/java/com/zc/business/service/impl/DcEventTrafficCongestionServiceImpl.java

@ -0,0 +1,167 @@
package com.zc.business.service.impl;
import java.util.List;
import com.ruoyi.common.core.domain.model.LoginUser;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.uuid.IdUtils;
import com.zc.business.domain.DcEventTrafficCongestion;
import com.zc.business.mapper.DcEventMapper;
import com.zc.business.mapper.DcEventTrafficCongestionMapper;
import com.zc.business.service.IDcEventTrafficCongestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import static com.ruoyi.common.utils.SecurityUtils.getLoginUser;
/**
* 交通拥堵事件
"拥堵类型"为事件事件子类Service业务层处理
*
* @author ruoyi
* @date 2024-01-12
*/
@Service
@Transactional
public class DcEventTrafficCongestionServiceImpl implements IDcEventTrafficCongestionService
{
@Autowired
private DcEventTrafficCongestionMapper dcEventTrafficCongestionMapper;
@Autowired
private DcEventMapper dcEventMapper;
/**
* 查询交通拥堵事件
"拥堵类型"为事件事件子类
*
* @param id 交通拥堵事件
"拥堵类型"为事件事件子类主键
* @return 交通拥堵事件
"拥堵类型"为事件事件子类
*/
@Override
public DcEventTrafficCongestion selectDcEventTrafficCongestionById(String id)
{
return dcEventTrafficCongestionMapper.selectDcEventTrafficCongestionById(id);
}
/**
* 查询交通拥堵事件
"拥堵类型"为事件事件子类列表
*
* @param dcEventTrafficCongestion 交通拥堵事件
"拥堵类型"为事件事件子类
* @return 交通拥堵事件
"拥堵类型"为事件事件子类
*/
@Override
public List<DcEventTrafficCongestion> selectDcEventTrafficCongestionList(DcEventTrafficCongestion dcEventTrafficCongestion)
{
return dcEventTrafficCongestionMapper.selectDcEventTrafficCongestionList(dcEventTrafficCongestion);
}
/**
* 新增交通拥堵事件
*
* @param dcEventTrafficCongestion 交通拥堵事件"拥堵类型"为事件事件子类
* @return 结果
*/
@Override
public int insertDcEventTrafficCongestion(DcEventTrafficCongestion dcEventTrafficCongestion)
{
//获取当前登录用户信息
LoginUser loginUser = getLoginUser();
Long userId = loginUser.getUser().getUserId();
//设置处理人员
dcEventTrafficCongestion.getDcEvent().setUserId(userId);
//设置事件Id UUID无下划线格式32
String uuid = IdUtils.fastSimpleUUID();
//设置交通事件id
dcEventTrafficCongestion.setId(uuid);
//设置 事件表id
dcEventTrafficCongestion.getDcEvent().setId(uuid);
//设置事件 主类
dcEventTrafficCongestion.getDcEvent().setEventType(4L);
//设置事件子类 dcEventTrafficCongestion.getDcEvent().setEventSubclass();
//事件创建时间
dcEventTrafficCongestion.getDcEvent().setCreateTime(DateUtils.getNowDate());
int s = dcEventTrafficCongestionMapper.insertDcEventTrafficCongestion(dcEventTrafficCongestion);
if (s >0) {
//TODO
System.out.println("执行插入事件流程表***"+uuid);
int i = dcEventMapper.insertDcEvent(dcEventTrafficCongestion.getDcEvent());
}
return s;
}
/**
* 修改交通拥堵事件
"拥堵类型"为事件事件子类
*
* @param dcEventTrafficCongestion 交通拥堵事件
"拥堵类型"为事件事件子类
* @return 结果
*/
@Override
public int updateDcEventTrafficCongestion(DcEventTrafficCongestion dcEventTrafficCongestion)
{
//获取当前登录用户信息
LoginUser loginUser = getLoginUser();
Long userId = loginUser.getUser().getUserId();
//设置修改处理人员
dcEventTrafficCongestion.getDcEvent().setUserId(userId);
//事件修改时间
dcEventTrafficCongestion.getDcEvent().setUpdateTime(DateUtils.getNowDate());
int s = dcEventTrafficCongestionMapper.updateDcEventTrafficCongestion(dcEventTrafficCongestion);
if (s >0) {
//TODO
System.out.println("执行修改事件流程表***");
int i = dcEventMapper.updateDcEvent(dcEventTrafficCongestion.getDcEvent());
}
return s;
}
/**
* 批量删除交通拥堵事件
"拥堵类型"为事件事件子类
*
* @param ids 需要删除的交通拥堵事件
"拥堵类型"为事件事件子类主键
* @return 结果
*/
@Override
public int deleteDcEventTrafficCongestionByIds(String[] ids)
{
return dcEventTrafficCongestionMapper.deleteDcEventTrafficCongestionByIds(ids);
}
/**
* 删除交通拥堵事件
"拥堵类型"为事件事件子类信息
*
* @param id 交通拥堵事件
"拥堵类型"为事件事件子类主键
* @return 结果
*/
@Override
public int deleteDcEventTrafficCongestionById(String id)
{
return dcEventTrafficCongestionMapper.deleteDcEventTrafficCongestionById(id);
}
}

170
zc-business/src/main/java/com/zc/business/service/impl/DcEventTrafficControlServiceImpl.java

@ -0,0 +1,170 @@
package com.zc.business.service.impl;
import java.util.List;
import com.ruoyi.common.core.domain.model.LoginUser;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.uuid.IdUtils;
import com.zc.business.domain.DcEventTrafficControl;
import com.zc.business.mapper.DcEventMapper;
import com.zc.business.mapper.DcEventTrafficControlMapper;
import com.zc.business.service.IDcEventTrafficControlService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import static com.ruoyi.common.utils.SecurityUtils.getLoginUser;
/**
* 交通管制事件
"管制设施"为事件事件子类Service业务层处理
*
* @author ruoyi
* @date 2024-01-12
*/
@Service
@Transactional
public class DcEventTrafficControlServiceImpl implements IDcEventTrafficControlService
{
@Autowired
private DcEventTrafficControlMapper dcEventTrafficControlMapper;
@Autowired
private DcEventMapper dcEventMapper;
/**
* 查询交通管制事件
"管制设施"为事件事件子类
*
* @param id 交通管制事件
"管制设施"为事件事件子类主键
* @return 交通管制事件
"管制设施"为事件事件子类
*/
@Override
public DcEventTrafficControl selectDcEventTrafficControlById(String id)
{
return dcEventTrafficControlMapper.selectDcEventTrafficControlById(id);
}
/**
* 查询交通管制事件
"管制设施"为事件事件子类列表
*
* @param dcEventTrafficControl 交通管制事件
"管制设施"为事件事件子类
* @return 交通管制事件
"管制设施"为事件事件子类
*/
@Override
public List<DcEventTrafficControl> selectDcEventTrafficControlList(DcEventTrafficControl dcEventTrafficControl)
{
return dcEventTrafficControlMapper.selectDcEventTrafficControlList(dcEventTrafficControl);
}
/**
* 新增交通管制事件
"管制设施"为事件事件子类
*
* @param dcEventTrafficControl 交通管制事件
"管制设施"为事件事件子类
* @return 结果
*/
@Override
public int insertDcEventTrafficControl(DcEventTrafficControl dcEventTrafficControl)
{
//获取当前登录用户信息
LoginUser loginUser = getLoginUser();
Long userId = loginUser.getUser().getUserId();
//设置处理人员
dcEventTrafficControl.getDcEvent().setUserId(userId);
//设置事件Id UUID无下划线格式32
String uuid = IdUtils.fastSimpleUUID();
//设置交通事件id
dcEventTrafficControl.setId(uuid);
//设置 事件表id
dcEventTrafficControl.getDcEvent().setId(uuid);
//设置事件 主类
dcEventTrafficControl.getDcEvent().setEventType(3L);
//事件创建时间
dcEventTrafficControl.getDcEvent().setCreateTime(DateUtils.getNowDate());
int s = dcEventTrafficControlMapper.insertDcEventTrafficControl(dcEventTrafficControl);
if (s >0) {
//TODO
System.out.println("执行插入事件流程表***"+uuid);
int i = dcEventMapper.insertDcEvent(dcEventTrafficControl.getDcEvent());
}
return s;
}
/**
* 修改交通管制事件
"管制设施"为事件事件子类
*
* @param dcEventTrafficControl 交通管制事件
"管制设施"为事件事件子类
* @return 结果
*/
@Override
public int updateDcEventTrafficControl(DcEventTrafficControl dcEventTrafficControl)
{
//获取当前登录用户信息
LoginUser loginUser = getLoginUser();
Long userId = loginUser.getUser().getUserId();
//设置处理人员
dcEventTrafficControl.getDcEvent().setUserId(userId);
//事件修改时间
dcEventTrafficControl.getDcEvent().setUpdateTime(DateUtils.getNowDate());
int s = dcEventTrafficControlMapper.updateDcEventTrafficControl(dcEventTrafficControl);
if (s >0) {
//TODO
System.out.println("执行修改事件流程表***");
int i = dcEventMapper.updateDcEvent(dcEventTrafficControl.getDcEvent());
}
return s;
}
/**
* 批量删除交通管制事件
"管制设施"为事件事件子类
*
* @param ids 需要删除的交通管制事件
"管制设施"为事件事件子类主键
* @return 结果
*/
@Override
public int deleteDcEventTrafficControlByIds(String[] ids)
{
return dcEventTrafficControlMapper.deleteDcEventTrafficControlByIds(ids);
}
/**
* 删除交通管制事件
"管制设施"为事件事件子类信息
*
* @param id 交通管制事件
"管制设施"为事件事件子类主键
* @return 结果
*/
@Override
public int deleteDcEventTrafficControlById(String id)
{
return dcEventTrafficControlMapper.deleteDcEventTrafficControlById(id);
}
}

153
zc-business/src/main/java/com/zc/business/service/impl/DcEventVehicleAccidentServiceImpl.java

@ -0,0 +1,153 @@
package com.zc.business.service.impl;
import java.util.List;
import com.ruoyi.common.core.domain.model.LoginUser;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.uuid.IdUtils;
import com.zc.business.domain.DcEventVehicleAccident;
import com.zc.business.mapper.DcEventMapper;
import com.zc.business.mapper.DcEventVehicleAccidentMapper;
import com.zc.business.service.IDcEventVehicleAccidentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import static com.ruoyi.common.utils.SecurityUtils.getLoginUser;
/**
* 车辆事故事件
Service业务层处理
*
* @author ruoyi
* @date 2024-01-12
*/
@Service
public class DcEventVehicleAccidentServiceImpl implements IDcEventVehicleAccidentService
{
@Autowired
private DcEventVehicleAccidentMapper dcEventVehicleAccidentMapper;
@Autowired
private DcEventMapper dcEventMapper;
/**
* 查询车辆事故事件
*
* @param id 车辆事故事件
主键
* @return 车辆事故事件
*/
@Override
public DcEventVehicleAccident selectDcEventVehicleAccidentById(String id)
{
return dcEventVehicleAccidentMapper.selectDcEventVehicleAccidentById(id);
}
/**
* 查询车辆事故事件
列表
*
* @param dcEventVehicleAccident 车辆事故事件
* @return 车辆事故事件
*/
@Override
public List<DcEventVehicleAccident> selectDcEventVehicleAccidentList(DcEventVehicleAccident dcEventVehicleAccident)
{
return dcEventVehicleAccidentMapper.selectDcEventVehicleAccidentList(dcEventVehicleAccident);
}
/**
* 新增车辆事故事件
*
* @param dcEventVehicleAccident 车辆事故事件
* @return 结果
*/
@Override
public int insertDcEventVehicleAccident(DcEventVehicleAccident dcEventVehicleAccident)
{
//获取当前登录用户信息
LoginUser loginUser = getLoginUser();
Long userId = loginUser.getUser().getUserId();
//设置处理人员
dcEventVehicleAccident.getDcEvent().setUserId(userId);
//设置事件Id UUID无下划线格式32
String uuid = IdUtils.fastSimpleUUID();
//设置交通事件id
dcEventVehicleAccident.setId(uuid);
//设置 事件表id
dcEventVehicleAccident.getDcEvent().setId(uuid);
//设置事件 主类
dcEventVehicleAccident.getDcEvent().setEventType(2L);
//事件创建时间
dcEventVehicleAccident.getDcEvent().setCreateTime(DateUtils.getNowDate());
int s = dcEventVehicleAccidentMapper.insertDcEventVehicleAccident(dcEventVehicleAccident);
if (s >0) {
//TODO
System.out.println("执行插入事件流程表***"+uuid);
int i = dcEventMapper.insertDcEvent(dcEventVehicleAccident.getDcEvent());
}
return s;
}
/**
* 修改车辆事故事件
*
* @param dcEventVehicleAccident 车辆事故事件
* @return 结果
*/
@Override
public int updateDcEventVehicleAccident(DcEventVehicleAccident dcEventVehicleAccident)
{
//获取当前登录用户信息
LoginUser loginUser = getLoginUser();
Long userId = loginUser.getUser().getUserId();
//设置处理人员
dcEventVehicleAccident.getDcEvent().setUserId(userId);
//事件修改时间
dcEventVehicleAccident.getDcEvent().setUpdateTime(DateUtils.getNowDate());
int s = dcEventVehicleAccidentMapper.updateDcEventVehicleAccident(dcEventVehicleAccident);
if (s >0) {
//TODO
System.out.println("执行修改事件流程表***");
int i = dcEventMapper.updateDcEvent(dcEventVehicleAccident.getDcEvent());
}
return s;
}
/**
* 批量删除车辆事故事件
*
* @param ids 需要删除的车辆事故事件
主键
* @return 结果
*/
@Override
public int deleteDcEventVehicleAccidentByIds(String[] ids)
{
return dcEventVehicleAccidentMapper.deleteDcEventVehicleAccidentByIds(ids);
}
/**
* 删除车辆事故事件
信息
*
* @param id 车辆事故事件
主键
* @return 结果
*/
@Override
public int deleteDcEventVehicleAccidentById(String id)
{
return dcEventVehicleAccidentMapper.deleteDcEventVehicleAccidentById(id);
}
}

102
zc-business/src/main/java/com/zc/business/service/impl/DcRampServiceImpl.java

@ -0,0 +1,102 @@
package com.zc.business.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.zc.business.domain.DcRamp;
import com.zc.business.mapper.DcRampMapper;
import com.zc.business.service.IDcRampService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* 匝道信息Service业务层处理
*
* @author ruoyi
* @date 2024-01-12
*/
@Service
public class DcRampServiceImpl implements IDcRampService
{
@Autowired
private DcRampMapper dcRampMapper;
/**
* 查询匝道信息
*
* @param id 匝道信息主键
* @return 匝道信息
*/
@Override
public DcRamp selectDcRampById(Long id)
{
return dcRampMapper.selectDcRampById(id);
}
/**
* 查询匝道信息列表
*
* @param dcRamp 匝道信息
* @return 匝道信息
*/
@Override
public List<DcRamp> selectDcRampList(DcRamp dcRamp)
{
return dcRampMapper.selectDcRampList(dcRamp);
}
/**
* 新增匝道信息
*
* @param dcRamp 匝道信息
* @return 结果
*/
@Override
public int insertDcRamp(DcRamp dcRamp)
{
dcRamp.setCreateTime(DateUtils.getNowDate());
return dcRampMapper.insertDcRamp(dcRamp);
}
/**
* 修改匝道信息
*
* @param dcRamp 匝道信息
* @return 结果
*/
@Override
public int updateDcRamp(DcRamp dcRamp)
{
dcRamp.setUpdateTime(DateUtils.getNowDate());
return dcRampMapper.updateDcRamp(dcRamp);
}
/**
* 批量删除匝道信息
*
* @param ids 需要删除的匝道信息主键
* @return 结果
*/
@Override
public int deleteDcRampByIds(Long[] ids)
{
return dcRampMapper.deleteDcRampByIds(ids);
}
/**
* 删除匝道信息信息
*
* @param id 匝道信息主键
* @return 结果
*/
@Override
public int deleteDcRampById(Long id)
{
return dcRampMapper.deleteDcRampById(id);
}
@Override
public List<DcRamp> selectDcRampListAll(Long type) {
return dcRampMapper.selectDcRampListAll(type);
}
}

68
zc-business/src/main/resources/mapper/business/DcEventAbnormalWeatherMapper.xml

@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zc.business.mapper.DcEventAbnormalWeatherMapper">
<resultMap type="com.zc.business.domain.DcEventAbnormalWeather" id="DcEventAbnormalWeatherResult">
<result property="id" column="id" />
<result property="weatherSituation" column="weather_situation" />
<result property="emergencyLevel" column="emergency_level" />
<result property="endStakeMark" column="end_stake_mark" />
</resultMap>
<sql id="selectDcEventAbnormalWeatherVo">
select id, weather_situation, emergency_level, end_stake_mark from dc_event_abnormal_weather
</sql>
<select id="selectDcEventAbnormalWeatherList" parameterType="DcEventAbnormalWeather" resultMap="DcEventAbnormalWeatherResult">
<include refid="selectDcEventAbnormalWeatherVo"/>
<where>
<if test="weatherSituation != null and weatherSituation != ''"> and weather_situation = #{weatherSituation}</if>
<if test="emergencyLevel != null "> and emergency_level = #{emergencyLevel}</if>
<if test="endStakeMark != null and endStakeMark != ''"> and end_stake_mark = #{endStakeMark}</if>
</where>
</select>
<select id="selectDcEventAbnormalWeatherById" parameterType="String" resultMap="DcEventAbnormalWeatherResult">
<include refid="selectDcEventAbnormalWeatherVo"/>
where id = #{id}
</select>
<insert id="insertDcEventAbnormalWeather" parameterType="DcEventAbnormalWeather">
insert into dc_event_abnormal_weather
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="weatherSituation != null and weatherSituation != ''">weather_situation,</if>
<if test="emergencyLevel != null">emergency_level,</if>
<if test="endStakeMark != null and endStakeMark != ''">end_stake_mark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="weatherSituation != null and weatherSituation != ''">#{weatherSituation},</if>
<if test="emergencyLevel != null">#{emergencyLevel},</if>
<if test="endStakeMark != null and endStakeMark != ''">#{endStakeMark},</if>
</trim>
</insert>
<update id="updateDcEventAbnormalWeather" parameterType="DcEventAbnormalWeather">
update dc_event_abnormal_weather
<trim prefix="SET" suffixOverrides=",">
<if test="weatherSituation != null and weatherSituation != ''">weather_situation = #{weatherSituation},</if>
<if test="emergencyLevel != null">emergency_level = #{emergencyLevel},</if>
<if test="endStakeMark != null and endStakeMark != ''">end_stake_mark = #{endStakeMark},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteDcEventAbnormalWeatherById" parameterType="String">
delete from dc_event_abnormal_weather where id = #{id}
</delete>
<delete id="deleteDcEventAbnormalWeatherByIds" parameterType="String">
delete from dc_event_abnormal_weather where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

187
zc-business/src/main/resources/mapper/business/DcEventAccidentMapper.xml

@ -0,0 +1,187 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zc.business.mapper.DcEventAccidentMapper">
<resultMap type="com.zc.business.domain.DcEventAccident" id="DcEventAccidentResult">
<result property="id" column="id" />
<result property="reporterName" column="reporter_name" />
<result property="reporterPhoneNumber" column="reporter_phone_number" />
<result property="accidentType" column="accident_type" />
<result property="locationType" column="location_type" />
<result property="trafficJam" column="traffic_jam" />
<result property="weatherCondition" column="weather_condition" />
<result property="impactLevel" column="impact_level" />
<result property="isReverseCargo" column="is_reverse_cargo" />
<result property="isMaintenance" column="is_maintenance" />
<result property="policeContact" column="police_contact" />
<result property="towingServiceContact" column="towing_service_contact" />
<result property="congestionAhead" column="congestion_ahead" />
<result property="atIntersection" column="at_intersection" />
<result property="onCurve" column="on_curve" />
<result property="spillageItem" column="spillage_item" />
<result property="vehicleOwnerPhone" column="vehicle_owner_phone" />
<result property="laneOccupancy" column="lane_occupancy" />
<result property="smallCar" column="small_car" />
<result property="trucks" column="trucks" />
<result property="buses" column="buses" />
<result property="tankers" column="tankers" />
<result property="minorInjuries" column="minor_injuries" />
<result property="seriousInjuries" column="serious_injuries" />
<result property="fatalities" column="fatalities" />
<result property="isPrivate" column="is_private" />
<result property="facilityId" column="facility_id" />
<result property="roadId" column="road_id" />
</resultMap>
<sql id="selectDcEventAccidentVo">
select id, reporter_name, reporter_phone_number, accident_type, location_type, traffic_jam, weather_condition, impact_level, is_reverse_cargo, is_maintenance, police_contact, towing_service_contact, congestion_ahead, at_intersection, on_curve, spillage_item, vehicle_owner_phone, lane_occupancy, small_car, trucks, buses, tankers, minor_injuries, serious_injuries, fatalities, is_private, facility_id, road_id from dc_event_accident
</sql>
<select id="selectDcEventAccidentList" parameterType="DcEventAccident" resultMap="DcEventAccidentResult">
<include refid="selectDcEventAccidentVo"/>
<where>
<if test="reporterName != null and reporterName != ''"> and reporter_name like concat('%', #{reporterName}, '%')</if>
<if test="reporterPhoneNumber != null and reporterPhoneNumber != ''"> and reporter_phone_number = #{reporterPhoneNumber}</if>
<if test="accidentType != null "> and accident_type = #{accidentType}</if>
<if test="locationType != null "> and location_type = #{locationType}</if>
<if test="trafficJam != null "> and traffic_jam = #{trafficJam}</if>
<if test="weatherCondition != null "> and weather_condition = #{weatherCondition}</if>
<if test="impactLevel != null "> and impact_level = #{impactLevel}</if>
<if test="isReverseCargo != null "> and is_reverse_cargo = #{isReverseCargo}</if>
<if test="isMaintenance != null "> and is_maintenance = #{isMaintenance}</if>
<if test="policeContact != null "> and police_contact = #{policeContact}</if>
<if test="towingServiceContact != null "> and towing_service_contact = #{towingServiceContact}</if>
<if test="congestionAhead != null "> and congestion_ahead = #{congestionAhead}</if>
<if test="atIntersection != null "> and at_intersection = #{atIntersection}</if>
<if test="onCurve != null "> and on_curve = #{onCurve}</if>
<if test="spillageItem != null and spillageItem != ''"> and spillage_item = #{spillageItem}</if>
<if test="vehicleOwnerPhone != null and vehicleOwnerPhone != ''"> and vehicle_owner_phone = #{vehicleOwnerPhone}</if>
<if test="laneOccupancy != null "> and lane_occupancy = #{laneOccupancy}</if>
<if test="smallCar != null "> and small_car = #{smallCar}</if>
<if test="trucks != null "> and trucks = #{trucks}</if>
<if test="buses != null "> and buses = #{buses}</if>
<if test="tankers != null "> and tankers = #{tankers}</if>
<if test="minorInjuries != null "> and minor_injuries = #{minorInjuries}</if>
<if test="seriousInjuries != null "> and serious_injuries = #{seriousInjuries}</if>
<if test="fatalities != null "> and fatalities = #{fatalities}</if>
<if test="isPrivate != null "> and is_private = #{isPrivate}</if>
<if test="facilityId != null "> and facility_id = #{facilityId}</if>
<if test="roadId != null "> and road_id = #{roadId}</if>
</where>
</select>
<select id="selectDcEventAccidentById" parameterType="String" resultMap="DcEventAccidentResult">
<include refid="selectDcEventAccidentVo"/>
where id = #{id}
</select>
<insert id="insertDcEventAccident" parameterType="DcEventAccident">
insert into dc_event_accident
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="reporterName != null and reporterName != ''">reporter_name,</if>
<if test="reporterPhoneNumber != null and reporterPhoneNumber != ''">reporter_phone_number,</if>
<if test="accidentType != null">accident_type,</if>
<if test="locationType != null">location_type,</if>
<if test="trafficJam != null">traffic_jam,</if>
<if test="weatherCondition != null">weather_condition,</if>
<if test="impactLevel != null">impact_level,</if>
<if test="isReverseCargo != null">is_reverse_cargo,</if>
<if test="isMaintenance != null">is_maintenance,</if>
<if test="policeContact != null">police_contact,</if>
<if test="towingServiceContact != null">towing_service_contact,</if>
<if test="congestionAhead != null">congestion_ahead,</if>
<if test="atIntersection != null">at_intersection,</if>
<if test="onCurve != null">on_curve,</if>
<if test="spillageItem != null">spillage_item,</if>
<if test="vehicleOwnerPhone != null">vehicle_owner_phone,</if>
<if test="laneOccupancy != null">lane_occupancy,</if>
<if test="smallCar != null">small_car,</if>
<if test="trucks != null">trucks,</if>
<if test="buses != null">buses,</if>
<if test="tankers != null">tankers,</if>
<if test="minorInjuries != null">minor_injuries,</if>
<if test="seriousInjuries != null">serious_injuries,</if>
<if test="fatalities != null">fatalities,</if>
<if test="isPrivate != null">is_private,</if>
<if test="facilityId != null">facility_id,</if>
<if test="roadId != null">road_id,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="reporterName != null and reporterName != ''">#{reporterName},</if>
<if test="reporterPhoneNumber != null and reporterPhoneNumber != ''">#{reporterPhoneNumber},</if>
<if test="accidentType != null">#{accidentType},</if>
<if test="locationType != null">#{locationType},</if>
<if test="trafficJam != null">#{trafficJam},</if>
<if test="weatherCondition != null">#{weatherCondition},</if>
<if test="impactLevel != null">#{impactLevel},</if>
<if test="isReverseCargo != null">#{isReverseCargo},</if>
<if test="isMaintenance != null">#{isMaintenance},</if>
<if test="policeContact != null">#{policeContact},</if>
<if test="towingServiceContact != null">#{towingServiceContact},</if>
<if test="congestionAhead != null">#{congestionAhead},</if>
<if test="atIntersection != null">#{atIntersection},</if>
<if test="onCurve != null">#{onCurve},</if>
<if test="spillageItem != null">#{spillageItem},</if>
<if test="vehicleOwnerPhone != null">#{vehicleOwnerPhone},</if>
<if test="laneOccupancy != null">#{laneOccupancy},</if>
<if test="smallCar != null">#{smallCar},</if>
<if test="trucks != null">#{trucks},</if>
<if test="buses != null">#{buses},</if>
<if test="tankers != null">#{tankers},</if>
<if test="minorInjuries != null">#{minorInjuries},</if>
<if test="seriousInjuries != null">#{seriousInjuries},</if>
<if test="fatalities != null">#{fatalities},</if>
<if test="isPrivate != null">#{isPrivate},</if>
<if test="facilityId != null">#{facilityId},</if>
<if test="roadId != null">#{roadId},</if>
</trim>
</insert>
<update id="updateDcEventAccident" parameterType="DcEventAccident">
update dc_event_accident
<trim prefix="SET" suffixOverrides=",">
<if test="reporterName != null and reporterName != ''">reporter_name = #{reporterName},</if>
<if test="reporterPhoneNumber != null and reporterPhoneNumber != ''">reporter_phone_number = #{reporterPhoneNumber},</if>
<if test="accidentType != null">accident_type = #{accidentType},</if>
<if test="locationType != null">location_type = #{locationType},</if>
<if test="trafficJam != null">traffic_jam = #{trafficJam},</if>
<if test="weatherCondition != null">weather_condition = #{weatherCondition},</if>
<if test="impactLevel != null">impact_level = #{impactLevel},</if>
<if test="isReverseCargo != null">is_reverse_cargo = #{isReverseCargo},</if>
<if test="isMaintenance != null">is_maintenance = #{isMaintenance},</if>
<if test="policeContact != null">police_contact = #{policeContact},</if>
<if test="towingServiceContact != null">towing_service_contact = #{towingServiceContact},</if>
<if test="congestionAhead != null">congestion_ahead = #{congestionAhead},</if>
<if test="atIntersection != null">at_intersection = #{atIntersection},</if>
<if test="onCurve != null">on_curve = #{onCurve},</if>
<if test="spillageItem != null">spillage_item = #{spillageItem},</if>
<if test="vehicleOwnerPhone != null">vehicle_owner_phone = #{vehicleOwnerPhone},</if>
<if test="laneOccupancy != null">lane_occupancy = #{laneOccupancy},</if>
<if test="smallCar != null">small_car = #{smallCar},</if>
<if test="trucks != null">trucks = #{trucks},</if>
<if test="buses != null">buses = #{buses},</if>
<if test="tankers != null">tankers = #{tankers},</if>
<if test="minorInjuries != null">minor_injuries = #{minorInjuries},</if>
<if test="seriousInjuries != null">serious_injuries = #{seriousInjuries},</if>
<if test="fatalities != null">fatalities = #{fatalities},</if>
<if test="isPrivate != null">is_private = #{isPrivate},</if>
<if test="facilityId != null">facility_id = #{facilityId},</if>
<if test="roadId != null">road_id = #{roadId},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteDcEventAccidentById" parameterType="String">
delete from dc_event_accident where id = #{id}
</delete>
<delete id="deleteDcEventAccidentByIds" parameterType="String">
delete from dc_event_accident where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

103
zc-business/src/main/resources/mapper/business/DcEventConstructionMapper.xml

@ -0,0 +1,103 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zc.business.mapper.DcEventConstructionMapper">
<resultMap type="DcEventConstruction" id="DcEventConstructionResult">
<result property="id" column="id" />
<result property="controlMode" column="control_mode" />
<result property="locationType" column="location_type" />
<result property="specialPlaceDescription" column="special_place_description" />
<result property="specialConstruction" column="special_construction" />
<result property="otherConstructionName" column="other_construction_name" />
<result property="constructionMeasurement" column="construction_measurement" />
<result property="facilityId" column="facility_id" />
<result property="exitsInlets" column="exits_inlets" />
<result property="laneOccupancy" column="lane_occupancy" />
<result property="trafficCondition" column="traffic_condition" />
</resultMap>
<sql id="selectDcEventConstructionVo">
select id, control_mode, location_type, special_place_description, special_construction, other_construction_name, construction_measurement, facility_id, exits_inlets, lane_occupancy, traffic_condition from dc_event_construction
</sql>
<select id="selectDcEventConstructionList" parameterType="DcEventConstruction" resultMap="DcEventConstructionResult">
<include refid="selectDcEventConstructionVo"/>
<where>
<if test="controlMode != null "> and control_mode = #{controlMode}</if>
<if test="locationType != null "> and location_type = #{locationType}</if>
<if test="specialPlaceDescription != null and specialPlaceDescription != ''"> and special_place_description = #{specialPlaceDescription}</if>
<if test="specialConstruction != null "> and special_construction = #{specialConstruction}</if>
<if test="otherConstructionName != null and otherConstructionName != ''"> and other_construction_name like concat('%', #{otherConstructionName}, '%')</if>
<if test="constructionMeasurement != null "> and construction_measurement = #{constructionMeasurement}</if>
<if test="facilityId != null "> and facility_id = #{facilityId}</if>
<if test="exitsInlets != null "> and exits_inlets = #{exitsInlets}</if>
<if test="laneOccupancy != null and laneOccupancy != ''"> and lane_occupancy = #{laneOccupancy}</if>
<if test="trafficCondition != null "> and traffic_condition = #{trafficCondition}</if>
</where>
</select>
<select id="selectDcEventConstructionById" parameterType="String" resultMap="DcEventConstructionResult">
<include refid="selectDcEventConstructionVo"/>
where id = #{id}
</select>
<insert id="insertDcEventConstruction" parameterType="DcEventConstruction">
insert into dc_event_construction
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="controlMode != null">control_mode,</if>
<if test="locationType != null">location_type,</if>
<if test="specialPlaceDescription != null">special_place_description,</if>
<if test="specialConstruction != null">special_construction,</if>
<if test="otherConstructionName != null">other_construction_name,</if>
<if test="constructionMeasurement != null">construction_measurement,</if>
<if test="facilityId != null">facility_id,</if>
<if test="exitsInlets != null">exits_inlets,</if>
<if test="laneOccupancy != null">lane_occupancy,</if>
<if test="trafficCondition != null">traffic_condition,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="controlMode != null">#{controlMode},</if>
<if test="locationType != null">#{locationType},</if>
<if test="specialPlaceDescription != null">#{specialPlaceDescription},</if>
<if test="specialConstruction != null">#{specialConstruction},</if>
<if test="otherConstructionName != null">#{otherConstructionName},</if>
<if test="constructionMeasurement != null">#{constructionMeasurement},</if>
<if test="facilityId != null">#{facilityId},</if>
<if test="exitsInlets != null">#{exitsInlets},</if>
<if test="laneOccupancy != null">#{laneOccupancy},</if>
<if test="trafficCondition != null">#{trafficCondition},</if>
</trim>
</insert>
<update id="updateDcEventConstruction" parameterType="DcEventConstruction">
update dc_event_construction
<trim prefix="SET" suffixOverrides=",">
<if test="controlMode != null">control_mode = #{controlMode},</if>
<if test="locationType != null">location_type = #{locationType},</if>
<if test="specialPlaceDescription != null">special_place_description = #{specialPlaceDescription},</if>
<if test="specialConstruction != null">special_construction = #{specialConstruction},</if>
<if test="otherConstructionName != null">other_construction_name = #{otherConstructionName},</if>
<if test="constructionMeasurement != null">construction_measurement = #{constructionMeasurement},</if>
<if test="facilityId != null">facility_id = #{facilityId},</if>
<if test="exitsInlets != null">exits_inlets = #{exitsInlets},</if>
<if test="laneOccupancy != null">lane_occupancy = #{laneOccupancy},</if>
<if test="trafficCondition != null">traffic_condition = #{trafficCondition},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteDcEventConstructionById" parameterType="String">
delete from dc_event_construction where id = #{id}
</delete>
<delete id="deleteDcEventConstructionByIds" parameterType="String">
delete from dc_event_construction where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

414
zc-business/src/main/resources/mapper/business/DcEventMapper.xml

@ -4,291 +4,147 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zc.business.mapper.DcEventMapper">
<resultMap type="com.zc.business.domain.DcEvent" id="DcEventResult">
<result property="id" column="id" />
<result property="groupId" column="group_id" />
<result property="stakeMarkId" column="stake_mark_id" />
<result property="direction" column="direction" />
<result property="roadId" column="road_id" />
<result property="handlingPerson" column="handling_person" />
<result property="endStakeMarkId" column="end_stake_mark_id" />
<result property="startTime" column="start_time" />
<result property="endTime" column="end_time" />
<result property="eventLevel" column="event_level" />
<result property="eventCategory" column="event_category" />
<result property="eventType" column="event_type" />
<result property="eventName" column="event_name" />
<result property="eventSubclass" column="event_subclass" />
<result property="impactLevel" column="impact_level" />
<result property="eventCause" column="event_cause" />
<result property="description" column="description" />
<result property="handlingResult" column="handling_result" />
<result property="otherConfig" column="other_config" />
<result property="eventSource" column="event_source" />
<result property="eventNature" column="event_nature" />
<result property="remark" column="remark" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
</resultMap>
<resultMap type="com.zc.business.domain.DcEvent" id="DcEventResultListAll">
<result property="id" column="id" />
<result property="groupId" column="group_id" />
<result property="stakeMarkId" column="stake_mark_id" />
<result property="direction" column="direction" />
<result property="roadId" column="road_id" />
<result property="handlingPerson" column="handling_person" />
<result property="endStakeMarkId" column="end_stake_mark_id" />
<result property="startTime" column="start_time" />
<result property="endTime" column="end_time" />
<result property="eventLevel" column="event_level" />
<result property="eventCategory" column="event_category" />
<result property="eventType" column="event_type" />
<result property="eventName" column="event_name" />
<result property="eventSubclass" column="event_subclass" />
<result property="impactLevel" column="impact_level" />
<result property="eventCause" column="event_cause" />
<result property="description" column="description" />
<result property="handlingResult" column="handling_result" />
<result property="otherConfig" column="other_config" />
<result property="eventSource" column="event_source" />
<result property="eventNature" column="event_nature" />
<result property="remark" column="remark" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
<!-- <result property="dcProcessConfig.processNode" column="process_node" />
<result property="dcProcessConfig.commonPhrases" column="common_phrases" />
<result property="dcProcessConfig.nodeNode" column="node_node" />-->
<result property="dcEventMap.processNode" column="process_node" />
<result property="dcEventMap.commonPhrases" column="common_phrases" />
<result property="dcEventMap.nodeNode" column="node_node" />
<result property="dcEventMap.dcDispatchId" column="dc_dispatch_id" />
<result property="dcEventMap.organizationId" column="organization_id" />
<result property="dcEventMap.dispatchName" column="dispatch_name" />
<result property="dcEventMap.dispatchStatus" column="dispatch_status" />
<result property="dcEventMap.dcDispatchRemark" column="dc_dispatch_remark" />
<result property="dcEventMap.dcDispatchEndTime" column="dc_dispatch_end_time" />
<result property="dcEventMap.dcDispatchStartTime" column="dc_dispatch_start_time" />
<result property="dcEventMap.eventId" column="event_id" />
<result property="dcEventMap.dcOrganizationId" column="dc_organization_id" />
<result property="dcEventMap.parentId" column="parent_id" />
<result property="dcEventMap.organizationType" column="organization_type" />
<result property="dcEventMap.organizationName" column="organization_name" />
<result property="dcEventMap.organizationAddress" column="organization_address" />
<result property="dcEventMap.dcOrganizationStakeMarkId" column="dc_organization_stake_mark_id" />
<result property="dcEventMap.dcOrganizationDescription" column="dc_organization_description" />
<result property="dcEventMap.vehiclePlate" column="vehicle_plate" />
<result property="dcEventMap.vehicleType" column="vehicle_type" />
<result property="dcEventMap.vehicleStatus" column="vehicle_status" />
<result property="dcEventMap.dcVehiclesRemark" column="dc_vehicles_remark" />
<result property="dcEventMap.postId" column="post_id" />
<result property="dcEventMap.name" column="name" />
<result property="dcEventMap.contactNumber" column="contact_number" />
<result property="id" column="id" />
<result property="deptId" column="dept_id" />
<result property="stakeMark" column="stake_mark" />
<result property="direction" column="direction" />
<result property="userId" column="user_id" />
<result property="startTime" column="start_time" />
<result property="endTime" column="end_time" />
<result property="estimatedEndTime" column="estimated_end_time" />
<result property="eventLevel" column="event_level" />
<result property="eventType" column="event_type" />
<result property="eventSubclass" column="event_subclass" />
<result property="eventCause" column="event_cause" />
<result property="description" column="description" />
<result property="eventState" column="event_state" />
<result property="eventSource" column="event_source" />
<result property="eventNature" column="event_nature" />
<result property="remark" column="remark" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
<result property="eventSourceTips" column="event_source_tips" />
<result property="inTunnel" column="in_tunnel" />
</resultMap>
</resultMap>
<!-- 定义 eventOtherConfig 字段的结果集映射 -->
<!-- <resultMap id="eventOtherResultMap" type="java.util.HashMap">
</resultMap>-->
<sql id="selectDcEventVo">
select id, group_id, stake_mark_id, direction, road_id, handling_person, end_stake_mark_id, start_time, end_time, event_level, event_category, event_type, event_subclass, impact_level, event_cause, description, handling_result, other_config, event_source, event_nature, remark, create_time, update_time from dc_event
</sql>
<sql id="selectDcEventVoList">
select id, group_id, stake_mark_id, direction, road_id, handling_person, end_stake_mark_id, start_time, end_time, event_level, event_category,dc_event.event_type AS event_type, event_subclass, impact_level, event_cause, description, handling_result, other_config, event_source, event_nature, remark, create_time, update_time,dc_event_type.event_name AS event_name from dc_event
</sql>
<!--
根据id查询详情
-->
<sql id="selectDcEventVoListAll">SELECT
dc_event.id AS id,
dc_event.group_id AS group_id,
dc_event.stake_mark_id,
dc_event.direction,
dc_event.road_id,
dc_event.handling_person,
dc_event.end_stake_mark_id,
dc_event.start_time,
dc_event.end_time,
dc_event.event_level,
dc_event.event_category,
dc_event.event_type AS event_type,
dc_event.event_subclass,
dc_event.impact_level,
dc_event.event_cause,
dc_event.description,
dc_event.handling_result,
dc_event.other_config,
dc_event.event_source,
dc_event.event_nature,
dc_event.remark ,
dc_event.create_time,
dc_event.update_time,
dc_event_type.event_name AS event_name,
dc_process_config.node_node AS node_node,
dc_process_config.process_node AS process_node,
dc_process_config.common_phrases AS common_phrases,
<sql id="selectDcEventVo">
select id, dept_id, stake_mark, direction, user_id, start_time, end_time, estimated_end_time, event_level, event_type, event_subclass, event_cause, description, event_state, event_source, event_nature, remark, create_time, update_time, event_source_tips, in_tunnel from dc_event
</sql>
dc_dispatch.id AS dc_dispatch_id,
dc_dispatch.organization_id,
dc_dispatch.dispatch_name,
dc_dispatch.dispatch_status,
dc_dispatch.remark as dc_dispatch_remark,
dc_dispatch.end_time as dc_dispatch_end_time,
dc_dispatch.start_time as dc_dispatch_start_time,
dc_dispatch.event_id,
<select id="selectDcEventList" parameterType="DcEvent" resultMap="DcEventResult">
<include refid="selectDcEventVo"/>
<where>
<if test="deptId != null "> and dept_id = #{deptId}</if>
<if test="stakeMark != null and stakeMark != ''"> and stake_mark = #{stakeMark}</if>
<if test="direction != null and direction != ''"> and direction = #{direction}</if>
<if test="userId != null "> and user_id = #{userId}</if>
<if test="startTime != null "> and start_time = #{startTime}</if>
<if test="endTime != null "> and end_time = #{endTime}</if>
<if test="estimatedEndTime != null "> and estimated_end_time = #{estimatedEndTime}</if>
<if test="eventLevel != null "> and event_level = #{eventLevel}</if>
<if test="eventType != null "> and event_type = #{eventType}</if>
<if test="eventSubclass != null and eventSubclass != ''"> and event_subclass = #{eventSubclass}</if>
<if test="eventCause != null and eventCause != ''"> and event_cause = #{eventCause}</if>
<if test="description != null and description != ''"> and description = #{description}</if>
<if test="eventState != null "> and event_state = #{eventState}</if>
<if test="eventSource != null "> and event_source = #{eventSource}</if>
<if test="eventNature != null "> and event_nature = #{eventNature}</if>
<if test="eventSourceTips != null and eventSourceTips != ''"> and event_source_tips = #{eventSourceTips}</if>
<if test="inTunnel != null "> and in_tunnel = #{inTunnel}</if>
</where>
</select>
dc_organization.id as dc_organization_id,
dc_organization.parent_id,
dc_organization.organization_type,
dc_organization.organization_name,
dc_organization.organization_address,
dc_organization.stake_mark_id as dc_organization_stake_mark_id,
dc_organization.rescue_unit,
dc_organization.description as dc_organization_description,
<select id="selectDcEventById" parameterType="String" resultMap="DcEventResult">
<include refid="selectDcEventVo"/>
where id = #{id}
</select>
dc_vehicles.vehicle_plate,
dc_vehicles.vehicle_type,
dc_vehicles.vehicle_status,
dc_vehicles.remark as dc_vehicles_remark,
<insert id="insertDcEvent" parameterType="DcEvent">
insert into dc_event
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="deptId != null">dept_id,</if>
<if test="stakeMark != null and stakeMark != ''">stake_mark,</if>
<if test="direction != null and direction != ''">direction,</if>
<if test="userId != null">user_id,</if>
<if test="startTime != null">start_time,</if>
<if test="endTime != null">end_time,</if>
<if test="estimatedEndTime != null">estimated_end_time,</if>
<if test="eventLevel != null">event_level,</if>
<if test="eventType != null">event_type,</if>
<if test="eventSubclass != null">event_subclass,</if>
<if test="eventCause != null">event_cause,</if>
<if test="description != null">description,</if>
<if test="eventState != null">event_state,</if>
<if test="eventSource != null">event_source,</if>
<if test="eventNature != null">event_nature,</if>
<if test="remark != null">remark,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
<if test="eventSourceTips != null">event_source_tips,</if>
<if test="inTunnel != null">in_tunnel,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="deptId != null">#{deptId},</if>
<if test="stakeMark != null and stakeMark != ''">#{stakeMark},</if>
<if test="direction != null and direction != ''">#{direction},</if>
<if test="userId != null">#{userId},</if>
<if test="startTime != null">#{startTime},</if>
<if test="endTime != null">#{endTime},</if>
<if test="estimatedEndTime != null">#{estimatedEndTime},</if>
<if test="eventLevel != null">#{eventLevel},</if>
<if test="eventType != null">#{eventType},</if>
<if test="eventSubclass != null">#{eventSubclass},</if>
<if test="eventCause != null">#{eventCause},</if>
<if test="description != null">#{description},</if>
<if test="eventState != null">#{eventState},</if>
<if test="eventSource != null">#{eventSource},</if>
<if test="eventNature != null">#{eventNature},</if>
<if test="remark != null">#{remark},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="eventSourceTips != null">#{eventSourceTips},</if>
<if test="inTunnel != null">#{inTunnel},</if>
</trim>
</insert>
dc_employees.post_id,
dc_employees.name,
dc_employees.contact_number
FROM dc_event</sql>
<select id="selectDcEventList" parameterType="DcEvent" resultMap="DcEventResult">
<include refid="selectDcEventVoList"/>
<update id="updateDcEvent" parameterType="DcEvent">
update dc_event
<trim prefix="SET" suffixOverrides=",">
<if test="deptId != null">dept_id = #{deptId},</if>
<if test="stakeMark != null and stakeMark != ''">stake_mark = #{stakeMark},</if>
<if test="direction != null and direction != ''">direction = #{direction},</if>
<if test="userId != null">user_id = #{userId},</if>
<if test="startTime != null">start_time = #{startTime},</if>
<if test="endTime != null">end_time = #{endTime},</if>
<if test="estimatedEndTime != null">estimated_end_time = #{estimatedEndTime},</if>
<if test="eventLevel != null">event_level = #{eventLevel},</if>
<if test="eventType != null">event_type = #{eventType},</if>
<if test="eventSubclass != null">event_subclass = #{eventSubclass},</if>
<if test="eventCause != null">event_cause = #{eventCause},</if>
<if test="description != null">description = #{description},</if>
<if test="eventState != null">event_state = #{eventState},</if>
<if test="eventSource != null">event_source = #{eventSource},</if>
<if test="eventNature != null">event_nature = #{eventNature},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="eventSourceTips != null">event_source_tips = #{eventSourceTips},</if>
<if test="inTunnel != null">in_tunnel = #{inTunnel},</if>
</trim>
where id = #{id}
</update>
JOIN dc_event_type ON dc_event.event_type = dc_event_type.event_type
<where>
<if test="groupId != null "> and group_id = #{groupId}</if>
<if test="stakeMarkId != null and stakeMarkId != ''"> and stake_mark_id BETWEEN #{stakeMarkId} and #{endStakeMarkId}</if>
<if test="direction != null and direction != ''"> and direction = #{direction}</if>
<if test="roadId != null "> and road_id = #{roadId}</if>
<if test="handlingPerson != null "> and handling_person = #{handlingPerson}</if>
<if test="startTime != null "> and start_time = #{startTime}</if>
<if test="endTime != null "> and end_time = #{endTime}</if>
<if test="eventLevel != null "> and event_level = #{eventLevel}</if>
<if test="eventCategory != null "> and event_category = #{eventCategory}</if>
<if test="eventType != null "> and event_type = #{eventType}</if>
<if test="eventSubclass != null "> and event_subclass = #{eventSubclass}</if>
<if test="impactLevel != null "> and impact_level = #{impactLevel}</if>
<if test="eventCause != null and eventCause != ''"> and event_cause = #{eventCause}</if>
<if test="description != null and description != ''"> and description = #{description}</if>
<if test="handlingResult != null "> and handling_result = #{handlingResult}</if>
<if test="otherConfig != null and otherConfig != ''"> and other_config = #{otherConfig}</if>
<if test="eventSource != null "> and event_source = #{eventSource}</if>
<if test="eventNature != null "> and event_nature = #{eventNature}</if>
</where>
</select>
<delete id="deleteDcEventById" parameterType="String">
delete from dc_event where id = #{id}
</delete>
<select id="selectDcEventById" parameterType="String" resultMap="DcEventResultListAll">
<include refid="selectDcEventVoListAll"/>
LEFT JOIN dc_event_type ON dc_event.event_type = dc_event_type.event_type
LEFT JOIN dc_process_config ON dc_event_type.event_type = dc_process_config.event_type
-- 关联调度信息记录表
LEFT JOIN dc_dispatch ON dc_event.id = dc_dispatch.event_id
-- 关联资源调度调度记录id关联 调度信息记录表的主键
LEFT JOIN dc_dispatch_resource ON dc_dispatch.id = dc_dispatch_resource.dispatch_id
-- 关联车辆
LEFT JOIN dc_vehicles ON dc_dispatch_resource.resource_id = dc_vehicles.id
-- 关联机构表
LEFT JOIN dc_organization ON dc_dispatch.organization_id = dc_organization.id
-- 关联人员信息表
LEFT JOIN dc_employees ON dc_dispatch_resource.resource_id = dc_employees.id
where dc_event.id = #{id}
</select>
<insert id="insertDcEvent" parameterType="DcEvent">
insert into dc_event
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="groupId != null">group_id,</if>
<if test="stakeMarkId != null and stakeMarkId != ''">stake_mark_id,</if>
<if test="direction != null and direction != ''">direction,</if>
<if test="roadId != null">road_id,</if>
<if test="handlingPerson != null">handling_person,</if>
<if test="endStakeMarkId != null">end_stake_mark_id,</if>
<if test="startTime != null">start_time,</if>
<if test="endTime != null">end_time,</if>
<if test="eventLevel != null">event_level,</if>
<if test="eventCategory != null">event_category,</if>
<if test="eventType != null">event_type,</if>
<if test="eventSubclass != null">event_subclass,</if>
<if test="impactLevel != null">impact_level,</if>
<if test="eventCause != null">event_cause,</if>
<if test="description != null">description,</if>
<if test="handlingResult != null">handling_result,</if>
<if test="otherConfig != null">other_config,</if>
<if test="eventSource != null">event_source,</if>
<if test="eventNature != null">event_nature,</if>
<if test="remark != null">remark,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="groupId != null">#{groupId},</if>
<if test="stakeMarkId != null and stakeMarkId != ''">#{stakeMarkId},</if>
<if test="direction != null and direction != ''">#{direction},</if>
<if test="roadId != null">#{roadId},</if>
<if test="handlingPerson != null">#{handlingPerson},</if>
<if test="endStakeMarkId != null">#{endStakeMarkId},</if>
<if test="startTime != null">#{startTime},</if>
<if test="endTime != null">#{endTime},</if>
<if test="eventLevel != null">#{eventLevel},</if>
<if test="eventCategory != null">#{eventCategory},</if>
<if test="eventType != null">#{eventType},</if>
<if test="eventSubclass != null">#{eventSubclass},</if>
<if test="impactLevel != null">#{impactLevel},</if>
<if test="eventCause != null">#{eventCause},</if>
<if test="description != null">#{description},</if>
<if test="handlingResult != null">#{handlingResult},</if>
<if test="otherConfig != null">#{otherConfig},</if>
<if test="eventSource != null">#{eventSource},</if>
<if test="eventNature != null">#{eventNature},</if>
<if test="remark != null">#{remark},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateDcEvent" parameterType="DcEvent">
update dc_event
<trim prefix="SET" suffixOverrides=",">
<if test="groupId != null">group_id = #{groupId},</if>
<if test="stakeMarkId != null and stakeMarkId != ''">stake_mark_id = #{stakeMarkId},</if>
<if test="direction != null and direction != ''">direction = #{direction},</if>
<if test="roadId != null">road_id = #{roadId},</if>
<if test="handlingPerson != null">handling_person = #{handlingPerson},</if>
<if test="endStakeMarkId != null">end_stake_mark_id = #{endStakeMarkId},</if>
<if test="startTime != null">start_time = #{startTime},</if>
<if test="endTime != null">end_time = #{endTime},</if>
<if test="eventLevel != null">event_level = #{eventLevel},</if>
<if test="eventCategory != null">event_category = #{eventCategory},</if>
<if test="eventType != null">event_type = #{eventType},</if>
<if test="eventSubclass != null">event_subclass = #{eventSubclass},</if>
<if test="impactLevel != null">impact_level = #{impactLevel},</if>
<if test="eventCause != null">event_cause = #{eventCause},</if>
<if test="description != null">description = #{description},</if>
<if test="handlingResult != null">handling_result = #{handlingResult},</if>
<if test="otherConfig != null">other_config = #{otherConfig},</if>
<if test="eventSource != null">event_source = #{eventSource},</if>
<if test="eventNature != null">event_nature = #{eventNature},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteDcEventById" parameterType="String">
delete from dc_event where id = #{id}
</delete>
<delete id="deleteDcEventByIds" parameterType="String">
delete from dc_event where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<delete id="deleteDcEventByIds" parameterType="String">
delete from dc_event where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

68
zc-business/src/main/resources/mapper/business/DcEventServiceAreaMapper.xml

@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zc.business.mapper.DcEventServiceAreaMapper">
<resultMap type="DcEventServiceArea" id="DcEventServiceAreaResult">
<result property="id" column="id" />
<result property="exitsInlets" column="exits_inlets" />
<result property="facilityId" column="facility_id" />
<result property="disableFacility" column="disable_facility" />
</resultMap>
<sql id="selectDcEventServiceAreaVo">
select id, exits_inlets, facility_id, disable_facility from dc_event_service_area
</sql>
<select id="selectDcEventServiceAreaList" parameterType="DcEventServiceArea" resultMap="DcEventServiceAreaResult">
<include refid="selectDcEventServiceAreaVo"/>
<where>
<if test="exitsInlets != null "> and exits_inlets = #{exitsInlets}</if>
<if test="facilityId != null "> and facility_id = #{facilityId}</if>
<if test="disableFacility != null "> and disable_facility = #{disableFacility}</if>
</where>
</select>
<select id="selectDcEventServiceAreaById" parameterType="String" resultMap="DcEventServiceAreaResult">
<include refid="selectDcEventServiceAreaVo"/>
where id = #{id}
</select>
<insert id="insertDcEventServiceArea" parameterType="DcEventServiceArea">
insert into dc_event_service_area
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="exitsInlets != null">exits_inlets,</if>
<if test="facilityId != null">facility_id,</if>
<if test="disableFacility != null">disable_facility,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="exitsInlets != null">#{exitsInlets},</if>
<if test="facilityId != null">#{facilityId},</if>
<if test="disableFacility != null">#{disableFacility},</if>
</trim>
</insert>
<update id="updateDcEventServiceArea" parameterType="DcEventServiceArea">
update dc_event_service_area
<trim prefix="SET" suffixOverrides=",">
<if test="exitsInlets != null">exits_inlets = #{exitsInlets},</if>
<if test="facilityId != null">facility_id = #{facilityId},</if>
<if test="disableFacility != null">disable_facility = #{disableFacility},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteDcEventServiceAreaById" parameterType="String">
delete from dc_event_service_area where id = #{id}
</delete>
<delete id="deleteDcEventServiceAreaByIds" parameterType="String">
delete from dc_event_service_area where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

78
zc-business/src/main/resources/mapper/business/DcEventTrafficCongestionMapper.xml

@ -0,0 +1,78 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zc.business.mapper.DcEventTrafficCongestionMapper">
<resultMap type="DcEventTrafficCongestion" id="DcEventTrafficCongestionResult">
<result property="id" column="id" />
<result property="congestionMileage" column="congestion_mileage" />
<result property="congestionCause" column="congestion_cause" />
<result property="facilityId" column="facility_id" />
<result property="rampId" column="ramp_id" />
<result property="location" column="location" />
</resultMap>
<sql id="selectDcEventTrafficCongestionVo">
select id, congestion_mileage, congestion_cause, facility_id, ramp_id, location from dc_event_traffic_congestion
</sql>
<select id="selectDcEventTrafficCongestionList" parameterType="DcEventTrafficCongestion" resultMap="DcEventTrafficCongestionResult">
<include refid="selectDcEventTrafficCongestionVo"/>
<where>
<if test="congestionMileage != null "> and congestion_mileage = #{congestionMileage}</if>
<if test="congestionCause != null "> and congestion_cause = #{congestionCause}</if>
<if test="facilityId != null "> and facility_id = #{facilityId}</if>
<if test="rampId != null "> and ramp_id = #{rampId}</if>
<if test="location != null "> and location = #{location}</if>
</where>
</select>
<select id="selectDcEventTrafficCongestionById" parameterType="String" resultMap="DcEventTrafficCongestionResult">
<include refid="selectDcEventTrafficCongestionVo"/>
where id = #{id}
</select>
<insert id="insertDcEventTrafficCongestion" parameterType="DcEventTrafficCongestion">
insert into dc_event_traffic_congestion
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="congestionMileage != null">congestion_mileage,</if>
<if test="congestionCause != null">congestion_cause,</if>
<if test="facilityId != null">facility_id,</if>
<if test="rampId != null">ramp_id,</if>
<if test="location != null">location,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="congestionMileage != null">#{congestionMileage},</if>
<if test="congestionCause != null">#{congestionCause},</if>
<if test="facilityId != null">#{facilityId},</if>
<if test="rampId != null">#{rampId},</if>
<if test="location != null">#{location},</if>
</trim>
</insert>
<update id="updateDcEventTrafficCongestion" parameterType="DcEventTrafficCongestion">
update dc_event_traffic_congestion
<trim prefix="SET" suffixOverrides=",">
<if test="congestionMileage != null">congestion_mileage = #{congestionMileage},</if>
<if test="congestionCause != null">congestion_cause = #{congestionCause},</if>
<if test="facilityId != null">facility_id = #{facilityId},</if>
<if test="rampId != null">ramp_id = #{rampId},</if>
<if test="location != null">location = #{location},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteDcEventTrafficCongestionById" parameterType="String">
delete from dc_event_traffic_congestion where id = #{id}
</delete>
<delete id="deleteDcEventTrafficCongestionByIds" parameterType="String">
delete from dc_event_traffic_congestion where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

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

@ -0,0 +1,78 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
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">
<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" />
</resultMap>
<sql id="selectDcEventTrafficControlVo">
select id, control_type, control_cause, exits_inlets, facility_id, ramp_id from dc_event_traffic_control
</sql>
<select id="selectDcEventTrafficControlList" parameterType="DcEventTrafficControl" resultMap="DcEventTrafficControlResult">
<include refid="selectDcEventTrafficControlVo"/>
<where>
<if test="controlType != null "> and control_type = #{controlType}</if>
<if test="controlCause != null "> and control_cause = #{controlCause}</if>
<if test="exitsInlets != null "> and exits_inlets = #{exitsInlets}</if>
<if test="facilityId != null "> and facility_id = #{facilityId}</if>
<if test="rampId != null "> and ramp_id = #{rampId}</if>
</where>
</select>
<select id="selectDcEventTrafficControlById" parameterType="String" resultMap="DcEventTrafficControlResult">
<include refid="selectDcEventTrafficControlVo"/>
where id = #{id}
</select>
<insert id="insertDcEventTrafficControl" parameterType="DcEventTrafficControl">
insert into dc_event_traffic_control
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="controlType != null">control_type,</if>
<if test="controlCause != null">control_cause,</if>
<if test="exitsInlets != null">exits_inlets,</if>
<if test="facilityId != null">facility_id,</if>
<if test="rampId != null">ramp_id,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="controlType != null">#{controlType},</if>
<if test="controlCause != null">#{controlCause},</if>
<if test="exitsInlets != null">#{exitsInlets},</if>
<if test="facilityId != null">#{facilityId},</if>
<if test="rampId != null">#{rampId},</if>
</trim>
</insert>
<update id="updateDcEventTrafficControl" parameterType="DcEventTrafficControl">
update dc_event_traffic_control
<trim prefix="SET" suffixOverrides=",">
<if test="controlType != null">control_type = #{controlType},</if>
<if test="controlCause != null">control_cause = #{controlCause},</if>
<if test="exitsInlets != null">exits_inlets = #{exitsInlets},</if>
<if test="facilityId != null">facility_id = #{facilityId},</if>
<if test="rampId != null">ramp_id = #{rampId},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteDcEventTrafficControlById" parameterType="String">
delete from dc_event_traffic_control where id = #{id}
</delete>
<delete id="deleteDcEventTrafficControlByIds" parameterType="String">
delete from dc_event_traffic_control where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

138
zc-business/src/main/resources/mapper/business/DcEventVehicleAccidentMapper.xml

@ -0,0 +1,138 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zc.business.mapper.DcEventVehicleAccidentMapper">
<resultMap type="DcEventVehicleAccident" id="DcEventVehicleAccidentResult">
<result property="id" column="id" />
<result property="reporterName" column="reporter_name" />
<result property="reporterPhoneNumber" column="reporter_phone_number" />
<result property="locationType" column="location_type" />
<result property="trafficJam" column="traffic_jam" />
<result property="weatherCondition" column="weather_condition" />
<result property="congestionAhead" column="congestion_ahead" />
<result property="atIntersection" column="at_intersection" />
<result property="onCurve" column="on_curve" />
<result property="laneOccupancy" column="lane_occupancy" />
<result property="smallCar" column="small_car" />
<result property="trucks" column="trucks" />
<result property="buses" column="buses" />
<result property="tankers" column="tankers" />
<result property="minorInjuries" column="minor_injuries" />
<result property="seriousInjuries" column="serious_injuries" />
<result property="fatalities" column="fatalities" />
<result property="isPrivate" column="is_private" />
</resultMap>
<sql id="selectDcEventVehicleAccidentVo">
select id, reporter_name, reporter_phone_number, location_type, traffic_jam, weather_condition, congestion_ahead, at_intersection, on_curve, lane_occupancy, small_car, trucks, buses, tankers, minor_injuries, serious_injuries, fatalities, is_private from dc_event_vehicle_accident
</sql>
<select id="selectDcEventVehicleAccidentList" parameterType="DcEventVehicleAccident" resultMap="DcEventVehicleAccidentResult">
<include refid="selectDcEventVehicleAccidentVo"/>
<where>
<if test="reporterName != null and reporterName != ''"> and reporter_name like concat('%', #{reporterName}, '%')</if>
<if test="reporterPhoneNumber != null and reporterPhoneNumber != ''"> and reporter_phone_number = #{reporterPhoneNumber}</if>
<if test="locationType != null "> and location_type = #{locationType}</if>
<if test="trafficJam != null "> and traffic_jam = #{trafficJam}</if>
<if test="weatherCondition != null "> and weather_condition = #{weatherCondition}</if>
<if test="congestionAhead != null "> and congestion_ahead = #{congestionAhead}</if>
<if test="atIntersection != null "> and at_intersection = #{atIntersection}</if>
<if test="onCurve != null "> and on_curve = #{onCurve}</if>
<if test="laneOccupancy != null "> and lane_occupancy = #{laneOccupancy}</if>
<if test="smallCar != null "> and small_car = #{smallCar}</if>
<if test="trucks != null "> and trucks = #{trucks}</if>
<if test="buses != null "> and buses = #{buses}</if>
<if test="tankers != null "> and tankers = #{tankers}</if>
<if test="minorInjuries != null "> and minor_injuries = #{minorInjuries}</if>
<if test="seriousInjuries != null "> and serious_injuries = #{seriousInjuries}</if>
<if test="fatalities != null "> and fatalities = #{fatalities}</if>
<if test="isPrivate != null "> and is_private = #{isPrivate}</if>
</where>
</select>
<select id="selectDcEventVehicleAccidentById" parameterType="String" resultMap="DcEventVehicleAccidentResult">
<include refid="selectDcEventVehicleAccidentVo"/>
where id = #{id}
</select>
<insert id="insertDcEventVehicleAccident" parameterType="DcEventVehicleAccident">
insert into dc_event_vehicle_accident
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="reporterName != null and reporterName != ''">reporter_name,</if>
<if test="reporterPhoneNumber != null and reporterPhoneNumber != ''">reporter_phone_number,</if>
<if test="locationType != null">location_type,</if>
<if test="trafficJam != null">traffic_jam,</if>
<if test="weatherCondition != null">weather_condition,</if>
<if test="congestionAhead != null">congestion_ahead,</if>
<if test="atIntersection != null">at_intersection,</if>
<if test="onCurve != null">on_curve,</if>
<if test="laneOccupancy != null">lane_occupancy,</if>
<if test="smallCar != null">small_car,</if>
<if test="trucks != null">trucks,</if>
<if test="buses != null">buses,</if>
<if test="tankers != null">tankers,</if>
<if test="minorInjuries != null">minor_injuries,</if>
<if test="seriousInjuries != null">serious_injuries,</if>
<if test="fatalities != null">fatalities,</if>
<if test="isPrivate != null">is_private,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="reporterName != null and reporterName != ''">#{reporterName},</if>
<if test="reporterPhoneNumber != null and reporterPhoneNumber != ''">#{reporterPhoneNumber},</if>
<if test="locationType != null">#{locationType},</if>
<if test="trafficJam != null">#{trafficJam},</if>
<if test="weatherCondition != null">#{weatherCondition},</if>
<if test="congestionAhead != null">#{congestionAhead},</if>
<if test="atIntersection != null">#{atIntersection},</if>
<if test="onCurve != null">#{onCurve},</if>
<if test="laneOccupancy != null">#{laneOccupancy},</if>
<if test="smallCar != null">#{smallCar},</if>
<if test="trucks != null">#{trucks},</if>
<if test="buses != null">#{buses},</if>
<if test="tankers != null">#{tankers},</if>
<if test="minorInjuries != null">#{minorInjuries},</if>
<if test="seriousInjuries != null">#{seriousInjuries},</if>
<if test="fatalities != null">#{fatalities},</if>
<if test="isPrivate != null">#{isPrivate},</if>
</trim>
</insert>
<update id="updateDcEventVehicleAccident" parameterType="DcEventVehicleAccident">
update dc_event_vehicle_accident
<trim prefix="SET" suffixOverrides=",">
<if test="reporterName != null and reporterName != ''">reporter_name = #{reporterName},</if>
<if test="reporterPhoneNumber != null and reporterPhoneNumber != ''">reporter_phone_number = #{reporterPhoneNumber},</if>
<if test="locationType != null">location_type = #{locationType},</if>
<if test="trafficJam != null">traffic_jam = #{trafficJam},</if>
<if test="weatherCondition != null">weather_condition = #{weatherCondition},</if>
<if test="congestionAhead != null">congestion_ahead = #{congestionAhead},</if>
<if test="atIntersection != null">at_intersection = #{atIntersection},</if>
<if test="onCurve != null">on_curve = #{onCurve},</if>
<if test="laneOccupancy != null">lane_occupancy = #{laneOccupancy},</if>
<if test="smallCar != null">small_car = #{smallCar},</if>
<if test="trucks != null">trucks = #{trucks},</if>
<if test="buses != null">buses = #{buses},</if>
<if test="tankers != null">tankers = #{tankers},</if>
<if test="minorInjuries != null">minor_injuries = #{minorInjuries},</if>
<if test="seriousInjuries != null">serious_injuries = #{seriousInjuries},</if>
<if test="fatalities != null">fatalities = #{fatalities},</if>
<if test="isPrivate != null">is_private = #{isPrivate},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteDcEventVehicleAccidentById" parameterType="String">
delete from dc_event_vehicle_accident where id = #{id}
</delete>
<delete id="deleteDcEventVehicleAccidentByIds" parameterType="String">
delete from dc_event_vehicle_accident where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

96
zc-business/src/main/resources/mapper/business/DcRampMapper.xml

@ -0,0 +1,96 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zc.business.mapper.DcRampMapper">
<resultMap type="com.zc.business.domain.DcRamp" id="DcRampResult">
<result property="id" column="id" />
<result property="facilityId" column="facility_id" />
<result property="rampName" column="ramp_name" />
<result property="lengthMeters" column="length_meters" />
<result property="designSpeed" column="design_speed" />
<result property="rampType" column="ramp_type" />
<result property="widthMeters" column="width_meters" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectDcRampVo">
select id, facility_id, ramp_name, length_meters, design_speed, ramp_type, width_meters, create_time, update_time from dc_ramp
</sql>
<select id="selectDcRampList" parameterType="DcRamp" resultMap="DcRampResult">
<include refid="selectDcRampVo"/>
<where>
<if test="facilityId != null "> and facility_id = #{facilityId}</if>
<if test="rampName != null and rampName != ''"> and ramp_name like concat('%', #{rampName}, '%')</if>
<if test="lengthMeters != null "> and length_meters = #{lengthMeters}</if>
<if test="designSpeed != null "> and design_speed = #{designSpeed}</if>
<if test="rampType != null and rampType != ''"> and ramp_type = #{rampType}</if>
<if test="widthMeters != null "> and width_meters = #{widthMeters}</if>
</where>
</select>
<select id="selectDcRampById" parameterType="Long" resultMap="DcRampResult">
<include refid="selectDcRampVo"/>
where id = #{id}
</select>
<select id="selectDcRampListAll" parameterType="Long" resultMap="DcRampResult">
<include refid="selectDcRampVo"/>
where facility_id = #{type}
</select>
<insert id="insertDcRamp" parameterType="DcRamp" useGeneratedKeys="true" keyProperty="id">
insert into dc_ramp
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="facilityId != null">facility_id,</if>
<if test="rampName != null and rampName != ''">ramp_name,</if>
<if test="lengthMeters != null">length_meters,</if>
<if test="designSpeed != null">design_speed,</if>
<if test="rampType != null">ramp_type,</if>
<if test="widthMeters != null">width_meters,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="facilityId != null">#{facilityId},</if>
<if test="rampName != null and rampName != ''">#{rampName},</if>
<if test="lengthMeters != null">#{lengthMeters},</if>
<if test="designSpeed != null">#{designSpeed},</if>
<if test="rampType != null">#{rampType},</if>
<if test="widthMeters != null">#{widthMeters},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateDcRamp" parameterType="DcRamp">
update dc_ramp
<trim prefix="SET" suffixOverrides=",">
<if test="facilityId != null">facility_id = #{facilityId},</if>
<if test="rampName != null and rampName != ''">ramp_name = #{rampName},</if>
<if test="lengthMeters != null">length_meters = #{lengthMeters},</if>
<if test="designSpeed != null">design_speed = #{designSpeed},</if>
<if test="rampType != null">ramp_type = #{rampType},</if>
<if test="widthMeters != null">width_meters = #{widthMeters},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteDcRampById" parameterType="Long">
delete from dc_ramp where id = #{id}
</delete>
<delete id="deleteDcRampByIds" parameterType="String">
delete from dc_ramp where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
Loading…
Cancel
Save