当前位置:网站首页>Notes and bugs generated during the use of h:i:s and y-m-d
Notes and bugs generated during the use of h:i:s and y-m-d
2022-07-03 08:46:00 【The luckier~】
When the selected dates are 2022-02-09 Make screening conditions when , There's no data , The parameters passed to the backend here are “2022-02-09 00:00:00”,“2022-02-09 00:00:00”, In this way, the screening range is very narrow . Because the back-end code is accurate to seconds
Here are some Wrong writing
.
The back-end code is accurate to seconds
// The back-end code is accurate to seconds --- Wrong writing
<if test="applyStartTime != null and applyEndTime != null">
<![CDATA[
and DATE_FORMAT(t.apply_time
, '%Y-%m-%d %H:%i:%s') >= DATE_FORMAT(#{
applyStartTime}
, '%Y-%m-%d %H:%i:%s')
and DATE_FORMAT(t.apply_time
, '%Y-%m-%d %H:%i:%s') <= DATE_FORMAT(#{
applyEndTime}
, '%Y-%m-%d %H:%i:%s')
]]>
</if>
Here are some Correct code slice
.
It can only be accurate to the number of days
<if test="applyStartTime != null and applyEndTime != null">
<![CDATA[
and DATE_FORMAT(t.apply_time
, '%Y-%m-%d') >= DATE_FORMAT(#{
applyStartTime}
, '%Y-%m-%d')
and DATE_FORMAT(t.apply_time
, '%Y-%m-%d') <= DATE_FORMAT(#{
applyEndTime}
, '%Y-%m-%d')
]]>
</if>
边栏推荐
- Collection interface
- Message pack in C deserializes array objects
- Chocolate installation
- UE4 source code reading_ Bone model and animation system_ Animation node
- 【Rust 笔记】07-结构体
- Unity editor expansion - draw lines
- Alibaba canaladmin deployment and canal cluster Ha Construction
- 【Rust 笔记】11-实用特型
- Markdown directory generation
- 22-05-26 西安 面试题(01)准备
猜你喜欢
UE4 source code reading_ Mobile synchronization
Jupyter remote server configuration and server startup
第一个Servlet
梯度下降法求解BP神经网络的简单Demo
Thymeleaf 404 reports an error: there was unexpected error (type=not found, status=404)
Some understandings of 3dfiles
UE4 source code reading_ Bone model and animation system_ Animation node
Display terrain database on osgearth ball
Collection interface
Introduction to hexadecimal coding
随机推荐
Constraintlayout's constraintset dynamically modifies constraints
单调栈-84. 柱状图中最大的矩形
Osgearth starry background
matlab神經網絡所有傳遞函數(激活函數)公式詳解
Unity learning notes
[rust notes] 07 structure
Detailed explanation of all transfer function (activation function) formulas of MATLAB neural network
ES6 promise learning notes
Unity editor expansion - window, sub window, menu, right-click menu (context menu)
【Rust笔记】06-包和模块
VIM learning notes from introduction to silk skating
分配异常的servlet
【Rust 笔记】07-结构体
redis集群系列四
Mxone Pro adaptive 2.0 film and television template watermelon video theme apple cmsv10 template
Unity editor expansion - draw lines
UE4 source code reading_ Bone model and animation system_ Animation node
Simply start with the essence and principle of SOM neural network
Animation_ IK overview
单调栈-42. 接雨水