From 8f4fa6f93d91a647f48ddb79e4579e0dd14b8f2e Mon Sep 17 00:00:00 2001 From: wangtongzhou Date: Sun, 19 May 2019 16:47:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8B=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E7=9A=84=E8=AF=84=E8=AE=BAmapper?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cn/iocoder/mall/order/api/dto/OrderCommentPageDTO.java | 4 +++- .../iocoder/mall/order/api/dto/OrderCommentReplyPageDTO.java | 3 ++- .../src/main/resources/mapper/OrderCommentMapper.xml | 4 ++-- .../src/main/resources/mapper/OrderCommentReplayMapper.xml | 4 ++-- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/order/order-service-api/src/main/java/cn/iocoder/mall/order/api/dto/OrderCommentPageDTO.java b/order/order-service-api/src/main/java/cn/iocoder/mall/order/api/dto/OrderCommentPageDTO.java index f26ea071b..3d465ba1a 100644 --- a/order/order-service-api/src/main/java/cn/iocoder/mall/order/api/dto/OrderCommentPageDTO.java +++ b/order/order-service-api/src/main/java/cn/iocoder/mall/order/api/dto/OrderCommentPageDTO.java @@ -3,6 +3,8 @@ package cn.iocoder.mall.order.api.dto; import lombok.Data; import lombok.experimental.Accessors; +import java.io.Serializable; + /** * * 订单评论 query @@ -10,7 +12,7 @@ import lombok.experimental.Accessors; */ @Data @Accessors(chain = true) -public class OrderCommentPageDTO { +public class OrderCommentPageDTO implements Serializable { /** * 商品 sku id diff --git a/order/order-service-api/src/main/java/cn/iocoder/mall/order/api/dto/OrderCommentReplyPageDTO.java b/order/order-service-api/src/main/java/cn/iocoder/mall/order/api/dto/OrderCommentReplyPageDTO.java index ecdf05d78..3881410d0 100644 --- a/order/order-service-api/src/main/java/cn/iocoder/mall/order/api/dto/OrderCommentReplyPageDTO.java +++ b/order/order-service-api/src/main/java/cn/iocoder/mall/order/api/dto/OrderCommentReplyPageDTO.java @@ -4,6 +4,7 @@ package cn.iocoder.mall.order.api.dto; import lombok.Data; import lombok.experimental.Accessors; +import java.io.Serializable; import java.util.Date; /** @@ -15,7 +16,7 @@ import java.util.Date; */ @Data @Accessors(chain = true) -public class OrderCommentReplyPageDTO { +public class OrderCommentReplyPageDTO implements Serializable { /** * 评论 id diff --git a/order/order-service-impl/src/main/resources/mapper/OrderCommentMapper.xml b/order/order-service-impl/src/main/resources/mapper/OrderCommentMapper.xml index f1b274aec..514ccb606 100644 --- a/order/order-service-impl/src/main/resources/mapper/OrderCommentMapper.xml +++ b/order/order-service-impl/src/main/resources/mapper/OrderCommentMapper.xml @@ -9,7 +9,7 @@ - + INSERT INTO order_comment(order_id,order_no,product_spu_id,product_spu_name,product_sku_id, product_sku_attrs,product_sku_price,product_sku_pic_url,user_id,user_avatar,user_nick_name,star, product_description_star,logistics_star,merchant_star,comment_content,comment_pics,create_time,update_time) @@ -28,7 +28,7 @@ - SELECT FROM order_comment diff --git a/order/order-service-impl/src/main/resources/mapper/OrderCommentReplayMapper.xml b/order/order-service-impl/src/main/resources/mapper/OrderCommentReplayMapper.xml index 325439262..aa7ed9227 100644 --- a/order/order-service-impl/src/main/resources/mapper/OrderCommentReplayMapper.xml +++ b/order/order-service-impl/src/main/resources/mapper/OrderCommentReplayMapper.xml @@ -8,7 +8,7 @@ - + INSERT INTO `order_comment_replay`(comment_id,reply_type,parent_id,parent_user_id,parent_user_nick_name,parent_user_avatar,reply_content,reply_user_id reply_user_nick_name,reply_user_avatar,user_type,create_time,update_time) VALUES (#{commentId},#{replyType},#{parentId},#{parentUserId},#{parentUserNickName},#{parentUserAvatar},#{replyContent},#{replyUserId}, @@ -39,7 +39,7 @@ - SELECT FROM order_comment_replay