From 2e893b12760f4938ff340831aa7e8364ba8f82ca Mon Sep 17 00:00:00 2001 From: Date: Thu, 13 Mar 2025 22:05:00 +0000 Subject: [PATCH] =?UTF-8?q?2025/3/14=2006:04:44---=E4=BF=AE=E6=94=B9json?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- camel-mybatis-yml/UserMapper.xml | 2 +- camel-mybatis-yml/user-manage.camel.yaml | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/camel-mybatis-yml/UserMapper.xml b/camel-mybatis-yml/UserMapper.xml index bcad2bc..f788197 100644 --- a/camel-mybatis-yml/UserMapper.xml +++ b/camel-mybatis-yml/UserMapper.xml @@ -182,7 +182,7 @@ - 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') updated_at BETWEEN #{criterion.value[0]} AND #{criterion.value[1]} diff --git a/camel-mybatis-yml/user-manage.camel.yaml b/camel-mybatis-yml/user-manage.camel.yaml index cce03d1..4234049 100644 --- a/camel-mybatis-yml/user-manage.camel.yaml +++ b/camel-mybatis-yml/user-manage.camel.yaml @@ -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