|
@@ -166,14 +166,16 @@
|
|
|
|
|
|
<sql id="queryCondition">
|
|
<sql id="queryCondition">
|
|
<where>
|
|
<where>
|
|
- ear.tenant_id_=#{tenantId}
|
|
|
|
- AND ear.examination_basic_id_=#{examId}
|
|
|
|
|
|
+ ear.examination_basic_id_=#{examId}
|
|
<if test="organIds!=null">
|
|
<if test="organIds!=null">
|
|
AND ear.organ_id_ IN
|
|
AND ear.organ_id_ IN
|
|
<foreach collection="organIds" item="organId" separator="," open="(" close=")">
|
|
<foreach collection="organIds" item="organId" separator="," open="(" close=")">
|
|
#{organId}
|
|
#{organId}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="tenantId != null and tenantId != 0">
|
|
|
|
+ AND ear.tenant_id_ = #{tenantId}
|
|
|
|
+ </if>
|
|
<if test="settlementType!=null">
|
|
<if test="settlementType!=null">
|
|
AND ear.settlement_type_=#{settlementType,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler}
|
|
AND ear.settlement_type_=#{settlementType,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler}
|
|
</if>
|
|
</if>
|
|
@@ -269,9 +271,11 @@
|
|
|
|
|
|
<sql id="queryUnRelatedOrgansCondition">
|
|
<sql id="queryUnRelatedOrgansCondition">
|
|
<where>
|
|
<where>
|
|
- o.tenant_id_ = #{tenantId}
|
|
|
|
|
|
+ <if test="tenantId != null and tenantId != 0">
|
|
|
|
+ AND o.tenant_id_ = #{tenantId}
|
|
|
|
+ </if>
|
|
<if test="organIds!=null">
|
|
<if test="organIds!=null">
|
|
- o.id_ IN
|
|
|
|
|
|
+ AND o.id_ IN
|
|
<foreach collection="organIds" item="organId" separator="," open="(" close=")">
|
|
<foreach collection="organIds" item="organId" separator="," open="(" close=")">
|
|
#{organId}
|
|
#{organId}
|
|
</foreach>
|
|
</foreach>
|