From 82ae4f6d66e2593c80342584c35341fcd4135dc9 Mon Sep 17 00:00:00 2001 From: "liang.chao" <1360241448@qq.com> Date: Wed, 18 Dec 2024 17:58:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=AB=E6=8D=B7=E6=B6=88=E6=81=AF=E5=9B=9E?= =?UTF-8?q?=E5=A4=8D=E8=BF=94=E5=9B=9E=E6=8A=A5=E9=94=99=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/bonus/material/reply/entity/BmReply.java | 5 +++-- .../src/main/resources/mapper/material/reply/ReplyMapper.xml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/reply/entity/BmReply.java b/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/reply/entity/BmReply.java index 0cb2f81..119dbe3 100644 --- a/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/reply/entity/BmReply.java +++ b/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/reply/entity/BmReply.java @@ -1,6 +1,7 @@ package com.bonus.material.reply.entity; import com.alibaba.fastjson2.annotation.JSONField; +import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; @@ -31,14 +32,14 @@ public class BmReply { @ApiModelProperty(value = "创建时间") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") - @JSONField(format = "yyyy-MM-dd HH:mm:ss") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") private Date createrTime; @ApiModelProperty(value = "修改人") private Integer updater; @ApiModelProperty(value = "修改时间") - @JSONField(format = "yyyy-MM-dd HH:mm:ss") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") private Date updaterTime; diff --git a/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/reply/ReplyMapper.xml b/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/reply/ReplyMapper.xml index a85bbaa..1c3f571 100644 --- a/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/reply/ReplyMapper.xml +++ b/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/reply/ReplyMapper.xml @@ -53,7 +53,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" AND br.creater_time BETWEEN CONCAT(#{startTime}, ' 00:00:00') AND CONCAT(#{endTime}, ' 23:59:59') - AND reply_com = #{replyCom}, + AND reply_com = #{replyCom}