From 01b880e90c0f260a9baa4aac255ad32e1bfc8ec0 Mon Sep 17 00:00:00 2001 From: Ziin Date: Tue, 1 Jul 2025 21:03:12 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E4=B8=BB=E6=92=AD=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=20xml=EF=BC=8C=E6=B7=BB=E5=8A=A0=20logback=20?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/logback-spring.xml | 68 ++++++++++++++++++++ src/main/resources/mapper/NewHostsMapper.xml | 9 ++- 2 files changed, 74 insertions(+), 3 deletions(-) create mode 100644 src/main/resources/logback-spring.xml diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml new file mode 100644 index 0000000..a0b3ba7 --- /dev/null +++ b/src/main/resources/logback-spring.xml @@ -0,0 +1,68 @@ + + + + TK-DataSave + + + + + + + + + + + + + + ${PATTERN_DEFAULT} + + + + + + ${LOG_FILE_PATH}.log + + ${LOG_FILE_PATH}-%d{yyyy-MM-dd}.log + 7 + 10MB + + + ${FILE_PATTERN} + UTF-8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/mapper/NewHostsMapper.xml b/src/main/resources/mapper/NewHostsMapper.xml index 9d41ef5..4095f91 100644 --- a/src/main/resources/mapper/NewHostsMapper.xml +++ b/src/main/resources/mapper/NewHostsMapper.xml @@ -317,12 +317,12 @@ order by - - + + ns.create_time desc - + ns.create_time ${hostInfoDTO.sort} @@ -347,6 +347,9 @@ ns.online_fans ${hostInfoDTO.sort} + + ns.create_time desc +