|
@@ -656,13 +656,30 @@
|
|
|
FROM
|
|
|
organization o
|
|
|
LEFT JOIN exam_registration er ON er.organ_id_ = o.id_ AND er.status_ IN ('AUDIT_WAIT', 'AUDIT_PASS', 'AUDIT_REJECT')
|
|
|
- WHERE o.id_ IN
|
|
|
- <foreach collection="organIds" item="organId" separator="," open="(" close=")">
|
|
|
- #{organId}
|
|
|
- </foreach>
|
|
|
+ WHERE 1=1
|
|
|
+ <if test="organIds!=null">
|
|
|
+ AND o.id_ IN
|
|
|
+ <foreach collection="organIds" item="organId" separator="," open="(" close=")">
|
|
|
+ #{organId}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
GROUP BY
|
|
|
o.id_
|
|
|
ORDER BY o.id_
|
|
|
<include refid="global.limit"/>
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="countOrganExamRegistStatistics" resultType="int">
|
|
|
+ SELECT
|
|
|
+ COUNT(o.id_)
|
|
|
+ FROM
|
|
|
+ organization o
|
|
|
+ WHERE 1=1
|
|
|
+ <if test="organIds!=null">
|
|
|
+ AND o.id_ IN
|
|
|
+ <foreach collection="organIds" item="organId" separator="," open="(" close=")">
|
|
|
+ #{organId}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
</mapper>
|