From c6974ceac4899fbfe799c0cec1102ea57c739f32 Mon Sep 17 00:00:00 2001 From: NH-LHG Date: Thu, 8 Jun 2023 09:17:04 +0800 Subject: [PATCH] =?UTF-8?q?[update]=E8=AE=A2=E5=8D=95=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/demo/erp/controller/OrderController.java | 2 ++ .../main/java/org/jeecg/modules/demo/erp/entity/Bbs.java | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/erp/controller/OrderController.java b/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/erp/controller/OrderController.java index e3cc64b..3885048 100644 --- a/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/erp/controller/OrderController.java +++ b/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/erp/controller/OrderController.java @@ -100,6 +100,8 @@ public class OrderController { records.add(orderExt); }); pageExt.setRecords(records); + pageExt.setTotal(pageList.getTotal()); + pageExt.setPages(pageList.getPages()); return Result.OK(pageExt); } diff --git a/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/erp/entity/Bbs.java b/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/erp/entity/Bbs.java index 6550f81..14de306 100644 --- a/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/erp/entity/Bbs.java +++ b/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/erp/entity/Bbs.java @@ -81,7 +81,13 @@ public class Bbs implements Serializable { /**产品id*/ @Excel(name = "产品id", width = 15) @ApiModelProperty(value = "产品id") - private java.lang.Integer goodId; + @JsonSerialize(using = ToStringSerializer.class) + private java.lang.Long goodId; + /**订单id*/ + @Excel(name = "订单id", width = 15) + @ApiModelProperty(value = "订单id") + @JsonSerialize(using = ToStringSerializer.class) + private java.lang.Long orderId; /**产品*/ @Excel(name = "产品", width = 15) @ApiModelProperty(value = "产品")