|
|
@@ -34,7 +34,7 @@
|
|
|
<if test="dto.baseSemesterId != null and dto.baseSemesterId > 0">
|
|
|
AND t.base_semester_id = #{dto.baseSemesterId}
|
|
|
</if>
|
|
|
- <if test="dto.classId != null and dto.classId.size() > 0">
|
|
|
+ <if test="dto.classId != null and dto.classId > 0">
|
|
|
AND t.class_id = #{dto.classId}
|
|
|
</if>
|
|
|
AND t.claim_type = 'claim_class'
|
|
|
@@ -48,12 +48,8 @@
|
|
|
<if test="dto.baseSemesterId != null and dto.baseSemesterId > 0">
|
|
|
AND base_semester_id = #{dto.baseSemesterId}
|
|
|
</if>
|
|
|
- <if test="dto.classIdList != null and dto.classIdList.size() > 0">
|
|
|
- AND class_id IN
|
|
|
- <foreach item="classId" index="index" collection="dto.classIdList" open="(" close=")"
|
|
|
- separator=",">
|
|
|
- #{classId}
|
|
|
- </foreach>
|
|
|
+ <if test="dto.classId != null and dto.classId > 0">
|
|
|
+ AND class_id = #{dto.classId}
|
|
|
</if>
|
|
|
GROUP BY base_semester_id, class_id, textbook_id),
|
|
|
class_stu_num AS
|
|
|
@@ -61,12 +57,8 @@
|
|
|
FROM base_student_school_roll t
|
|
|
WHERE t.delete_mark = 0
|
|
|
and t.archives_status = 'FB2901'
|
|
|
- <if test="dto.classIdList != null and dto.classIdList.size() > 0">
|
|
|
- AND t.class_id IN
|
|
|
- <foreach item="classId" index="index" collection="dto.classIdList" open="(" close=")"
|
|
|
- separator=",">
|
|
|
- #{classId}
|
|
|
- </foreach>
|
|
|
+ <if test="dto.classId != null and dto.classId > 0">
|
|
|
+ AND t.class_id = #{dto.classId}
|
|
|
</if>
|
|
|
GROUP BY class_id)
|
|
|
SELECT t.base_semester_id,
|
|
|
@@ -87,12 +79,8 @@
|
|
|
t3.textbook_id = t.textbook_id
|
|
|
LEFT JOIN class_stu_num t4 ON t4.class_id = t.class_id
|
|
|
where t.class_id <> 0
|
|
|
- <if test="dto.classIdList != null and dto.classIdList.size() > 0">
|
|
|
- AND t.class_id IN
|
|
|
- <foreach item="classId" index="index" collection="dto.classIdList" open="(" close=")"
|
|
|
- separator=",">
|
|
|
- #{classId}
|
|
|
- </foreach>
|
|
|
+ <if test="dto.classId != null and dto.classId > 0">
|
|
|
+ AND t.class_id = #{dto.classId}
|
|
|
</if>
|
|
|
<if test="dto.claimStatus != null and dto.claimStatus == 2">
|
|
|
AND t.received_num <= t3.claim_num
|