Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李丛阳
education
Commits
2e842456
Commit
2e842456
authored
Jul 16, 2020
by
liuyuanjun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改分页查询推荐(企业)接口的sql
parent
6d7692ea
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
10 deletions
+2
-10
BLessonRepository.java
...a/org/rcisoft/business/blesson/dao/BLessonRepository.java
+0
-8
application-test.yml
src/main/resources/application-test.yml
+2
-2
No files found.
src/main/java/org/rcisoft/business/blesson/dao/BLessonRepository.java
View file @
2e842456
...
@@ -212,25 +212,17 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
...
@@ -212,25 +212,17 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
" from b_lesson bl "
+
" from b_lesson bl "
+
" left join s_user su on su.business_id = bl.lecturer_id "
+
" left join s_user su on su.business_id = bl.lecturer_id "
+
// " and su.del_flag != 1 and su.flag = 1 " +
// " and su.del_flag != 1 and su.flag = 1 " +
" and su.corp_id = #{curUser.corpId} "
+
" and su.corp_id = #{curUser.corpId} "
+
" left join s_user suc on suc.business_id = bl.create_by "
+
" left join s_user suc on suc.business_id = bl.create_by "
+
// " and suc.del_flag != 1 and suc.flag = 1 " +
// " and suc.del_flag != 1 and suc.flag = 1 " +
" and suc.corp_id = #{curUser.corpId} "
+
" and suc.corp_id = #{curUser.corpId} "
+
" left join b_recommend br on bl.business_id = br.lesson_id "
+
" left join b_recommend br on bl.business_id = br.lesson_id "
+
" and br.del_flag != 1 and br.flag = 1 "
+
" and br.del_flag != 1 and br.flag = 1 "
+
" and br.corp_id = #{curUser.corpId} "
+
" and br.corp_id = #{curUser.corpId} "
+
" left join b_recommend_son brs on br.business_id = brs.recommend_id "
+
" left join b_recommend_son brs on br.business_id = brs.recommend_id "
+
// " left join b_course bc on bc.business_id = bl.course_id " +
// " left join b_course bc on bc.business_id = bl.course_id " +
" where bl.del_flag != 1 and bl.flag = 1 "
+
" where bl.del_flag != 1 and bl.flag = 1 "
+
" and bl.corp_id = #{curUser.corpId} "
+
" and bl.corp_id = #{curUser.corpId} "
+
" and bl.release_state = 2 "
+
" and bl.release_state = 2 "
+
" and ((brs.type = 0 and brs.target_id = #{curUser.userId}) "
+
" and ((brs.type = 0 and brs.target_id = #{curUser.userId}) "
+
" <if test=\"departs != null and departs.size() > 0 \"> "
+
" <if test=\"departs != null and departs.size() > 0 \"> "
+
...
...
src/main/resources/application-test.yml
View file @
2e842456
...
@@ -28,8 +28,8 @@ pagehelper:
...
@@ -28,8 +28,8 @@ pagehelper:
spring
:
spring
:
datasource
:
datasource
:
url
:
jdbc:mysql://192.168.5.41:3306/zx_education?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&failOverReadOnly=false&allowMultiQueries=true&serverTimezone=GMT%2B8
url
:
jdbc:mysql://192.168.5.41:3306/zx_education?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&failOverReadOnly=false&allowMultiQueries=true&serverTimezone=GMT%2B8
username
:
edu
username
:
dba
password
:
edu20191127
password
:
dba123456
type
:
com.zaxxer.hikari.HikariDataSource
type
:
com.zaxxer.hikari.HikariDataSource
driver-class-name
:
com.mysql.cj.jdbc.Driver
driver-class-name
:
com.mysql.cj.jdbc.Driver
jackson
:
jackson
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment