Commit 79b1a668 authored by lining's avatar lining

feat: 日期格式化

parent bedc2e60
......@@ -14,7 +14,7 @@
and valuator_id = #{userId}
</if>
<if test="month != null and month != ''">
and date_format(create_time,'%Y%m') = #{month}
and date_format(create_time,'%Y-%m') = #{month}
</if>
<if test="keyWord != null and keyWord != ''">
<bind name="p1" value="'%' + keyWord + '%'"/>
......@@ -33,7 +33,7 @@
#{orderStatus}
</foreach>
<if test="month != null and month != ''">
and date_format(create_time,'%Y%m') = #{month}
and date_format(create_time,'%Y-%m') = #{month}
</if>
<if test="keyWord != null and keyWord != ''">
<bind name="p1" value="'%' + keyWord + '%'"/>
......
......@@ -28,7 +28,7 @@ public class PageServiceOrderDTO extends PageParams {
private Integer orderStatus;
@ApiModelProperty(value = "月份")
@Size(min = 6, max = 6, message = "月份格式不正确[yyyyMM]")
@Size(min = 7, max = 7, message = "月份格式不正确[yyyy-MM]")
private String month;
@ApiModelProperty(value = "模糊查询关键字,可输入客户名,服务地址,服务类型")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment