From 7c975db5c646b1857f222e169b70072600bc87a0 Mon Sep 17 00:00:00 2001 From: phpcjl <phpcjl@gmail.com> Date: 星期五, 06 十二月 2024 18:14:29 +0800 Subject: [PATCH] 1. --- ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/vo/OrderVO.java | 2 +- ruoyi-service/ruoyi-order/src/main/resources/mapper/order/OrderMapper.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/vo/OrderVO.java b/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/vo/OrderVO.java index e601b72..b837117 100644 --- a/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/vo/OrderVO.java +++ b/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/vo/OrderVO.java @@ -10,7 +10,7 @@ @Data public class OrderVO { @ApiModelProperty(value = "订单id") - private Long id; + private String id; @ApiModelProperty(value = "订单编号") private String orderNumber; diff --git a/ruoyi-service/ruoyi-order/src/main/resources/mapper/order/OrderMapper.xml b/ruoyi-service/ruoyi-order/src/main/resources/mapper/order/OrderMapper.xml index 5d023bb..e6f9770 100644 --- a/ruoyi-service/ruoyi-order/src/main/resources/mapper/order/OrderMapper.xml +++ b/ruoyi-service/ruoyi-order/src/main/resources/mapper/order/OrderMapper.xml @@ -5,7 +5,7 @@ <select id="selectOrderListByUserId" resultType="com.ruoyi.order.vo.OrderVO"> SELECT - o.id, + CAST(o.id AS CHAR) id, o.order_number, o.order_status, o.good_name, -- Gitblit v1.7.1