From c5a9744c37bd737c0f8871b27b62759f80a80a55 Mon Sep 17 00:00:00 2001 From: wangsixiang <2970484253@qq.com> Date: Fri, 2 Feb 2024 19:36:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=84=9F=E7=9F=A5=E8=BD=A6=E8=BE=86=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/zc/business/domain/DcWarning.java | 8 ++++++++ .../mapper/business/DcPerceivedEventsWarningMapper.xml | 1 + .../main/resources/mapper/business/DcWarningMapper.xml | 8 ++++++-- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/zc-business/src/main/java/com/zc/business/domain/DcWarning.java b/zc-business/src/main/java/com/zc/business/domain/DcWarning.java index 1dfe4227..d7f02601 100644 --- a/zc-business/src/main/java/com/zc/business/domain/DcWarning.java +++ b/zc-business/src/main/java/com/zc/business/domain/DcWarning.java @@ -113,7 +113,15 @@ public class DcWarning extends BaseEntity private String latitude; + private String vehicleType; + public String getVehicleType() { + return vehicleType; + } + + public void setVehicleType(String vehicleType) { + this.vehicleType = vehicleType; + } public String getLane() { return lane; diff --git a/zc-business/src/main/resources/mapper/business/DcPerceivedEventsWarningMapper.xml b/zc-business/src/main/resources/mapper/business/DcPerceivedEventsWarningMapper.xml index 7be20301..8e2305d5 100644 --- a/zc-business/src/main/resources/mapper/business/DcPerceivedEventsWarningMapper.xml +++ b/zc-business/src/main/resources/mapper/business/DcPerceivedEventsWarningMapper.xml @@ -252,6 +252,7 @@ warning_title = #{warningTitle}, other_config = #{otherConfig}, lane = #{lane}, + vehicle_type = #{vehicleType}, where id = #{id} diff --git a/zc-business/src/main/resources/mapper/business/DcWarningMapper.xml b/zc-business/src/main/resources/mapper/business/DcWarningMapper.xml index 4bc4185b..29e59c9c 100644 --- a/zc-business/src/main/resources/mapper/business/DcWarningMapper.xml +++ b/zc-business/src/main/resources/mapper/business/DcWarningMapper.xml @@ -22,11 +22,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + select id, stake_mark stakeMark, direction, dept_id deptId, - warning_state warningState, + warning_state warningState,vehicle_type, DATE_FORMAT(warning_time,'%Y-%m-%d %H:%m:%s')warningTime, user_id userId, warning_source warningSource, warning_level warningLevel, remark, DATE_FORMAT(create_time,'%Y-%m-%d %H:%m:%s')createTime, @@ -60,7 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"