2025/3/14 06:44:39---调整日期格式11

This commit is contained in:
2025-03-13 22:44:51 +00:00 committed by root
parent b5801847ba
commit b00d2f96e2
2 changed files with 4 additions and 2 deletions

View File

@ -182,7 +182,7 @@
</when>
<!-- 在...之间 -->
<when test="criterion.operator == 'BETWEEN' and criterion.field == 'createdAt'">
created_at BETWEEN TO_TIMESTAMP(#{criterion.value[0]}, 'YYYY-MM-DD"T"HH24:MI:SS') AND TO_TIMESTAMP(#{criterion.value[1]}, 'YYYY-MM-DD"T"HH24:MI:SS')
created_at BETWEEN #{criterion.value[0]} AND #{criterion.value[1]}
</when>
<when test="criterion.operator == 'BETWEEN' and criterion.field == 'updatedAt'">
updated_at BETWEEN #{criterion.value[0]} AND #{criterion.value[1]}

View File

@ -7,7 +7,9 @@
- key: json.out.disableFeatures
value: WRITE_DATES_AS_TIMESTAMPS
- key: json.in.disableFeatures
value: WRITE_DATES_AS_TIMESTAMPS
value: FAIL_ON_UNKNOWN_PROPERTIES
- key: unmarshalType
value: com.fasterxml.jackson.databind.JsonNode
- rest:
id: rest-523c
description: 用户服务