From ba173dcac889ea21468ce70ce4149e038d32e220 Mon Sep 17 00:00:00 2001 From: 19173159168 Date: Thu, 14 Aug 2025 00:00:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E5=A2=9E=E5=8A=A0=E8=BD=A6?= =?UTF-8?q?=E6=8D=9F=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ruoyi/orders/domain/ZcOrderMain.java | 22 ++++++++ .../mapper/orders/ZcOrderMainMapper.xml | 22 ++++---- .../templates/operation/carBrand/edit.html | 11 ++++ .../templates/orders/order/edit.html | 51 +++++++++++++------ 4 files changed, 81 insertions(+), 25 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/orders/domain/ZcOrderMain.java b/ruoyi-admin/src/main/java/com/ruoyi/orders/domain/ZcOrderMain.java index 1955035..1da9296 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/orders/domain/ZcOrderMain.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/orders/domain/ZcOrderMain.java @@ -145,6 +145,12 @@ public class ZcOrderMain extends BaseEntity /** 租电套餐id */ private Long rentBatteyRuleId; + /** 车损金额(元) */ + private BigDecimal damageAmount; + + /** 车损描述 */ + private String damageDesc; + /** 订单总金额 */ private BigDecimal orderAmount; /** 订单结束时间 */ @@ -482,6 +488,22 @@ public class ZcOrderMain extends BaseEntity this.overdueType = overdueType; } + public BigDecimal getDamageAmount() { + return damageAmount; + } + + public void setDamageAmount(BigDecimal damageAmount) { + this.damageAmount = damageAmount; + } + + public String getDamageDesc() { + return damageDesc; + } + + public void setDamageDesc(String damageDesc) { + this.damageDesc = damageDesc; + } + @Override public String toString() { return new ToStringBuilder(this) diff --git a/ruoyi-admin/src/main/resources/mapper/orders/ZcOrderMainMapper.xml b/ruoyi-admin/src/main/resources/mapper/orders/ZcOrderMainMapper.xml index 568735f..5ce8ddc 100644 --- a/ruoyi-admin/src/main/resources/mapper/orders/ZcOrderMainMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/orders/ZcOrderMainMapper.xml @@ -3,7 +3,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + @@ -35,6 +35,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + + @@ -67,17 +69,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - select order_id, order_no, order_status, operator_id, store_id, vehicle_id, car_model_id, customer_id, customer_name, customer_phone, battery_type, rental_type, rental_days, rental_price, deposit_price, overdue_fee, overdue_type, is_deposit_free, is_auto_deduct, first_order_time, pick_car_time, start_rent_time, end_rent_time, req_end_rent_time, act_end_rent_time, overdue_days, renewal_times, charge_times, rent_car_rule_id, rent_battey_rule_id, order_amount, end_order_time, del_flag, create_time, update_time from zc_order_main + select order_id, order_no, order_status, operator_id, store_id, vehicle_id, car_model_id, customer_id, customer_name, customer_phone, battery_type, rental_type, rental_days, rental_price, deposit_price, overdue_fee, overdue_type, is_deposit_free, is_auto_deduct, first_order_time, pick_car_time, start_rent_time, end_rent_time, req_end_rent_time, act_end_rent_time, overdue_days, renewal_times, charge_times, rent_car_rule_id, rent_battey_rule_id, damage_amount,damage_desc, order_amount, end_order_time, del_flag, create_time, update_time from zc_order_main - + - + insert into zc_order_main @@ -214,14 +216,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - delete from zc_order_main where order_id in + delete from zc_order_main where order_id in #{orderId} - + - delete from zc_order_sub where order_id in + delete from zc_order_sub where order_id in #{orderId} diff --git a/ruoyi-admin/src/main/resources/templates/operation/carBrand/edit.html b/ruoyi-admin/src/main/resources/templates/operation/carBrand/edit.html index 8ecec0f..70cce59 100644 --- a/ruoyi-admin/src/main/resources/templates/operation/carBrand/edit.html +++ b/ruoyi-admin/src/main/resources/templates/operation/carBrand/edit.html @@ -2,6 +2,17 @@ +
diff --git a/ruoyi-admin/src/main/resources/templates/orders/order/edit.html b/ruoyi-admin/src/main/resources/templates/orders/order/edit.html index 4c9ded8..d7badee 100644 --- a/ruoyi-admin/src/main/resources/templates/orders/order/edit.html +++ b/ruoyi-admin/src/main/resources/templates/orders/order/edit.html @@ -3,6 +3,17 @@ +
@@ -14,7 +25,7 @@
- +
@@ -24,7 +35,7 @@
- +
@@ -34,7 +45,7 @@
- +
@@ -44,7 +55,7 @@
- +
@@ -54,7 +65,7 @@
- +
@@ -64,7 +75,7 @@
- +
@@ -74,11 +85,11 @@
- -
-
- -
-
+ +
+ - + +
@@ -86,7 +97,7 @@
- +
@@ -96,7 +107,7 @@
- +
@@ -106,7 +117,7 @@
- +
@@ -118,9 +129,19 @@
+
+ +
+
+
+ +
+
+
+
- +

租车子订单信息