diff --git a/ruoyi-admin/src/main/resources/templates/manage/order/edit.html b/ruoyi-admin/src/main/resources/templates/manage/order/edit.html
index aa0f8c7f..cb6fc21c 100644
--- a/ruoyi-admin/src/main/resources/templates/manage/order/edit.html
+++ b/ruoyi-admin/src/main/resources/templates/manage/order/edit.html
@@ -88,30 +88,30 @@
-
@@ -252,6 +252,15 @@
return html;
}
},
+ {
+ field: 'discount',
+ align: 'center',
+ title: '折扣',
+ formatter: function(value, row, index) {
+ var html = $.common.sprintf("", index, value);
+ return html;
+ }
+ },
{
field: 'amount',
diff --git a/ruoyi-sip/src/main/java/com/ruoyi/sip/domain/OrderList.java b/ruoyi-sip/src/main/java/com/ruoyi/sip/domain/OrderList.java
index e8ed2be2..8d4763c7 100644
--- a/ruoyi-sip/src/main/java/com/ruoyi/sip/domain/OrderList.java
+++ b/ruoyi-sip/src/main/java/com/ruoyi/sip/domain/OrderList.java
@@ -47,6 +47,8 @@ public class OrderList extends BaseEntity
/** 总价 */
@Excel(name = "总价")
private BigDecimal amount;
+ /** 优惠 */
+ private BigDecimal discount;
/** 创建时间 */
diff --git a/ruoyi-sip/src/main/resources/mapper/manage/OrderInfoMapper.xml b/ruoyi-sip/src/main/resources/mapper/manage/OrderInfoMapper.xml
index a0ad37c4..0eb31ae5 100644
--- a/ruoyi-sip/src/main/resources/mapper/manage/OrderInfoMapper.xml
+++ b/ruoyi-sip/src/main/resources/mapper/manage/OrderInfoMapper.xml
@@ -154,6 +154,7 @@
t1.product_code,
t2.product_name,
t1.quantity,
+ t1.discount,
t1.price,
t1.amount,
t1.remark,
@@ -279,6 +280,8 @@
quantity = #{item.quantity},
amount = #{item.amount},
+ discount = #{item.discount},
+ price = #{item.price},
remark = #{item.remark},
updated_at = NOW(),