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
3eec852f
Commit
3eec852f
authored
Jan 18, 2018
by
YangZhaoJun1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xml
parent
e54ee9e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
BChapterMapper.xml
...ources/mapper/business/bchapter/mapper/BChapterMapper.xml
+30
-0
No files found.
src/main/resources/mapper/business/bchapter/mapper/BChapterMapper.xml
View file @
3eec852f
...
@@ -33,4 +33,34 @@
...
@@ -33,4 +33,34 @@
<result
column=
"class_name"
property=
"className"
></result>
<result
column=
"class_name"
property=
"className"
></result>
<result
column=
"chapter_name"
property=
"chapterName"
></result>
<result
column=
"chapter_name"
property=
"chapterName"
></result>
</resultMap>
</resultMap>
<resultMap
id=
"SupperStudentChildListResultMap"
type=
"org.rcisoft.business.bchapter.entity.BChapter"
extends=
"BaseResultMap"
>
<association
column=
"{studentId=stuId,paId=business_id}"
property=
"childList"
select=
"queryBChaptersByPidAndUserId"
>
</association>
</resultMap>
<select
id=
"queryBChaptersByPidAndUserId"
parameterType=
"java.util.Map"
resultMap=
"SupperStudentChildListResultMap"
>
SELECT
bc.*,
#{studentId} AS stuId,
bf.video_url AS videoUrl,
bf.file_url AS fileUrl,
bf.ppt_url AS pptUrl,
bf.pdf_url AS pdfUrl,
IFNULL((select is_complete from b_r_student_chapter brs
LEFT JOIN b_student bs on brs.student_id = bs.business_id
LEFT JOIN s_user su on bs.`code` = su.login_name
WHERE brs.chapter_id = bc.business_id AND su.business_id = #{studentId}),0) as isComplete,
(SELECT count(*) FROM b_r_student_chapter brs WHERE brs.chapter_id = bc.business_id AND brs.score = - 1) AS studentNum
FROM
b_chapter bc
LEFT JOIN b_file bf ON bf.chapter_id = bc.business_id
WHERE
bc.del_flag = 0
AND bc.pid = #{paId}
ORDER BY
bc.sort asc
</select>
</mapper>
</mapper>
\ No newline at end of file
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