|
|
@@ -186,13 +186,13 @@
|
|
|
<if test="dto.textbookType != null and dto.textbookType != ''">
|
|
|
and t1.textbook_type = #{dto.textbookType}
|
|
|
</if>
|
|
|
- <if test="dto.baseSemesterId != null and dto.baseSemesterId > 0">
|
|
|
+ <if test="dto.baseSemesterId != null">
|
|
|
and t1.base_semester_id = #{dto.baseSemesterId}
|
|
|
</if>
|
|
|
- <if test="dto.subjectGroupId != null and dto.subjectGroupId > 0">
|
|
|
+ <if test="dto.subjectGroupId != null">
|
|
|
and t1.subject_group_id = #{dto.subjectGroupId}
|
|
|
</if>
|
|
|
- <if test="dto.courseSubjectId != null and dto.courseSubjectId > 0">
|
|
|
+ <if test="dto.courseSubjectId != null">
|
|
|
and t1.course_subject_id = #{dto.courseSubjectId}
|
|
|
</if>
|
|
|
<if test="dto.bookName != null and dto.bookName != ''">
|
|
|
@@ -238,13 +238,13 @@
|
|
|
<if test="dto.textbookType != null and dto.textbookType != ''">
|
|
|
and t8.textbook_type = #{dto.textbookType}
|
|
|
</if>
|
|
|
- <if test="dto.baseSemesterId != null and dto.baseSemesterId > 0">
|
|
|
+ <if test="dto.baseSemesterId != null">
|
|
|
and t8.base_semester_id = #{dto.baseSemesterId}
|
|
|
</if>
|
|
|
- <if test="dto.subjectGroupId != null and dto.subjectGroupId > 0">
|
|
|
+ <if test="dto.subjectGroupId != null">
|
|
|
and t8.subject_group_id = #{dto.subjectGroupId}
|
|
|
</if>
|
|
|
- <if test="dto.courseSubjectId != null and dto.courseSubjectId > 0">
|
|
|
+ <if test="dto.courseSubjectId != null">
|
|
|
and t8.course_subject_id = #{dto.courseSubjectId}
|
|
|
</if>
|
|
|
<if test="dto.bookName != null and dto.bookName != ''">
|
|
|
@@ -271,24 +271,20 @@
|
|
|
left join wf_textbook_claim_item t1 on t1.wf_textbook_claim_id = t.id
|
|
|
left join textbook t2 on t2.id = t1.textbook_id
|
|
|
where claim_type = 'claim_student'
|
|
|
- <if test="dto.baseSemesterId != null and dto.baseSemesterId > 0">
|
|
|
+ <if test="dto.baseSemesterId != null">
|
|
|
amd t.base_semester_id = #{dto.baseSemesterId}
|
|
|
</if>
|
|
|
- <if test="dto.classId != null and dto.classId > 0">
|
|
|
+ <if test="dto.classId != null">
|
|
|
and t.class_id = #{dto.classId}
|
|
|
</if>
|
|
|
- <if test="dto.textbookId != null and dto.textbookId > 0">
|
|
|
+ <if test="dto.textbookId != null">
|
|
|
and t1.textbook_id = #{dto.textbookId}
|
|
|
</if>
|
|
|
group by t.base_semester_id, t.class_id, t1.textbook_id
|
|
|
)
|
|
|
select
|
|
|
t.base_semester_id,
|
|
|
- t6.name as baseSemesterIdCn,
|
|
|
t.class_id,
|
|
|
- t3.name as classIdCn,
|
|
|
- t4.name as headTeacherName,
|
|
|
- t5.name as classRoomName,
|
|
|
t.textbook_id,
|
|
|
t2.name as textbookTypeCn,
|
|
|
t1.book_name,
|
|
|
@@ -302,18 +298,14 @@
|
|
|
from textbook_class t
|
|
|
left join textbook t1 on t1.id = t.textbook_id
|
|
|
left join xjr_dictionary_detail t2 on t2.code = t1.textbook_type
|
|
|
- left join base_class t3 on t3.id = t.class_id
|
|
|
- LEFT JOIN xjr_user t4 ON t4.id = t3.teacher_id
|
|
|
- LEFT JOIN base_classroom t5 ON t5.id = t3.classroom_id
|
|
|
- LEFT JOIN base_semester t6 ON t6.id = t.base_semester_id
|
|
|
<where>
|
|
|
<if test="dto.textbookType != null and dto.textbookType != ''">
|
|
|
and t1.textbook_type = #{dto.textbookType}
|
|
|
</if>
|
|
|
- <if test="dto.subjectGroupId != null and dto.subjectGroupId > 0">
|
|
|
+ <if test="dto.subjectGroupId != null">
|
|
|
and t1.subject_group_id = #{dto.subjectGroupId}
|
|
|
</if>
|
|
|
- <if test="dto.courseSubjectId != null and dto.courseSubjectId > 0">
|
|
|
+ <if test="dto.courseSubjectId != null">
|
|
|
and t1.course_subject_id = #{dto.courseSubjectId}
|
|
|
</if>
|
|
|
<if test="dto.bookName != null and dto.bookName != ''">
|
|
|
@@ -326,6 +318,5 @@
|
|
|
and t1.issn like concat('%', #{dto.issn}, '%')
|
|
|
</if>
|
|
|
</where>
|
|
|
- ORDER by t2.name desc
|
|
|
</select>
|
|
|
</mapper>
|