2025/3/16 14:26:24----修改时间查询配置22

This commit is contained in:
2025-03-16 06:27:03 +00:00 committed by root
parent fed1404ab4
commit e8149f1cf6

View File

@ -195,9 +195,10 @@
<!-- 'created_at' BETWEEN <!-- 'created_at' BETWEEN
(SELECT to_timestamp(#{criterion.value[0]}, 'YYYY-MM-DD"T"HH24:MI:SS')) AND (SELECT to_timestamp(#{criterion.value[0]}, 'YYYY-MM-DD"T"HH24:MI:SS')) AND
(SELECT to_timestamp(#{criterion.value[1]}, 'YYYY-MM-DD"T"HH24:MI:SS')) --> (SELECT to_timestamp(#{criterion.value[1]}, 'YYYY-MM-DD"T"HH24:MI:SS')) -->
created_at BETWEEN <!-- created_at BETWEEN
(#{criterion.value[0]}::timestamp with time zone) AND (#{criterion.value[0]}::timestamp with time zone) AND
(#{criterion.value[1]}::timestamp with time zone) (#{criterion.value[1]}::timestamp with time zone) -->
created_at BETWEEN #{criterion.value[0]} AND #{criterion.value[1]}
</when> </when>
<when test="criterion.operator == 'BETWEEN' and criterion.field == 'updatedAt'"> <when test="criterion.operator == 'BETWEEN' and criterion.field == 'updatedAt'">
updated_at BETWEEN #{criterion.value[0]} AND #{criterion.value[1]} updated_at BETWEEN #{criterion.value[0]} AND #{criterion.value[1]}