-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
修复日期格式不正确导致查询不到数据 #199
base: master
Are you sure you want to change the base?
修复日期格式不正确导致查询不到数据 #199
Conversation
This reverts commit 4ae5c62.
sql条件中如果只包含年月日,不包含
前端传入时加上时间就好,例如以下案例: <el-date-picker
v-model="dateRange"
style="width: 240px"
value-format="yyyy-MM-dd HH:mm:ss"
type="datetimerange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker> |
这段代码上传到前端哪个地方呀? |
全局搜索,替换代码 |
能加下Q指导下吗。272778299 |
时间字符串参数是yyyy-MM-dd形式,数据库数据包含HH:mm:ss 匹配不上,创建betweenFormatIfPresent方法把前端传的时间参数补上00:00:00和23:59:59