From 510a48e7e4209f9f33ee26a29d7b2f7c86dbe512 Mon Sep 17 00:00:00 2001 From: NH-LHG Date: Thu, 8 Jun 2023 10:14:40 +0800 Subject: [PATCH] =?UTF-8?q?[init]=E5=88=9B=E5=BB=BA=E8=83=BD=E8=BE=89erp?= =?UTF-8?q?=20=E7=B3=BB=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/jeecg/modules/demo/erp/entity/OrderDetail.java | 6 ++++++ .../jeecg/modules/demo/erp/entity/ext/OrderDetailExt.java | 1 - .../jeecg/modules/demo/erp/mapper/xml/OrderDetailMapper.xml | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/erp/entity/OrderDetail.java b/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/erp/entity/OrderDetail.java index c0abe7e..465a786 100644 --- a/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/erp/entity/OrderDetail.java +++ b/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/erp/entity/OrderDetail.java @@ -32,15 +32,21 @@ public class OrderDetail implements Serializable { private java.lang.Long id; /**主单id*/ @ApiModelProperty(value = "主单id") + @JsonSerialize(using = ToStringSerializer.class) private java.lang.Long orderId; /**产品id*/ @Excel(name = "产品id", width = 15) @ApiModelProperty(value = "产品id") + @JsonSerialize(using = ToStringSerializer.class) private java.lang.Long goodsId; /**产品名称*/ @Excel(name = "产品名称", width = 15) @ApiModelProperty(value = "产品名称") private java.lang.String goodsName; + /**价格*/ + @Excel(name = "价格", width = 15) + @ApiModelProperty(value = "价格") + private java.math.BigDecimal price; /**产品数量*/ @Excel(name = "产品数量", width = 15) @ApiModelProperty(value = "产品数量") diff --git a/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/erp/entity/ext/OrderDetailExt.java b/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/erp/entity/ext/OrderDetailExt.java index 2c5a6f2..69ed28d 100644 --- a/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/erp/entity/ext/OrderDetailExt.java +++ b/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/erp/entity/ext/OrderDetailExt.java @@ -13,5 +13,4 @@ public class OrderDetailExt extends OrderDetail { private java.lang.String category; private java.lang.String unit; private java.lang.String url; - private java.math.BigDecimal price; } diff --git a/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/erp/mapper/xml/OrderDetailMapper.xml b/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/erp/mapper/xml/OrderDetailMapper.xml index c52c465..f873a4f 100644 --- a/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/erp/mapper/xml/OrderDetailMapper.xml +++ b/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/erp/mapper/xml/OrderDetailMapper.xml @@ -16,7 +16,7 @@