From 52b80b988e1c97a375293a428f8ba4c1ac068162 Mon Sep 17 00:00:00 2001 From: Yangwl <1726150332@qq.com> Date: Wed, 22 Mar 2023 14:21:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/basetyre/domain/BaseCar.java | 13 ++++++++----- .../resources/mapper/basetyre/BaseCarMapper.xml | 13 +++++++++---- .../mapper/basetyre/BaseCarQueueMapper.xml | 10 ++++++---- .../resources/mapper/basetyre/BaseCarTypeMapper.xml | 2 +- .../resources/mapper/basetyre/BaseDeviceMapper.xml | 2 +- .../realTimeMonitoring/carMonitoring/index.vue | 8 ++++---- ruoyi-ui/src/views/report/temppresspeed/index.vue | 9 +++++++-- ruoyi-ui/src/views/report/tyremileage/index.vue | 13 +++++++++++++ ruoyi-ui/src/views/tireManagement/info/index.vue | 2 ++ 9 files changed, 51 insertions(+), 21 deletions(-) create mode 100644 ruoyi-ui/src/views/report/tyremileage/index.vue diff --git a/ruoyi-basetyre/src/main/java/com/ruoyi/basetyre/domain/BaseCar.java b/ruoyi-basetyre/src/main/java/com/ruoyi/basetyre/domain/BaseCar.java index 121d2eb..d4ff4f4 100644 --- a/ruoyi-basetyre/src/main/java/com/ruoyi/basetyre/domain/BaseCar.java +++ b/ruoyi-basetyre/src/main/java/com/ruoyi/basetyre/domain/BaseCar.java @@ -24,7 +24,7 @@ public class BaseCar extends BaseEntity /** 主键 */ private String id; - private String tyreid; + /** 企业编号 */ @Excel(name = "企业编号") @@ -135,14 +135,17 @@ public class BaseCar extends BaseEntity //车队id private String queueId; + private String carQueue; + private List TyreList; - public String getTyreid() { - return tyreid; + + public String getCarQueue() { + return carQueue; } - public void setTyreid(String tyreid) { - this.tyreid = tyreid; + public void setCarQueue(String carQueue) { + this.carQueue = carQueue; } public String getCartype() { diff --git a/ruoyi-basetyre/src/main/resources/mapper/basetyre/BaseCarMapper.xml b/ruoyi-basetyre/src/main/resources/mapper/basetyre/BaseCarMapper.xml index d3fdba4..9130b6a 100644 --- a/ruoyi-basetyre/src/main/resources/mapper/basetyre/BaseCarMapper.xml +++ b/ruoyi-basetyre/src/main/resources/mapper/basetyre/BaseCarMapper.xml @@ -8,6 +8,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + @@ -76,9 +77,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" LEFT JOIN base_car_queue bcq ON bc.car_queue_id = bcq.id LEFT JOIN base_car_type bct ON bct.id = bc.car_type_id + bc.is_delete != '1' and bc.id = #{id} and bc.car_license like concat('%', #{carLicense}, '%') - @@ -129,13 +130,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" bt.current_texture_depth, bt.state, bt.tyre_position, - bct.title as cartype + bct.title as cartype, + bcq.title as car_queue FROM base_car bc LEFT JOIN base_device bd ON bc.device_id = bd.internet_things_no LEFT JOIN base_car_type bct ON bc.car_type_id=bct.id LEFT JOIN base_tyre bt on bt.car_id=bc.id - + LEFT JOIN base_car_queue bcq ON bc.car_queue_id = bcq.id bc.is_delete != '1' and bc.id = #{id} @@ -256,7 +258,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - + update base_car set is_delete = '1' where id in + + #{id} + update base_car diff --git a/ruoyi-basetyre/src/main/resources/mapper/basetyre/BaseCarQueueMapper.xml b/ruoyi-basetyre/src/main/resources/mapper/basetyre/BaseCarQueueMapper.xml index d41fed6..60c29f4 100644 --- a/ruoyi-basetyre/src/main/resources/mapper/basetyre/BaseCarQueueMapper.xml +++ b/ruoyi-basetyre/src/main/resources/mapper/basetyre/BaseCarQueueMapper.xml @@ -26,7 +26,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - @@ -65,11 +64,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" bcq.create_by, bcq.create_name, bc.id as car_id, - bc.car_license, - bc.is_delete + bc.car_license FROM base_car_queue bcq LEFT JOIN base_car bc on bcq.id = bc.car_queue_id + + bcq.is_delete = '0' and bc.is_delete = '0' + and bcq.title = #{title} + @@ -139,7 +141,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - delete from base_car_queue where id in + update base_car_queue set is_delete = '1' where id in #{id} diff --git a/ruoyi-basetyre/src/main/resources/mapper/basetyre/BaseCarTypeMapper.xml b/ruoyi-basetyre/src/main/resources/mapper/basetyre/BaseCarTypeMapper.xml index c46d492..c555d6b 100644 --- a/ruoyi-basetyre/src/main/resources/mapper/basetyre/BaseCarTypeMapper.xml +++ b/ruoyi-basetyre/src/main/resources/mapper/basetyre/BaseCarTypeMapper.xml @@ -128,7 +128,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - delete from base_car_type where id in + update base_car_type set is_delete = '1' where id in #{id} diff --git a/ruoyi-basetyre/src/main/resources/mapper/basetyre/BaseDeviceMapper.xml b/ruoyi-basetyre/src/main/resources/mapper/basetyre/BaseDeviceMapper.xml index 91fec58..d99bf49 100644 --- a/ruoyi-basetyre/src/main/resources/mapper/basetyre/BaseDeviceMapper.xml +++ b/ruoyi-basetyre/src/main/resources/mapper/basetyre/BaseDeviceMapper.xml @@ -128,7 +128,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - delete from base_device where id in + update base_device set is_delete = '1' where id in #{id} diff --git a/ruoyi-ui/src/views/realTimeMonitoring/carMonitoring/index.vue b/ruoyi-ui/src/views/realTimeMonitoring/carMonitoring/index.vue index f377499..83e95a2 100644 --- a/ruoyi-ui/src/views/realTimeMonitoring/carMonitoring/index.vue +++ b/ruoyi-ui/src/views/realTimeMonitoring/carMonitoring/index.vue @@ -270,7 +270,7 @@ + + \ No newline at end of file diff --git a/ruoyi-ui/src/views/tireManagement/info/index.vue b/ruoyi-ui/src/views/tireManagement/info/index.vue index 2c2b918..bdf408a 100644 --- a/ruoyi-ui/src/views/tireManagement/info/index.vue +++ b/ruoyi-ui/src/views/tireManagement/info/index.vue @@ -242,10 +242,12 @@