From a4c404fff3f9c2008990997eb5fed71e8fb8fb6e Mon Sep 17 00:00:00 2001 From: tamguo Date: Fri, 6 Jul 2018 09:47:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=A0=E8=8A=82=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tamguo/src/main/resources/application.properties | 2 +- tamguo/src/main/resources/mappers/ChapterMapper.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tamguo/src/main/resources/application.properties b/tamguo/src/main/resources/application.properties index 2f0ad7d..fa403f2 100644 --- a/tamguo/src/main/resources/application.properties +++ b/tamguo/src/main/resources/application.properties @@ -19,7 +19,7 @@ spring.datasource.testOnReturn=false spring.datasource.testWhileIdle=true spring.datasource.timeBetweenEvictionRunsMillis=60000 spring.datasource.type=com.alibaba.druid.pool.DruidDataSource -spring.datasource.url=jdbc:mysql://47.100.175.14:3306/tiku?useUnicode=true&characterEncoding=UTF-8&useSSL=false +spring.datasource.url=jdbc:mysql://47.100.175.14:3306/tamguo?useUnicode=true&characterEncoding=UTF-8&useSSL=false spring.datasource.username=root spring.datasource.validationQuery=SELECT 1 FROM DUAL diff --git a/tamguo/src/main/resources/mappers/ChapterMapper.xml b/tamguo/src/main/resources/mappers/ChapterMapper.xml index d84314c..27c32d8 100644 --- a/tamguo/src/main/resources/mappers/ChapterMapper.xml +++ b/tamguo/src/main/resources/mappers/ChapterMapper.xml @@ -8,7 +8,7 @@ FROM tiku_chapter c WHERE c.course_id = #{courseId} - ORDER BY c.orders asc + ORDER BY c.uid asc @@ -25,7 +25,7 @@ tiku_chapter c WHERE c.parent_id = #{parentId} - ORDER BY c.orders asc + ORDER BY c.uid asc