订单详情时间类型修改

This commit is contained in:
liang.chao 2024-11-28 17:06:17 +08:00
parent 8f527398ba
commit 791257c768
2 changed files with 3 additions and 3 deletions

View File

@ -28,11 +28,11 @@ public class OrderInfoDto {
private Date orderTime;
@ApiModelProperty(value = "开始日期")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date startTime;
@ApiModelProperty(value = "结束日期")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date endTime;
@ApiModelProperty(value = "订单金额")

View File

@ -95,7 +95,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="orderStatus != null and orderStatus != ''">
AND hh.order_status = #{orderStatus}
</if>
<if test="startTime != null and startTime != '' and endTime != null and endTime != '' ">
<if test="startTime != null and endTime != null ">
AND moi.order_time BETWEEN CONCAT(#{startTime}, ' 00:00:00') AND CONCAT(#{endTime}, ' 23:59:59')
</if>
<if test="czcompanyName != null and czcompanyName != ''">