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