当前位置:网站首页>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>
边栏推荐
- XPath实现XML文档的查询
- Data analysis exercises
- 详解sizeof、strlen、指针和数组等组合题
- Gradle's method of dynamically modifying APK package name
- [concurrent programming] synchronization container, concurrent container, blocking queue, double ended queue and work secret
- [updating] wechat applet learning notes_ three
- Kunlunbase meetup is waiting for you!
- Osgconv tool usage
- Installation of PHP FPM software +openresty cache construction
- 796 · unlock
猜你喜欢
![[concurrent programming] working mechanism and type of thread pool](/img/51/d21428a7c95c0a5177e8198742e78c.jpg)
[concurrent programming] working mechanism and type of thread pool

Log4j2 vulnerability recurrence and analysis

Chocolate installation

Unity editor expansion - scrolling list

Message queue for interprocess communication

Concurrent programming (V) detailed explanation of atomic and unsafe magic classes

Thymeleaf 404 reports an error: there was unexpected error (type=not found, status=404)

php-fpm软件的安装+openresty高速缓存搭建

Drawing maze EasyX library with recursive backtracking method
![[cloud native] introduction and use of feign of microservices](/img/39/05cf7673155954c90e75a8a2eecd96.jpg)
[cloud native] introduction and use of feign of microservices
随机推荐
【Rust 笔记】08-枚举与模式
Chocolate installation
Message pack in C deserializes array objects
Simple demo of solving BP neural network by gradient descent method
MySQL 8
Installation of PHP FPM software +openresty cache construction
Concurrent programming (V) detailed explanation of atomic and unsafe magic classes
22-06-28 西安 redis(02) 持久化机制、入门使用、事务控制、主从复制机制
Creation and content of mapnode -- osgearth rendering engine series (2)
请求参数的发送和接收
Vscode, idea, VIM development tool shortcut keys
Unity Editor Extension - drag and drop
Deep parsing JVM memory model
[K & R] Chinese Second Edition personal questions Chapter1
[rust note] 10 operator overloading
了解小程序的笔记 2022/7/3
[rust notes] 05 error handling
Pit & ADB wireless debugging of vivo real machine debugging
UE4 source code reading_ Bone model and animation system_ Animation compression
Concurrent programming (VI) ABA problems and solutions under CAS