2025/3/14 06:04:44---修改json配置

This commit is contained in:
2025-03-13 22:05:00 +00:00 committed by root
parent 3eb2c1aee2
commit 2e893b1276
2 changed files with 11 additions and 11 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 HH:mm:ss') AND BETWEEN TO_TIMESTAMP(#{criterion.value[1]}, 'yyyy-MM-dd HH:mm:ss')
created_at BETWEEN TO_TIMESTAMP(#{criterion.value[0]}, 'yyyy-MM-dd"T"HH:mm:ss') AND BETWEEN TO_TIMESTAMP(#{criterion.value[1]}, 'yyyy-MM-dd"T"HH:mm:ss')
</when>
<when test="criterion.operator == 'BETWEEN' and criterion.field == 'updatedAt'">
updated_at BETWEEN #{criterion.value[0]} AND #{criterion.value[1]}

View File

@ -1,13 +1,3 @@
- restConfiguration:
component: platform-http
bindingMode: json
dataFormatProperty:
- key: prettyPrint
value: "true"
- key: dateFormatPattern
value: yyyy-MM-dd HH:mm:ss
- key: json.out.disableFeatures
value: WRITE_DATES_AS_TIMESTAMPS
- rest:
id: rest-523c
description: 用户服务
@ -493,3 +483,13 @@
id: bean-8272
ref: paginationAggregator
method: setDeletedResponse
- restConfiguration:
component: platform-http
bindingMode: json
dataFormatProperty:
- key: dateFormatPattern
value: yyyy-MM-dd HH:mm:ss
- key: json.out.disableFeatures
value: WRITE_DATES_AS_TIMESTAMPS
- key: json.in.disableFeatures
value: WRITE_DATES_AS_TIMESTAMPS