From 69b6b817ac142418eb6aa8610fc7d12dbd04f315 Mon Sep 17 00:00:00 2001 From: wayn <1669738430@qq.com> Date: Sun, 4 Oct 2020 15:20:34 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=90=8E=E5=8F=B0=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E8=AF=84=E8=AE=BA=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加评论管理菜单 --- .../main/java/com/wayn/common/core/domain/shop/Comment.java | 5 ++++- .../src/main/resources/mapper/shop/CommentMapper.xml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/waynboot-common/src/main/java/com/wayn/common/core/domain/shop/Comment.java b/waynboot-common/src/main/java/com/wayn/common/core/domain/shop/Comment.java index 9333c77..90018c7 100644 --- a/waynboot-common/src/main/java/com/wayn/common/core/domain/shop/Comment.java +++ b/waynboot-common/src/main/java/com/wayn/common/core/domain/shop/Comment.java @@ -1,8 +1,10 @@ package com.wayn.common.core.domain.shop; import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler; import com.wayn.common.base.ShopBaseEntity; import lombok.Data; import lombok.EqualsAndHashCode; @@ -60,7 +62,8 @@ public class Comment extends ShopBaseEntity implements Serializable { /** * 图片地址列表,采用JSON数组格式 */ - private String picUrls; + @TableField(typeHandler = JacksonTypeHandler.class) + private String[] picUrls; /** * 评分, 1-5 diff --git a/waynboot-common/src/main/resources/mapper/shop/CommentMapper.xml b/waynboot-common/src/main/resources/mapper/shop/CommentMapper.xml index 958cdf4..65db194 100644 --- a/waynboot-common/src/main/resources/mapper/shop/CommentMapper.xml +++ b/waynboot-common/src/main/resources/mapper/shop/CommentMapper.xml @@ -11,7 +11,7 @@ - +