日期问题
This commit is contained in:
@@ -127,13 +127,13 @@
|
||||
and o.sys_user_id=#{sysUserId}
|
||||
</if>
|
||||
<if test="startTime!=null and startTime!='' and endTime!=null and endTime!=''">
|
||||
and date_format(o.create_time,'%Y-%m-%d') BETWEEN #{startTime} and #{endTime}
|
||||
and o.create_time BETWEEN #{startTime} and #{endTime}
|
||||
</if>
|
||||
<if test="startTime!=null and startTime!='' and (endTime==null or endTime=='')">
|
||||
and date_format(o.create_time,'%Y-%m-%d') >= #{startTime}
|
||||
and o.create_time >= #{startTime}
|
||||
</if>
|
||||
<if test="endTime!=null and endTime!='' and (startTime==null or startTime=='')">
|
||||
and date_format(o.create_time,'%Y-%m-%d') <= #{endTime}
|
||||
and o.create_time <= #{endTime}
|
||||
</if>
|
||||
order by o.create_time desc
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user